/* ───────────────────────────────────────────────────────────
   Static-port additions, layered on top of the original design.
   The original visual system lives untouched in styles.css.
   ─────────────────────────────────────────────────────────── */

/* Low-specificity icon default; contextual rules in styles.css still win. */
svg { width: 24px; height: 24px; }

/* Photos: a plain <img> fills the shaped slots exactly like the
   original drag-and-drop Photo component did. */
.hero__photo img,
.about__photo img,
.christie__photo img,
.why__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-family: var(--head); font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Language switch — desktop (in the top bar) */
.topbar__lang a { color: rgba(255,255,255,0.55); transition: color .15s; }
.topbar__lang a.is-on { color: #fff; }
.topbar__lang a:hover { color: var(--teal); }

/* Language switch — compact, shown on mobile where the top bar is hidden */
.lang-mini { display: none; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 14px; }
.lang-mini a { color: var(--muted); padding: 4px 2px; }
.lang-mini a.is-on { color: var(--teal-deep); }
.lang-mini span { color: var(--line); }

/* Contact form: consent row, honeypot, status message */
.appt__form .consent { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.appt__form .consent input {
  appearance: auto; -webkit-appearance: auto;
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0;
  border: 0; background: none; accent-color: var(--teal); flex: 0 0 auto;
}
.appt__form .consent a { color: var(--teal-deep); text-decoration: underline; }
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.form-status.ok { color: var(--teal-deep); }
.form-status.err { color: #c0392b; }

/* Cookie consent banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 600;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-md); padding: 18px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie p { margin: 0; flex: 1 1 300px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.cookie a { color: var(--teal-deep); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 20px; font-size: 14px; box-shadow: none; }
.cookie[hidden] { display: none; }

/* Legal pages (privacy / cookies) */
.legal__bar { border-bottom: 1px solid var(--line); padding: 18px 0; }
.legal__bar .wrap { display: flex; align-items: center; justify-content: space-between; }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 90px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; color: var(--teal-deep); margin-bottom: 28px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); margin: 10px 0; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--teal-deep); text-decoration: underline; }
.legal .upd { color: var(--muted-2); font-size: 13.5px; }
.legal .note { background: var(--mint-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px 18px; font-size: 13.5px; }

@media (max-width: 980px) {
  .lang-mini { display: inline-flex; }
}
@media (max-width: 520px) {
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__btns { justify-content: flex-end; }
}

/* Clickable contact details */
.topbar__left a:hover { color: var(--teal); }
.footer__contact a { transition: color .15s; }
.footer__emer { cursor: pointer; text-decoration: none; transition: background .2s; }
.footer__emer:hover { background: rgba(255,255,255,0.09); }

/* Ripple effect (footer phone box) */
.ripple { position: relative; overflow: hidden; }
.ripple > * { position: relative; z-index: 1; }
.ripple__ink {
  position: absolute; z-index: 0; border-radius: 50%;
  transform: scale(0); background: rgba(255,255,255,0.35);
  pointer-events: none; animation: ripple-anim .6s ease-out;
}
@keyframes ripple-anim { to { transform: scale(2.2); opacity: 0; } }

/* Social icons hidden for now — re-enable by removing these two rules and adding real profile URLs */
.topbar__socials { display: none; }
.topbar__lang { padding-left: 0; border-left: 0; }

/* "Built by" credit bar (below the footer) */
.builtby { background: #f4fafb; color: #6a7c85; text-align: center; font-size: 13px; padding: 14px 16px; border-top: 1px solid #e3ecef; font-family: var(--head); }
.builtby a { color: var(--teal-deep); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.builtby a:hover { text-decoration: underline; }
.builtby__logo { height: 18px; width: auto; vertical-align: middle; }

/* ───────────────────────────────────────────────────────────
   Responsive (mobile + tablet) — restored from the original
   clinic.css design (the flatten kept only a partial 980px block).
   Desktop (≥981px) is untouched: everything is inside max-width queries.
   ─────────────────────────────────────────────────────────── */

/* Tablet only (601–980): 2-up feature strip with the 3rd card centered;
   keep the footer in two columns. */
@media (max-width: 980px) and (min-width: 601px) {
  .featrip__grid .featc:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: calc(50% - 12px); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 38px 48px; }
}

/* Tablet + mobile (≤980) */
@media (max-width: 980px) {
  .wrap { padding: 0 48px; }
  .hero__in, .about, .christie, .why, .appt, .cta__card { grid-template-columns: 1fr; }
  .featrip__grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .featrip__grid { grid-auto-rows: 1fr; }
  .stats__in { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav__call { display: none; }            /* phone block was overflowing the header */
  .section { padding: 84px 0; }
  .hero__in { padding-block: 64px 72px; gap: 36px; }   /* padding-block keeps .wrap's left/right padding */
  .about, .christie, .why { gap: 44px; }
  .cta__card { padding: 48px 44px; }
  .hero__badge { display: none; }           /* floating badges off once the photo stacks */
  .hero__media { display: flex; flex-direction: column; align-items: center; }
  .hero__photo { order: -1; }
  .featrip { margin-top: 28px; }            /* drop the desktop -46px overlap */
  .hero__photo, .about__photo, .christie__photo, .why__photo { max-width: 420px; margin-left: auto; margin-right: auto; }
  .about__media, .christie__media, .why__media { display: flex; flex-direction: column; align-items: center; }
}

/* Phone (≤600) */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .featrip__grid, .svc-grid, .stats__in, .christie__stats, .about__list, .field-row, .footer__grid { grid-template-columns: 1fr; }
  .stats__in { gap: 30px; }
  .nav__in { height: 70px; }
  .nav__right .btn--primary { display: none; } /* booking lives in the hero/contact CTAs on phones */
  .hero__in { padding-block: 44px 56px; }   /* vertical only — keep .wrap's 20px sides */
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero__cta { gap: 16px; }
  .hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
  .hero__trust .t-n { font-size: 26px; }
  .hero__photo, .about__photo, .christie__photo, .why__photo { max-width: 100%; }
  .cta__card { padding: 36px 24px; }
  .cta__btns { width: 100%; }
  .cta__btns .btn { flex: 1; justify-content: center; }
  .appt__form { padding: 26px 22px; }
  .footer { padding: 60px 0 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .about__exp { right: 0; bottom: -18px; padding: 20px 22px; }
  .about__exp .n { font-size: 38px; }
  .sec-title h2, .cta h2 { font-size: clamp(28px, 7vw, 40px); }
}

/* Cookie banner — compact card on tablet; fixes the 400px-tall banner on phones
   (the desktop ≥981px wide bar is untouched). */
@media (max-width: 980px) {
  .cookie { max-width: 440px; padding: 16px 18px; gap: 14px; }
  .cookie p { flex: 1 1 auto; font-size: 13px; }   /* was flex-basis:300px → 300px tall in a column */
}
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie p { flex: 0 0 auto; }                     /* size to its text, no fixed basis */
  .cookie__btns { display: flex; gap: 10px; }
  .cookie__btns .btn { flex: 1; justify-content: center; }
}

/* Header: the full desktop nav (logo + 5 links + topbar + phone + button) needs
   ~1166px and crowds/wraps below that. Switch to the compact header at ≤1200 so
   the toolbar is never messy. Body grids are unaffected (they stay desktop >980). */
@media (max-width: 1200px) {
  .topbar { display: none; }
  .nav__links { display: none; }
  .nav__call { display: none; }
  .lang-mini { display: inline-flex; }
}

/* ── Hamburger + full-screen dark-navy menu sheet (restored from the original
   clinic.css design). Toggled by adding .is-open to the header (.nav). ── */
.nav__burger {
  display: none;   /* shown ≤1200 by the rule at the very bottom */
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  position: relative; z-index: 96; border-radius: 12px; -webkit-tap-highlight-color: transparent;
}
.nav__burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .2s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__sheet {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(160deg, var(--navy), #07202b);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 96px 32px 40px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .42s cubic-bezier(.2,.7,.3,1), visibility .3s;
}
.nav__sheet a { font-family: var(--head); font-weight: 700; font-size: 26px; color: #fff;
  padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
  opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.nav.is-open .nav__sheet { opacity: 1; visibility: visible; transform: none; }
.nav.is-open .nav__sheet a { opacity: 1; transform: none; }
.nav.is-open .nav__sheet a:nth-child(1) { transition-delay: .10s; }
.nav.is-open .nav__sheet a:nth-child(2) { transition-delay: .16s; }
.nav.is-open .nav__sheet a:nth-child(3) { transition-delay: .22s; }
.nav.is-open .nav__sheet a:nth-child(4) { transition-delay: .28s; }
.nav.is-open .nav__sheet a:nth-child(5) { transition-delay: .34s; }
.nav.is-open .nav__sheet a:nth-child(6) { transition-delay: .40s; }
.nav__sheet-call { display: inline-flex !important; align-items: center; gap: 12px; color: var(--teal) !important;
  border-bottom: 0 !important; margin-top: 24px; font-size: 22px !important; }
.nav__sheet-call svg { width: 22px; height: 22px; }
.nav__sheet-lang { margin-top: 16px; font-family: var(--head); font-weight: 700; font-size: 17px; color: rgba(255,255,255,0.55);
  opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.3,1); transition-delay: .46s; }
.nav.is-open .nav__sheet-lang { opacity: 1; transform: none; }
.nav__sheet-lang a { color: rgba(255,255,255,0.55); padding: 4px 2px; }
.nav__sheet-lang a.is-on { color: #fff; }
/* keep the brand + toggle above the overlay; clean the header bar when open */
.nav.is-open .nav__in { position: relative; z-index: 95; }
.nav.is-open .nav__burger span { background: #fff; }
.nav.is-open .brand__name { color: #fff; }
.nav.is-open .brand__name small { color: var(--teal); }
.nav.is-open .lang-mini, .nav.is-open .nav__right .btn--primary { display: none; }
.nav.is-open { background: transparent; box-shadow: none; }
body.nav-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .nav__sheet, .nav__sheet a, .nav__sheet-lang, .nav__burger span { transition: none; }
}

/* Show the burger only at the compact-header widths (after base so it wins) */
@media (max-width: 1200px) { .nav__burger { display: flex; } }
