/* ============================================================
   Macherla Neuro — clean light clinical design system
   Scoped to hc-* classes so the existing pages keep their
   current styling until they are migrated onto this system.
   ============================================================ */

/* Full-bleed sections (.hc-hero, .hc-band, .hc-pagehead) use the
   width:100vw + margin-inline:calc(50% - 50vw) breakout. 100vw measures the
   viewport INCLUDING the vertical scrollbar, so on browsers with classic
   scrollbars the section ends up ~15px wider than the usable width and drags in
   a horizontal scrollbar. Headless browsers hide the scrollbar, which is why
   this only shows up on a real desktop.

   overflow-x:clip trims that overhang. `clip` is used rather than `hidden`
   because `hidden` turns <html> into a scroll container, which breaks the
   position:sticky nav. */
html{overflow-x:clip}

:root{
  --hc-primary:#0e7490;          /* calm clinical teal */
  --hc-primary-600:#0891b2;
  --hc-primary-700:#155e75;
  --hc-primary-50:#ecfeff;
  --hc-primary-100:#cffafe;
  --hc-ink:#0f172a;
  --hc-body:#475569;
  --hc-muted:#64748b;
  --hc-line:#e2e8f0;
  --hc-surface:#f8fafc;
  --hc-accent:#f97316;
  --hc-emergency:#dc2626;
  --hc-radius:18px;
  --hc-shadow-sm:0 1px 2px rgba(15,23,42,.05);
  --hc-shadow:0 4px 20px -4px rgba(15,23,42,.08),0 2px 6px -2px rgba(15,23,42,.05);
  --hc-shadow-lg:0 18px 40px -12px rgba(15,23,42,.16);
}

/* ---------- layout ---------- */
/* Content sits inside the layout's .container, which is max-width:1080px with
   1rem padding -- i.e. a 1048px content measure starting at x=116 on a 1280
   screen. hc-wrap matches that measure exactly with NO padding of its own:
   adding padding here shifted grids/cards 16px right of the hero text and the
   quick-action cards, which read as a visible misalignment down the page. */
.hc-wrap{max-width:1048px;margin:0 auto;padding:0}
.hc-section{padding:4.5rem 0}
.hc-section--tint{background:var(--hc-surface);border-block:1px solid var(--hc-line)}
.hc-eyebrow{color:var(--hc-primary);font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin:0 0 .5rem;text-align:center}
@media(max-width:760px){.hc-eyebrow{font-size:.82rem}}
.hc-title{color:var(--hc-ink);font-size:clamp(1.6rem,3.2vw,2.3rem);font-weight:800;letter-spacing:-.02em;line-height:1.2;text-align:center;margin:0 0 2.5rem}
.hc-title em{font-style:normal;color:var(--hc-primary)}
.hc-lede{color:var(--hc-body);font-size:1.06rem;line-height:1.7;max-width:60ch}

/* ---------- hero ---------- */
/* Break out of the layout's .container so the photo runs edge to edge, while the
   inner .hc-wrap keeps the text on the container measure. */
.hc-hero{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);min-height:clamp(480px,72vh,660px);display:flex;align-items:center;overflow:hidden;isolation:isolate}
.hc-hero .slide{position:absolute;inset:0;opacity:0;transition:opacity .8s ease;background-size:cover;background-position:center;padding:0}
/* The legacy stylesheet sets .slide{padding:3.5rem}. This hero reuses the class
   name, so that padding leaked in and pushed the hero copy 56px right of the
   cards below it. Reset it and let .hc-wrap own the gutter. */
.hc-hero .slide.active{opacity:1}
.hc-hero .slide::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,rgba(2,16,26,.88) 0%,rgba(2,16,26,.72) 46%,rgba(2,16,26,.38) 100%)}
.hc-hero .slide::before{content:'';position:absolute;inset:0;background:rgba(2,16,26,.34);z-index:1}
.hc-hero-inner{position:relative;z-index:3;padding:5rem 0;max-width:660px;color:#fff}
/* .hc-hero .slide is display:flex and centres .hc-wrap, which centred the copy
   (left edge 360px) instead of aligning it with the sections below. Left-align the
   wrap and give it the same 1rem gutters the container uses, so hero text lines up
   with the cards at every width. */
.hc-hero .slide{align-items:center;justify-content:flex-start}
.hc-hero .slide>.hc-wrap{width:100%;max-width:1048px;margin:0 auto;padding:0}
.hc-hero-badge{display:inline-flex;align-items:center;gap:.45rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(8px);padding:.4rem 1rem;border-radius:999px;font-size:.82rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin-bottom:1.4rem}
.hc-hero h1{color:#fff;font-size:clamp(2rem,4.6vw,3.2rem);line-height:1.12;letter-spacing:-.025em;font-weight:800;margin:0 0 1.1rem}
.hc-hero p{color:rgba(255,255,255,.92);font-size:1.12rem;line-height:1.65;margin:0 0 2rem;max-width:52ch}
.hc-hero-btns{display:flex;gap:.9rem;flex-wrap:wrap}
.hc-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.7rem;border-radius:999px;font-weight:700;font-size:.97rem;text-decoration:none;border:1px solid transparent;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;white-space:nowrap}
.hc-btn--primary{background:var(--hc-primary);color:#fff;box-shadow:0 8px 20px -6px rgba(14,116,144,.6)}
.hc-btn--primary:hover{background:var(--hc-primary-700);transform:translateY(-2px)}
.hc-btn--outline{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.4);color:#fff;backdrop-filter:blur(6px)}
.hc-btn--outline:hover{background:rgba(255,255,255,.22);transform:translateY(-2px)}
.hc-btn--ghost{background:#fff;color:var(--hc-primary-700);box-shadow:var(--hc-shadow)}
.hc-btn--ghost:hover{transform:translateY(-2px);box-shadow:var(--hc-shadow-lg)}
.hc-btn--sm{padding:.5rem 1.1rem;font-size:.88rem}
.hc-dots{position:absolute;left:0;right:0;bottom:1.5rem;z-index:3;display:flex;justify-content:center;gap:.5rem}
.hc-dots button{width:32px;height:44px;border:0;border-radius:999px;background:transparent;cursor:pointer;padding:0;position:relative;transition:background .25s}
.hc-dots button::after{content:'';position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:5px;border-radius:999px;background:rgba(255,255,255,.45);transition:background .25s,width .25s}
.hc-dots button[aria-current="true"]{width:48px}
.hc-dots button[aria-current="true"]::after{background:#fff}

/* ---------- quick actions ---------- */
.hc-quick{position:relative;z-index:5;display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-top:-3.25rem}
.hc-quick a{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:1.25rem 1.4rem;text-decoration:none;box-shadow:var(--hc-shadow);transition:transform .2s ease,box-shadow .2s ease}
.hc-quick a:hover{transform:translateY(-4px);box-shadow:var(--hc-shadow-lg)}
.hc-quick .ico{width:46px;height:46px;flex-shrink:0;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.35rem;background:var(--hc-primary-50);color:var(--hc-primary-700)}
.hc-quick strong{display:block;color:var(--hc-ink);font-size:1rem;font-weight:700;line-height:1.3}
.hc-quick small{display:block;color:var(--hc-muted);font-size:.85rem;margin-top:.1rem}
.hc-quick--urgent .ico{background:#fef2f2;color:var(--hc-emergency)}

/* ---------- stats ---------- */
.hc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.1rem}
.hc-stat{background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:1.75rem 1.25rem;text-align:center;box-shadow:var(--hc-shadow-sm);transition:transform .2s ease,box-shadow .2s ease}
.hc-stat:hover{transform:translateY(-3px);box-shadow:var(--hc-shadow)}
.hc-stat b{display:block;font-size:2.3rem;font-weight:800;color:var(--hc-primary);line-height:1.1;letter-spacing:-.02em}
.hc-stat span{display:block;color:var(--hc-muted);font-size:.92rem;margin-top:.35rem}

/* ---------- generic card grid ---------- */
.hc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:1.4rem}
/* Pin to 4 columns on wide screens so a 4-item row stays one row instead of
   wrapping 3 + 1 (auto-fit would collapse to 3 columns at this width). */
@media(min-width:1000px){.hc-grid--4{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1000px){.hc-grid--3{grid-template-columns:repeat(3,1fr)}}
.hc-card{background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:1.75rem;box-shadow:var(--hc-shadow-sm);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;display:flex;flex-direction:column}
.hc-card:hover{transform:translateY(-5px);box-shadow:var(--hc-shadow-lg);border-color:#cbd5e1}
.hc-card h3{color:var(--hc-ink);font-size:1.16rem;font-weight:700;margin:0 0 .55rem;line-height:1.35}
.hc-card p{color:var(--hc-body);font-size:.96rem;line-height:1.65;margin:0 0 1rem}
.hc-link{color:var(--hc-primary);font-weight:700;font-size:.94rem;text-decoration:none;margin-top:auto;display:inline-flex;align-items:center;gap:.3rem}
.hc-link:hover{color:var(--hc-primary-700);gap:.5rem}
.hc-icon{width:54px;height:54px;border-radius:16px;background:linear-gradient(140deg,var(--hc-primary-50),#f0fdfa);border:1px solid var(--hc-primary-100);display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:1.1rem}

/* ---------- steps ---------- */
.hc-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;counter-reset:hc-step}
.hc-step{position:relative;background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:2rem 1.6rem 1.75rem;box-shadow:var(--hc-shadow-sm)}
.hc-step::before{counter-increment:hc-step;content:counter(hc-step,decimal-leading-zero);position:absolute;top:1.35rem;right:1.5rem;font-size:1.6rem;font-weight:800;color:var(--hc-primary-100);line-height:1}
.hc-step h3{color:var(--hc-ink);font-size:1.1rem;margin:0 0 .5rem}
.hc-step p{color:var(--hc-body);font-size:.95rem;margin:0}
.hc-step-dot{width:38px;height:38px;border-radius:12px;background:var(--hc-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.95rem;margin-bottom:1rem}

/* ---------- doctors ---------- */
.hc-doctor{background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:2rem 1.6rem;text-align:center;box-shadow:var(--hc-shadow-sm);transition:transform .22s ease,box-shadow .22s ease}
.hc-doctor:hover{transform:translateY(-5px);box-shadow:var(--hc-shadow-lg)}
.hc-doctor .avatar{width:96px;height:96px;border-radius:50%;margin:0 auto 1.1rem;display:flex;align-items:center;justify-content:center;font-size:2.1rem;font-weight:700;color:#fff;background:linear-gradient(140deg,var(--hc-primary-600),var(--hc-primary-700));box-shadow:0 10px 22px -8px rgba(14,116,144,.55)}
.hc-doctor .avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.hc-doctor h3{color:var(--hc-ink);font-size:1.14rem;font-weight:700;margin:0 0 .25rem}
.hc-doctor .spec{color:var(--hc-primary);font-weight:600;font-size:.94rem;margin:0 0 .1rem}
.hc-doctor .exp{color:var(--hc-muted);font-size:.88rem;margin:0 0 1.25rem}

/* ---------- testimonials ---------- */
.hc-track{display:flex;gap:1.2rem;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:.25rem 0 1rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hc-track::-webkit-scrollbar{display:none}
.hc-quote{background:#fff;border:1px solid var(--hc-line);border-left:4px solid var(--hc-primary-100);border-radius:var(--hc-radius);padding:1.75rem;box-shadow:var(--hc-shadow-sm);min-width:min(340px,86vw);scroll-snap-align:center;display:flex;flex-direction:column}
.hc-quote .stars{display:flex;gap:.12rem;color:#f59e0b;margin-bottom:.85rem}
.hc-quote .stars svg{fill:currentColor}
.hc-quote p{color:var(--hc-body);font-size:1rem;line-height:1.7;margin:0 0 1.1rem;flex:1}
/* Author credit. Uses <figcaption>, not <footer>: the layout has a global
   `footer{background:var(--dark)}` rule that would style a nested footer as a
   page footer and render the name dark-on-dark. */
.hc-quote-by{margin:0;color:var(--hc-ink);line-height:1.5}
.hc-quote-by strong{display:block;font-weight:700;font-size:.95rem}
.hc-quote-by span{display:block;color:var(--hc-muted);font-size:.86rem}
.hc-track-nav{display:flex;justify-content:center;gap:.75rem;margin-top:1.5rem}
.hc-track-nav button{width:42px;height:42px;border-radius:50%;border:1px solid var(--hc-line);background:#fff;color:var(--hc-primary);font-size:1.2rem;cursor:pointer;box-shadow:var(--hc-shadow-sm);transition:background .18s ease,color .18s ease,transform .18s ease}
.hc-track-nav button:hover{background:var(--hc-primary);color:#fff;transform:translateY(-2px)}

/* ---------- partners ---------- */
.hc-partners{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:1rem}
.hc-partner{display:flex;align-items:center;justify-content:center;text-align:center;background:#fff;border:1px solid var(--hc-line);border-radius:14px;padding:1.15rem 1rem;font-weight:700;font-size:.95rem;color:var(--hc-primary-700);min-height:76px;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.hc-partner:hover{border-color:var(--hc-primary-100);box-shadow:var(--hc-shadow);transform:translateY(-2px)}

/* ---------- blog cards ---------- */
.hc-tag{display:inline-flex;align-items:center;background:var(--hc-primary-50);color:var(--hc-primary-700);border:1px solid var(--hc-primary-100);padding:.28rem .75rem;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:.9rem;align-self:flex-start}

/* ---------- CTA band ---------- */
.hc-cta{background:linear-gradient(135deg,var(--hc-primary-700),var(--hc-primary) 55%,#0d9488);border-radius:26px;padding:3.25rem 2.5rem;text-align:center;color:#fff;box-shadow:0 24px 48px -20px rgba(14,116,144,.6);position:relative;overflow:hidden}
.hc-cta::before,.hc-cta::after{content:'';position:absolute;border-radius:50%;background:rgba(255,255,255,.07)}
.hc-cta::before{width:280px;height:280px;top:-120px;right:-80px}
.hc-cta::after{width:220px;height:220px;bottom:-110px;left:-60px}
.hc-cta>*{position:relative;z-index:1}
.hc-cta h2{color:#fff;font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;margin:0 0 .7rem;letter-spacing:-.02em}
.hc-cta p{color:rgba(255,255,255,.9);font-size:1.05rem;margin:0 auto 1.9rem;max-width:52ch}

/* ---------- responsive ---------- */
/* Below the 1048px measure, drop hc-wrap's own padding and let .container's
   1rem gutter be the single source. hc-wrap sits INSIDE .container, so adding
   padding here stacked a second gutter and pushed cards 16px right of the hero
   copy and the footer -- the ragged left edge seen at 768/1024px. The full-bleed
   hero/band wrappers do need their own padding, since they sit outside the
   container's measure. */
@media(max-width:1080px){
  .hc-wrap{max-width:none;padding:0}
  .hc-hero .slide>.hc-wrap,.hc-band>.hc-wrap{max-width:none;padding:0 1rem}
}
@media(max-width:960px){
  .hc-quick{grid-template-columns:1fr;margin-top:-1.5rem;gap:.8rem}
  .hc-stats{grid-template-columns:repeat(2,1fr)}
  .hc-steps{grid-template-columns:1fr}
  .hc-section{padding:3.25rem 0}
}
@media(max-width:640px){
  .hc-wrap{padding:0}
  .hc-hero{min-height:440px}
  .hc-hero-inner{padding:3.5rem 0}
  .hc-hero-btns .hc-btn{flex:1;justify-content:center}
  .hc-title{margin-bottom:2rem}
  .hc-stat b{font-size:1.9rem}
  .hc-cta{padding:2.25rem 1.35rem}
}
@media(prefers-reduced-motion:reduce){
  .hc-card,.hc-doctor,.hc-partner,.hc-stat,.hc-quick a,.hc-btn,.hc-track-nav button{transition:none}
}
/* ============================================================
   Header / chrome
   ============================================================ */

/* Utility strip above the nav: icon-led contact links, hours and socials. */
.topbar{background:#0b1220;color:#94a3b8;font-size:.83rem;padding:0}

.topbar{padding:0}
.topbar-inner{max-width:1080px;margin:0 auto;padding:0 1rem;height:38px;display:flex;align-items:center;justify-content:space-between;gap:1.25rem;overflow:hidden}
.topbar-left,.topbar-right{list-style:none;padding:0;margin:0;display:flex;align-items:center;flex-wrap:nowrap}
.topbar-left{gap:1.25rem;min-width:0;flex:1 1 auto;overflow:hidden}
.topbar-right{gap:1.25rem;flex:0 0 auto}
.topbar li{display:flex;align-items:center;min-width:0;flex-shrink:0}
.topbar-left li:last-child{min-width:0;flex-shrink:1}

.tb-link{display:inline-flex;align-items:center;gap:.45rem;color:#cbd5e1;text-decoration:none;padding:0;transition:color .18s;min-width:0}
.tb-link:hover{color:#fff}
.tb-link svg{flex-shrink:0;color:#7dd3fc;transition:color .18s}
.tb-link:hover svg{color:#fff}
/* The address is long; truncate rather than wrap and push the bar taller. */
.tb-address{min-width:0}
.tb-address .tb-link{max-width:100%}
.tb-address .tb-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.tb-hours{display:inline-flex;align-items:center;gap:.45rem;color:#94a3b8;white-space:nowrap}
.tb-hours svg{flex-shrink:0;color:#7dd3fc}

.tb-social{gap:.15rem}
.tb-social a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;color:#94a3b8;transition:color .18s,background .18s}
.tb-social a:hover{color:#fff;background:rgba(255,255,255,.1)}
/* Facebook and WhatsApp glyphs are solid shapes and read better filled; the
   others are stroke outlines and stay unfilled. */
.tb-social .tb-ico--solid svg{fill:currentColor;stroke:none}

/* The address is the first thing to go -- phone and email matter more. */
@media(max-width:1024px){.topbar li.tb-address{display:none}}

/* Very small phones: three stacked rows is too much chrome above the hero.
   Phone and email are the two people act on; the address lives in the footer. */
@media(max-width:420px){
  .topbar li.tb-address{display:none}
}

/* Phones: ONE line only. Phone (tappable) on the left, social icons on the
   right. Email, address and hours are all in the footer, so nothing is lost --
   the strip went from 101px of stacked rows to a single 30px line.
   Height is pinned with an explicit flex-basis so nothing can re-wrap it. */
@media(max-width:620px){
  /* 34px tall overall but the link itself needs a 40px+ hit area. */
  .topbar-inner{min-height:34px;height:34px;padding:0 .9rem;justify-content:space-between;gap:.75rem}
  .topbar .tb-link{min-height:40px}
  .topbar-left,.topbar-right{flex-wrap:nowrap;gap:.6rem;min-width:0}
  .topbar-right{display:flex}
  /* tb-hours/tb-address are on inner elements, not the <li>, so match the class
     directly. With the li-scoped selector the hours never hid and squeezed the
     phone number out of the bar at 320px. */
  .topbar .tb-hours,.topbar li.tb-address,.topbar-left li:nth-child(2){display:none}
  .tb-link{font-size:.8rem;padding:0;min-height:30px}
  .tb-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(46vw,190px)}
  .tb-social{gap:.05rem}
  .tb-social a{width:30px;height:30px}
  .tb-social a:not(.tb-ico--social-keep){display:none}
}
/* Below 400px there is no room for socials alongside the phone number. */
@media(max-width:400px){
  .topbar-left li.tb-social{display:none}
}

/* margin-right:auto lives on nav .brand in style.css; on tablet-width the nav row
   also has a .hamburger, so the brand and links were pushed apart and the link
   list stretched across the full width. Keep the row packed instead. */
@media(max-width:1200px){nav .brand{margin-right:.75rem}}
nav .brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;flex-shrink:0}
nav .brand>span{color:var(--hc-ink);font-weight:800}
nav .brand .brand-dot{color:var(--hc-accent)}

.nav-emergency{color:#dc2626!important;font-weight:700}
/* The dropdown stacks its children, so these controls would otherwise stretch
   full width like the links. Constrain them to their natural size. */
@media(min-width:1201px){
  /* Desktop nav shows the dark-mode toggle only; the TE button is hidden. */
  
}
/* With Doctors and Track removed the row needs ~952px, so the full nav now
   fits from 1000px up instead of 1201px. Fewer tabs on tablets and small
   laptops before the menu collapses. */
@media(min-width:1101px){
  .nav-links{display:flex;gap:.85rem;align-items:center;flex-wrap:nowrap}
  .hamburger{display:none}
}
.nav-theme{background:none;border:none;cursor:pointer;font-size:1.15rem;color:#64748b;padding:.2rem .35rem;border-radius:8px;line-height:1}
.nav-theme:hover{color:var(--hc-primary)}

/* Counter band sitting directly under the hero.
   The band is a full-bleed colour block with an inner wrap on the page measure;
   it was previously constrained to the container, so the orange stopped short
   of the screen edges and looked like a mis-aligned card rather than a band. */
.hc-band{background:linear-gradient(135deg,var(--hc-accent),#fb923c);color:#fff;margin-top:0;position:relative;z-index:6;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.hc-band>.hc-wrap{max-width:1048px;margin:0 auto;padding:0}
.hc-band-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.hc-band-grid>div{padding:2rem 1.25rem;text-align:center;position:relative}
.hc-band-grid>div+div::before{content:'';position:absolute;left:0;top:22%;bottom:22%;width:1px;background:rgba(255,255,255,.3)}
.hc-band b{display:block;font-size:clamp(1.9rem,4vw,2.7rem);font-weight:800;line-height:1.1;letter-spacing:-.02em}
.hc-band span{display:block;margin-top:.35rem;font-size:.96rem;opacity:.95}
@media(max-width:640px){
  .hc-band-grid{grid-template-columns:repeat(2,1fr)}
  .hc-band-grid>div{padding:1.35rem .75rem}
  .hc-band-grid>div+div::before{display:none}
}

/* ============================================================
   Split about section + left-aligned headings + accent button
   ============================================================ */
.hc-eyebrow--left,.hc-title--left{text-align:left}
.hc-title--left{margin-bottom:1.5rem}

.hc-split{display:grid;grid-template-columns:.85fr 1.15fr;gap:3rem;align-items:center}
.hc-split-media{border-radius:20px;overflow:hidden;background:#fff;border:1px solid var(--hc-line);box-shadow:var(--hc-shadow);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:1.75rem}
.hc-split-media img{max-width:100%;max-height:100%;object-fit:contain}
.hc-split-body p.hc-lede{margin-bottom:1.5rem}
.hc-ticks{list-style:none;padding:0;margin:0 0 2rem;display:grid;gap:.7rem}
.hc-ticks li{display:flex;align-items:flex-start;gap:.65rem;color:var(--hc-body);font-size:.97rem;line-height:1.5}
.hc-ticks svg{flex-shrink:0;color:var(--hc-primary);margin-top:.18rem}

.hc-btn--accent{background:var(--hc-accent);color:#fff;box-shadow:0 8px 20px -6px rgba(249,115,22,.55)}
.hc-btn--accent:hover{background:#ea580c;transform:translateY(-2px)}
@media(max-width:900px){.hc-split{grid-template-columns:1fr;gap:2rem}.hc-split-media{min-height:200px}}

/* ============================================================
   Mobile CTA de-duplication
   The layout renders both a fixed bottom bar (#mobilebar, Call/Book/WhatsApp)
   and floating Call/WhatsApp pills (.float-cta). On phones all of them showed
   at once, so the floats covered the quick-action cards. Keep the bottom bar on
   mobile (the layout already reserves padding-bottom for it) and the floats on
   desktop, so exactly one set is visible at any width.
   ============================================================ */
@media(max-width:640px){
  .float-cta{display:none!important}
}
@media(min-width:641px){
  #mobilebar{display:none!important}
}
/* The layout's own media query shows the bar at <=640px; keep these two rules so
   it stays consistent if that breakpoint is ever changed. */
@media(min-width:641px){body{padding-bottom:0!important}}

/* ============================================================
   Footer
   ============================================================ */
footer{background:#0b1220;color:#94a3b8;text-align:left;padding:3.5rem 0 0;margin-top:0}
.ft-grid{max-width:1080px;margin:0 auto;padding:0 1rem;display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:2.5rem}
.ft-col h3{color:#fff;font-size:.82rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:0 0 1.1rem}
.ft-logo{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none}
.ft-logo span{color:#fff;font-weight:800;font-size:1.12rem}
.ft-blurb{color:#94a3b8;font-size:.94rem;line-height:1.65;margin:1rem 0 1.25rem;max-width:34ch}
.ft-text{color:#94a3b8;font-size:.94rem;line-height:1.65;margin:0}

.ft-contact,.ft-links{list-style:none;padding:0;margin:0}
.ft-contact li{display:flex;align-items:flex-start;gap:.65rem;margin-bottom:.7rem;font-size:.93rem;line-height:1.5}
.ft-contact svg{flex-shrink:0;color:var(--hc-primary-600);margin-top:.18rem}
.ft-contact a{color:#cbd5e1;text-decoration:none}
.ft-contact a:hover{color:#fff}

.ft-links li{margin-bottom:.55rem}
.ft-links a{color:#94a3b8;text-decoration:none;font-size:.94rem;transition:color .18s,padding-left .18s;display:inline-block}
.ft-links a:hover{color:#fff;padding-left:.3rem}

.ft-form{margin-top:1.4rem}
.ft-label{display:block;color:#cbd5e1;font-size:.88rem;font-weight:600;margin-bottom:.5rem}
.ft-form-row{display:flex;gap:.5rem}
.ft-form-row input{flex:1;min-width:0;padding:.65rem .85rem;border-radius:10px;border:1px solid #1e293b;background:#0f172a;color:#e2e8f0;font:inherit;font-size:.9rem}
.ft-form-row input:focus{outline:none;border-color:var(--hc-primary-600);box-shadow:0 0 0 3px rgba(8,145,178,.18)}
.ft-submit{background:var(--hc-accent);color:#fff;border:0;border-radius:10px;padding:.65rem 1.05rem;font-weight:700;font-size:.9rem;cursor:pointer;transition:background .18s;white-space:nowrap}
.ft-submit:hover{background:#ea580c}

.ft-bottom{max-width:1080px;margin:2.75rem auto 0;padding:1.4rem 1rem 1.75rem;border-top:1px solid #1e293b;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem}
.ft-bottom p{margin:0;font-size:.87rem;color:#64748b}
.ft-legal{display:flex;gap:1.25rem}
.ft-legal a{color:#94a3b8;text-decoration:none}
.ft-legal a:hover{color:#fff}

@media(max-width:1000px){.ft-grid{grid-template-columns:1fr 1fr;gap:2rem}}

@media(max-width:620px){
  /* Was a single 1527px stack: 12 links in one column with large dead gaps.
     Now: brand full width, the two link groups side by side, then hours +
     newsletter full width -- roughly half the height, same 44px+ tap targets. */
  .ft-grid{grid-template-columns:1fr 1fr;gap:0;padding:0}
  /* One shared horizontal gutter so columns line up with the page. */
  .ft-col{padding:0 .9rem}

  .ft-col--brand{grid-column:1 / -1;padding:1.75rem 1rem 1.25rem;border-bottom:1px solid #1e293b}
  .ft-col--brand .ft-blurb{max-width:none;margin:.75rem 0 1rem}
  .ft-col--brand .ft-contact{display:grid;grid-template-columns:1fr;gap:.15rem}

  /* Link groups share a row. */
  .ft-col--links{grid-column:auto;padding-top:1.35rem;padding-bottom:1.25rem}
  .ft-col--links:first-of-type{border-right:1px solid #1e293b}
  .ft-col--links h3{margin:0 0 .35rem;font-size:.72rem}

  .ft-col--last{grid-column:1 / -1;padding:1.25rem 1rem 1.5rem;border-top:1px solid #1e293b}
  .ft-col h3{margin:0 0 .5rem;font-size:.76rem}

  /* Tap targets: these were 25px. Comfortable tapping needs ~44px. */
  .ft-links li{margin-bottom:0}
  .ft-links a{display:flex;align-items:center;min-height:44px;font-size:.95rem;color:#cbd5e1;line-height:1.3}
  /* Two-column lists need a touch less than a single-column one. */
  .ft-col--links .ft-links a{min-height:42px;font-size:.9rem}

  /* Contact rows: align the icon optically with the first text line and give
     each row a real tap area. */
  .ft-contact li{gap:.7rem;min-height:44px;align-items:flex-start;margin-bottom:0;padding:.3rem 0;font-size:.93rem}
  .ft-contact svg{margin-top:.15rem;width:19px;height:19px}
  .ft-contact strong{margin-bottom:.1rem}
  .ft-blurb{margin:.9rem 0 1.1rem;font-size:.95rem}
  .ft-logo img{height:36px}
  .ft-logo span{font-size:1.05rem}

  /* Newsletter form: stack so the button is not squeezed. */
  .ft-form{margin-top:0}
  .ft-form-row{flex-direction:column;gap:.6rem}
  .ft-form-row input,.ft-submit{width:100%;min-height:48px;text-align:center}
  .ft-submit{font-size:.95rem}

  /* Bottom bar. */
  .ft-bottom{flex-direction:column;text-align:center;gap:.9rem;padding:1.5rem 1rem 1.75rem;margin-top:1.5rem}
  .ft-bottom p{font-size:.85rem;line-height:1.5}
  .ft-legal{gap:.5rem;justify-content:center;flex-wrap:wrap}
  .ft-legal a{display:inline-flex;align-items:center;min-height:40px;padding:0 .6rem;font-size:.9rem}
}

/* Keep the icon optically centred against multi-line text on all widths. */
.ft-contact svg{flex-shrink:0;color:var(--hc-primary-600);margin-top:.2rem;width:18px;height:18px}
.ft-contact strong{display:block;color:#fff;font-size:.8rem;font-weight:600;letter-spacing:.02em;margin-bottom:.05rem}

/* ============================================================
   Inner pages
   ============================================================ */

/* Page header band: breadcrumbs-style title block below the nav.
   Full-bleed like the hero: without the 100vw breakout it was constrained to the
   container and the tint stopped at the content edges. */
.hc-pagehead{background:linear-gradient(135deg,#f0f9ff,#f8fafc);border-bottom:1px solid var(--hc-line);padding:3rem 0 2.75rem;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.hc-pagehead>.hc-wrap{max-width:1048px;margin:0 auto;padding:0}
@media(max-width:1080px){.hc-pagehead>.hc-wrap{padding:0 1rem}}
.hc-pagehead h1{color:var(--hc-ink);font-size:clamp(1.75rem,3.6vw,2.5rem);font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0 0 .6rem}
.hc-pagehead p{color:var(--hc-body);font-size:1.03rem;max-width:62ch;margin:0}
/* Breadcrumbs.
   They used "/" separators with flex-wrap, so on a phone the trail wrapped onto
   a second line and left a dangling "/" at the end of the first (118px tall).
   Now: chevron separators, a single non-wrapping row, and the current page
   truncates with an ellipsis so the trail always fits one line. */
.hc-crumbs{display:flex;align-items:center;gap:.1rem;font-size:.84rem;color:var(--hc-muted);margin-bottom:.85rem;flex-wrap:nowrap;min-width:0}
.hc-crumbs a,.hc-crumb-current{display:inline-flex;align-items:center;min-height:32px;white-space:nowrap}
.hc-crumb-link{color:var(--hc-primary);text-decoration:none;transition:color .18s}
.hc-crumb-link:hover{color:var(--hc-primary-700);text-decoration:underline}
.hc-crumb-sep{flex-shrink:0;padding:0 .3rem;opacity:.55;font-size:1.05em;line-height:1}
.hc-crumb-current{color:var(--hc-muted);overflow:hidden;text-overflow:ellipsis;min-width:0;font-weight:600}
@media(max-width:620px){
  .hc-crumbs{font-size:.82rem}
  .hc-crumbs a,.hc-crumb-current{min-height:40px}
}
.hc-crumbs a{color:var(--hc-primary);text-decoration:none}
.hc-crumbs a:hover{text-decoration:underline}

/* Prose block for text-only pages (terms, privacy, post body). */
.hc-prose{background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:2.25rem;box-shadow:var(--hc-shadow-sm);color:var(--hc-body);line-height:1.75}
.hc-prose h1{color:var(--hc-ink);font-size:1.9rem;margin:0 0 1.1rem}
.hc-prose h2{color:var(--hc-ink);font-size:1.3rem;margin:2rem 0 .75rem}
.hc-prose p{margin:0 0 1.1rem}
.hc-prose p:last-child{margin-bottom:0}
.hc-prose ul{margin:0 0 1.1rem;padding-left:1.2rem}
.hc-prose li{margin-bottom:.45rem}
.hc-prose a{color:var(--hc-primary)}

/* Forms */
.hc-field{margin-bottom:1.1rem}
.hc-field label{display:block;margin:0 0 .4rem;font-weight:600;color:var(--hc-ink);font-size:.93rem}
.hc-field input,.hc-field select,.hc-field textarea{width:100%;padding:.7rem .9rem;border:1px solid var(--hc-line);border-radius:12px;font:inherit;background:#fff;color:var(--hc-ink);transition:border .2s,box-shadow .2s}
.hc-field input:focus,.hc-field select:focus,.hc-field textarea:focus{outline:none;border-color:var(--hc-primary);box-shadow:0 0 0 4px rgba(14,116,144,.1)}

.hc-search{display:flex;gap:.5rem;margin-bottom:1.75rem}
.hc-search input{flex:1;padding:.75rem 1rem;border:1px solid var(--hc-line);border-radius:12px;font:inherit;background:#fff;color:var(--hc-ink)}
.hc-search input:focus{outline:none;border-color:var(--hc-primary);box-shadow:0 0 0 4px rgba(14,116,144,.1)}

/* Filter pills */
.hc-pills{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin:0 0 2rem}
.hc-pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:.45rem 1.05rem;border-radius:999px;border:1px solid var(--hc-line);background:#fff;color:var(--hc-body);font-size:.88rem;font-weight:600;text-decoration:none;transition:all .18s}
@media(max-width:760px){.hc-pill{min-height:44px;font-size:.92rem;padding:.55rem 1.15rem}}
.hc-pill:hover{border-color:var(--hc-primary);color:var(--hc-primary)}
.hc-pill.is-active{background:var(--hc-primary);border-color:var(--hc-primary);color:#fff}

/* FAQ accordion */
.hc-faq{background:#fff;border:1px solid var(--hc-line);border-radius:14px;margin-bottom:.8rem;overflow:hidden;transition:box-shadow .2s}
.hc-faq[open]{box-shadow:var(--hc-shadow);border-color:var(--hc-primary-100)}
.hc-faq summary{cursor:pointer;padding:1.1rem 1.4rem;font-weight:600;color:var(--hc-ink);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.hc-faq summary::-webkit-details-marker{display:none}
.hc-faq summary::after{content:'+';font-size:1.3rem;font-weight:400;color:var(--hc-primary);line-height:1;flex-shrink:0}
.hc-faq[open] summary::after{content:'−'}
.hc-faq-body{padding:0 1.4rem 1.2rem;color:var(--hc-body);line-height:1.7}

/* Emergency callout */
.hc-alert-emergency{background:#fef2f2;border:1px solid #fecaca;border-left:4px solid var(--hc-emergency);border-radius:var(--hc-radius);padding:1.75rem}
.hc-alert-emergency h2{color:#991b1b;font-size:1.35rem;margin:0 0 1rem}
.hc-alert-emergency ul{margin:0 0 1.25rem;padding-left:1.2rem;color:#7f1d1d}
.hc-alert-emergency li{margin-bottom:.5rem}

/* Gallery */
.hc-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.hc-gallery button{border:0;padding:0;background:none;cursor:zoom-in;border-radius:14px;overflow:hidden;aspect-ratio:4/3;display:block}
.hc-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.hc-gallery button:hover img{transform:scale(1.05)}
.hc-lightbox{position:fixed;inset:0;background:rgba(2,6,23,.92);z-index:9999;display:none;align-items:center;justify-content:center;cursor:zoom-out;padding:2rem}
.hc-lightbox img{max-width:92%;max-height:92%;border-radius:12px}

/* Empty state */
.hc-empty{background:#fff;border:1px dashed var(--hc-line);border-radius:var(--hc-radius);padding:2.75rem 1.5rem;text-align:center;color:var(--hc-muted)}

/* ---------- doctor profile ---------- */
.hc-profile{display:grid;grid-template-columns:300px 1fr;gap:2.5rem;align-items:start;margin-top:1.25rem}
.hc-profile .avatar{width:100%;aspect-ratio:1;border-radius:20px;background:linear-gradient(140deg,var(--hc-primary-600),var(--hc-primary-700));color:#fff;display:flex;align-items:center;justify-content:center;font-size:4rem;font-weight:700;box-shadow:var(--hc-shadow)}
.hc-profile .avatar img{width:100%;height:100%;border-radius:20px;object-fit:cover}
.hc-profile-body h1{color:var(--hc-ink);font-size:clamp(1.6rem,3.2vw,2.2rem);font-weight:800;letter-spacing:-.02em;margin:0 0 .35rem}
.hc-profile-body .spec{color:var(--hc-primary);font-weight:600;font-size:1.08rem;margin:0 0 .3rem}
.hc-profile-body .exp{color:var(--hc-muted);font-size:.93rem;margin:0 0 .3rem}
.hc-available{display:flex;align-items:center;gap:.5rem;color:var(--hc-body);font-size:.95rem;margin:1rem 0 0}
.hc-available svg{color:var(--hc-primary)}
.hc-bio{color:var(--hc-body);line-height:1.75;margin:1.25rem 0 0}
.hc-profile-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.9rem}
/* Dark-text outline button for use on light backgrounds. */
.hc-btn--outline-dark{background:#fff;border-color:var(--hc-line);color:var(--hc-primary-700);box-shadow:var(--hc-shadow-sm)}
.hc-btn--outline-dark:hover{border-color:var(--hc-primary);transform:translateY(-2px)}
@media(max-width:800px){.hc-profile{grid-template-columns:1fr;gap:1.75rem}.hc-profile .avatar{max-width:200px}}

/* ---------- contact ---------- */
.hc-contact{display:grid;grid-template-columns:1.1fr 1fr;gap:2rem;align-items:start}
.hc-contact-list{list-style:none;padding:0;margin:0 0 1.75rem}
.hc-contact-list li{display:flex;gap:1rem;padding:1.1rem 0;border-bottom:1px solid var(--hc-line);color:var(--hc-body);line-height:1.6}
.hc-contact-list li:last-child{border-bottom:0}
.hc-contact-list .ico{width:44px;height:44px;flex-shrink:0;border-radius:13px;background:var(--hc-primary-50);border:1px solid var(--hc-primary-100);color:var(--hc-primary-700);display:flex;align-items:center;justify-content:center}
.hc-contact-list strong{display:block;color:var(--hc-ink);font-size:.82rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin-bottom:.15rem}
.hc-contact-list a{color:var(--hc-primary);text-decoration:none;display:inline-flex;align-items:center;min-height:30px;padding:.15rem 0}
.hc-contact-list a:hover{text-decoration:underline}
@media(max-width:760px){
  /* The whole li row is the target on touch, not just the underlined text. */
  .hc-contact-list li{min-height:56px}
  .hc-contact-list a{min-height:44px}
}
.hc-btn--emergency{background:var(--hc-emergency);color:#fff;box-shadow:0 8px 20px -6px rgba(220,38,38,.5)}
.hc-btn--emergency:hover{background:#b91c1c;transform:translateY(-2px)}

@media(max-width:860px){.hc-contact{grid-template-columns:1fr}}

/* ---------- booking form ---------- */
.hc-booking{display:grid;grid-template-columns:340px 1fr;gap:2rem;align-items:start}
.hc-cal{background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:1.6rem;box-shadow:var(--hc-shadow-sm);position:sticky;top:90px}
.hc-cal-title{color:var(--hc-ink);font-size:1.05rem;font-weight:700;margin:0 0 1.1rem}
.hc-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center}
.hc-cal-dow{font-size:.72rem;font-weight:700;color:var(--hc-muted);padding:.2rem 0}
.hc-cal-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:9px;font-size:.82rem;font-weight:600}
.hc-cal-day--free{background:#dcfce7;color:#166534}
.hc-cal-day--some{background:#fef9c3;color:#854d0e}
.hc-cal-day--busy{background:#fee2e2;color:#991b1b}
.hc-cal-legend{list-style:none;padding:0;margin:1.2rem 0 0;display:flex;flex-direction:column;gap:.45rem;font-size:.83rem;color:var(--hc-body)}
.hc-cal-legend li{display:flex;align-items:center;gap:.5rem}
.hc-cal-legend .dot{width:11px;height:11px;border-radius:3px;flex-shrink:0}
.dot-free{background:#dcfce7}.dot-some{background:#fef9c3}.dot-busy{background:#fee2e2}

.hc-card--form h2{color:var(--hc-ink);font-size:1.25rem;font-weight:700;margin:0 0 1.4rem}
.hc-field label .opt{color:var(--hc-muted);font-weight:400}
.hc-field label span[aria-hidden]{color:var(--hc-emergency)}
.hc-hint{display:block;color:var(--hc-muted);font-size:.85rem;margin-top:.5rem;line-height:1.5}
.hc-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:.9rem 1.1rem;border-radius:12px;margin-bottom:1.4rem;font-size:.93rem}
.hc-slots{display:flex;flex-wrap:wrap;gap:.5rem;margin:.2rem 0}
.hc-slot{padding:.5rem 1.05rem;border-radius:999px;border:1.5px solid var(--hc-primary);background:#fff;color:var(--hc-primary);font-weight:700;font-size:.88rem;cursor:pointer;transition:all .16s;font-family:inherit}
.hc-slot:hover:not(:disabled){background:#ecfeff}
.hc-slot.is-active{background:var(--hc-primary);color:#fff}
.hc-slot.is-booked{border-color:var(--hc-line);background:#f1f5f9;color:#94a3b8;cursor:not-allowed;text-decoration:line-through}
.hc-btn--block{width:100%;justify-content:center}

@media(max-width:900px){.hc-booking{grid-template-columns:1fr}.hc-cal{position:static}}

/* ============================================================
   Mobile homepage refinements
   ============================================================ */

/* Hero legibility. On phones the busy clinic poster showed through the copy.
   A stronger, bottom-weighted scrim keeps the headline readable regardless of
   the image behind it, and the shorter hero avoids the text/CTA collision. */
@media(max-width:760px){
  /* Slides are position:absolute, so the section needs an explicit height --
     min-height:auto collapsed it to 0 and hid the hero entirely. */
  .hc-hero{min-height:clamp(420px,58vh,540px)}
  .hc-hero .slide{padding:0}
  .hc-hero .slide::after{background:linear-gradient(180deg,rgba(2,12,20,.7) 0%,rgba(2,12,20,.78) 45%,rgba(2,12,20,.9) 100%)}
  .hc-hero .slide::before{background:rgba(2,12,20,.42)}
  .hc-hero-inner{padding:2.5rem 0 6.5rem;max-width:100%}
  .hc-hero h1{font-size:clamp(1.7rem,7.4vw,2.15rem);line-height:1.15;letter-spacing:-.02em}
  .hc-hero p{font-size:1rem;line-height:1.55;margin-bottom:1.5rem;max-width:34ch}
  .hc-hero-badge{margin-bottom:1rem;font-size:.78rem;padding:.38rem .85rem}
  .hc-hero-btns{gap:.65rem}
  .hc-hero-btns .hc-btn{flex:1 1 100%;justify-content:center;min-height:48px}
  .hc-dots{bottom:1rem}
  /* Clear the sticky bottom bar. It is ~94px when the three CTAs wrap, so the
     cards were sitting underneath it. */
  .hc-quick{margin-top:1.5rem}
  .hc-quick a{margin-bottom:0}
  body{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important}
}

/* Tighten the counter band: on phones the 2x2 grid ate ~215px for four numbers. */
@media(max-width:760px){
  .hc-band-grid{grid-template-columns:repeat(2,1fr)}
  .hc-band-grid>div{padding:1.1rem .6rem}
  .hc-band b{font-size:1.5rem}
  .hc-band span{font-size:.78rem;margin-top:.15rem}
  .hc-band-grid>div::before{display:none}
}

/* Comfortable tap targets. Inline text links sat at 25px, below the ~44px
   minimum for comfortable tapping on a phone. */
@media(max-width:760px){
  nav .brand{min-height:44px}
  .hc-link{min-height:44px;display:inline-flex;align-items:center;padding:.35rem 0}
  .hc-btn--sm{min-height:42px;padding:.6rem 1.1rem}
  .hc-card{padding:1.35rem}
  .hc-icon{width:48px;height:48px;font-size:1.4rem;margin-bottom:.9rem;border-radius:14px}
  .hc-card h3{font-size:1.08rem}
  .hc-card p{font-size:.95rem;margin-bottom:.75rem}
  .hc-section{padding:2.75rem 0}
  .hc-title{margin-bottom:1.75rem}
  /* Less dead space above animated elements on small screens. */
  .hc-grid{gap:1rem}
  .hc-quick{gap:.7rem}
  .hc-quick a{padding:1rem 1.1rem}
}

/* Respect users who ask for less motion. */
@media(prefers-reduced-motion:reduce){
  .hc-hero .slide{transition:none}
  .hc-dots button{transition:none}
  [data-animate]{opacity:1;transform:none;transition:none}
}

/* ============================================================
   Mobile action bar + desktop floating CTAs
   Both previously used emoji, which rendered as tofu boxes on
   several platforms. They now use the <x-icon> SVG component.
   ============================================================ */

/* --- Sticky bottom bar (phones) --- */
#mobilebar{display:none}
@media(max-width:640px){
  #mobilebar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:998;background:rgba(9,14,26,.97);backdrop-filter:blur(10px);padding:.55rem .6rem calc(.55rem + env(safe-area-inset-bottom));gap:.5rem;border-top:1px solid rgba(148,163,184,.18)}
  #mobilebar .mb-cta{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;min-height:52px;border-radius:12px;font-weight:700;font-size:.78rem;letter-spacing:.01em;text-decoration:none;color:#fff;transition:transform .15s ease,filter .15s ease}
  #mobilebar .mb-cta svg{flex-shrink:0}
  #mobilebar .mb-cta:active{transform:scale(.96)}
  #mobilebar .mb-cta--call{background:#0e7490}
  #mobilebar .mb-cta--book{background:var(--hc-accent)}
  #mobilebar .mb-cta--wa{background:#1f9d55}
  /* Bar measures ~71px; reserve a little more so the last element never
     sits under it at full scroll. */
  body{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important}
}

/* --- Desktop floating pills --- */
.float-cta{position:fixed;right:20px;z-index:100;display:inline-flex;align-items:center;gap:.45rem;padding:.7rem 1.05rem;border-radius:999px;text-decoration:none;font-weight:700;font-size:.9rem;color:#fff;box-shadow:0 6px 18px rgba(2,6,23,.28);transition:transform .18s ease,box-shadow .18s ease}
.float-cta:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(2,6,23,.34)}
.float-cta svg{flex-shrink:0}
.float-cta--call{background:#0284c7}
.float-cta--wa{background:#25D366}
@media(min-width:641px){
  .float-cta{bottom:22px}
  .float-cta.bottom-lift{bottom:74px}
}
@media(max-width:640px){.float-cta{display:none!important}}

/* ============================================================
   Services & diagnostics
   ============================================================ */

/* ---------- service detail ---------- */
.hc-svc{display:grid;grid-template-columns:1fr 340px;gap:2rem;align-items:start}
.hc-svc-main{min-width:0}
.hc-svc-lead{background:#fff;border:1px solid var(--hc-line);border-top:4px solid var(--accent,var(--hc-primary));border-radius:var(--hc-radius);padding:1.9rem;box-shadow:var(--hc-shadow-sm)}
.hc-svc-lead p{color:var(--hc-body);line-height:1.75;margin:0 0 1.5rem}
.hc-svc-h{color:var(--hc-ink);font-size:1.2rem;font-weight:700;margin:0 0 1rem}
.hc-svc-block{margin-top:1.4rem}
.hc-svc-block h3{color:var(--hc-ink);font-size:1.1rem;font-weight:700;margin:0 0 1rem}
.hc-svc-side{position:sticky;top:90px;display:flex;flex-direction:column;gap:1.1rem}
.hc-svc-book h3{color:var(--hc-ink);font-size:1.05rem;font-weight:700;margin:0 0 .6rem}
.hc-svc-book p{color:var(--hc-body);font-size:.94rem;line-height:1.65;margin:0 0 1.2rem}
.hc-svc-book .hc-btn{margin-bottom:.6rem}
.hc-svc-link{display:flex;align-items:center;justify-content:center;min-height:42px;text-align:center;margin-top:.4rem;color:var(--hc-primary);font-weight:600;font-size:.9rem;text-decoration:none}
.hc-svc-link:hover{text-decoration:underline}
@media(max-width:900px){
  .hc-svc{grid-template-columns:1fr}
  .hc-svc-side{position:static;order:-1}
}

/* ---------- services index ---------- */
.hc-svc-card{border-top:3px solid var(--accent,var(--hc-primary))}
.hc-svc-cta{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;background:linear-gradient(120deg,#ecfeff,#f0fdfa);border:1px solid var(--hc-primary-100);border-radius:var(--hc-radius);padding:1.6rem 1.9rem;margin:0 0 2rem}
.hc-svc-cta h2{color:var(--hc-ink);font-size:1.25rem;font-weight:700;margin:0 0 .35rem}
.hc-svc-cta p{color:var(--hc-body);font-size:.95rem;margin:0;max-width:56ch}
@media(max-width:640px){.hc-svc-cta{padding:1.25rem 1.1rem}.hc-svc-cta .hc-btn{width:100%;justify-content:center}}

/* ---------- diagnostics hub ---------- */
.hc-diag-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}
.hc-diag{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-radius);padding:1.75rem;text-decoration:none;box-shadow:var(--hc-shadow-sm);overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.hc-diag::before{content:'';position:absolute;inset:0 0 auto;height:3px;background:var(--accent,var(--hc-primary));transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.hc-diag:hover{transform:translateY(-5px);box-shadow:var(--hc-shadow-lg);border-color:#cbd5e1}
.hc-diag:hover::before{transform:scaleX(1)}
.hc-diag-ico{width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin-bottom:1.1rem;color:var(--accent,var(--hc-primary));background:color-mix(in srgb,var(--accent,var(--hc-primary)) 10%,#fff);border:1px solid color-mix(in srgb,var(--accent,var(--hc-primary)) 22%,#fff)}
.hc-diag h3{color:var(--hc-ink);font-size:1.08rem;font-weight:700;line-height:1.35;margin:0 0 .55rem}
.hc-diag p{color:var(--hc-body);font-size:.93rem;line-height:1.65;margin:0 0 1.1rem;flex:1}
.hc-diag-more{color:var(--accent,var(--hc-primary));font-weight:700;font-size:.9rem;display:inline-flex;align-items:center;gap:.3rem;transition:gap .2s ease}
.hc-diag:hover .hc-diag-more{gap:.55rem}
/* color-mix fallback for older browsers */
@supports not (color: color-mix(in srgb,#000 10%,#fff)){
  .hc-diag-ico{background:#ecfeff;border-color:#cffafe;color:var(--hc-primary)}
}
@media(max-width:640px){
  .hc-diag-grid{grid-template-columns:1fr;gap:1rem}
  .hc-diag{padding:1.35rem}
}

/* ============================================================
   Header: Services dropdown
   ============================================================ */
.nav-drop{position:relative}
.nav-drop-btn{display:inline-flex;align-items:center;gap:.3rem;background:none;border:0;padding:0;color:#475569;font:inherit;font-weight:600;cursor:pointer;transition:color .18s}
.nav-drop-btn:hover,.nav-drop.is-open>.nav-drop-btn{color:var(--hc-primary)}
.nav-caret{transition:transform .22s ease;opacity:.65}
.nav-drop.is-open .nav-caret{transform:rotate(180deg)}

.nav-panel{position:absolute;top:calc(100% + 14px);left:50%;transform:translateX(-50%) translateY(-8px);width:min(820px,calc(100vw - 2rem));background:#fff;border:1px solid var(--hc-line);border-radius:18px;box-shadow:0 24px 60px -18px rgba(15,23,42,.28),0 8px 20px -8px rgba(15,23,42,.12);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:70;overflow:hidden}
/* Hover / focus bridge: without the padding the menu snaps shut crossing the gap. */
.nav-drop::after{content:'';position:absolute;left:0;right:0;top:100%;height:14px}
.nav-drop:hover>.nav-panel,.nav-drop.is-open>.nav-panel,.nav-drop:focus-within>.nav-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
/* The hover/open state re-applies the desktop transform with higher specificity
   than the mobile reset, so it has to be undone there too. */
@media(max-width:1100px){
  .nav-drop:hover>.nav-panel,.nav-drop.is-open>.nav-panel,.nav-drop:focus-within>.nav-panel{transform:none}
}
.nav-panel::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--hc-primary),#0d9488,#0891b2)}

/* Multi-column (masonry) rather than grid: groups have very different item
   counts (6 diagnostics vs 1 emergency), so a grid stretches every cell to the
   tallest and leaves large dead gaps, and a 4th group wraps to a second row.
   Columns flow to balance the content instead. */
.nav-panel-inner{columns:3;column-gap:0;padding:1.4rem 1.5rem 1.1rem}
.nav-group{break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid;padding:0 1.1rem;border-right:1px solid var(--hc-line)}
.nav-group + .nav-group{margin-top:1rem}
.nav-panel-inner .nav-group:last-child{border-right:0}
.nav-group-t{font-size:.74rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--accent,var(--hc-primary));margin:0 0 .6rem;display:flex;align-items:center;gap:.4rem}
.nav-group-t::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent,var(--hc-primary));flex-shrink:0}
.nav-group ul{list-style:none;padding:0;margin:0}
.nav-group a{display:flex;align-items:center;gap:.5rem;padding:.42rem .5rem;margin:0 -.5rem;border-radius:8px;color:var(--hc-body);font-size:.885rem;font-weight:500;line-height:1.35;text-decoration:none;transition:background .16s,color .16s}
.nav-group a span{min-width:0}
.nav-group a:hover{background:var(--hc-surface);color:var(--hc-primary)}
.nav-group a svg{flex-shrink:0;color:var(--accent,var(--hc-primary));opacity:.85}

.nav-panel-foot{display:flex;gap:.5rem;padding:.85rem 1.5rem;background:var(--hc-surface);border-top:1px solid var(--hc-line)}
.nav-panel-foot a{flex:1;display:flex;align-items:center;justify-content:center;gap:.45rem;min-height:40px;background:#fff;border:1px solid var(--hc-line);border-radius:10px;color:var(--hc-ink);font-weight:700;font-size:.87rem;text-decoration:none;transition:border-color .18s,color .18s,background .18s}
.nav-panel-foot a:hover{border-color:var(--hc-primary);color:var(--hc-primary)}
.nav-panel-foot a svg{color:var(--hc-primary)}

/* ---------- Mobile: Services becomes an accordion inside the drawer ---------- */
@media(max-width:1100px){
  .nav-drop{width:100%}
  .nav-drop-btn{width:100%;justify-content:space-between;padding:.7rem .5rem;min-height:44px;color:var(--hc-body)}
  .nav-caret{opacity:.8}
  .nav-drop.is-open .nav-caret{transform:rotate(180deg)}
  /* transform MUST be reset too: position:static alone leaves the desktop
     translateX(-50%) applied, which dragged the whole panel off-screen. */
  .nav-panel{position:static;left:auto;transform:none;width:100%;border:0;border-radius:0;box-shadow:none;opacity:1;visibility:visible;pointer-events:auto;background:transparent;overflow:visible;display:none}
  .nav-panel::before{display:none}
  .nav-drop.is-open>.nav-panel{display:block}
  .nav-panel-inner{columns:1;padding:0 0 .35rem .6rem}
  .nav-group{padding:0;border-right:0}
  .nav-group+.nav-group{margin-top:0}
  .nav-group-t{margin:.85rem 0 .4rem;font-size:.66rem}
  .nav-group a{padding:.55rem .5rem;min-height:44px;font-size:.95rem}
  .nav-group a svg{width:18px;height:18px}
  .nav-panel-foot{flex-direction:column;padding:.35rem .6rem .6rem;background:transparent;border-top:0;margin-top:.35rem}
  .nav-panel-foot a{background:#fff;min-height:44px}
}
@media(min-width:1101px){
  /* The desktop row has no room for the dropdown's own padding. */
  .nav-drop-btn{padding:.35rem 0}
}

/* Services panel: wide diagnostics column + balanced pair for the rest. */
.nav-panel-inner{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:0;padding:1.4rem 1.5rem 1.1rem}
.nav-group--wide{grid-column:1;border-right:1px solid var(--hc-line);padding:0 1.25rem 0 0}
/* Multi-column so groups of different lengths balance instead of leaving the
   1-item groups stranded below the 3-item one. */
.nav-group-cols{grid-column:2 / 4;columns:2;column-gap:1.25rem;padding-left:1.25rem}
.nav-group-cols .nav-group{padding:0;border-right:0;break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid}
/* .nav-group + .nav-group{margin-top} was offsetting siblings inside this
   nested layout; the columns handle spacing themselves. */
.nav-group-cols .nav-group+.nav-group{margin-top:0}
.nav-group-cols .nav-group:not(:last-child){padding-bottom:.9rem;border-bottom:1px solid var(--hc-line);margin-bottom:.9rem}
.nav-group-more{display:inline-flex;align-items:center;gap:.3rem;margin-top:.7rem;padding:.4rem .55rem;margin-left:-.55rem;border-radius:8px;background:var(--hc-surface);color:var(--hc-primary);font-size:.85rem;font-weight:700;text-decoration:none;transition:background .16s}
.nav-group-more:hover{background:#ecfeff}

@media(max-width:1100px){
  /* Single column on mobile. Every desktop layout rule has to be undone here:
     the panel is position:static and full-width, so an inherited grid/
     columns track made the content wider than the drawer and clipped it. */
  .nav-panel-inner{display:block;columns:1;column-count:1;padding:0 0 .35rem .6rem;width:auto}
  .nav-group--wide{border-right:0;padding:0;border-bottom:0;margin:0}
  .nav-group-cols{display:block;columns:1;column-count:1;padding-left:0;column-gap:0;width:auto}
  /* Reset the desktop divider/margin rules inside the accordion. */
  .nav-group-cols .nav-group{border-right:0;border-bottom:0;padding:0;margin:0}
  .nav-group-cols .nav-group:not(:last-child){border-bottom:0;margin-bottom:0;padding-bottom:0}
  .nav-group-cols .nav-group+.nav-group{margin-top:0}
  .nav-group-more{margin-left:-.55rem}
}

/* ============================================================
   Motion layer
   Every animation here is additive and reversible, and the whole
   layer is disabled under prefers-reduced-motion (see bottom).
   ============================================================ */

/* ---------- entrance keyframes ---------- */
@keyframes hc-rise{from{opacity:0;transform:translate3d(0,26px,0)}to{opacity:1;transform:none}}
@keyframes hc-fade{from{opacity:0}to{opacity:1}}
@keyframes hc-pop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@keyframes hc-slide-left{from{opacity:0;transform:translate3d(-18px,0,0)}to{opacity:1;transform:none}}
@keyframes hc-pulse-ring{0%{box-shadow:0 0 0 0 rgba(249,115,22,.5)}70%{box-shadow:0 0 0 12px rgba(249,115,22,0)}100%{box-shadow:0 0 0 0 rgba(249,115,22,0)}}
@keyframes hc-shimmer{from{background-position:-420px 0}to{background-position:420px 0}}
@keyframes hc-dot{from{opacity:.45}to{opacity:1}}

/* ---------- scroll reveal ---------- */
[data-animate]{opacity:0;will-change:opacity,transform}
[data-animate].in{animation:hc-rise .62s cubic-bezier(.22,.9,.28,1) both}
/* Stagger children of a grid so rows cascade instead of popping as one block. */
[data-animate].in:nth-child(2){animation-delay:.05s}
[data-animate].in:nth-child(3){animation-delay:.1s}
[data-animate].in:nth-child(4){animation-delay:.15s}
[data-animate].in:nth-child(5){animation-delay:.2s}
[data-animate].in:nth-child(6){animation-delay:.25s}
[data-animate].in:nth-child(7){animation-delay:.28s}
[data-animate].in:nth-child(8){animation-delay:.31s}

/* ---------- hero load-in ---------- */
.hc-hero .hc-hero-badge{animation:hc-pop .5s cubic-bezier(.22,.9,.28,1) .05s both}
.hc-hero h1,.hc-hero h2{animation:hc-slide-left .62s cubic-bezier(.22,.9,.28,1) .14s both}
.hc-hero p{animation:hc-rise .6s cubic-bezier(.22,.9,.28,1) .26s both}
.hc-hero-btns{animation:hc-rise .6s cubic-bezier(.22,.9,.28,1) .36s both}
.hc-dots{animation:hc-fade .5s ease .5s both}

/* ---------- section headers ---------- */
.hc-eyebrow{animation:hc-rise .5s cubic-bezier(.22,.9,.28,1) both}
.hc-title{animation:hc-rise .58s cubic-bezier(.22,.9,.28,1) .06s both}
.hc-lede{animation:hc-rise .58s cubic-bezier(.22,.9,.28,1) .12s both}

/* ---------- card hover ---------- */
.hc-card,.hc-doctor,.hc-diag,.hc-step,.hc-quick a,.hc-partner{
  transition:transform .28s cubic-bezier(.22,.9,.28,1),box-shadow .28s ease,border-color .28s ease;
}
.hc-card:hover,.hc-doctor:hover,.hc-step:hover,.hc-partner:hover{transform:translateY(-6px)}
/* Lift the icon inside a hovered card so the card feels alive. */
.hc-card:hover .hc-icon,.hc-step:hover .hc-step-dot,.hc-diag:hover .hc-diag-ico{
  transform:translateY(-3px) scale(1.06);
  transition:transform .28s cubic-bezier(.22,.9,.28,1);
}
.hc-icon,.hc-step-dot,.hc-diag-ico{transition:transform .28s cubic-bezier(.22,.9,.28,1)}

/* ---------- links & buttons ---------- */
.hc-btn{position:relative;overflow:hidden;transition:transform .2s cubic-bezier(.22,.9,.28,1),box-shadow .24s ease,background .2s ease}
/* Sheen sweep on primary CTAs. */
.hc-btn--primary::after,.hc-btn--ghost::after,.hc-btn--accent::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.34) 50%,transparent 62%);
  background-size:420px 100%;background-repeat:no-repeat;
  transform:translateX(-120%);pointer-events:none;
}
.hc-btn--primary:hover::after,.hc-btn--ghost:hover::after,.hc-btn--accent::after{animation:hc-shimmer .75s ease}
.hc-link{transition:color .2s ease,gap .2s ease}
.hc-learn,.nav-group a,.ft-links a{transition:color .18s ease,background .18s ease,padding-left .18s ease,transform .18s ease}

/* ---------- icon accent ---------- */
.hc-icon svg,.hc-diag-ico svg,.hc-step-dot svg,.hc-tag,.nav-group-t{transition:color .25s ease,background .25s ease,border-color .25s ease}

/* ---------- emergency pulses ---------- */
.hc-quick--urgent .ico{position:relative}
.hc-quick--urgent .ico::after{
  content:'';position:absolute;inset:0;border-radius:inherit;
  animation:hc-pulse-ring 2.6s ease-out infinite;
}
.nav-emergency{position:relative}
.nav-emergency{padding-left:12px}
.nav-emergency::after{
  content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:6px;height:6px;border-radius:50%;background:#dc2626;
  animation:hc-pulse-ring 2.6s ease-out infinite;
}

/* ---------- hero dots ---------- */
.hc-dots button::after{transition:background .25s ease,width .3s cubic-bezier(.22,.9,.28,1)}
.hc-dots button[aria-current="true"]::after{animation:hc-dot 1.2s ease-in-out infinite alternate}

/* ---------- page header ---------- */
.hc-pagehead h1{animation:hc-rise .55s cubic-bezier(.22,.9,.28,1) .04s both}
.hc-pagehead p{animation:hc-rise .55s cubic-bezier(.22,.9,.28,1) .12s both}
.hc-crumbs{animation:hc-fade .45s ease both}

/* ---------- accordion ---------- */
.hc-faq{transition:box-shadow .25s ease,border-color .25s ease}
.hc-faq[open]{animation:hc-rise .3s ease both}
.hc-faq summary::after{transition:transform .25s cubic-bezier(.22,.9,.28,1),color .25s ease}
.hc-faq summary:hover::after{color:var(--hc-primary)}
.hc-faq-body{animation:hc-fade .3s ease both}

/* ---------- nav dropdown ---------- */
.nav-panel{transition:opacity .22s ease,transform .22s cubic-bezier(.22,.9,.28,1),visibility .22s}
.nav-group a{transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-group a:hover{transform:translateX(3px)}
.nav-caret{transition:transform .24s cubic-bezier(.22,.9,.28,1),opacity .2s}
.nav-drop-btn{transition:color .2s ease}

/* ---------- footer ---------- */
.ft-logo img,.ft-contact svg,.ft-social a{transition:transform .25s ease,color .2s ease}
.ft-contact li:hover svg{transform:scale(1.12)}
.ft-submit{transition:background .2s ease,transform .2s ease}

/* ---------- buttons respect motion preference ---------- */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important;
  }
  [data-animate]{opacity:1!important;transform:none!important}
}
