/* WordPress-specific additions on top of the ported static design (site.css). */
.admin-bar .header{inset-block-start:32px}
@media(max-width:782px){.admin-bar .header{inset-block-start:46px}}
@media(max-width:600px){.admin-bar .header{inset-block-start:0}}

/* Before/after uses two real <img> attachments instead of one composite background. */
.comparison-photo img{width:100%;height:100%;object-fit:cover}

.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}

.social-slots a{width:28px;height:28px;border:1px solid #ffffff40;display:grid;place-items:center;border-radius:50%;color:#cce7f8;margin:0}
.social-slots a:hover{background:#ffffff1a;text-decoration:none}

.footer .footer-item{display:flex;align-items:flex-start;gap:9px;margin-block:12px}
.footer .footer-item .icon{margin-top:2px;color:#8fc4e8}
.footer address.footer-item{color:#d0e4f4;font-size:12px;font-style:normal;line-height:1.7}

/* Editor-authored content (posts, text blocks, intro columns). */
.entry-content>*{margin-block:25px}
.entry-content>:first-child{margin-top:0}
.entry-content>:last-child{margin-bottom:0}
.entry-content h2{font-size:35px;margin-top:45px}
.entry-content h3{margin-top:35px}
.entry-content ul,.entry-content ol{color:var(--muted);padding-inline-start:22px}
.entry-content li{margin-block:8px}
.entry-content a{color:var(--blue);text-decoration:underline}
.entry-content img{border-radius:6px;height:auto}
.entry-content figcaption{font-size:11px;color:var(--muted);padding-top:10px}
.entry-content blockquote{border-inline-start:2px solid var(--sky);padding-inline-start:20px}
.intro-grid .entry-content .button{margin-top:10px;text-decoration:none;color:#fff}
.article .entry-content{margin-block:40px}
.article>h2{margin-bottom:20px}
.text-block{max-width:850px}
.text-block h2{margin-bottom:30px}
.text-block .button{margin-top:30px}
.stub-content .entry-content{margin:30px 0}
@media(max-width:640px){.entry-content h2{font-size:28px}}

.pagination{margin-top:60px}
.pagination .nav-links{display:flex;gap:8px;justify-content:center}
.pagination .page-numbers{display:grid;place-items:center;min-width:44px;height:44px;border:1px solid var(--line);border-radius:4px;font-size:12px;font-weight:700}
.pagination .page-numbers.current,.pagination a.page-numbers:hover{background:var(--ice);color:var(--blue)}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.transcript{margin-top:20px;font-size:13px;color:var(--muted)}
.transcript summary{cursor:pointer;font-weight:700;color:var(--blue)}

/* Testimonials: Google badge + 3D coverflow slider. */
.testimonials-aside{display:flex;flex-direction:column;align-items:flex-start;gap:20px;text-align:start}
/* Same face as every other section heading: the base h2 rule supplies size, weight
   and tracking, so only the wrap width is set here. */
.testimonials-lede{max-width:14ch}
/* The badge IS the speech bubble now: rounded card plus a tail on the lower left. */
.google-badge{position:relative;display:inline-flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 26px 18px 20px;box-shadow:0 10px 30px #162d4014;text-align:start;transition:transform .2s,box-shadow .2s}
/* Tail: a square rotated 45deg, masked on two sides by the bubble's own background. */
.google-badge:after{content:'';position:absolute;inset-block-end:-8px;inset-inline-start:30px;width:15px;height:15px;background:#fff;border-inline-end:1px solid var(--line);border-block-end:1px solid var(--line);rotate:45deg}
a.google-badge:hover{transform:translateY(-2px);box-shadow:0 14px 38px #162d4022}
.google-badge .icon svg{width:26px;height:26px}
.google-badge b{display:block;font-size:13px;letter-spacing:.02em;text-transform:uppercase;line-height:1.3}
.google-badge .icon svg{flex:0 0 auto}
.google-score{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-top:2px}
.google-score .stars{color:#fbbc05;font-size:12px;letter-spacing:1px}

/* Full-bleed track so rotated cards and their shadows are never clipped by the section gutter. */
.testimonials{overflow:visible}
.coverflow{position:relative;margin-inline:calc(-1 * var(--gutter));padding-inline:0;-webkit-mask-image:linear-gradient(90deg,#0000 0,#000 13%,#000 87%,#0000 100%);mask-image:linear-gradient(90deg,#0000 0,#000 13%,#000 87%,#0000 100%);mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}
/* Nav shares the slider's grid cell as an overlay: arrows on the flanks, dots beneath.
   Being a sibling rather than a child keeps it clear of .coverflow's edge-fade mask. */
.testimonials-layout{display:grid;grid-template-columns:minmax(0,1fr)}
.testimonials-layout>.coverflow,.testimonials-layout>.coverflow-nav{grid-column:1;grid-row:2;min-width:0}
.testimonials-layout>.coverflow-nav{align-self:stretch;position:relative;display:block;margin:0 calc(-1 * var(--gutter));pointer-events:none;z-index:2}
/* Only the controls take clicks; the layer itself must let the cards through. */
.coverflow-nav>*{pointer-events:auto}
.testimonials-layout>.coverflow-nav .coverflow-arrow{position:absolute;inset-block-start:50%;translate:0 -50%}
.testimonials-layout>.coverflow-nav [data-cf-prev]{inset-inline-start:6px}
.testimonials-layout>.coverflow-nav [data-cf-next]{inset-inline-end:6px}
.testimonials-layout>.coverflow-nav .coverflow-dots{position:absolute;inset-block-end:24px;inset-inline-start:50%;translate:-50% 0}
/* Desktop: badge column left, slider packed to the right edge. */
@media(min-width:981px){
 .testimonials-layout{grid-template-columns:minmax(260px,26%) 1fr;gap:clamp(24px,3vw,56px);align-items:center}
 .testimonials-aside{padding-inline-start:0}
 .testimonials-layout>.coverflow,.testimonials-layout>.coverflow-nav{grid-column:2;grid-row:1;margin-inline:0 calc(-1 * var(--gutter))}
 .testimonials-layout>.coverflow{-webkit-mask-image:linear-gradient(90deg,#0000 0,#000 7%,#000 88%,#0000 100%);mask-image:linear-gradient(90deg,#0000 0,#000 7%,#000 88%,#0000 100%)}
 /* Cards start at the left of this column rather than centred in the viewport. */
 .testimonials-layout>.coverflow.is-enhanced .coverflow-track{padding-inline:calc(50% - 180px)}
 .testimonials-layout>.coverflow-nav [data-cf-prev]{inset-inline-start:0}
 .testimonials-layout>.coverflow-nav [data-cf-next]{inset-inline-end:min(22px,calc(var(--gutter) / 3))}
 .testimonials-aside{padding-bottom:0}
}
/* overflow-y computes to `auto` whenever overflow-x is `auto`, so the track always clips
   vertically — the padding below is what actually makes room for the raised card's shadow. */
.coverflow-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;padding:60px var(--gutter) 80px;scrollbar-width:none;-webkit-overflow-scrolling:touch;cursor:grab;touch-action:pan-x pan-y}
.coverflow-track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.coverflow-track.is-dragging *{user-select:none}
.coverflow-track::-webkit-scrollbar{display:none}
.coverflow-track>.quote-card{flex:0 0 min(360px,78vw);scroll-snap-align:center;background:#fff;position:relative;overflow:hidden;align-self:stretch;min-height:320px}
/* All cards match the tallest quote; shorter ones centre their text instead of leaving a hole. */
.coverflow-track>.quote-card blockquote{flex:1;display:flex;align-items:center;margin-block:14px 24px}
.coverflow-track>.quote-card>:not(.dot-wave){position:relative;z-index:1}
/* Depth is applied only once JS is measuring; --cf is -1..1 (distance from centre). */
.coverflow.is-enhanced .coverflow-track{perspective:1500px;perspective-origin:50% 50%;gap:clamp(4px,.6vw,12px);padding-inline:calc(50% - min(180px,39vw))}
.coverflow.is-enhanced .quote-card{
 transform:
   perspective(1200px)
   rotateY(calc(var(--cf,0) * -42deg))
   translateX(calc(var(--cf,0) * -34%))
   translateZ(calc(-160px * var(--cfa,0)))
   scale(calc(1 - var(--cfa,0) * .2));
 opacity:calc(1 - var(--cfa,0) * .62);
 filter:saturate(calc(1 - var(--cfa,0) * .85)) brightness(calc(1 - var(--cfa,0) * .06));
 transition:box-shadow .3s,filter .3s;
 transform-style:preserve-3d;will-change:transform,opacity,filter;
 z-index:calc(10 - var(--cfa,0) * 10)}
.coverflow.is-enhanced .quote-card.is-current{box-shadow:0 12px 28px #162d401f;filter:none;opacity:1}
.quote-date{display:block;font-size:10px;color:var(--muted);margin-top:4px}
/* Dot-wave background: brightness ripples diagonally across a dot grid. Runs on its own,
   sits under the text, and only shows on the card that is currently in focus. */
.dot-wave{position:absolute;inset:0;z-index:0;pointer-events:none;display:grid;
 grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);
 place-items:center;opacity:0;transition:opacity .5s;
 -webkit-mask-image:radial-gradient(ellipse at center,#000 40%,#0000 85%);
 mask-image:radial-gradient(ellipse at center,#000 40%,#0000 85%)}
.dot-wave span{width:4px;height:4px;border-radius:50%;background:#8b9aa6;
 animation:cdg-dot-pulse 2.4s ease-in-out infinite;animation-fill-mode:both}
@keyframes cdg-dot-pulse{0%,100%{opacity:.03;transform:scale(.7)}45%{opacity:.16;transform:scale(1.1)}}
.coverflow.is-enhanced .quote-card.is-current .dot-wave{opacity:1}
@media(prefers-reduced-motion:reduce){.dot-wave{display:none}}
/* Larger, more legible rating stars. */
.quote-card .stars{font-size:19px;letter-spacing:3px;line-height:1.2;display:block;margin-top:3px}

.coverflow-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:8px}
.coverflow-arrow{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;background:#fff;color:var(--blue);box-shadow:0 6px 20px #162d401f;transition:background .2s,transform .2s,box-shadow .2s}
.coverflow-arrow:hover{background:var(--ice);transform:translateY(-2px);box-shadow:0 10px 26px #162d4029}
.coverflow-dots{display:flex;gap:8px}
.coverflow-dot{width:8px;height:8px;border-radius:50%;background:var(--line);padding:0;transition:background .25s,width .25s}
.coverflow-dot[aria-selected=true]{background:var(--blue);width:24px;border-radius:5px}
@media(max-width:640px){
 .testimonials-aside{align-items:flex-start;text-align:start}
 .coverflow-track>.quote-card{flex-basis:72vw}
 .coverflow.is-enhanced .coverflow-track{padding-inline:calc(50% - 36vw)}
 .coverflow-arrow{width:40px;height:40px}
 .google-badge{padding-inline:14px 18px}
}
@media(prefers-reduced-motion:reduce){
 .coverflow.is-enhanced .quote-card{transform:none;opacity:1}
 .coverflow-track{scroll-behavior:auto}
}

/* The badge's stars pop in one by one -- what the decorative SVG used to mime. */
.google-score .ra-star{display:inline-block;opacity:0;transform-origin:center;animation:ra-pop 6s ease-in-out infinite}
.google-score .ra-star:nth-child(2){animation-delay:.22s}
.google-score .ra-star:nth-child(3){animation-delay:.44s}
.google-score .ra-star:nth-child(4){animation-delay:.66s}
.google-score .ra-star:nth-child(5){animation-delay:.88s}
@keyframes ra-pop{0%,4%{opacity:0;scale:.3}12%{opacity:1;scale:1.25}17%,88%{opacity:1;scale:1}96%,100%{opacity:0;scale:.3}}
@media(prefers-reduced-motion:reduce){.google-score .ra-star{animation:none;opacity:1}}

/* Results: no eyebrow now, so the heading needs less air above it. */
.results{padding-block:28px 60px}
.results .section-heading{margin-bottom:28px}
@media(max-width:640px){.results{padding-block:20px 44px}}

/* Special offer: full-bleed brand-blue band (overrides the design's light card). */
.offer{max-width:none;width:auto;margin:0;padding:clamp(56px,6vw,88px) var(--gutter);border-radius:0;background:var(--blue);color:#fff;position:relative;overflow:hidden;display:block}
.offer-inner{position:relative;z-index:1;max-width:var(--page);margin-inline:auto;display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,70px);align-items:center}
.offer-tag{display:inline-flex;align-items:center;gap:10px;margin:0 0 20px;color:#bbe6f6;font-size:clamp(13px,1.3vw,16px);font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.offer-tag .icon svg{width:22px;height:22px;fill:currentColor;stroke:none;animation:cdg-spin 9s linear infinite}
@keyframes cdg-spin{to{transform:rotate(360deg)}}
.offer h2{color:#fff;font-size:clamp(56px,7vw,92px);letter-spacing:-.06em;line-height:1}
.offer h2 span{font-size:clamp(17px,1.7vw,22px);letter-spacing:-.02em;color:#bbe6f6}
.offer .offer-for{color:#bbe6f6;font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin-top:20px;font-weight:700}
.offer-body h3{color:#fff;font-size:clamp(28px,3.2vw,40px);margin-bottom:18px}
.offer-body>p{color:#d4e8f8;font-size:14px;max-width:44ch}
.offer-body .button{margin-top:26px;background:#fff;border-color:#fff;color:var(--blue);border-radius:999px}
.offer-body .button:hover{background:var(--ice)}
.offer-body small{display:block;margin-top:22px;color:#a9cde9;font-size:10px;max-width:52ch}
/* Slow pulsing rings, decorative only. */
.offer-glow{position:absolute;inset-block-start:50%;inset-inline-start:min(18%,260px);width:min(48vw,560px);aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,#bbe6f629 0,#bbe6f60d 42%,#bbe6f600 68%);animation:cdg-pulse 6s ease-in-out infinite}
@keyframes cdg-pulse{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.12);opacity:1}}
@media(max-width:980px){.offer-inner{grid-template-columns:1fr;gap:34px}.offer-glow{inset-inline-start:50%}}
@media(prefers-reduced-motion:reduce){.offer-tag .icon svg,.offer-glow{animation:none}}

/* Parallax drift on the technology images (translate set by app.js). */
.tech-pictures figure{will-change:translate;transition:translate .18s linear}
@media(prefers-reduced-motion:reduce){.tech-pictures figure{translate:none!important;transition:none}}

/* Closing CTA: framed in a brand-blue stroke, one-line heading, tighter spacing. */
.closing{border:2px solid var(--blue);border-radius:10px;
 max-width:calc(var(--page) - 2 * var(--gutter));margin:34px var(--gutter) 70px;
 padding:clamp(30px,3.4vw,46px) clamp(28px,3.4vw,52px);gap:clamp(24px,4vw,56px)}
.closing h2{font-size:clamp(30px,3.5vw,50px);max-width:none}
.closing p:not(.eyebrow){margin-top:16px;max-width:48ch}
.closing .eyebrow{margin-bottom:14px}
.circle-cta{width:clamp(122px,11vw,144px);height:clamp(122px,11vw,144px);gap:7px;
 flex-direction:column-reverse;text-align:center;line-height:1.2;white-space:nowrap}
.circle-cta .icon svg{width:20px;height:20px}
@media(min-width:1600px){.closing{margin-inline:auto}}
@media(max-width:980px){.closing{margin-block:26px 50px;padding:30px 26px}}

/* Retro perspective grid: a floor plane rolling toward the viewer, kept very faint. */
.offer-grid{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;perspective:200px}
.offer-grid i{position:absolute;inset:38% -50% 0;transform-origin:bottom center;
 transform:perspective(240px) rotateX(58deg);
 background-image:linear-gradient(to right,#ffffff14 1px,transparent 1px),linear-gradient(to bottom,#ffffff14 1px,transparent 1px);
 background-size:48px 48px;
 animation:cdg-grid-flow 2.6s linear infinite}
@keyframes cdg-grid-flow{to{background-position:0 48px}}
/* Fade the horizon so the grid dissolves into the band instead of ending abruptly. */
.offer-grid:after{content:'';position:absolute;inset:0 0 auto;height:62%;
 background:linear-gradient(180deg,var(--blue) 30%,#14509100 100%)}
@media(prefers-reduced-motion:reduce){.offer-grid i{animation:none}}

/* Price plate: white rule frame with a brand-blue brush stroke behind the figure. */
/* Portrait plate: a standing rectangle, contents centred, so the frame reads as a poster. */
.offer-plate{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:min(340px,80vw);min-height:min(430px,92vw);padding:clamp(30px,3vw,42px) clamp(22px,2.4vw,32px);isolation:isolate}
.offer-frame{position:absolute;inset:0;border:3px solid #fff;pointer-events:none;z-index:2}
/* Brush sits behind the headline block, centred on the taller plate. */
.offer-brush{position:absolute;inset-block-start:27%;inset-inline-start:50%;translate:-50% 0;width:122%;height:36%;z-index:0;fill:var(--sky);opacity:.8}
.offer-plate .offer-tag,.offer-plate h2{position:relative;z-index:1}
.offer-plate .offer-tag{margin-bottom:18px;display:flex;flex-direction:column;gap:12px;color:#fff;font-size:clamp(34px,4vw,54px);letter-spacing:.04em;line-height:1.05;text-wrap:balance}
.offer-plate .offer-tag .icon svg{width:30px;height:30px}
/* Price is now the supporting figure, so it sits below the headline in size. */
.offer-plate h2{font-size:clamp(28px,3.4vw,46px)}
.offer-plate h2{margin:0}

/* Staged entrance: frame draws, then brush, then label, then price. */
.offer.anim-pending .offer-frame{clip-path:inset(0 100% 0 0)}
.offer-frame{transition:clip-path .75s cubic-bezier(.22,.7,.3,1)}
.offer.is-in .offer-frame{clip-path:inset(0 0 0 0)}

.offer.anim-pending .offer-brush{clip-path:inset(0 100% 0 0)}
.offer-brush{transition:clip-path .7s cubic-bezier(.22,.7,.3,1) .5s}
.offer.is-in .offer-brush{clip-path:inset(0 0 0 0)}

.offer.anim-pending .offer-tag,
.offer.anim-pending .offer-plate h2,
.offer.anim-pending .offer-for,
.offer.anim-pending .offer-body>*{opacity:0;translate:0 14px}
.offer-tag,.offer-plate h2,.offer-for,.offer-body>*{transition:opacity .6s ease var(--d,0ms),translate .6s cubic-bezier(.22,.7,.3,1) var(--d,0ms)}
.offer.is-in .offer-tag,
.offer.is-in .offer-plate h2,
.offer.is-in .offer-for,
.offer.is-in .offer-body>*{opacity:1;translate:none}
@media(prefers-reduced-motion:reduce){
 .offer.anim-pending .offer-frame,.offer.anim-pending .offer-brush{clip-path:none}
 .offer.anim-pending .offer-tag,.offer.anim-pending .offer-plate h2,
 .offer.anim-pending .offer-for,.offer.anim-pending .offer-body>*{opacity:1;translate:none}
}

/* Doctor interview: full-bleed 16/9 film strip, poster until the visitor presses play. */
.doctor-film{background:var(--blue)}
.film-heading{text-align:center;padding-bottom:clamp(36px,4vw,56px)}
.film-heading h2{color:#fff}
.film-heading em{color:var(--sky)}
.film-frame{position:relative;aspect-ratio:16/9;background:#000 center/cover no-repeat;overflow:hidden}
.film-video,.film-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000}
.film-video{opacity:0;transition:opacity .4s}
.film-frame.is-playing .film-video{opacity:1}
.film-play{position:absolute;inset:0;width:100%;display:grid;place-items:center;background:linear-gradient(180deg,#0b213826,#0b213866);transition:opacity .35s,visibility .35s}
.film-frame.is-playing .film-play{opacity:0;visibility:hidden}
.film-play-ring{width:clamp(64px,7vw,92px);aspect-ratio:1;border-radius:50%;background:#fffffff2;color:var(--blue);display:grid;place-items:center;box-shadow:0 12px 40px #0b213859;transition:transform .25s,background .25s}
.film-play:hover .film-play-ring{transform:scale(1.07);background:#fff}
.film-play-ring .icon svg{width:clamp(22px,2.4vw,30px);height:auto;fill:currentColor;stroke:none;margin-inline-start:4px}
.film-transcript{max-width:var(--page);margin-inline:auto;padding:22px var(--gutter);color:#bdd5e8}
.film-transcript summary{color:#bbe6f6}
@media(max-width:640px){.film-frame{aspect-ratio:4/3}}

.booking-embed{margin-top:28px}
.booking-embed iframe{width:100%;border:0;min-height:600px}

/* SVG icons replace the design's text-glyph arrows (↗ ☎ ⌄ ▷). */
.icon{display:inline-grid;place-items:center;flex:none;line-height:0}
.icon svg{width:16px;height:16px;display:block;transition:transform .2s}
.button .icon,.text-link .icon,.phone>.icon,.nav-trigger .icon,.play-button>.icon{font-size:0}
.button{gap:16px}
.button.small{gap:10px}
.text-link{gap:14px}
.button .icon svg{width:17px;height:17px}
a:hover>.icon-arrow svg,button:hover>.icon-arrow svg{transform:translateX(3px)}
a:hover>.icon-arrow-left svg{transform:translateX(-3px)}
.nav-trigger .icon{margin-inline-start:6px;vertical-align:-2px}
.nav-trigger .icon svg{width:12px;height:12px}
.nav-trigger[aria-expanded=true] .icon svg{transform:rotate(180deg)}
.phone>.icon svg{width:15px;height:15px}
.play-button>.icon svg{width:18px;height:18px;fill:currentColor;stroke:none;margin-inline-start:3px}
.circle-cta{gap:10px}
.option-card .text-link .icon svg,.blog-cards .text-link .icon svg{width:14px;height:14px}
.footer .map-link{margin-top:16px}
.footer .footer-item .icon svg{width:14px;height:14px}
.booking-contact>a{display:inline-flex;align-items:center;gap:12px}
.booking-contact>a .icon svg{width:20px;height:20px}
@media(max-width:980px){.nav-trigger .icon svg{width:16px;height:16px}}
@media(max-width:640px){.button.small .icon svg{width:13px;height:13px}}
/* Bare phone icon and burger need real size to balance the Book Now pill on mobile. */
@media(max-width:980px){
 .phone>.icon svg{width:23px;height:23px}
 .phone{padding:6px}
 .menu-toggle{width:44px;height:44px;padding:9px}
 /* Three bars; the middle one fades while the outer two cross into an X. */
 .menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:6px}
 .menu-toggle span{height:2.5px;margin:0;border-radius:2px;transition:transform .2s,opacity .2s}
 .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(8.5px) rotate(45deg)}
 .menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
 .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-8.5px) rotate(-45deg)}
 .header-actions{gap:14px}
 /* Open menu covers the rest of the viewport instead of shrink-wrapping the links. */
 .navigation{height:calc(100dvh - var(--header));max-height:none;display:flex;flex-direction:column}
 .navigation:not(.is-open){display:none}
 .admin-bar .navigation{height:calc(100dvh - var(--header) - 32px)}
}
@media(max-width:782px){.admin-bar .navigation{height:calc(100dvh - var(--header) - 46px)}}
@media(max-width:640px){.header-actions{gap:12px}}

/* Header is transparent until the page scrolls (needs JS; without it the header stays white). */
.header{transition:background-color .3s,border-color .3s,box-shadow .3s}
.js .header:not(.is-scrolled):not(:has(.navigation.is-open)){background:transparent;border-bottom-color:transparent}
/* Over the video the nav is white; once scrolled the header turns solid and text returns to ink. */
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)){color:#fff}
/* Swap the ink logo for the white one while the header floats over the video. */
.brand{position:relative}
.brand-light{position:absolute;inset:0;opacity:0;transition:opacity .3s;pointer-events:none}
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .brand-light{opacity:1}
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .brand>img:first-of-type{opacity:0}
.brand>img:first-of-type{transition:opacity .3s}
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .phone{color:#fff}
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .menu-toggle span{background:#fff}
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .button{background:#fff;border-color:#fff;color:var(--blue)}
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .button:hover{background:var(--ice)}
@media(max-width:980px){.js .home .header:has(.navigation.is-open){color:var(--ink)}}

/* The dropdown panel is always white, so it keeps ink text even when the header is inverted. */
.dropdown{color:var(--ink)}
/* Slightly heavier, more present nav labels (Manrope ships 700 as its heaviest static weight). */
/* Nav links, phone and Book Now all share one size so the header reads as one row. */
@media(min-width:981px){
 .nav-trigger,.nav-blog,.phone,.header .button{font-size:15px;letter-spacing:.005em}
 .header .button{white-space:nowrap}
}
@media(min-width:981px) and (max-width:1300px){
 .nav-trigger,.nav-blog,.phone,.header .button{font-size:14px}
 .navigation{gap:4px}.header{gap:18px}
}

/* Phone is a plain link everywhere, not a tinted pill; Book Now is a rounded pill. */
.phone{background:none;padding:0;gap:7px}
.phone:hover{color:var(--blue)}
.header .button{border-radius:999px}
/* Desktop navigation spreads evenly across the header instead of hugging the right edge. */
@media(min-width:981px){
 .header{gap:32px}
 .navigation{flex:1;margin-inline:0;justify-content:space-evenly;gap:8px}
 .header-actions{gap:18px}
 .header .button{padding:15px 26px;gap:12px}
}
@media(max-width:640px){.phone-number{display:none}}

/* Home hero: full-bleed video, full viewport height, tucked under the transparent header. */
.hero-video-only{max-width:none;min-height:100svh;margin-top:calc(-1 * var(--header));padding:0;display:block;border-bottom:0;background:var(--ink)}
.admin-bar .hero-video-only{min-height:calc(100svh - 32px)}
.hero-video-only .hero-art{position:absolute;inset:0;width:100%}
.hero-video-only .hero-art:after{content:none}
.hero-poster,.hero-poster img,.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-video{opacity:0;transition:opacity .6s ease}
.hero-video.is-playing{opacity:1}
/* Scrim keeps the white header legible over bright footage. */
.hero-video-only:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#0b2138b3 0,#0b213880 calc(var(--header) * .9),#0b213800 calc(var(--header) * 1.9)),linear-gradient(0deg,#0b213866 0,#0b213800 22%)}
.hero-scroll{position:absolute;z-index:2;inset-block-end:28px;inset-inline-start:50%;translate:-50% 0;display:grid;justify-items:center;gap:6px;color:#fff;font-size:9px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;text-shadow:0 1px 12px #0b213866}
.hero-scroll .icon svg{width:20px;height:20px;animation:cdg-bob 2.2s ease-in-out infinite}
@keyframes cdg-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@media(max-width:980px){.hero-video-only{min-height:max(560px,100svh)}}

/* Brand band under the hero: centred title + subtitle on the deep blue. */
.slogan{max-width:none;background:var(--blue);color:#fff;text-align:center;padding-block:clamp(44px,4.2vw,64px);overflow:hidden}
.slogan-inner{max-width:var(--page);margin-inline:auto}
.slogan .eyebrow{color:#9dcdf0}
.slogan h1{color:#fff;max-width:none;margin-inline:auto}
/* Two lines: the statement in a fancy italic display serif, the promise beneath it.
   Mobile size first, then the desktop override -- wp.css loads after site.css, so
   these beat site.css's 33px/28px rules at every width. */
.slogan h1{display:flex;flex-direction:column;gap:.1em;font-size:clamp(32px,7.4vw,46px)}
/* Desktop: headline sits on one line; nowrap is on the spans, so each line holds alone. */
@media(min-width:981px){.slogan h1{font-size:clamp(46px,4.6vw,74px)}.slogan h1 .line{white-space:nowrap}}
.slogan h1 .line-1{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400;text-transform:none;letter-spacing:-.015em}
/* Second line is the quieter echo: a step down from the statement above it. */
.slogan h1 .line-2{font-size:.72em}
.slogan h1 .line-2 em{font-style:italic}
.slogan h1 em{color:#bbe6f6}
/* Third line was 16px and vanished under the headline; give it real weight of its own. */
.slogan h2{color:#d4e8f8;max-width:52ch;margin-inline:auto;margin-top:22px;font:500 clamp(18px,2.1vw,30px)/1.35 Manrope,Arial,sans-serif;letter-spacing:-.02em}
.slogan .care-strip{border-color:#ffffff33;color:#bbe6f6;max-width:900px;margin:44px auto 0}
/* Staggered entrance; --d is set per item by app.js. */
.slogan.anim-pending .reveal-up{opacity:0;translate:0 26px;filter:blur(6px)}
.slogan .reveal-up{transition:opacity .7s cubic-bezier(.22,.7,.3,1) var(--d,0ms),translate .7s cubic-bezier(.22,.7,.3,1) var(--d,0ms),filter .7s ease var(--d,0ms)}
.slogan.is-in .reveal-up{opacity:1;translate:none;filter:none}
@media(prefers-reduced-motion:reduce){.slogan.anim-pending .reveal-up{opacity:1;translate:none;filter:none}}

/* ---- Header: frosted glass, pill nav items, floating dropdown ---- */
/* Glass everywhere: translucent + blur, so the hero video and page content show through.
   backdrop-filter is unsupported on old browsers, where the rgba background alone still reads fine. */
.header{background:#ffffffb8;-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%);border-bottom:1px solid #ffffff38;transition:background-color .3s,border-color .3s,box-shadow .3s,backdrop-filter .3s}
.header.is-scrolled{background:#ffffffd6;border-bottom-color:var(--line);box-shadow:0 6px 30px #162d4012}
/* Over the hero video the glass is dark-tinted so the white nav text keeps contrast. */
/* Inner pages have no video behind the header, so at rest they keep the light glass
   (the older transparent-header rule would otherwise leave them with no glass at all). */
.js .header:not(.is-scrolled):not(:has(.navigation.is-open)){background:#ffffffb8}
.js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)){background:#ffffff26;border-bottom-color:#ffffff33;-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%)}

/* Nav items are pills; the current one fills with brand blue (matches the reference header). */
@media(min-width:981px){
 .nav-trigger,.nav-blog{padding:11px 20px;border-radius:999px;transition:background-color .25s,color .25s}
 .nav-trigger:hover,.nav-blog:hover{background:#16304a12}
 .js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .nav-trigger:hover,
 .js .home .header:not(.is-scrolled):not(:has(.navigation.is-open)) .nav-blog:hover{background:#ffffff2b}
 /* Current page, and any open dropdown, get the solid blue pill — including over the video. */
 .nav-blog[aria-current],
 .nav-trigger[data-current],
 .nav-trigger[aria-expanded=true],
 .js .home .header:not(.is-scrolled) .nav-blog[aria-current],
 .js .home .header:not(.is-scrolled) .nav-trigger[data-current],
 .js .home .header:not(.is-scrolled) .nav-trigger[aria-expanded=true]{background:var(--blue);color:#fff}
 .navigation{gap:2px}
}

/* Dropdown: detached white card, centred under its trigger, no cramped offset. */
@media(min-width:981px){
 .dropdown{inset-block-start:calc(100% + 10px);inset-inline-start:50%;translate:-50% 0;padding:10px;border:0;border-radius:14px;box-shadow:0 22px 60px #162d4026;min-width:250px}
 .dropdown a{justify-content:flex-start;padding:12px 18px;border-radius:9px;font-weight:700;transition:background-color .2s,color .2s}
}
/* Mobile: the circle reads as a stray blob in a stacked card, so it becomes a plain full-width button. */
@media(max-width:640px){.circle-cta{width:100%;height:auto;flex-direction:row;justify-content:center;border-radius:6px;padding:18px 24px;font-size:13px}}

/* #book lands flush under the sticky header (offsets html scroll-padding-top:115px). */
#book{scroll-margin-top:calc(var(--header) - 115px)}
