/*
Theme Name: Harry Archbold OT
Theme URI: https://example.com/
Author: Jay
Description: A single-page theme for Harry Archbold Occupational Therapy, built around the practice logo — its five colours and its motif of four concentric rings that never quite close. Every word, image and colour is editable from Appearance > Customize > Website Content. No page builder required.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hbot
Tags: one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens — the five logo colours, plus the tints derived from them
   ========================================================================== */
:root{
  /* Sampled directly from the logo artwork */
  --purple:#6B2976;
  --plum:#6F4564;
  --teal:#459998;
  --aqua:#62C9D3;
  --gold:#ECCA1C;

  /* Derived. Full-strength teal is only 3.2:1 on light, so text uses this. */
  --teal-ink:#306B6A;
  --purple-deep:#551F5E;

  --ink:#3B1C42;        /* headings — deep aubergine */
  --body:#3F3444;       /* body copy */
  --muted:#63566A;      /* secondary copy */

  --paper:#F8FAFA;      /* default background */
  --mist:#E7F1F2;       /* alternate background, from the aqua */
  --honey:#FDF6E0;      /* warm band, from the gold */
  --deep:#3B1C42;       /* dark section + footer */
  --deep-teal:#1F5F60;  /* dark teal section */
  --white:#FFFFFF;
  --ring-soft:rgba(255,255,255,.62); /* stands in for plum on dark */

  --font-display:"Outfit",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --font-body:"Karla",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;

  --step--1:clamp(.82rem,.79rem + .15vw,.9rem);
  --step-0:clamp(1rem,.96rem + .2vw,1.08rem);
  --step-1:clamp(1.15rem,1.08rem + .35vw,1.35rem);
  --step-2:clamp(1.4rem,1.25rem + .7vw,1.85rem);
  --step-3:clamp(1.75rem,1.45rem + 1.35vw,2.6rem);
  --step-4:clamp(2.2rem,1.6rem + 2.5vw,3.8rem);

  --gutter:clamp(1.25rem,4vw,3rem);
  --section-y:clamp(4rem,9vw,7.5rem);
  --wrap:1180px;
  --wrap-narrow:760px;
  --radius:18px;
  --shadow:0 20px 55px -26px rgba(59,28,66,.34);
  --border:1px solid rgba(59,28,66,.12);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--body);
  font-family:var(--font-body);
  font-size:var(--step-0);
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--purple)}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink);
  line-height:1.14;
  letter-spacing:-.02em;
  margin:0 0 .6em;
  font-weight:500;
}
h1{font-size:var(--step-4);font-weight:400}
h2{font-size:var(--step-3);font-weight:400}
h3{font-size:var(--step-1);font-weight:600;letter-spacing:-.01em}
p{margin:0 0 1.15em}
p:last-child{margin-bottom:0}
ul{margin:0 0 1.15em;padding-left:1.15em}
:focus-visible{outline:3px solid var(--teal-ink);outline-offset:3px;border-radius:4px}
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap;
}
.skip-link:focus{
  position:fixed;top:1rem;left:1rem;z-index:999;width:auto;height:auto;clip:auto;clip-path:none;
  background:var(--purple);color:#fff;padding:.7rem 1.1rem;border-radius:8px;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.wrap--narrow{max-width:var(--wrap-narrow)}
.section{padding-block:var(--section-y);position:relative}
.section--mist{background:var(--mist)}
.section--honey{background:var(--honey)}
.section--deep{background:var(--deep);color:rgba(255,255,255,.84)}
.section--teal{background:var(--deep-teal);color:rgba(255,255,255,.86)}
.section--deep h2,.section--deep h3,.section--teal h2,.section--teal h3{color:#fff}
.section--deep a,.section--teal a{color:#fff}
.section-head{max-width:60ch;margin-bottom:clamp(2rem,4vw,3.25rem)}
.section-head--center{margin-inline:auto;text-align:center}

/* Eyebrow: names the section. Set in the display face at the logo's
   letterspacing, echoing the "Occupational Therapy" line in the wordmark. */
.eyebrow{
  font-family:var(--font-display);
  font-size:var(--step--1);
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--teal-ink);
  display:flex;align-items:center;gap:.7rem;
  margin:0 0 1rem;
}
.eyebrow::before{
  content:"";width:28px;height:2px;flex:none;border-radius:2px;
  background:linear-gradient(90deg,var(--gold),var(--teal));
}
.section-head--center .eyebrow{justify-content:center}
.section--deep .eyebrow,.section--teal .eyebrow{color:var(--gold)}
.section--deep .eyebrow::before,.section--teal .eyebrow::before{
  background:linear-gradient(90deg,var(--aqua),var(--gold));
}

.lede{font-size:var(--step-1);line-height:1.62;color:var(--muted)}
.section--deep .lede,.section--teal .lede{color:rgba(255,255,255,.8)}

/* ==========================================================================
   4. Brand marks — the logo's open rings, reused at three scales
   ========================================================================== */
.ring-set{display:block;width:100%;height:100%;overflow:visible}
.ring-set circle{stroke-dashoffset:0}
.ring-accent{width:44px;height:44px;flex:none}
.card__mark{display:block;margin-bottom:1.15rem}

/* Wide sweep of the same four arcs, dividing light sections */
.arc-divider{line-height:0;overflow:hidden}
.arc-divider svg{display:block;width:100%;height:clamp(44px,6vw,78px);opacity:.85}
.arc-divider--flip svg{transform:scaleY(-1)}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-display);font-size:var(--step--1);font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;text-decoration:none;
  padding:1.05rem 1.9rem;border-radius:999px;border:1.5px solid transparent;
  cursor:pointer;line-height:1;
  transition:transform .25s ease,background-color .25s ease,color .25s ease,border-color .25s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn--primary{background:var(--purple);color:#fff}
.btn--primary:hover{background:var(--purple-deep);color:#fff}
.btn--ghost{background:transparent;color:var(--purple);border-color:rgba(107,41,118,.4)}
.btn--ghost:hover{background:var(--purple);color:#fff;border-color:var(--purple)}
.btn--light{background:#fff;color:var(--purple)}
.btn--light:hover{background:var(--gold);color:var(--ink)}
.btn-row{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:2rem}

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(248,250,250,.93);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(59,28,66,.09);
}
.site-header__inner{
  display:flex;align-items:center;gap:1.5rem;min-height:100px;
  transition:min-height .3s ease;
}
.site-brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;margin-right:auto;min-width:0}
/*
 * The logo is a 2.28:1 lockup whose wordmark interlocks with the rings, so it
 * cannot be split or reflowed — it just needs enough width to stay readable.
 * 76px tall keeps the "H" cap height at ~15px.
 */
.site-brand img{height:76px;width:auto;max-width:none;flex:none;transition:height .3s ease}
.site-header.is-scrolled .site-header__inner{min-height:76px}
.site-header.is-scrolled .site-brand img{height:60px}
.site-brand__text{display:grid}
.site-brand__name{
  font-family:var(--font-display);font-weight:600;font-size:1.1rem;line-height:1.15;
  color:var(--teal-ink);letter-spacing:-.01em;max-width:22ch;
}
.site-brand__tag{
  font-family:var(--font-display);font-size:.66rem;font-weight:400;
  letter-spacing:.2em;text-transform:uppercase;color:var(--plum);
}
.nav{display:flex;align-items:center;gap:clamp(1rem,2vw,1.9rem)}
.nav a{
  font-family:var(--font-display);font-size:var(--step--1);font-weight:500;
  letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink);text-decoration:none;padding:.4rem 0;position:relative;
}
.nav a::after{
  content:"";position:absolute;left:0;right:100%;bottom:0;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--teal),var(--gold));transition:right .3s ease;
}
.nav a:hover::after,.nav a:focus-visible::after{right:0}
.header-cta{flex:none}
.nav .btn{display:none} /* the in-menu CTA is for the mobile drawer only */
.nav-toggle{
  display:none;background:none;border:var(--border);border-radius:999px;
  padding:.6rem 1rem;font-family:var(--font-display);font-size:var(--step--1);
  font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ink);cursor:pointer;
}
@media (max-width:1000px){
  .site-header__inner{min-height:88px}
  .site-brand img{height:66px}
  .nav-toggle{display:block;margin-left:auto}
  .site-brand{margin-right:0}
  .nav{
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--paper);border-bottom:1px solid rgba(59,28,66,.12);
    padding:.5rem var(--gutter) 1.5rem;display:none;
  }
  .nav.is-open{display:flex}
  .nav a{padding:.9rem 0;border-bottom:1px solid rgba(59,28,66,.08);font-size:1rem}
  .nav a::after{display:none}
  .header-cta{display:none}
  .nav .btn{display:inline-flex;margin-top:1rem;width:100%}
}
@media (max-width:480px){
  .site-header__inner{min-height:78px}
  .site-brand img{height:64px}
  .site-header.is-scrolled .site-brand img{height:56px}
  .site-brand__name{font-size:.98rem;max-width:15ch}
  .site-brand__tag{font-size:.58rem;letter-spacing:.15em}
}

/* ==========================================================================
   7. Hero — the signature: the logo's rings, blown up around the portrait
   ========================================================================== */
.hero{position:relative;overflow:hidden;padding-block:clamp(3.5rem,7vw,6rem) 0}
.hero__inner{
  display:grid;grid-template-columns:1.02fr .98fr;
  gap:clamp(2rem,5vw,4.5rem);align-items:center;
}
.hero__title{margin-bottom:1.1rem}
.hero__title em{
  font-style:normal;display:block;color:var(--teal);font-weight:300;
}
.hero__text{font-size:var(--step-1);color:var(--muted);max-width:46ch}
.hero__meta{
  display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;margin-top:2.25rem;
  font-family:var(--font-display);font-size:var(--step--1);font-weight:600;
  letter-spacing:.11em;text-transform:uppercase;color:var(--ink);
}
.hero__meta span{display:flex;align-items:center;gap:.55rem}
.hero__meta span::before{
  content:"";width:9px;height:9px;border-radius:50%;flex:none;
  border:2.5px solid var(--teal);
}
.hero__meta span:nth-child(2)::before{border-color:var(--gold)}
.hero__meta span:nth-child(3)::before{border-color:var(--purple)}
.hero__meta span:nth-child(4)::before{border-color:var(--aqua)}

/* Portrait sits inside the ring set, exactly as the wordmark does in the logo */
.hero__media{position:relative;aspect-ratio:1;width:100%;max-width:520px;margin-inline:auto}
.hero__rings{position:absolute;inset:0}
.hero__portrait{
  position:absolute;inset:16%;border-radius:50%;overflow:hidden;
  background:linear-gradient(150deg,var(--mist) 0%,var(--honey) 100%);
  box-shadow:var(--shadow);
}
.hero__portrait img{width:100%;height:100%;object-fit:cover}
@media (max-width:880px){
  .hero__inner{grid-template-columns:1fr}
  .hero__media{order:-1;max-width:min(340px,72vw)}
}

/* Draw-in on first paint, one orchestrated moment */
.ring-set--draw circle{
  stroke-dashoffset:var(--dash);
  animation:hbot-draw 1.5s cubic-bezier(.33,.9,.28,1) forwards;
  animation-delay:var(--delay,0ms);
}
@keyframes hbot-draw{to{stroke-dashoffset:0}}

/* ==========================================================================
   8. Cards / grids
   ========================================================================== */
.grid{display:grid;gap:clamp(1.1rem,2.2vw,1.75rem)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.grid--3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.grid--3,.grid--2{grid-template-columns:1fr}}

.card{
  background:var(--white);border:var(--border);border-radius:var(--radius);
  padding:clamp(1.5rem,2.6vw,2.1rem);
  transition:transform .3s ease,box-shadow .3s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.card h3{margin-bottom:.55rem}
.card p{color:var(--muted);font-size:.97rem;margin:0}
.section--mist .card,.section--honey .card{background:rgba(255,255,255,.78)}

/* Process steps — numbered, because the order genuinely carries information */
.steps{display:grid;gap:clamp(1.5rem,3vw,2.5rem);grid-template-columns:repeat(3,1fr)}
@media (max-width:760px){.steps{grid-template-columns:1fr}}
.step{position:relative}
.step__num{
  position:relative;width:64px;height:64px;margin-bottom:1.25rem;
  display:grid;place-items:center;
}
.step__num .ring-accent{position:absolute;inset:0;width:64px;height:64px}
.step__num span{
  font-family:var(--font-display);font-size:1.3rem;font-weight:500;
  color:#fff;position:relative;
}
.step h3{margin-bottom:.5rem}
.step p{color:var(--muted)}
.section--deep .step p,.section--teal .step p{color:rgba(255,255,255,.78)}

/* ==========================================================================
   9. Team
   ========================================================================== */
.team{display:grid;grid-template-columns:.82fr 1.18fr;gap:clamp(2rem,5vw,4rem);align-items:start}
@media (max-width:820px){.team{grid-template-columns:1fr}}
.team__media{position:relative;aspect-ratio:1;width:100%;max-width:360px;margin-inline:auto}
.team__rings{position:absolute;inset:0}
.team__portrait{
  position:absolute;inset:13%;border-radius:50%;overflow:hidden;
  background:linear-gradient(150deg,var(--mist) 0%,var(--honey) 100%);
  box-shadow:var(--shadow);
}
.team__portrait img{width:100%;height:100%;object-fit:cover}
.team__name{margin-bottom:.15rem;font-size:var(--step-2);font-weight:500}
.team__role{
  font-family:var(--font-display);font-size:var(--step--1);font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;color:var(--teal-ink);margin-bottom:1.5rem;
}
.team__block{margin-bottom:1.75rem}
.team__block h3{
  font-family:var(--font-display);font-size:var(--step--1);font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;color:var(--plum);margin-bottom:.5rem;
}
.quals{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.6rem}
.quals li{
  background:var(--mist);border-radius:999px;padding:.5rem 1.1rem;
  font-size:var(--step--1);font-weight:600;letter-spacing:.05em;color:var(--ink);
}
.quals li:nth-child(even){background:var(--honey)}

/* ==========================================================================
   10. Locations
   ========================================================================== */
.suburbs{list-style:none;margin:1.75rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.55rem}
.suburbs li{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.26);
  border-radius:999px;padding:.45rem 1.05rem;font-size:.92rem;
}
.section--mist .suburbs li,.section--honey .suburbs li{
  background:#fff;border-color:rgba(59,28,66,.12);color:var(--body);
}

/* ==========================================================================
   11. Contact
   ========================================================================== */
.contact{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
@media (max-width:820px){.contact{grid-template-columns:1fr}}
.contact__list{list-style:none;margin:2rem 0 0;padding:0;display:grid;gap:1.4rem}
.contact__list dt{
  font-family:var(--font-display);font-size:var(--step--1);font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;color:var(--teal-ink);margin-bottom:.2rem;
}
.contact__list dd{margin:0}
.contact__value{font-family:var(--font-display);font-size:var(--step-1);font-weight:500;color:var(--ink)}
.contact__value a{color:var(--ink);text-decoration:none}
.contact__value a:hover{color:var(--purple);text-decoration:underline}
.contact__form{
  background:var(--white);border:var(--border);border-radius:var(--radius);
  padding:clamp(1.5rem,3vw,2.5rem);position:relative;overflow:hidden;
}
.contact__form::before{
  content:"";position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,var(--purple),var(--gold),var(--plum),var(--aqua));
}
.contact__form input[type=text],
.contact__form input[type=email],
.contact__form input[type=tel],
.contact__form textarea,
.contact__form select{
  width:100%;font:inherit;font-size:.98rem;color:var(--body);
  background:var(--paper);border:var(--border);border-radius:10px;
  padding:.85rem 1rem;margin-bottom:.25rem;
}
.contact__form input:focus,.contact__form textarea:focus{border-color:var(--teal)}
.contact__form textarea{min-height:140px;resize:vertical}
.contact__form label{
  display:block;margin-bottom:1rem;font-family:var(--font-display);
  font-size:var(--step--1);font-weight:600;letter-spacing:.06em;color:var(--ink);
}
.contact__form input[type=submit],
.contact__form .wpcf7-submit{
  background:var(--purple);color:#fff;border:none;border-radius:999px;
  padding:1.05rem 1.9rem;font-family:var(--font-display);font-size:var(--step--1);
  font-weight:600;letter-spacing:.13em;text-transform:uppercase;cursor:pointer;width:100%;
}
.contact__form input[type=submit]:hover,.contact__form .wpcf7-submit:hover{background:var(--purple-deep)}
.form-placeholder{
  border:1px dashed rgba(59,28,66,.3);border-radius:10px;padding:1.5rem;
  color:var(--muted);font-size:.95rem;text-align:center;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer{background:var(--deep);color:rgba(255,255,255,.74);padding-block:0 2rem}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.footer__top{
  display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:2.5rem;
  padding-block:clamp(3rem,6vw,4.5rem) 2.5rem;
}
@media (max-width:760px){.footer__top{grid-template-columns:1fr}}
.footer__brand{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}
.footer__mark{width:56px;height:56px;flex:none}
.footer__name{
  font-family:var(--font-display);font-size:var(--step-2);font-weight:500;
  color:#fff;margin:0;line-height:1.1;letter-spacing:-.02em;
}
.footer__name small{
  display:block;font-size:.62rem;font-weight:400;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold);margin-top:.35rem;
}
.footer h3{
  font-family:var(--font-display);font-size:var(--step--1);font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;color:var(--gold);margin-bottom:.9rem;
}
.footer__links{list-style:none;margin:0;padding:0;display:grid;gap:.6rem;font-size:.95rem}
.footer__bottom{
  border-top:1px solid rgba(255,255,255,.15);padding-top:1.75rem;
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;
  font-size:.86rem;color:rgba(255,255,255,.56);
}

/* ==========================================================================
   13. Inner pages
   ========================================================================== */
.entry{padding-block:var(--section-y)}
.entry__title{margin-bottom:1.5rem}
.entry-content h2,.entry-content h3{margin-top:2em}
.entry-content img{border-radius:var(--radius);margin-block:2rem}
.entry-content blockquote{
  margin:2rem 0;padding-left:1.5rem;border-left:3px solid var(--teal);
  font-family:var(--font-display);font-size:var(--step-1);color:var(--ink);
}
.alignright{float:right;margin:0 0 1.5rem 1.5rem}
.alignleft{float:left;margin:0 1.5rem 1.5rem 0}
.aligncenter{margin-inline:auto}
.pagination{display:flex;gap:.6rem;margin-top:2.5rem}

/* ==========================================================================
   14. Motion
   ========================================================================== */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .reveal{opacity:1;transform:none}
  .ring-set--draw circle{stroke-dashoffset:0;animation:none}
}
