/*
Theme Name: Elegancia Dental
Theme URI: https://eleganciadentallko.in
Author: Elegancia Dental Clinic
Description: Modern custom WordPress theme for Elegancia Dental Clinic - The Maxillofacial and Implant Centre, Lucknow. Deep green, navy and gold luxury-medical design with per-treatment SEO pages, fast mobile load and self-service editing.
Version: 3.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: elegancia-dental
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root{
  /* Palette taken from the clinic's own logo: deep navy + metallic gold */
  --brand-950:#08152E;
  --brand-900:#0D1E3F;
  --brand-800:#152C57;
  --brand-700:#1E3C72;
  --brand-600:#2F5C9E;
  --brand-500:#4171B8;

  --navy:#152C57;
  --navy-700:#1E3C72;

  --gold:#C4A05A;
  --gold-400:#DFC48E;
  --gold-100:#F7F0E1;

  --tint-50:#F7F9FD;
  --tint-100:#EAEFF8;
  --tint-200:#D5DFF0;
  --sand:#FAF8F3;

  --paper:#FFFFFF;
  --ink:#111C30;
  --body:#414E63;
  --muted:#69758A;
  --line:#E3E8F1;
  --line-soft:#EEF2F8;

  /* muted text on dark navy panels */
  --on-dark-muted:#A9BAD6;

  --r-sm:10px;
  --r-md:16px;
  --r-lg:22px;
  --r-xl:30px;
  --r-pill:999px;

  --sh-sm:0 2px 10px rgba(14,59,49,.05);
  --sh-md:0 8px 30px rgba(14,59,49,.08);
  --sh-lg:0 20px 50px rgba(14,59,49,.13);
  --sh-gold:0 14px 36px rgba(192,154,94,.24);

  --maxw:1220px;
  --gutter:22px;

  --f-display:"Playfair Display",Georgia,serif;
  --f-body:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:var(--f-body);font-size:16px;color:var(--body);
  background:var(--paper);line-height:1.7;overflow-x:hidden;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
svg.icon{width:24px;height:24px;flex-shrink:0}

/* --- Type ---------------------------------------------------------------- */
h1,h2,h3,h4{color:var(--ink);margin:0 0 .5em;line-height:1.2}
h1,h2{font-family:var(--f-display);font-weight:600;letter-spacing:-.015em;line-height:1.12}
h1{font-size:clamp(2.35rem,5vw,4rem)}
h2{font-size:clamp(1.9rem,3.6vw,3rem)}
h3{font-family:var(--f-body);font-weight:700;font-size:1.16rem;letter-spacing:-.01em}
h4{font-family:var(--f-body);font-weight:700;font-size:.95rem}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
strong{color:var(--ink);font-weight:700}

.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-size:.7rem;font-weight:700;letter-spacing:.19em;text-transform:uppercase;
  color:var(--brand-600);margin-bottom:18px;
}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--gold);border-radius:2px}
.eyebrow.on-dark{color:var(--gold-400)}
.eyebrow.center{justify-content:center}
.lead{font-size:1.08rem;line-height:1.75;color:var(--muted)}

/* --- Layout -------------------------------------------------------------- */
.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.container-narrow{max-width:820px;margin:0 auto;padding:0 var(--gutter)}
.section{padding:82px 0;position:relative}
.section-sm{padding:58px 0}
.section-tint{background:var(--tint-50)}
.section-sand{background:var(--sand)}
.section-dark{background:var(--brand-900);color:#CBDCD5}
.section-dark h2,.section-dark h3,.section-dark h4{color:#fff}
.section-dark .lead{color:#A8C1B8}

.grid{display:grid;gap:26px}
.grid>*,.hero-grid>*,.split>*{min-width:0}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.split-wide{grid-template-columns:1.15fr .85fr}
.split-form{grid-template-columns:.9fr 1.1fr;gap:60px;align-items:center}
/* Visual column first on desktop, text first on mobile */
.split-reverse>*:first-child{order:2}
.split-reverse>*:last-child{order:1}
@media(max-width:1000px){.split-reverse>*:first-child{order:1}.split-reverse>*:last-child{order:2}}
.split-article{grid-template-columns:1.65fr 1fr;gap:54px;align-items:start}

@media(max-width:1000px){
  .section{padding:62px 0}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .split,.split-wide,.split-form,.split-article{grid-template-columns:1fr;gap:44px}
}
@media(max-width:660px){
  .section{padding:52px 0}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
}

.section-head{max-width:680px;margin-bottom:44px}
.section-head.center{margin-inline:auto;text-align:center}
.section-head p{color:var(--muted);margin-bottom:0;font-size:1.03rem}

/* --- Buttons ------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 30px;border:1.5px solid transparent;border-radius:var(--r-pill);
  font-family:var(--f-body);font-size:.9rem;font-weight:700;letter-spacing:.01em;
  cursor:pointer;transition:all .25s var(--ease);white-space:nowrap;
}
.btn .icon{width:19px;height:19px}
.btn-gold{background:var(--gold);color:#fff;box-shadow:var(--sh-gold)}
.btn-gold:hover{background:#AD874C;transform:translateY(-2px);box-shadow:0 18px 42px rgba(192,154,94,.32)}
.btn-green{background:var(--brand-800);color:#fff;box-shadow:0 12px 30px rgba(14,59,49,.22)}
.btn-green:hover{background:var(--brand-700);transform:translateY(-2px)}
.btn-white{background:#fff;color:var(--brand-800);box-shadow:var(--sh-md)}
.btn-white:hover{transform:translateY(-2px);box-shadow:var(--sh-lg)}
.btn-ghost{border-color:var(--line);color:var(--ink);background:#fff}
.btn-ghost:hover{border-color:var(--brand-800);color:var(--brand-800);transform:translateY(-2px)}
.btn-ghost-light{border-color:rgba(255,255,255,.32);color:#fff}
.btn-ghost-light:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.6)}
.btn-wa{background:#25D366;color:#fff}
.btn-wa:hover{background:#1EBE5A;transform:translateY(-2px)}
.btn-sm{padding:11px 22px;font-size:.83rem}
.btn-block{width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:14px}
.btn-row.center{justify-content:center}

.link-arrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.86rem;font-weight:700;color:var(--brand-700);
  transition:gap .25s var(--ease),color .25s var(--ease);
}
.link-arrow .icon{width:17px;height:17px}
.link-arrow:hover{gap:13px;color:var(--gold)}

/* --- Chips / badges ------------------------------------------------------ */
.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 16px;border-radius:var(--r-pill);
  background:var(--tint-100);color:var(--brand-700);
  font-size:.78rem;font-weight:700;letter-spacing:.01em;
}
.chip .icon{width:15px;height:15px}
.chip-glass{
  background:rgba(255,255,255,.1);color:#fff;
  border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px);
}
.chip-gold{background:var(--gold-100);color:#8A6A34}

/* ==========================================================================
   1. Header
   ========================================================================== */
.topbar{background:var(--brand-950);color:#9FBAB0;font-size:.79rem}
.topbar .container{display:flex;justify-content:space-between;align-items:center;gap:6px 20px;flex-wrap:wrap;padding-block:10px}
.topbar-item{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;min-width:0}
.topbar-item .icon{width:15px;height:15px;color:var(--gold-400)}
.topbar a{color:#C4D8D0;transition:color .2s}
.topbar a:hover{color:var(--gold-400)}
.topbar-sep{opacity:.28}
@media(max-width:820px){.topbar .container{justify-content:center;text-align:center}.topbar-hide-sm{display:none}}

.site-header{position:sticky;top:0;z-index:70;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line-soft);transition:box-shadow .3s}
.site-header.scrolled{box-shadow:0 4px 24px rgba(14,59,49,.07)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:26px;padding-block:15px}

.brand{display:flex;align-items:center;gap:13px;flex-shrink:0}
.brand-mark{
  width:48px;height:48px;flex-shrink:0;border-radius:50%;
  background:linear-gradient(140deg,var(--brand-700),var(--brand-900));
  color:var(--gold-400);display:flex;align-items:center;justify-content:center;
  font-family:var(--f-display);font-size:1.4rem;font-weight:600;
  box-shadow:0 6px 18px rgba(14,59,49,.22);
}
.brand-text .name{display:block;font-family:var(--f-display);font-size:1.5rem;font-weight:600;color:var(--brand-800);line-height:1}
.brand-text .tagline{display:block;font-size:.6rem;font-weight:600;text-transform:uppercase;letter-spacing:.17em;color:var(--muted);margin-top:5px}
@media(max-width:420px){.brand-text .name{font-size:1.25rem}.brand-text .tagline{font-size:.53rem;letter-spacing:.12em}}

.main-nav ul{display:flex;align-items:center;gap:6px}
.main-nav a{
  display:block;padding:9px 15px;border-radius:var(--r-pill);
  font-size:.88rem;font-weight:600;color:var(--ink);transition:all .2s;
}
.main-nav a:hover{background:var(--tint-100);color:var(--brand-700)}
.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:var(--tint-100);color:var(--brand-800)}
.main-nav li{position:relative}
.main-nav .sub-menu{
  display:none;position:absolute;left:0;top:100%;min-width:238px;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-md);
  padding:8px;box-shadow:var(--sh-lg);
  /* align-items would otherwise be inherited from the horizontal parent
     menu and centre every link */
  flex-direction:column;align-items:stretch;gap:1px;margin-top:9px;
}
/* Invisible bridge across the gap — without it the pointer leaves both
   the trigger and the panel on the way down and the menu snaps shut */
.main-nav .sub-menu::before{
  content:"";position:absolute;left:0;right:0;top:-11px;height:11px;
}
.main-nav li:hover>.sub-menu,
.main-nav li:focus-within>.sub-menu{display:flex}
.main-nav .sub-menu a{
  display:block;width:100%;text-align:left;white-space:nowrap;
  padding:10px 14px;font-size:.87rem;font-weight:500;
}
.header-cta{display:flex;align-items:center;gap:12px;flex-shrink:0}
.nav-toggle{
  display:none;width:44px;height:44px;border:1px solid var(--line);background:#fff;
  border-radius:var(--r-sm);cursor:pointer;color:var(--brand-800);
  align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:0;
}
.nav-toggle span{display:block;width:18px;height:2px;background:currentColor;border-radius:2px;transition:transform .3s var(--ease),opacity .2s}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media(max-width:1040px){.main-nav a{padding:9px 11px;font-size:.83rem}}
@media(max-width:960px){
  /* backdrop-filter on the header creates a containing block for
     fixed-position children, which trapped this panel inside the header
     instead of letting it fill the screen */
  .site-header{backdrop-filter:none;background:#fff}
  .main-nav{
    /* top is set precisely by JS from the live header height; this is
       only the pre-JS fallback */
    display:none;position:fixed;top:118px;left:0;right:0;bottom:0;background:#fff;
    padding:22px var(--gutter) 90px;overflow-y:auto;z-index:65;
  }
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;align-items:stretch;gap:2px}
  .main-nav a{padding:16px 14px;font-size:1rem;border-radius:var(--r-md)}
  .main-nav .sub-menu{position:static;display:flex;border:none;box-shadow:none;padding:0 0 8px 14px;margin:0}
  .nav-toggle{display:flex}
  /* The booking CTA used to be hidden here, which left phone and tablet
     visitors — the majority — with no way to reach the booking panel
     from the header. It stays, shrinking to an icon on narrow screens. */
  .header-cta .btn{padding:10px 14px;font-size:.8rem;gap:7px}
}

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(150deg,var(--brand-900) 0%,var(--brand-800) 45%,var(--brand-700) 100%);
  color:#fff;padding:96px 0 150px;
}
.hero::before{
  content:"";position:absolute;z-index:-1;width:760px;height:760px;border-radius:50%;
  right:-220px;top:-260px;
  background:radial-gradient(circle,rgba(44,143,121,.55) 0%,rgba(44,143,121,0) 68%);
}
.hero::after{
  content:"";position:absolute;z-index:-1;width:420px;height:420px;border-radius:50%;
  left:-160px;bottom:-200px;
  background:radial-gradient(circle,rgba(192,154,94,.22) 0%,rgba(192,154,94,0) 70%);
}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center}
.hero h1{color:#fff;margin-bottom:22px}
.hero h1 em{font-style:normal;color:var(--gold-400)}
.hero-tags{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:26px}
.hero-lead{color:#B8D0C8;font-size:1.09rem;max-width:52ch;margin-bottom:34px}
.hero-trust{display:flex;align-items:center;gap:14px;margin-top:34px;flex-wrap:wrap;color:#9FBCB2;font-size:.84rem}
.hero-trust .stars{color:var(--gold-400);display:inline-flex;gap:2px}
.hero-trust .stars .icon{width:15px;height:15px}
@media(max-width:1000px){.hero{padding:64px 0 130px}.hero-grid{grid-template-columns:1fr;gap:46px}}

/* Layered hero visual */
.hero-visual{position:relative;padding:0 8px}
.hero-visual .frame{
  position:relative;border-radius:var(--r-xl);overflow:hidden;
  aspect-ratio:4/4.6;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);box-shadow:0 30px 70px rgba(0,0,0,.28);
}
.hero-visual .frame img{width:100%;height:100%;object-fit:cover}
.hero-visual .frame .ph{
  height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;text-align:center;padding:34px;color:#9FBCB2;font-size:.86rem;line-height:1.6;
}
.hero-visual .frame .ph .icon{width:38px;height:38px;color:var(--gold-400);opacity:.7}
.hero-visual .arc{
  position:absolute;inset:-16px 4px 34px -16px;border:1.5px solid rgba(192,154,94,.42);
  border-radius:var(--r-xl);z-index:-1;
}
.float-card{
  position:absolute;background:#fff;border-radius:var(--r-md);
  padding:15px 19px;box-shadow:var(--sh-lg);display:flex;align-items:center;gap:12px;
}
.float-card .ico{
  width:40px;height:40px;border-radius:12px;flex-shrink:0;
  background:var(--tint-100);color:var(--brand-700);
  display:flex;align-items:center;justify-content:center;
}
.float-card .ico .icon{width:21px;height:21px}
.float-card strong{display:block;font-size:.92rem;color:var(--ink);line-height:1.25}
.float-card span{font-size:.74rem;color:var(--muted)}
.float-card.tl{top:26px;left:-26px}
.float-card.br{bottom:34px;right:-22px}
@media(max-width:1160px){.float-card.tl{left:-6px}.float-card.br{right:-4px}}
@media(max-width:520px){.float-card{padding:12px 14px}.float-card.tl{left:0;top:12px}.float-card.br{right:0;bottom:14px}}

/* Stats bar that overlaps the hero */
.stats-bar{margin-top:-78px;position:relative;z-index:5}
.stats-inner{
  background:#fff;border-radius:var(--r-lg);box-shadow:var(--sh-lg);
  display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;
}
.stat{padding:34px 26px;text-align:center;border-right:1px solid var(--line-soft)}
.stat:last-child{border-right:none}
.stat .icon{width:26px;height:26px;color:var(--gold);margin:0 auto 12px}
.stat strong{display:block;font-family:var(--f-display);font-size:1.5rem;font-weight:600;color:var(--brand-800);line-height:1.15;margin-bottom:5px}
.stat span{font-size:.79rem;color:var(--muted);font-weight:500}
@media(max-width:860px){
  .stats-inner{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-right:none}
  .stat:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}
}
@media(max-width:420px){.stat{padding:24px 14px}}

/* ==========================================================================
   3. Cards
   ========================================================================== */
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:34px 30px;transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s;
}
.card:hover{transform:translateY(-6px);box-shadow:var(--sh-lg);border-color:transparent}
.card p{color:var(--muted);font-size:.95rem;margin-bottom:0}
.card h3{margin-bottom:11px}

.icon-badge{
  width:56px;height:56px;border-radius:17px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(140deg,var(--tint-100),var(--tint-200));
  color:var(--brand-700);margin-bottom:22px;transition:all .3s var(--ease);
}
.icon-badge .icon{width:30px;height:30px}
.card:hover .icon-badge{background:linear-gradient(140deg,var(--brand-700),var(--brand-800));color:var(--gold-400)}
.icon-badge.gold{background:linear-gradient(140deg,var(--gold-100),#EDDCC2);color:#93713A}

/* Treatment card */
.t-card{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:32px 28px;display:flex;flex-direction:column;gap:14px;overflow:hidden;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s;
}
.t-card::before{
  content:"";position:absolute;inset:0 0 auto;height:3px;
  background:linear-gradient(90deg,var(--gold),var(--brand-600));
  transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease);
}
.t-card:hover{transform:translateY(-6px);box-shadow:var(--sh-lg);border-color:transparent}
.t-card:hover::before{transform:scaleX(1)}
.t-card h3{margin:0;font-size:1.14rem}
.t-card h3 a{transition:color .2s}
.t-card:hover h3 a{color:var(--brand-700)}
.t-card p{color:var(--muted);font-size:.92rem;margin:0;flex:1;line-height:1.65}
.t-card .t-cat{
  position:absolute;top:26px;right:26px;font-size:.63rem;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;color:var(--gold);
}
.t-card .thumb{
  margin:-32px -28px 4px;aspect-ratio:16/9;overflow:hidden;background:var(--tint-100);
}
.t-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.t-card:hover .thumb img{transform:scale(1.05)}

/* Why-choose numbered card */
.why-card{position:relative;overflow:hidden}
.why-card .num{
  position:absolute;right:22px;top:16px;font-family:var(--f-display);
  font-size:3.4rem;font-weight:600;color:var(--tint-100);line-height:1;z-index:0;
  transition:color .3s;
}
.why-card:hover .num{color:var(--gold-100)}
.why-card>*:not(.num){position:relative;z-index:1}

/* ==========================================================================
   4. Specialities
   ========================================================================== */
.spec-panel{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:40px 34px;height:100%;
}
.spec-panel.dark{
  background:linear-gradient(155deg,var(--brand-800),var(--brand-900));
  border-color:transparent;color:#B8D0C8;
}
.spec-head{display:flex;align-items:center;gap:15px;padding-bottom:22px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.spec-panel.dark .spec-head{border-color:rgba(255,255,255,.14)}
.spec-head .icon-badge{display:flex;align-items:center;justify-content:center;flex-shrink:0;margin:0;width:54px;height:54px;border-radius:16px}
.spec-panel.dark .spec-head .icon-badge{background:rgba(255,255,255,.1);color:var(--gold-400)}
.spec-head h3{margin:0;font-size:1.2rem}
.spec-panel.dark .spec-head h3{color:#fff}
.spec-heading{min-width:0}
.spec-head .spec-subtitle{display:block;font-size:.76rem;color:var(--muted);font-weight:500}
.spec-panel.dark .spec-head .spec-subtitle{color:#8FAEA4}

.spec-list li{border-bottom:1px solid var(--line-soft)}
.spec-panel.dark .spec-list li{border-color:rgba(255,255,255,.08)}
.spec-list li:last-child{border-bottom:none}
.spec-list a{
  display:flex;align-items:center;gap:12px;padding:13px 0;font-size:.94rem;
  color:var(--body);font-weight:500;transition:color .2s,padding-left .25s var(--ease);
}
.spec-panel.dark .spec-list a{color:#C3D8D1}
.spec-list a .icon{width:23px;height:23px;color:var(--brand-700);flex-shrink:0;stroke-width:1.6}
.spec-panel.dark .spec-list a .icon{color:var(--gold-400)}
.spec-list a:hover{color:var(--brand-700);padding-left:7px}
.spec-panel.dark .spec-list a:hover{color:#fff}
.spec-list a .go{margin-left:auto;opacity:0;transition:opacity .2s;color:var(--gold)}
.spec-list a:hover .go{opacity:1}
@media(max-width:660px){.spec-panel{padding:30px 22px}}

/* ==========================================================================
   5. Process / journey
   ========================================================================== */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;position:relative}
.step{position:relative;text-align:center;padding:0 8px}
.step .ring{
  width:78px;height:78px;margin:0 auto 22px;border-radius:50%;
  background:#fff;border:1.5px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--brand-700);
  position:relative;z-index:2;transition:all .3s var(--ease);
}
.step .ring .icon{width:31px;height:31px}
.step:hover .ring{border-color:transparent;background:linear-gradient(145deg,var(--brand-700),var(--brand-900));color:var(--gold-400);box-shadow:0 14px 30px rgba(14,59,49,.22)}
.step .n{
  position:absolute;top:-4px;left:50%;margin-left:22px;
  width:26px;height:26px;border-radius:50%;background:var(--gold);color:#fff;
  font-size:.72rem;font-weight:800;display:flex;align-items:center;justify-content:center;z-index:3;
}
.step h3{font-size:1.05rem;margin-bottom:8px}
.step p{font-size:.89rem;color:var(--muted);margin:0}
/* connector line */
.steps::before{
  content:"";position:absolute;top:39px;left:12.5%;right:12.5%;height:1.5px;
  background:repeating-linear-gradient(90deg,var(--tint-200) 0 8px,transparent 8px 16px);z-index:1;
}
@media(max-width:1000px){.steps{grid-template-columns:repeat(2,1fr);gap:38px 20px}.steps::before{display:none}}
@media(max-width:520px){.steps{grid-template-columns:1fr}}

/* ==========================================================================
   6. Doctor
   ========================================================================== */
.doc-visual{position:relative}
.doc-visual .frame{
  border-radius:var(--r-xl);overflow:hidden;aspect-ratio:4/4.8;
  background:var(--tint-100);border:1px solid var(--line);box-shadow:var(--sh-lg);
}
.doc-visual .frame img{width:100%;height:100%;object-fit:cover}
.doc-visual .frame .ph{
  height:100%;display:flex;flex-direction:column;gap:13px;align-items:center;justify-content:center;
  text-align:center;padding:32px;color:var(--muted);font-size:.86rem;line-height:1.6;
}
.doc-visual .frame .ph .icon{width:36px;height:36px;color:var(--gold);opacity:.6}
.doc-visual .arc{
  position:absolute;inset:26px -20px -20px 26px;border:1.5px solid var(--gold-400);
  border-radius:var(--r-xl);z-index:-1;
}
.doc-degrees{
  display:inline-flex;align-items:center;gap:9px;font-size:.82rem;font-weight:700;
  color:var(--gold);letter-spacing:.06em;text-transform:uppercase;margin-bottom:18px;
}
.cred-list{display:grid;gap:12px;margin:26px 0 30px}
.cred-list li{display:flex;gap:13px;align-items:flex-start;font-size:.93rem;color:var(--muted);line-height:1.6}
.cred-list .icon{width:19px;height:19px;color:var(--brand-600);flex-shrink:0;margin-top:3px}
/* Green ticks disappear against the dark panels — switch to gold there */
.section-dark .cred-list .icon{color:var(--gold-400)}
.cred-list strong{color:var(--ink)}
.doc-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}

/* ==========================================================================
   7. Reviews
   ========================================================================== */
.rating-summary{
  display:inline-flex;align-items:center;gap:20px;padding:20px 30px;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-sm);
  margin-bottom:44px;
}
.rating-summary .score{font-family:var(--f-display);font-size:2.5rem;font-weight:600;color:var(--brand-800);line-height:1}
.rating-summary .stars{display:flex;gap:3px;color:var(--gold);margin-bottom:4px}
.rating-summary .stars .icon{width:17px;height:17px}
.rating-summary .meta{font-size:.83rem;color:var(--muted)}

.r-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:32px 28px;display:flex;flex-direction:column;gap:16px;position:relative;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.r-card:hover{transform:translateY(-5px);box-shadow:var(--sh-lg)}
.r-card .qmark{position:absolute;top:26px;right:26px;color:var(--tint-200)}
.r-card .qmark .icon{width:32px;height:32px}
.r-card .stars{display:flex;gap:3px;color:var(--gold)}
.r-card .stars .icon{width:16px;height:16px}
.r-card .quote{font-size:1rem;line-height:1.72;color:var(--body);flex:1;margin:0}
.r-card .who{display:flex;align-items:center;gap:13px;padding-top:18px;border-top:1px solid var(--line-soft)}
.r-card .avatar{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(145deg,var(--brand-700),var(--brand-900));color:var(--gold-400);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem;
}
.r-card .who strong{display:block;font-size:.93rem;color:var(--ink)}
.r-card .who span{font-size:.79rem;color:var(--muted)}

/* ==========================================================================
   8. Locations
   ========================================================================== */
.branch{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;
  display:flex;flex-direction:column;transition:box-shadow .3s var(--ease)}
.branch:hover{box-shadow:var(--sh-lg)}
.branch .map,.branch .map-ph{width:100%;height:236px;border:0;display:block}
.branch .map-ph{
  background:linear-gradient(140deg,var(--tint-100),var(--tint-200));
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  text-align:center;padding:24px;color:var(--brand-700);font-size:.83rem;line-height:1.55;
}
.branch .map-ph .icon{width:30px;height:30px;opacity:.6}
.branch .body{padding:32px 30px;display:flex;flex-direction:column;flex:1}
.branch h3{font-size:1.25rem;margin-bottom:20px;display:flex;align-items:center;gap:11px}
.branch h3 .icon{width:20px;height:20px;color:var(--gold)}
.b-meta{display:grid;gap:15px;margin-bottom:26px;flex:1}
.b-meta li{display:flex;gap:13px;font-size:.92rem;color:var(--muted);line-height:1.6}
.b-meta .icon{width:19px;height:19px;color:var(--brand-600);flex-shrink:0;margin-top:3px}
.b-meta a{color:var(--ink);font-weight:600}
.b-meta a:hover{color:var(--gold)}
@media(max-width:660px){.branch .body{padding:26px 20px}}

/* ==========================================================================
   9. Forms
   ========================================================================== */
.form-card{background:#fff;border-radius:var(--r-lg);padding:38px 34px;box-shadow:var(--sh-lg)}
.form-card h3{color:var(--ink);font-size:1.35rem;font-family:var(--f-display);font-weight:600;margin-bottom:6px}
.form-card .intro{font-size:.9rem;color:var(--muted);margin-bottom:26px}
.field{margin-bottom:17px}
.field label{display:block;font-size:.79rem;font-weight:700;color:var(--ink);margin-bottom:8px}
.field input,.field select,.field textarea{
  width:100%;padding:14px 16px;font-family:inherit;font-size:.95rem;color:var(--ink);
  background:var(--tint-50);border:1.5px solid var(--line);border-radius:var(--r-sm);
  transition:border-color .2s,background-color .2s,box-shadow .2s;
}
.field input::placeholder,.field textarea::placeholder{color:#9DAAA4}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--brand-600);background:#fff;box-shadow:0 0 0 4px rgba(44,143,121,.11);
}
.field textarea{resize:vertical;min-height:92px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:17px}
@media(max-width:540px){.field-row{grid-template-columns:1fr;gap:0}}
.form-note{font-size:.78rem;color:var(--muted);margin-top:15px;line-height:1.6;text-align:center}
.form-alert{padding:15px 19px;border-radius:var(--r-sm);margin-bottom:22px;font-size:.9rem}
.form-alert.ok{background:#E9F6EF;border:1px solid #9CCFB6;color:#1A6742}
.form-alert.err{background:#FCEFEC;border:1px solid #E5B3A9;color:#94422F}

/* ==========================================================================
   10. Page header
   ========================================================================== */
.page-hero{
  position:relative;isolation:isolate;overflow:hidden;color:#fff;padding:74px 0 68px;
  background:linear-gradient(150deg,var(--brand-900),var(--brand-800) 60%,var(--brand-700));
}
.page-hero::before{
  content:"";position:absolute;z-index:-1;width:600px;height:600px;border-radius:50%;
  right:-190px;top:-250px;background:radial-gradient(circle,rgba(44,143,121,.5) 0%,rgba(44,143,121,0) 68%);
}
.page-hero h1{color:#fff;margin:0}
.page-hero .lead{color:#B8D0C8;margin-top:15px;max-width:62ch}
.crumbs{display:flex;align-items:center;gap:9px;font-size:.79rem;color:#8FAEA4;margin-bottom:18px;flex-wrap:wrap}
.crumbs a{color:#8FAEA4;transition:color .2s}
.crumbs a:hover{color:var(--gold-400)}
.crumbs .sep{opacity:.5}

/* ==========================================================================
   11. Article body
   ========================================================================== */
.entry{font-size:1.02rem;line-height:1.82;color:var(--body)}
.entry h2{font-size:clamp(1.5rem,2.4vw,2rem);margin:2em 0 .6em}
.entry h3{font-size:1.25rem;margin:1.9em 0 .5em;color:var(--ink)}
.entry>*:first-child{margin-top:0}
.entry ul,.entry ol{margin:0 0 1.3em;padding-left:1.3em;list-style:disc}
.entry ol{list-style:decimal}
.entry li{margin-bottom:.55em}
.entry img{border-radius:var(--r-lg);margin:1.6em 0}
.entry a{color:var(--brand-700);text-decoration:underline;text-underline-offset:3px}

.rail{
  background:linear-gradient(155deg,var(--brand-800),var(--brand-900));
  border-radius:var(--r-lg);padding:34px 30px;color:#B8D0C8;position:sticky;top:104px;
  box-shadow:var(--sh-lg);
}
.rail h3{color:#fff;font-size:1.2rem;margin-bottom:9px}
.rail p{font-size:.89rem;margin-bottom:22px;color:#9FBCB2}
.rail .btn{width:100%;margin-bottom:11px}
.rail .btn:last-child{margin-bottom:0}
.rail-divider{height:1px;background:rgba(255,255,255,.12);margin:24px 0}
.rail-list{display:grid;gap:11px;font-size:.87rem}
.rail-list li{display:flex;gap:10px;align-items:flex-start}
.rail-list .icon{width:17px;height:17px;color:var(--gold-400);flex-shrink:0;margin-top:3px}
@media(max-width:1000px){.rail{position:static}}

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq-item{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-md);
  margin-bottom:13px;overflow:hidden;transition:border-color .25s,box-shadow .25s;
}
.faq-item.open{border-color:var(--tint-200);box-shadow:var(--sh-md)}
.faq-q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:22px 26px;background:none;border:none;cursor:pointer;text-align:left;
  font-family:var(--f-body);font-size:1.02rem;font-weight:700;color:var(--ink);line-height:1.45;
  transition:color .2s;
}
.faq-q:hover{color:var(--brand-700)}
.faq-q .plus{
  width:30px;height:30px;border-radius:50%;background:var(--tint-100);color:var(--brand-700);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:transform .3s var(--ease),background-color .25s,color .25s;
}
.faq-q .plus .icon{width:16px;height:16px}
.faq-item.open .plus{transform:rotate(45deg);background:var(--brand-800);color:var(--gold-400)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s var(--ease)}
.faq-item.open .faq-a{max-height:700px}
.faq-a-in{padding:0 26px 24px;color:var(--muted);font-size:.96rem;line-height:1.75}

/* ==========================================================================
   13. Filter tabs
   ========================================================================== */
.tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:44px}
.tab{
  padding:11px 24px;border-radius:var(--r-pill);border:1.5px solid var(--line);
  background:#fff;color:var(--ink);font-family:inherit;font-size:.86rem;font-weight:600;
  cursor:pointer;transition:all .25s var(--ease);
}
.tab:hover{border-color:var(--brand-600);color:var(--brand-700)}
.tab.active{background:var(--brand-800);border-color:var(--brand-800);color:#fff}

/* ==========================================================================
   14. CTA + footer
   ========================================================================== */
.cta{
  position:relative;isolation:isolate;overflow:hidden;text-align:center;color:#fff;padding:84px 0;
  background:linear-gradient(150deg,var(--brand-800),var(--brand-900));
}
.cta::before{
  content:"";position:absolute;z-index:-1;width:560px;height:560px;border-radius:50%;
  left:50%;top:-330px;transform:translateX(-50%);
  background:radial-gradient(circle,rgba(192,154,94,.25) 0%,rgba(192,154,94,0) 70%);
}
.cta h2{color:#fff;margin-bottom:15px}
.cta p{color:#A8C1B8;max-width:56ch;margin:0 auto 32px}

.site-footer{background:var(--brand-950);color:#8FAEA4;padding:76px 0 0;font-size:.92rem}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:46px}
.site-footer h4{color:#fff;font-size:.74rem;text-transform:uppercase;letter-spacing:.15em;margin-bottom:20px}
.site-footer h4 a{color:#fff}
.site-footer h4 a:hover{color:var(--gold-400)}
.site-footer ul{display:grid;gap:12px}
.site-footer a{color:#8FAEA4;transition:color .2s}
.site-footer a:hover{color:var(--gold-400)}
.site-footer li{display:flex;gap:11px;align-items:flex-start;line-height:1.6}
.site-footer li .icon{width:17px;height:17px;color:var(--brand-500);flex-shrink:0;margin-top:3px}
.f-brand .name{font-family:var(--f-display);font-size:1.75rem;color:#fff;display:block;line-height:1}
.f-brand .tagline{font-size:.63rem;text-transform:uppercase;letter-spacing:.16em;color:var(--gold-400);margin:7px 0 18px;display:block}
.f-brand p{font-size:.89rem;line-height:1.7}
.footer-social{display:flex;align-items:center;gap:18px;margin-top:52px;padding-top:30px;border-top:1px solid rgba(255,255,255,.08)}
.fs-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.16em;color:#fff}
.fs-links{display:flex!important;gap:12px}
.fs-links li{display:block}
.fs-link{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.07);color:#8FAEA4;transition:background .2s,color .2s,transform .2s}
.fs-link .icon{width:18px;height:18px}
.fs-link:hover{transform:translateY(-2px);color:#fff}
.fs-whatsapp:hover{background:#25D366;color:#0b241d}
.fs-facebook:hover{background:#1877F2}
.fs-instagram:hover{background:linear-gradient(45deg,#F58529,#DD2A7B,#8134AF)}
.fs-youtube:hover{background:#FF0000}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);margin-top:56px;padding:22px 0;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.79rem;color:#5F7A72;
}
@media(max-width:940px){.footer-grid{grid-template-columns:1fr 1fr;gap:36px}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}.footer-bottom{justify-content:center;text-align:center}.footer-social{flex-direction:column;gap:14px;margin-top:38px}}

/* ==========================================================================
   15. Floating actions
   ========================================================================== */
.wa-float{
  position:fixed;right:22px;bottom:22px;z-index:80;width:56px;height:56px;border-radius:50%;
  background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 28px rgba(37,211,102,.4);transition:transform .25s var(--ease);
}
.wa-float:hover{transform:scale(1.07);background:#1EBE5A}
.wa-float .icon{width:27px;height:27px}

/* Mobile sticky call bar — the single biggest conversion lever on a
   clinic site, so it stays pinned on small screens */
.mobile-bar{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:85;
  background:#fff;border-top:1px solid var(--line);padding:10px 12px;
  gap:10px;box-shadow:0 -6px 24px rgba(14,59,49,.1);
}
.mobile-bar .btn{flex:1;padding:13px 10px;font-size:.85rem}
@media(max-width:760px){
  .mobile-bar{display:flex}
  body{padding-bottom:74px}
  .wa-float{display:none}
}

/* ==========================================================================
   16. Utilities
   ========================================================================== */
.text-center{text-align:center}
.mt-lg{margin-top:52px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip-link{position:absolute;left:-9999px;background:var(--brand-800);color:#fff;padding:13px 22px;z-index:200;border-radius:0 0 var(--r-sm) 0}
.skip-link:focus{left:0;top:0}
:focus-visible{outline:2.5px solid var(--gold);outline-offset:3px;border-radius:4px}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .card:hover,.t-card:hover,.r-card:hover,.btn:hover{transform:none}
}

/* ==========================================================================
   17. Content components (benefits, timeline, panels, info grids)
   ========================================================================== */
.benefit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:38px}
.benefit{
  display:flex;gap:15px;padding:22px 20px;background:var(--tint-50);
  border:1px solid var(--line);border-radius:var(--r-md);
}
.benefit .ico{
  width:42px;height:42px;border-radius:12px;flex-shrink:0;
  background:#fff;color:var(--brand-700);display:flex;align-items:center;justify-content:center;
  box-shadow:var(--sh-sm);
}
.benefit .ico .icon{width:21px;height:21px}
.benefit strong{display:block;font-size:.95rem;color:var(--ink);margin-bottom:4px;line-height:1.35}
.benefit span{font-size:.87rem;color:var(--muted);line-height:1.6}
@media(max-width:660px){.benefit-grid{grid-template-columns:1fr}}

/* Tick list */
.tick-list{display:grid;gap:12px}
.tick-list li{display:flex;gap:12px;align-items:flex-start;font-size:.94rem;color:var(--muted);line-height:1.6}
.tick-list .icon{width:18px;height:18px;color:var(--brand-600);flex-shrink:0;margin-top:3px}
.panel-dark .tick-list .icon{color:var(--gold-400)}

/* Panel */
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:36px 32px}
.panel h3{font-size:1.24rem;margin-bottom:14px}
.panel p{color:var(--muted);font-size:.95rem}
.panel-dark{
  background:linear-gradient(155deg,var(--brand-800),var(--brand-900));
  border-color:transparent;color:#B8D0C8;
}
.panel-dark h3{color:#fff}
.panel-dark p{color:#A8C1B8}
.panel-dark .icon-badge{background:rgba(255,255,255,.1);color:var(--gold-400)}
@media(max-width:660px){.panel{padding:28px 22px}}

/* Info grid (location pages) */
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.info-item{display:flex;gap:14px;align-items:flex-start}
.info-item .ico{
  width:42px;height:42px;border-radius:12px;flex-shrink:0;
  background:var(--tint-100);color:var(--brand-700);
  display:flex;align-items:center;justify-content:center;
}
.info-item .ico .icon{width:20px;height:20px}
.info-item strong{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--gold);margin-bottom:5px}
.info-item span{font-size:.92rem;color:var(--muted);line-height:1.6}
.info-item a{color:var(--ink);font-weight:600}
@media(max-width:660px){.info-grid{grid-template-columns:1fr}}

/* Timeline */
.timeline{position:relative;max-width:860px;margin:0 auto;padding-left:12px}
.timeline::before{
  content:"";position:absolute;left:33px;top:14px;bottom:14px;width:2px;
  background:linear-gradient(180deg,var(--tint-200),var(--gold-100));
}
.tl-item{display:flex;gap:26px;position:relative;padding-bottom:34px}
.tl-item:last-child{padding-bottom:0}
.tl-dot{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;z-index:1;
  background:#fff;border:1.5px solid var(--tint-200);color:var(--brand-700);
  display:flex;align-items:center;justify-content:center;box-shadow:var(--sh-sm);
}
.tl-dot .icon{width:20px;height:20px}
.tl-body{padding-top:3px}
.tl-step{
  display:block;font-size:.68rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold);margin-bottom:6px;
}
.tl-body h3{font-size:1.1rem;margin-bottom:8px}
.tl-body p{color:var(--muted);font-size:.94rem;margin:0}
@media(max-width:560px){.timeline{padding-left:0}.timeline::before{left:21px}.tl-item{gap:18px}}

/* Emergency cards */
.emergency-card.urgent{border-color:var(--gold-400);background:linear-gradient(160deg,#fff,var(--gold-100))}
.emergency-card h3{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.urgent-tag{
  font-size:.63rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  background:var(--gold);color:#fff;padding:4px 10px;border-radius:var(--r-pill);
}
.call-block{
  display:flex;flex-direction:column;gap:3px;padding:15px 18px;margin-top:14px;
  background:rgba(255,255,255,.08);border-radius:var(--r-md);
}
.call-block span{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--gold-400);font-weight:700}
.call-block a{font-size:1.12rem;font-weight:700;color:#fff}
.call-block a:hover{color:var(--gold-400)}

/* Article/blog cards */
.post-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:30px 28px;display:flex;flex-direction:column;gap:12px;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.post-card:hover{transform:translateY(-6px);box-shadow:var(--sh-lg)}
.post-card .meta{font-size:.75rem;color:var(--gold);font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.post-card h3{margin:0;font-size:1.12rem;line-height:1.4}
.post-card p{color:var(--muted);font-size:.92rem;margin:0;flex:1}

/* Rating breakdown */
.rating-bars{display:grid;gap:9px;min-width:230px}
.rating-bar{display:flex;align-items:center;gap:11px;font-size:.8rem;color:var(--muted)}
.rating-bar .track{flex:1;height:7px;border-radius:4px;background:var(--tint-100);overflow:hidden}
.rating-bar .fill{height:100%;background:var(--gold);border-radius:4px}

/* Emergency banner on the home page */
@media(max-width:900px){
  .panel-dark[style*="grid-template-columns"]{grid-template-columns:1fr!important;text-align:left}
}

/* ==========================================================================
   18. Uploaded clinic logo
   Without explicit sizing the uploaded file renders at its natural
   dimensions and blows out the header — these rules constrain it while
   preserving aspect ratio.
   ========================================================================== */
.brand-logo{
  height:auto;width:auto;
  max-height:52px;max-width:210px;
  object-fit:contain;display:block;flex-shrink:0;
}
@media(max-width:960px){.brand-logo{max-height:44px;max-width:160px}}
@media(max-width:420px){.brand-logo{max-height:38px;max-width:130px}}

/* Footer logo — the navy mark needs a light ground to be visible */
.f-logo-chip{
  display:inline-flex;align-items:center;justify-content:center;
  width:64px;height:64px;border-radius:16px;margin-bottom:16px;
  background:#fff;padding:8px;
}
.f-logo-chip img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}

/* Placeholder brand mark (used until the clinic's logo file is uploaded) */
/* Gold tooth on the dark circle — a green mark on a green ground was
   invisible */
.brand-mark{--mark-a:var(--gold-400);--mark-b:var(--gold);overflow:hidden;padding:0}
.brand-svg{width:30px;height:32px;display:block}

/* Article author box + pagination */
.author-box{
  display:flex;gap:18px;margin-top:40px;padding:26px 24px;
  background:var(--tint-50);border:1px solid var(--line);border-radius:var(--r-lg);
}
.author-box .icon-badge{margin:0;flex-shrink:0}
.author-box strong{display:block;font-size:1.02rem;color:var(--ink)}
.author-box>div>span{display:block;font-size:.84rem;color:var(--gold);font-weight:600;margin-bottom:10px}
.author-box p{font-size:.89rem;color:var(--muted);margin:0}
@media(max-width:560px){.author-box{flex-direction:column;gap:14px}}

.pagination-row{margin-top:48px;display:flex;justify-content:center}
.pagination-row .nav-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pagination-row .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:42px;height:42px;padding:0 14px;border-radius:var(--r-pill);
  border:1.5px solid var(--line);background:#fff;color:var(--ink);
  font-size:.88rem;font-weight:600;transition:all .25s var(--ease);
}
.pagination-row .page-numbers:hover{border-color:var(--brand-600);color:var(--brand-700)}
.pagination-row .page-numbers.current{background:var(--brand-800);border-color:var(--brand-800);color:#fff}

/* Keep every nav item on a single line — wrapped labels were breaking
   the header layout and pushing the CTA off-screen */
.main-nav > ul > li > a{white-space:nowrap}
@media(min-width:961px){
  .main-nav ul{gap:2px}
  .main-nav a{padding:9px 13px}
}
@media(max-width:1200px) and (min-width:961px){
  .main-nav a{padding:8px 10px;font-size:.82rem}
  .header-cta .btn{padding:11px 18px;font-size:.8rem}
}

/* ==========================================================================
   19. Patient review submission form
   ========================================================================== */
.review-form .star-input{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:6px}
.review-form .star-input input{position:absolute;opacity:0;width:1px;height:1px}
.review-form .star-input label{
  cursor:pointer;color:var(--line);margin:0;padding:2px;
  transition:color .18s var(--ease),transform .18s var(--ease);
}
.review-form .star-input label .icon{width:30px;height:30px}
/* row-reverse means "earlier in DOM" sits to the right, so ~ selects
   the lower-value stars and fills everything up to the chosen one */
.review-form .star-input input:checked ~ label,
.review-form .star-input label:hover,
.review-form .star-input label:hover ~ label{color:var(--gold)}
.review-form .star-input label:hover{transform:scale(1.12)}
.review-form .star-input input:focus-visible + label{outline:2.5px solid var(--gold);outline-offset:3px;border-radius:4px}
.review-form .btn .icon{width:17px;height:17px}
.form-alert.ok strong{color:inherit}

/* Pending-review notice on the reviews page */
.moderation-note{
  display:flex;gap:12px;align-items:flex-start;margin-top:18px;
  font-size:.84rem;color:var(--muted);line-height:1.6;
}
.moderation-note .icon{width:17px;height:17px;color:var(--brand-600);flex-shrink:0;margin-top:3px}

/* Mobile: submenu is inline, so drop the desktop offset and bridge */
@media(max-width:960px){
  .main-nav .sub-menu{margin-top:0;min-width:0;align-items:stretch}
  .main-nav .sub-menu::before{display:none}
  .main-nav .sub-menu a{font-size:.95rem;padding:13px 14px}
}

/* ==========================================================================
   20. Blog — article accents
   Articles have no photography, so each carries a colour accent used on
   its cover panel, chip and hero.
   ========================================================================== */
.accent-1{--a1:#2F5C9E;--a2:#152C57}
.accent-2{--a1:#3E7BA6;--a2:#173F5F}
.accent-3{--a1:#C4A05A;--a2:#8A6A34}
.accent-4{--a1:#4A6FA5;--a2:#1E3C72}
.accent-5{--a1:#6B6BA8;--a2:#3A3A6B}
.accent-6{--a1:#2E7D8F;--a2:#123F4A}

/* --- Article card -------------------------------------------------------- */
.a-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s;
}
.a-card:hover{transform:translateY(-6px);box-shadow:var(--sh-lg);border-color:transparent}
.a-cover{
  display:block;aspect-ratio:16/8;position:relative;overflow:hidden;
  background:linear-gradient(140deg,var(--a1,var(--brand-600)),var(--a2,var(--brand-900)));
}
.a-cover img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.a-card:hover .a-cover img{transform:scale(1.05)}
.a-cover::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 78% 22%,rgba(255,255,255,.16),transparent 62%);
}
.a-cover-icon{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.9);
}
.a-cover-icon .icon{width:44px;height:44px}
.a-body{padding:26px 26px 28px;display:flex;flex-direction:column;gap:11px;flex:1}
.a-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.a-topic{
  font-size:.67rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
  color:var(--a1,var(--brand-600));
}
.a-time{display:inline-flex;align-items:center;gap:5px;font-size:.76rem;color:var(--muted);font-weight:500}
.a-time .icon{width:14px;height:14px}
.a-card h3{margin:0;font-size:1.14rem;line-height:1.42}
.a-card h3 a:hover{color:var(--brand-700)}
.a-card p{color:var(--muted);font-size:.92rem;margin:0;flex:1;line-height:1.65}

/* --- Featured article ---------------------------------------------------- */
.featured{
  display:grid;grid-template-columns:.85fr 1.15fr;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);
  overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.featured:hover{transform:translateY(-5px);box-shadow:var(--sh-lg)}
.featured-cover{
  position:relative;min-height:290px;
  background:linear-gradient(140deg,var(--a1),var(--a2));
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.featured-cover img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.featured-cover::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 72% 26%,rgba(255,255,255,.18),transparent 60%);
}
.featured-icon{position:relative;color:rgba(255,255,255,.92)}
.featured-icon .icon{width:74px;height:74px}
.featured-flag{
  position:absolute;top:20px;left:20px;z-index:2;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);
  backdrop-filter:blur(8px);color:#fff;
  font-size:.67rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  padding:7px 14px;border-radius:var(--r-pill);
}
.featured-body{display:flex;flex-direction:column;gap:14px;padding:40px 42px}
.featured-body h2{margin:0;font-size:clamp(1.5rem,2.4vw,2.1rem);line-height:1.2}
.featured-excerpt{color:var(--muted);font-size:1rem;line-height:1.7}
.featured-points{display:flex;flex-direction:column;gap:9px;margin-top:2px}
.featured-points span{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;color:var(--body);line-height:1.55}
.featured-points .icon{width:17px;height:17px;color:var(--a1);flex-shrink:0;margin-top:2px}
.featured .link-arrow{margin-top:6px}
@media(max-width:900px){
  .featured{grid-template-columns:1fr}
  .featured-cover{min-height:180px}
  .featured-body{padding:30px 26px}
}

/* --- Article page -------------------------------------------------------- */
.read-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:95;background:transparent}
.read-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--a1,var(--gold)),var(--gold-400))}

.article-hero{
  position:relative;isolation:isolate;overflow:hidden;color:#fff;padding:70px 0 62px;
  background:linear-gradient(150deg,var(--a2),var(--a1));
}
.article-hero::before{
  content:"";position:absolute;z-index:-1;width:620px;height:620px;border-radius:50%;
  right:-200px;top:-260px;background:radial-gradient(circle,rgba(255,255,255,.15),transparent 66%);
}
.article-hero h1{color:#fff;margin:14px 0 0;font-size:clamp(2rem,4vw,3.1rem);line-height:1.14}
.topic-chip{
  display:inline-flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);
  color:#fff;padding:8px 16px;border-radius:var(--r-pill);
  font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
}
.topic-chip .icon{width:15px;height:15px}
.article-byline{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:26px;
  color:rgba(255,255,255,.82);font-size:.86rem;
}
.article-byline .avatar{
  width:40px;height:40px;border-radius:50%;flex-shrink:0;
  background:rgba(255,255,255,.16);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.article-byline .avatar .icon{width:20px;height:20px}
.article-byline strong{display:block;color:#fff;font-size:.92rem}
.article-byline > span > span{font-size:.78rem;opacity:.82}
.article-byline .dot{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.4)}
.article-byline .stat{display:inline-flex;align-items:center;gap:7px}
.article-byline .stat .icon{width:15px;height:15px;opacity:.85}
@media(max-width:560px){.article-byline .dot{display:none}}

.article-body{padding:56px 0 76px}
.article-grid{display:grid;grid-template-columns:230px 1fr;gap:58px;align-items:start}
@media(max-width:980px){.article-grid{grid-template-columns:1fr;gap:34px}}

/* side rail */
.article-side{position:sticky;top:104px;display:flex;flex-direction:column;gap:26px}
@media(max-width:980px){.article-side{position:static;flex-direction:row;flex-wrap:wrap;gap:20px}}
.toc-title{
  font-family:var(--f-body);font-size:.68rem;font-weight:800;letter-spacing:.15em;
  text-transform:uppercase;color:var(--muted);margin:0 0 14px;
}
.toc ol{list-style:none;display:grid;gap:2px;counter-reset:toc}
.toc li{counter-increment:toc}
.toc a{
  display:block;padding:7px 0 7px 16px;font-size:.87rem;line-height:1.45;
  color:var(--muted);border-left:2px solid var(--line);transition:all .2s var(--ease);
}
.toc a:hover,.toc a.is-active{color:var(--a1);border-color:var(--a1);padding-left:20px}

.share-label{
  display:block;font-size:.68rem;font-weight:800;letter-spacing:.15em;
  text-transform:uppercase;color:var(--muted);margin-bottom:12px;
}
.share-row{display:flex;gap:9px}
.share-btn{
  width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  color:var(--muted);transition:all .22s var(--ease);padding:0;
}
.share-btn .icon{width:19px;height:19px}
.share-btn:hover{transform:translateY(-2px);color:#fff}
.share-btn.wa:hover{background:#25D366;border-color:#25D366}
.share-btn.fb:hover{background:#1877F2;border-color:#1877F2}
.share-btn.copy:hover{background:var(--brand-800);border-color:var(--brand-800)}
.copy-done{display:block;margin-top:10px;font-size:.78rem;color:var(--brand-600);font-weight:600}
/* class display would otherwise beat the UA [hidden] rule */
[hidden]{display:none!important}

/* takeaways */
.takeaways{
  background:var(--tint-50);border:1px solid var(--line);
  border-left:3px solid var(--a1);border-radius:var(--r-md);
  padding:26px 28px;margin-bottom:38px;
}
.takeaways h2{
  display:flex;align-items:center;gap:10px;font-family:var(--f-body);
  font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--a1);margin:0 0 14px;
}
.takeaways h2 .icon{width:16px;height:16px}
.takeaways ul{display:grid;gap:11px}
.takeaways li{
  position:relative;padding-left:20px;font-size:.97rem;line-height:1.62;color:var(--body);
}
.takeaways li::before{
  content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;
  border-radius:50%;background:var(--a1);
}

/* article typography — the part that decides whether people read on */
.article-prose{max-width:none;font-size:1.09rem;line-height:1.85;color:#33423C}
.article-prose > p:first-of-type{font-size:1.2rem;line-height:1.7;color:var(--ink)}
.article-prose h3{
  font-family:var(--f-display);font-weight:600;font-size:clamp(1.4rem,2.2vw,1.75rem);
  color:var(--ink);margin:2.1em 0 .55em;letter-spacing:-.012em;line-height:1.25;
  scroll-margin-top:110px;
}
.article-prose h3::before{
  content:"";display:block;width:34px;height:2px;border-radius:2px;
  background:var(--a1);margin-bottom:16px;
}
.article-prose p{margin:0 0 1.35em}
.article-prose strong{color:var(--ink);font-weight:700}
.article-prose ul,.article-prose ol{margin:0 0 1.5em 0;padding-left:1.35em;list-style:disc}
.article-prose li{margin-bottom:.6em}
@media(max-width:660px){.article-prose{font-size:1.04rem}.article-prose > p:first-of-type{font-size:1.12rem}}

.article-cta{
  display:flex;gap:20px;margin-top:46px;padding:30px 30px 32px;
  background:linear-gradient(150deg,var(--tint-50),var(--tint-100));
  border:1px solid var(--line);border-radius:var(--r-lg);
}
.article-cta .icon-badge{margin:0;flex-shrink:0}
.article-cta h3{font-size:1.16rem;margin-bottom:8px}
.article-cta p{color:var(--muted);font-size:.94rem;margin-bottom:18px}
@media(max-width:620px){.article-cta{flex-direction:column;gap:16px;padding:24px 22px}}

.blog-hero{padding-bottom:58px}
.blog-intro-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:center}
.blog-intro-grid .eyebrow{color:var(--gold-400)}
.blog-banner-image{border-radius:24px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.16)}
.blog-banner-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.article-banner-image{margin-top:32px;margin-bottom:42px}
.article-banner-image img{display:block;width:100%;height:auto;border-radius:22px;box-shadow:var(--sh-md)}
.featured-flag{background:var(--brand-800);border-color:transparent}
@media(max-width:800px){.blog-intro-grid{grid-template-columns:1fr;gap:30px}.blog-banner-image{max-width:600px}.article-banner-image{margin-top:24px;margin-bottom:28px}}

/* ==========================================================================
   21. Treatment page
   ========================================================================== */
.treatment-hero{padding-bottom:70px}
.t-hero-grid{max-width:760px}
.t-hero-grid-with-image{max-width:none;display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}
.treatment-banner-art{overflow:hidden;border-radius:24px;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.treatment-banner-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
@media(max-width:800px){.t-hero-grid-with-image{grid-template-columns:1fr;gap:28px}}

/* Quick facts bar overlapping the hero */
.facts-bar{margin-top:-40px;position:relative;z-index:5}
.facts-inner{
  background:#fff;border-radius:var(--r-lg);box-shadow:var(--sh-lg);
  display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;
}
.fact{
  display:flex;align-items:center;gap:12px;padding:22px 24px;
  border-right:1px solid var(--line-soft);font-size:.9rem;
  color:var(--body);font-weight:600;line-height:1.4;
}
.fact:last-child{border-right:none}
.fact .icon{width:21px;height:21px;color:var(--gold);flex-shrink:0}
@media(max-width:900px){
  .facts-inner{grid-template-columns:repeat(2,1fr)}
  .fact:nth-child(2){border-right:none}
  .fact:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}
}
@media(max-width:480px){
  .facts-inner{grid-template-columns:1fr}
  .fact{border-right:none;border-bottom:1px solid var(--line-soft)}
  .fact:last-child{border-bottom:none}
}

.block-heading{
  font-family:var(--f-display);font-size:clamp(1.45rem,2.3vw,1.9rem);
  margin:2.4em 0 1em;color:var(--ink);
}

/* "You may need this if" */
.signs-box{
  background:var(--tint-50);border:1px solid var(--line);
  border-left:3px solid var(--gold);border-radius:var(--r-md);
  padding:28px 30px;margin-top:40px;
}
.signs-box h2{
  display:flex;align-items:center;gap:10px;font-family:var(--f-body);
  font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);margin:0 0 16px;
}
.signs-box h2 .icon{width:16px;height:16px}
.signs-box ul{display:grid;gap:12px}
.signs-box li{display:flex;gap:12px;align-items:flex-start;font-size:.97rem;line-height:1.6;color:var(--body)}
.signs-box li .icon{width:18px;height:18px;color:var(--brand-600);flex-shrink:0;margin-top:3px}
.signs-note{margin:18px 0 0;font-size:.87rem;color:var(--muted);font-style:italic}

/* Procedure steps */
.proc-steps{display:grid;gap:4px;counter-reset:proc}
.proc-step{display:flex;gap:20px;padding:22px 0;border-bottom:1px solid var(--line-soft)}
.proc-step:last-child{border-bottom:none}
.proc-num{
  width:38px;height:38px;flex-shrink:0;border-radius:50%;
  background:linear-gradient(145deg,var(--brand-700),var(--brand-900));
  color:var(--gold-400);display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:.92rem;
}
.proc-step h3{font-size:1.08rem;margin-bottom:7px}
.proc-step p{color:var(--muted);font-size:.95rem;margin:0;line-height:1.7}

/* Aftercare */
.aftercare-box{
  background:linear-gradient(150deg,var(--tint-50),var(--tint-100));
  border:1px solid var(--line);border-radius:var(--r-lg);
  padding:30px 32px;margin-top:44px;
}
.aftercare-box h2{
  display:flex;align-items:center;gap:10px;font-family:var(--f-body);
  font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--brand-600);margin:0 0 16px;
}
.aftercare-box h2 .icon{width:16px;height:16px}
@media(max-width:620px){.signs-box,.aftercare-box{padding:24px 20px}}

/* ==========================================================================
   Booking panel (header CTA)
   ========================================================================== */
body.booking-open{overflow:hidden}
.booking-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:start center;padding:34px 18px;overflow-y:auto;overscroll-behavior:contain}
.booking-backdrop{position:fixed;inset:0;background:rgba(8,21,46,.72);backdrop-filter:blur(3px);animation:booking-fade .2s ease}
.booking-dialog{position:relative;width:100%;max-width:560px;background:var(--brand-950);border-radius:var(--r-lg);padding:38px 34px 34px;box-shadow:0 30px 80px rgba(0,0,0,.45);animation:booking-rise .24s cubic-bezier(.2,.7,.3,1)}
.booking-close{position:absolute;top:14px;right:16px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;transition:background .2s}
.booking-close:hover{background:rgba(255,255,255,.18)}
.booking-head{margin-bottom:22px}
.booking-head h2{color:#fff;font-size:1.75rem;margin:12px 0 10px}
.booking-head p{color:var(--on-dark-muted,#8FAEA4);font-size:.92rem;line-height:1.65;max-width:42ch}
.booking-quick{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.booking-dialog .form-card{padding:26px 24px}
.booking-dialog .form-card h3{margin-top:0}
@keyframes booking-fade{from{opacity:0}to{opacity:1}}
@keyframes booking-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(max-width:560px){
  .booking-overlay{padding:0}
  .booking-dialog{max-width:none;min-height:100%;border-radius:0;padding:30px 20px 40px}
}
@media(prefers-reduced-motion:reduce){
  .booking-backdrop,.booking-dialog{animation:none}
}

/* ==========================================================================
   Responsive refinements — verified against 320-2560px in headless Chrome
   ========================================================================== */

/* --- Booking CTA shrinks to a circular icon button on narrow phones, so
       the logo, CTA and menu toggle all fit on a 320px screen. The brand
       block is also allowed to yield here: it is flex-shrink:0 by default,
       which forced the header wider than the viewport once the CTA was
       restored. --- */
@media(max-width:520px){
  .site-header .container{gap:10px}
  .brand{flex-shrink:1;min-width:0;gap:9px}
  .brand-text{min-width:0}
  .brand-text .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .brand-text .tagline{display:none}
}
@media(max-width:400px){
  .brand-logo{max-height:36px;max-width:96px}
}
@media(max-width:480px){
  .header-cta{gap:8px}
  .header-cta .btn{padding:0;width:42px;height:42px;border-radius:50%;justify-content:center;gap:0}
  .header-cta .btn .cta-label{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip-path:inset(50%);white-space:nowrap;
  }
  .header-cta .btn .icon{width:19px;height:19px}
}

/* --- Landscape phones: the utility bar costs 40px of a ~390px-tall
       viewport, so it is dropped when vertical space is scarce. --- */
@media(max-height:500px) and (orientation:landscape){
  .topbar{display:none}
  .hero{padding:56px 0 76px}
  .booking-overlay{padding:0}
  .booking-dialog{min-height:100%;border-radius:0}
}

/* --- Legibility floor. Uppercase micro-labels were rendering as small as
       8.5px, below the point where they can be comfortably read. --- */
.brand-text .tagline{font-size:.64rem}
@media(max-width:420px){
  .brand-text .tagline{font-size:.6rem;letter-spacing:.1em}
  .brand-text .name{font-size:1.3rem}
}
.eyebrow{font-size:.72rem}
.a-topic{font-size:.72rem}

/* On phones the decorative micro-labels are lifted to 12px, the point
   below which mobile usability checks flag text as too small to read. */
@media(max-width:900px){
  .eyebrow,.a-topic,.f-brand .tagline,.fs-label,.float-card span,.float-card strong{
    font-size:.75rem;
  }
}
@media(max-width:660px){
  .site-footer,.site-footer li a{font-size:.95rem}
  .site-footer h4,.site-footer h4 a{font-size:.8rem}
  /* The clinic phone numbers are the most tapped links on the site —
     they get readable type and a full-height tap area. */
  .topbar,.topbar a{font-size:.8rem}
  .topbar a{display:inline-flex;align-items:center;min-height:36px}
  .topbar .container{padding-block:4px}
}

/* --- Touch targets. On touch devices, inline text links get enough
       vertical padding to clear the ~44px comfortable-tap threshold
       without changing how the layout looks on a mouse-driven screen. --- */
@media(pointer:coarse){
  .site-footer li a,.main-nav a,.link-arrow,.crumbs a{
    display:inline-flex;align-items:center;min-height:44px;
  }
  .site-footer ul{gap:2px}
  .fs-link{width:46px;height:46px}
}

/* --- Notched and gesture-bar phones: keep the sticky call bar clear of
       the home indicator, and let backgrounds run under it. --- */
@supports(padding:max(0px)){
  .mobile-bar{
    padding-bottom:max(10px,env(safe-area-inset-bottom));
    padding-left:max(12px,env(safe-area-inset-left));
    padding-right:max(12px,env(safe-area-inset-right));
  }
  @media(max-width:660px){
    body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  }
  .wa-float{margin-bottom:env(safe-area-inset-bottom)}
}

/* --- Very wide screens: the 1220px container leaves large monitors
       feeling sparse; allow a little more room past 1600px. --- */
@media(min-width:1600px){
  :root{--maxw:1340px}
}

/* --- Respect a user's larger default font size / browser zoom without
       the sticky header swallowing the viewport. --- */
@media(max-width:960px){
  .main-nav{max-height:calc(100dvh - 110px)}
}


/* ==========================================================================
   Motion — scroll entrance, nav and CTA polish
   --------------------------------------------------------------------------
   The .anim class is only on <html> when the visitor has NOT asked for
   reduced motion (set by an inline script in the head, before first paint),
   so everything below is opt-in and content is never hidden from someone
   who would not see it revealed.

   Nothing inside .hero is revealed: the hero heading and portrait are the
   largest-contentful-paint candidates, and starting them at opacity 0 would
   push LCP back by the length of the animation. Motion begins below the fold.
   ========================================================================== */

/* Keep this list in sync with REVEAL_SELECTOR in assets/js/main.js */
.anim :is(.section-head,.card,.t-card,.r-card,.a-card,.info-item,
          .step,.stat,.featured,.branch-card,.faq-item,.timeline li,
          .split>div,.form-card,.cred-list li){
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s var(--ease,cubic-bezier(.2,.7,.3,1)),
             transform .55s var(--ease,cubic-bezier(.2,.7,.3,1));
  will-change:opacity,transform;
}
/* Never animate the hero — see note above. */
.anim .hero :is(.split>div,.stat,.card){opacity:1;transform:none}

/* The booking panel is display:none until it is opened, so an intersection
   observer never fires for anything inside it. Its contents must therefore
   never start hidden, or the form would open blank. */
.anim .booking-overlay :is(.form-card,.section-head,.card,.split>div){
  opacity:1;transform:none;
}

/* The class is doubled deliberately. The hiding rule above is built with
   :is(), which inherits the specificity of its most specific argument —
   `.timeline li` and `.split>div` are two components each, scoring the
   whole list (0,2,1). A single `.anim .is-in` scores (0,2,0) and loses,
   leaving revealed elements stuck at opacity 0. Doubling the class takes
   this to (0,3,0) so the revealed state always wins. */
.anim .is-in.is-in{opacity:1;transform:none;will-change:auto}

/* Section headings lead their section by a beat. */
.anim .section-head{transition-duration:.6s}

/* --- Primary CTA: a slow gold sweep, so the main booking action has a
       little life without blinking at the visitor. --- */
.btn-gold{position:relative;overflow:hidden}
.btn-gold::after{
  content:"";position:absolute;top:0;left:-140%;width:60%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);
  transform:skewX(-18deg);pointer-events:none;
}
.anim .btn-gold:hover::after{animation:cta-sweep .75s ease-out}
@keyframes cta-sweep{to{left:140%}}

/* --- Nav: underline grows from the centre on hover and stays for the
       current page, which reads as orientation rather than decoration. --- */
.main-nav a{position:relative}
.main-nav a::after{
  content:"";position:absolute;left:50%;right:50%;bottom:4px;height:2px;
  background:var(--gold);border-radius:2px;
  transition:left .25s var(--ease,ease),right .25s var(--ease,ease);
}
.main-nav a:hover::after,
.main-nav .current-menu-item>a::after{left:12px;right:12px}
@media(max-width:960px){.main-nav a::after{display:none}}

/* --- The floating WhatsApp button breathes once in a while: enough to
       catch the eye on a long page, slow enough not to nag. --- */
@keyframes wa-breathe{
  0%,88%,100%{transform:scale(1);box-shadow:0 10px 30px rgba(37,211,102,.34)}
  92%{transform:scale(1.07);box-shadow:0 14px 38px rgba(37,211,102,.5)}
}
.anim .wa-float{animation:wa-breathe 6s ease-in-out 3s infinite}
.anim .wa-float:hover{animation-play-state:paused}

/* --- Sticky header settles slightly when the page is scrolled. --- */
.site-header{transition:box-shadow .3s,padding .3s}
.site-header.scrolled .container{padding-block:10px}

/* --- Anchor jumps glide rather than snap (the global reduced-motion rule
       already forces this back to `auto` when asked). --- */
html{scroll-behavior:smooth}
:target{scroll-margin-top:110px}

/* Reduced motion: belt and braces. The .anim class is already withheld,
   but if a visitor changes the setting after load, nothing stays hidden. */
@media(prefers-reduced-motion:reduce){
  .anim :is(.section-head,.card,.t-card,.r-card,.a-card,.info-item,
            .step,.stat,.featured,.branch-card,.faq-item,.timeline li,
            .split>div,.form-card,.cred-list li){
    opacity:1!important;transform:none!important;
  }
  .anim .wa-float{animation:none}
  .anim .btn-gold:hover::after{animation:none}
}
