/* The Orbit Dental Care
   Tokens and contrast limits come from 02-Brand/03-Design-MD/DESIGN.md.
   Both fonts are self-hosted, so the site makes no outside requests. */

/* ---------- Fonts ---------- */
@font-face{font-family:Fraunces;font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/fraunces-500.woff2") format("woff2")}
@font-face{font-family:Poppins;font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/poppins-400.woff2") format("woff2")}
@font-face{font-family:Poppins;font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/poppins-500.woff2") format("woff2")}
@font-face{font-family:Poppins;font-weight:600;font-style:normal;font-display:swap;src:url("../fonts/poppins-600.woff2") format("woff2")}
@font-face{font-family:Poppins;font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/poppins-700.woff2") format("woff2")}

/* ---------- Tokens ---------- */
:root{
  --blue:#0A4C9E;        /* 8.3:1 on white. Safe for text and for fills */
  --deep:#1B3B92;
  --mid:#0590D2;         /* 3.5:1 on white. Large text only, never body copy */
  --cyan:#01A5E3;        /* 2.8:1 on white. Decoration only, never text */
  --lime:#87C244;        /* 2.1:1 on white. Fill only. Ink on lime is fine, white on lime is banned */
  --night:#06225F;
  --sky:#E8F3FF;
  --wa:#25D366;
  --ink:#0B1B3F;
  --muted:#4B5B7C;       /* 7.4:1 on white */
  --white:#fff;
  --line:#cddcf3;
  --line-sky:#b9d0ee;
  --on-night:#c9dbff;    /* 10.7:1 on night blue */

  --r-xs:6px;           /* focus rings only: 10px visibly pills a short text link */
  --r-sm:10px;
  --r-md:20px;
  --r-lg:32px;
  --r-pill:999px;

  --display:Fraunces,Georgia,"Times New Roman",serif;
  --body:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;

  --gutter:20px;
  --max:1160px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;font-family:var(--body);font-size:17px;line-height:1.65;
  color:var(--ink);background:var(--white);
  -webkit-tap-highlight-color:transparent;overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--display);font-weight:500;line-height:1.1;margin:0;letter-spacing:-.01em}
p,ul,ol,dl{margin:0}
button{font:inherit;color:inherit}
/* Cyan reads at only 2.8:1 on white, under the 3:1 that WCAG 1.4.11 asks of a
   focus indicator. Blue is 8.3:1 on white and white is 12.6:1 on night blue, so
   the ring switches colour with the ground instead of staying one unreadable hue. */
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:var(--r-xs)}
.hero :focus-visible,.cta :focus-visible,.page-hero :focus-visible,
.sec-night :focus-visible,.site-footer :focus-visible{outline-color:var(--white)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--white);color:var(--blue);padding:10px 16px;border-radius:var(--r-sm);font-weight:600;text-decoration:none}
.skip:focus{left:8px}
.icon{width:20px;height:20px;flex:none}
.sprite{display:none}

/* ---------- Icons ---------- */
/* Drawn for this clinic: no icon library carries dental treatments.
   Brand marks stay filled, because a logo should not be redrawn as an
   outline. Everything drawn for the set is outlined at one stroke weight. */
.ico-f{fill:currentColor}
.ico-o{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.c-ico{width:44px;height:44px;margin-bottom:14px;border-radius:50%;background:var(--sky);color:var(--blue);display:grid;place-items:center}
.c-ico svg{width:25px;height:25px}
.info dt,.panel-card dt,.creds-strip dt{display:flex;align-items:center;gap:8px}
.info dt svg,.panel-card dt svg,.creds-strip dt svg{width:16px;height:16px;flex:none}
.hours caption{display:flex;align-items:center;gap:8px;padding-bottom:10px;text-align:left;font-size:13.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--on-night);font-weight:500}
.hours caption svg{width:16px;height:16px;flex:none}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;padding:0 26px;border-radius:var(--r-pill);
  font:600 16px/1 var(--body);text-decoration:none;text-align:center;
  border:2px solid transparent;cursor:pointer;touch-action:manipulation;
  transition:transform .18s var(--ease),background-color .18s,color .18s,border-color .18s;
}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--blue);color:var(--white)}
.btn-light{background:var(--white);color:var(--blue)}
.btn-outline{background:transparent;border-color:currentColor;color:inherit}
.btn-wa{background:var(--wa);color:var(--night)}  /* ink-weight text on green, never white */
@media (hover:hover){
  .btn-primary:hover{background:var(--deep)}
  .btn-light:hover{background:var(--sky)}
  .btn-outline:hover{background:rgba(255,255,255,.14)}
  /* WhatsApp's own darker green, not a palette colour, so no token: it has
     to stay in step with --wa rather than with the brand. */
  .btn-wa:hover{background:#1fbb5a}
}
.actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px}

/* ---------- Open-now badge ---------- */
.badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:9px 18px 9px 14px;border-radius:var(--r-pill);
  background:var(--sky);color:var(--ink);
  font-size:15px;font-weight:500;line-height:1.3;
}
.badge .dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--muted)}
.badge[data-state="open"] .dot{background:var(--lime)}      /* lime as a fill, not as text */
.badge[data-state="closed"] .dot{background:var(--muted)}
.badge .when{color:var(--muted)}
.badge:empty{display:none}
/* Every placement sets its own top margin, because p is reset to margin:0.
   These two were missed and sat flush against the line above. Matched to the
   24px the neighbouring groups already use, which keeps the badge grouped with
   the details above it rather than drifting toward the 32px .actions below.
   Sibling selectors rather than section ones: Contact's badge also sits inside
   .split, and anything scoped that way would override its own 22px panel rhythm. */
.info+.badge,.body+.badge{margin-top:24px}
.on-night .badge,.sec-night .badge,.page-hero .badge,.hero .badge{background:rgba(255,255,255,.12);color:var(--white)}
.on-night .badge .when,.sec-night .badge .when,.page-hero .badge .when,.hero .badge .when{color:var(--on-night)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);
  backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--line)
}
.site-header::after{
  content:"";position:absolute;left:0;right:0;top:100%;height:24px;
  pointer-events:none;opacity:0;transition:opacity .25s var(--ease);
  background:linear-gradient(rgba(6,34,95,.09),rgba(6,34,95,0))
}
.site-header.scrolled::after{opacity:1}
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px}
.brand{display:block;flex:none}
.brand img{height:46px;width:auto}
.nav{display:none;gap:28px;align-items:center}
.nav a{text-decoration:none;font-weight:500;font-size:15px;padding:8px 0;border-bottom:2px solid transparent;transition:border-color .18s,color .18s}
.nav a[aria-current="page"]{border-color:var(--cyan)}
@media (hover:hover){.nav a:hover{color:var(--blue);border-color:var(--cyan)}}
.bar-actions{display:flex;align-items:center;gap:12px}
/* The badge now sits in the bar at every width, to the left of the menu button,
   so the menu's duplicate copy is gone. On phones there is no room for the
   detail, so only the state shows: "Closed", "Open now". The detail is already
   its own span in main.js, so this is a hide rather than a second string. */
@media (max-width:899px){.bar-actions .badge .when{display:none}}
/* Measured: at 320px the logo, badge and menu button overrun the bar by 5px.
   The badge is the newcomer, so it gives up the padding rather than the logo
   shrinking. 360px and wider are unaffected. */
@media (max-width:359px){.bar-actions .badge{padding:7px 12px 7px 10px}}
.menu-btn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--white);cursor:pointer}
.menu-btn span,.menu-btn span::before,.menu-btn span::after{display:block;width:18px;height:2px;background:var(--ink);border-radius:var(--r-pill);content:"";transition:transform .2s var(--ease),opacity .2s}
.menu-btn span{position:relative}
.menu-btn span::before{position:absolute;top:-6px}
.menu-btn span::after{position:absolute;top:6px}
.menu-btn[aria-expanded="true"] span{background:transparent}
.menu-btn[aria-expanded="true"] span::before{transform:translateY(6px) rotate(45deg)}
.menu-btn[aria-expanded="true"] span::after{transform:translateY(-6px) rotate(-45deg)}
.mobile-nav{display:none;border-top:1px solid var(--line);padding:10px var(--gutter) 22px;background:var(--white)}
.mobile-nav.open{display:block}
.mobile-nav a{display:block;padding:14px 2px;text-decoration:none;font-weight:500;border-bottom:1px solid var(--line)}
.mobile-nav a[aria-current="page"]{color:var(--blue)}
@media (min-width:900px){
  .nav{display:flex}
  .menu-btn,.mobile-nav{display:none!important}
}

/* ---------- Orbit rings (decoration) ---------- */
.rings{position:absolute;pointer-events:none;color:var(--cyan)}
.rings svg{width:100%;height:100%}

/* ---------- Hero ---------- */
.hero{
  position:relative;overflow:hidden;color:var(--white);
  background:radial-gradient(1100px 680px at 86% 8%,var(--blue) 0%,transparent 62%),
             linear-gradient(152deg,var(--deep) 0%,var(--night) 100%);
}
.hero .rings{right:-280px;top:-180px;width:880px;height:880px;opacity:.42}
.hero-grid{position:relative;display:grid;gap:40px;padding-top:56px;padding-bottom:68px}
.hero h1{font-size:clamp(40px,8vw,78px);max-width:14ch}
.hero .lead{margin-top:22px;max-width:36ch;font-size:19px;color:var(--sky)}
.hero .lead strong{color:var(--white);font-weight:600}
.hero .badge{margin-top:28px}
@media (min-width:900px){
  .hero-grid{grid-template-columns:1.1fr .9fr;align-items:center;padding-top:88px;padding-bottom:96px;gap:64px}
}

/* ---------- Image frames: rounded rectangles, native aspect, never cropped ---------- */
.frame{
  overflow:hidden;border-radius:var(--r-lg);background:var(--sky);
  box-shadow:0 18px 44px rgba(6,34,95,.14);
}
.frame img{width:100%;height:auto}
.frame-sm{border-radius:var(--r-md)}
.hero .frame{box-shadow:0 24px 60px rgba(4,18,52,.4);background:rgba(255,255,255,.08)}
.portrait{max-width:420px;margin-inline:auto}
figure{margin:0}
figcaption{margin-top:12px;font-size:14.5px;color:var(--muted)}

/* ---------- Sections ---------- */
.sec{position:relative;padding:60px 0}
@media (min-width:900px){.sec{padding:92px 0}}
.sec-sky{background:var(--sky)}
.sec-night{background:var(--night);color:var(--white);overflow:hidden}
.sec-night .rings{left:-240px;bottom:-300px;width:620px;height:620px;opacity:.2}
/* The orbit motif carries two solid satellite dots. On a phone this section
   is one narrow column and the larger dot lands under the clinic timings,
   where a 6px filled circle reads as a smudge rather than as decoration.
   The thin arcs are texture and never do this, so only the dots go. */
@media (max-width:639px){.sec-night .rings circle[fill="currentColor"]{display:none}}
.head{max-width:640px;margin-bottom:38px}
.head h2{font-size:clamp(30px,4.8vw,52px)}
.head p{margin-top:15px;color:var(--muted)}
.sec-night .head p{color:var(--on-night)}
.sec-foot{margin-top:38px}

/* ---------- Credentials strip ---------- */
.creds-strip{
  display:grid;gap:1px;background:var(--line-sky);
  border:1px solid var(--line-sky);border-radius:var(--r-md);overflow:hidden;
}
.creds-strip div{background:var(--white);padding:22px 24px}
.creds-strip dt{font-size:13.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:500}
.creds-strip dd{margin:6px 0 0;font-family:var(--display);font-size:21px;line-height:1.25}
/* Two up, not four. The strip used to run the full width of the page; it now
   sits in one column of the doctor block, where four cells would be too narrow
   for "Dr. R. Ahmed Dental College and Hospital" to settle. */
@media (min-width:560px){.creds-strip{grid-template-columns:repeat(2,1fr)}}

/* ---------- Service cards ---------- */
.cards{display:grid;gap:20px}
@media (min-width:640px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (min-width:980px){.cards-3{grid-template-columns:repeat(3,1fr)}}
.card{
  display:flex;flex-direction:column;position:relative;background:var(--white);
  border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;
  transition:transform .18s var(--ease);
}
/* The lift shadow sits on a layer of its own and fades in. Transitioning
   box-shadow itself would repaint the card on every frame of the hover. */
.card::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:0 18px 40px rgba(6,34,95,.12);opacity:0;
  transition:opacity .18s var(--ease)
}
/* The image sits 12px in from the card edge. The card is 32px round, so an
   inner radius of 32 - 12 = 20px, the medium token, makes the two corners
   properly concentric instead of merely close. */
.card .frame{padding:12px;background:transparent;border-radius:0;box-shadow:none}
.card .frame img{display:block;border-radius:var(--r-md)}
.card-body{padding:24px 24px 26px;display:flex;flex-direction:column;flex:1}
.card h3{font-size:23px}
.card p{margin-top:9px;color:var(--muted);font-size:16px}
.card .more{margin-top:auto;padding-top:18px;font-weight:600;font-size:15.5px;color:var(--blue);text-decoration:none}
@media (hover:hover){
  .card:hover{transform:translateY(-4px)}
  .card:hover::after{opacity:1}
  .card .more:hover{text-decoration:underline;text-underline-offset:4px}
}
.sec-sky .card{border-color:var(--line-sky)}

/* ---------- Doctor ---------- */
.doctor{display:grid;gap:40px;align-items:center}
.doctor h2{font-size:clamp(32px,4.8vw,54px)}
.doctor .role{margin-top:12px;color:var(--muted);font-size:18px}
.doctor p+p{margin-top:14px}
.body{margin-top:18px;color:var(--muted)}
.cred-list{margin:26px 0 0;padding:0 0 0 20px;list-style:none;border-left:3px solid var(--cyan)}
.cred-list li{padding:5px 0}
.cred-list b{font-weight:600}
@media (min-width:900px){.doctor{grid-template-columns:.85fr 1.15fr;gap:72px}}
/* Home has no portrait, so the facts strip takes the second column instead. The
   ratio is the mirror of About's: there the wide side is the prose beside a
   portrait, here it is the prose beside a narrower block of short facts. */
@media (min-width:900px){.doctor-facts{grid-template-columns:1.15fr .85fr}}

/* ---------- Chips (areas of expertise) ---------- */
.chips{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none}
.chip svg{width:18px;height:18px;flex:none}
.chip{display:inline-flex;align-items:center;gap:9px;color:var(--blue);padding:11px 20px;border-radius:var(--r-pill);background:var(--white);border:1px solid var(--line-sky);font-weight:500;font-size:15.5px}

/* ---------- Generic two-column split ---------- */
.split{display:grid;gap:36px;align-items:center}
.split>div>.frame{margin-top:20px}
@media (min-width:900px){.split{grid-template-columns:1fr 1fr;gap:64px}}

/* ---------- Visit / info ---------- */
.visit{display:grid;gap:34px;position:relative}
@media (min-width:900px){.visit{grid-template-columns:1fr 1fr;gap:72px}}
.info dt{font-size:13.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--on-night);font-weight:500;margin-top:24px}
.info dt:first-child{margin-top:0}
.info dd{margin:5px 0 0;font-size:18.5px}
.info a{text-decoration:underline;text-underline-offset:4px}
.hours{width:100%;border-collapse:collapse;align-self:start}
.hours th,.hours td{text-align:left;padding:15px 0;border-bottom:1px solid rgba(255,255,255,.18);font-weight:400}
.hours th{font-weight:500}
.hours .closed{color:var(--on-night)}

/* ---------- FAQ ---------- */
.faq{max-width:780px}
.faq details{border-bottom:1px solid var(--line-sky)}
.faq summary{list-style:none;cursor:pointer;padding:21px 46px 21px 0;font-weight:500;font-size:18px;position:relative;transition:color .18s}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:10px;top:50%;width:14px;height:14px;margin-top:-7px;border-right:2px solid var(--blue);border-bottom:2px solid var(--blue);transform:rotate(45deg) translateY(-3px);transition:transform .22s var(--ease)}
.faq details[open] summary::after{transform:rotate(225deg) translateY(-3px)}
.faq details p{padding:0 0 24px;color:var(--muted);max-width:62ch}
@media (hover:hover){.faq summary:hover{color:var(--blue)}}

/* ---------- Tabs ---------- */
.tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:34px;padding:0;list-style:none}
.tab{
  min-height:46px;padding:0 20px;border-radius:var(--r-pill);
  background:var(--white);border:1px solid var(--line-sky);
  font:500 15.5px/1 var(--body);color:var(--ink);cursor:pointer;
  transition:background-color .18s,color .18s,border-color .18s;
}
.tab[aria-selected="true"]{background:var(--blue);border-color:var(--blue);color:var(--white)}
@media (hover:hover){.tab:hover{border-color:var(--blue);color:var(--blue)}.tab[aria-selected="true"]:hover{color:var(--white)}}
.panel[hidden]{display:none}
.panel+.panel{margin-top:52px}            /* spacing only matters with scripts blocked */
.group{font-size:clamp(24px,3vw,34px);margin-bottom:8px}
.group-note{margin-bottom:22px;color:var(--muted)}

/* ---------- Carousel ---------- */
.carousel{position:relative}
.car-track{
  display:grid;grid-auto-flow:column;grid-auto-columns:88%;gap:22px;
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding:4px;margin:-4px -4px 0;
  /* The scrollbar is hidden, not disabled. The track still scrolls by swipe,
     wheel and keyboard; the arrows and dots carry the visible affordance. */
  scrollbar-width:none;
}
.car-track>*{scroll-snap-align:start}
.car-track::-webkit-scrollbar{display:none}
@media (min-width:640px){.car-track{grid-auto-columns:46%}}
@media (min-width:980px){.car-track{grid-auto-columns:31.5%}}
.car-tools{display:flex;align-items:center;gap:10px;margin-top:16px;flex-wrap:wrap}
.car-btn{
  width:46px;height:46px;flex:none;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line-sky);border-radius:50%;background:var(--white);cursor:pointer;
  transition:background-color .18s,border-color .18s,color .18s;
}
.car-btn svg{width:18px;height:18px}
.car-btn[disabled]{opacity:.38;cursor:default}
@media (hover:hover){.car-btn:not([disabled]):hover{background:var(--blue);border-color:var(--blue);color:var(--white)}}
.car-dots{display:flex;gap:0;margin:0 auto 0 6px;padding:0;list-style:none}
/* The visible dot is still a 30x4 bar, but the button around it is 44x44 so the
   touch target clears the 44px floor. The hit areas tile edge to edge rather than
   overlapping, which is why the list gap drops to 0 and the bars are inset 7px:
   the 14px the eye reads between bars is the padding, not a gap. */
.car-dot{width:44px;height:44px;border:0;padding:0;background:none;cursor:pointer;
  position:relative;display:block;border-radius:var(--r-sm)}
.car-dot::before{content:"";position:absolute;left:7px;right:7px;top:50%;margin-top:-2px;
  height:4px;border-radius:var(--r-pill);background:var(--line-sky);transition:background-color .2s}
.car-dot[aria-current="true"]::before{background:var(--blue)}

/* ---------- CTA band ---------- */
.cta{background:linear-gradient(150deg,var(--blue),var(--deep));color:var(--white);overflow:hidden}
.cta .wrap{display:grid;gap:26px;align-items:center;padding-top:60px;padding-bottom:60px}
.cta h2{font-size:clamp(30px,4.8vw,52px);max-width:18ch}
.cta p{margin-top:12px;color:var(--sky)}
.cta .actions{margin-top:0}
@media (min-width:900px){
  .cta .wrap{grid-template-columns:1.2fr .8fr;padding-top:84px;padding-bottom:84px}
  .cta .actions{justify-content:flex-end}
}

/* ---------- Inner page hero ---------- */
.page-hero{position:relative;overflow:hidden;color:var(--white);background:linear-gradient(150deg,var(--deep),var(--night))}
.page-hero .wrap{position:relative;padding-top:56px;padding-bottom:64px}
.page-hero h1{font-size:clamp(34px,6.5vw,66px);max-width:18ch}
.page-hero p{margin-top:17px;max-width:48ch;color:var(--sky);font-size:18px}
.page-hero .rings{right:-230px;top:-230px;width:620px;height:620px;opacity:.4}

/* ---------- Orbit rings on small screens ---------- */
/* The motif is sized for a desktop canvas. At 880px it is more than twice a
   390px viewport wide, so on a phone a single arc crosses the headline and the
   circle never closes: it stops reading as an orbit and starts reading as a
   stray line. Scaled down and pulled into the top-right corner the shape closes
   again. These rules sit after the three definitions above on purpose — equal
   specificity, so source order is what makes them win. */
/* The art is centred in a 400x400 viewBox and its widest ellipse has rx 190, so
   it fills 95% of whatever box it is given. That makes the maths exact: a 360px
   ring is 342px of drawing, and right:-90/top:-120 puts its centre at roughly
   (300,60) on a 390px screen — the top-right corner — with the arcs clearing the
   headline's first two lines. The opacity drops a little so the arcs that do
   cross type read as texture behind it rather than as lines through it. */
@media (max-width:639px){
  .hero .rings{right:-90px;top:-120px;width:360px;height:360px;opacity:.3}
  .page-hero .rings{right:-80px;top:-100px;width:300px;height:300px;opacity:.3}
  /* Not a hero, so this one keeps its bottom-left corner; moving it top-right
     would run it straight into the section heading. The offsets shrink with the
     ring, otherwise a 360px circle at left:-240px is a 120px sliver. */
  .sec-night .rings{left:-130px;bottom:-150px;width:360px;height:360px}
}

/* ---------- Contact action cards ---------- */
.act-cards{display:grid;gap:18px}
@media (min-width:860px){.act-cards{grid-template-columns:repeat(3,1fr)}}
.act{
  display:flex;flex-direction:column;align-items:flex-start;
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:28px;box-shadow:0 12px 30px rgba(10,76,158,.07);
}
.act .ring{width:52px;height:52px;border-radius:50%;background:var(--sky);display:grid;place-items:center;color:var(--blue);margin-bottom:18px}
.act .ring svg{width:24px;height:24px}
.act h3{font-size:22px}
.act p{margin-top:8px;color:var(--muted);font-size:16px}
.act .btn{margin-top:20px;align-self:stretch}
/* 16px, not the old 4px: these are 46px tall controls, and at 4px they sat
   tighter to the heading and the body text above them than plain paragraphs do.
   Just over the footer heading's own 13px, which is the nearest rhythm. */
.social{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.social a{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:0 20px;border:1px solid var(--line);border-radius:var(--r-pill);text-decoration:none;font-weight:500;font-size:15.5px}
.social svg{width:19px;height:19px}
@media (hover:hover){.social a:hover{border-color:var(--blue);color:var(--blue)}}

/* ---------- Info panel (contact) ---------- */
.panel-card{background:var(--white);border:1px solid var(--line-sky);border-radius:var(--r-lg);padding:28px}
.panel-card dt{font-size:13.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:500;margin-top:22px}
.panel-card dt:first-child{margin-top:0}
.panel-card dd{margin:5px 0 0;font-size:18px}
.panel-card a{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.panel-card .badge{margin-top:22px}

/* ---------- Prose (privacy policy) ---------- */
.prose{max-width:72ch}
.prose h2{font-size:clamp(25px,3.2vw,34px);margin-top:46px}
.prose h2:first-child{margin-top:0}
.prose p,.prose ul{margin-top:15px;color:var(--muted)}
.prose ul{padding-left:22px}
.prose li{margin-top:8px}
.prose strong{color:var(--ink);font-weight:600}
.prose a{color:var(--blue)}
.updated{display:inline-block;margin-bottom:8px;font-size:14.5px;color:var(--muted)}

/* ---------- Footer ---------- */
.site-footer{background:var(--night);color:var(--on-night);padding:54px 0 36px}
.foot{display:grid;gap:34px}
.foot-logo{background:var(--white);padding:9px 13px;border-radius:var(--r-sm);height:auto;width:fit-content}
.foot-logo img{height:44px;width:auto}
.site-footer h2{font:600 14px/1.4 var(--body);color:var(--white);letter-spacing:.04em;text-transform:uppercase;margin-bottom:13px}
.site-footer ul{list-style:none;margin:0;padding:0}
/* The padding moves onto the link so the spacing between rows is clickable too,
   taking each one from 24px to 32px tall. Nothing moves on screen. */
.site-footer li{padding:0}
.site-footer li a{display:inline-block;padding:4px 0}
.site-footer a{text-decoration:none}
.site-footer p{margin-top:8px}
.foot-note{margin-top:16px;font-size:15px}
@media (hover:hover){.site-footer a:hover{color:var(--white);text-decoration:underline;text-underline-offset:4px}}
@media (min-width:900px){.foot{grid-template-columns:1.4fr 1fr 1.2fr 1.1fr}}
.fine{
  margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);
  display:flex;flex-direction:column;align-items:center;gap:10px;
  font-size:14px;text-align:center;
}
.fine nav{display:flex;align-items:center;gap:10px}
/* Laid out as flex items these two stop being inline text, so they lose the
   in-a-sentence exemption and need real height of their own. */
.fine nav a{padding:6px 2px}
@media (min-width:720px){.fine{flex-direction:row;justify-content:space-between;text-align:left}}

/* ---------- Floating action: the same circle at every width ---------- */
/* The full-width sticky bar that used to run along the bottom of a phone is
   gone at the client's request: one WhatsApp control, the same round button
   everywhere, bottom-right. Nothing is fixed across the full width any more, so
   the page has no bar height to reserve and --bar-h went with the bar. Calling
   is unaffected — the tel: links in the footer, the visit block and the contact
   panel have been the call path since the bar lost its Call half. */
.wa-float{
  position:fixed;z-index:60;
  right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));
  width:62px;height:62px;border-radius:50%;background:var(--wa);color:var(--night);
  display:grid;place-items:center;box-shadow:0 10px 28px rgba(6,34,95,.34);
  transition:transform .2s var(--ease);
}
.wa-float svg{width:32px;height:32px}
.wa-float:active{transform:scale(.94)}
@media (hover:hover){.wa-float:hover{transform:scale(1.06)}}

/* ---------- Motion ---------- */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes frame-in{from{opacity:0;transform:translateY(26px) scale(.975)}to{opacity:1;transform:none}}
@keyframes pop-in{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes drift{to{transform:rotate(360deg)}}
.hero h1,.page-hero h1{animation:rise .7s var(--ease) both}
.hero .lead,.page-hero p{animation:rise .7s .1s var(--ease) both}
.hero .actions{animation:rise .7s .2s var(--ease) both}
.hero .badge{animation:rise .7s .3s var(--ease) both}
.hero .frame{animation:frame-in .9s .15s var(--ease) both}
.rings svg{animation:drift 150s linear infinite}
.wa-float{animation:pop-in .3s .6s var(--ease) both}

/* Scroll reveals. The hidden state hangs off data-js, which the head
   script sets before the first paint, so with scripts blocked every section
   is visible from the start rather than stuck at zero opacity.
   Transitions, not keyframes, so a stagger is a delay and nothing restarts. */
html[data-js="on"] .reveal,
html[data-js="on"] .reveal-group>*{
  opacity:0;transform:translateY(16px);
  transition:opacity .45s var(--ease),transform .45s var(--ease)
}
html[data-js="on"] .reveal.in,
html[data-js="on"] .reveal-group.in>*{opacity:1;transform:none}

/* The stagger. Capped at the sixth child so a long row never trails. */
html[data-js="on"] .reveal-group.in>:nth-child(2){transition-delay:.07s}
html[data-js="on"] .reveal-group.in>:nth-child(3){transition-delay:.14s}
html[data-js="on"] .reveal-group.in>:nth-child(4){transition-delay:.21s}
html[data-js="on"] .reveal-group.in>:nth-child(5){transition-delay:.28s}
html[data-js="on"] .reveal-group.in>:nth-child(n+6){transition-delay:.35s}

/* A reduced-motion setting makes the site completely static. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .car-track{scroll-behavior:auto}
  .reveal,.reveal-group>*{opacity:1!important;transform:none!important}
}
