/* ==========================================================================
   Northwind Physio — styles.css
   Vanilla CSS, no framework. Edit the design tokens below to re-brand.
   ========================================================================== */

/* ---------- 1. Design tokens (edit these) ------------------------------ */
:root {
  /* Brand colours (all pairs below pass WCAG AA contrast) */
  --c-primary: #0e6b66;        /* teal — buttons, links, accents        */
  --c-primary-dark: #094f4b;   /* hover state                           */
  --c-primary-soft: #e3f1f0;   /* light teal tint for icon backgrounds   */
  --c-accent: #e8734a;         /* coral — decorative highlights only     */
  --c-accent-soft: #ffe3d6;    /* badge background                       */
  --c-accent-ink: #7a2e0e;     /* badge text                             */
  --c-ink: #14232b;            /* body text                              */
  --c-muted: #4a5a64;          /* secondary text                         */
  --c-bg: #ffffff;             /* page background                        */
  --c-sand: #f6f1ea;           /* alternate section background           */
  --c-line: #dfe5e8;           /* borders                                */
  --c-footer: #0f1f24;         /* footer background                      */
  --c-footer-ink: #d6e0e3;     /* footer text                            */
  --c-error: #b3261e;
  --c-success: #1b6b3a;

  /* Typography — system font stack: zero network requests */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-0: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  --fs-1: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-3: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);

  /* Layout */
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 1.25rem;
  --radius-sm: 0.625rem;
  --shadow: 0 1px 2px rgb(20 35 43 / .06), 0 12px 32px -12px rgb(20 35 43 / .18);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset & base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-1); line-height: 1.6; color: var(--c-ink); background: var(--c-bg); overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-4); font-weight: 800; }
h2 { font-size: var(--fs-3); font-weight: 800; }
h3 { font-size: var(--fs-2); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--c-primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--sand { background: var(--c-sand); }
.section__head { max-width: 40rem; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); margin-bottom: .75rem; }
.lead { font-size: var(--fs-2); color: var(--c-muted); font-weight: 400; }
.muted { color: var(--c-muted); }

/* ---------- 3. Buttons ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px -10px rgb(14 107 102 / .8); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: currentColor; }
.btn--ghost:hover { background: var(--c-primary-soft); }
.btn--sm { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: var(--fs-0); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- 4. Skip link & header ------------------------------------- */
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1000; padding: .75rem 1rem; background: var(--c-ink); color: #fff; border-radius: var(--radius-sm); transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; color: #fff; }

.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: rgb(255 255 255 / .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--c-line); box-shadow: 0 6px 24px -18px rgb(20 35 43 / .4); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--c-ink); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.brand span span { color: var(--c-primary); font-weight: 500; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__list a { display: inline-block; padding: .5rem .85rem; border-radius: 999px; color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: var(--fs-0); }
.nav__list a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.nav__cta { margin-left: .5rem; }
.nav__list .nav__cta a { display: inline-flex; color: #fff; }
.nav__list .nav__cta a:hover { background: var(--c-primary-dark); color: #fff; }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); padding: .75rem var(--gutter) 1.25rem; transform: translateY(-.5rem); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .25s, visibility 0s .25s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav__list a { display: block; padding: .8rem 1rem; font-size: var(--fs-1); }
  .nav__cta { margin: .75rem 0 0; }
  .nav__cta .btn { width: 100%; }
  /* No JavaScript: hide the inert toggle and show the links in the flow */
  .no-js .nav-toggle { display: none; }
  .no-js .header { position: static; height: auto; }
  .no-js .header__inner { flex-wrap: wrap; padding-block: .75rem; }
  .no-js .nav { position: static; max-height: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; width: 100%; transition: none; }
  .no-js .nav__list { flex-direction: row; flex-wrap: wrap; gap: .25rem; }
  .no-js .nav__list a { display: inline-block; padding: .5rem .85rem; font-size: var(--fs-0); }
  .no-js .nav__cta { margin: 0 0 0 .25rem; }
  .no-js .nav__cta .btn { width: auto; }
  .no-js .hero { padding-top: clamp(2.5rem, 7vw, 5rem); }
}

/* ---------- 5. Hero ---------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)); padding-bottom: clamp(2.5rem, 7vw, 5rem); background: radial-gradient(60rem 30rem at 85% -10%, #e3f1f0 0%, transparent 60%), var(--c-bg); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero__copy p { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.hero__proof { display: flex; align-items: flex-start; gap: .75rem; font-size: var(--fs-0); color: var(--c-muted); }
.stars { display: inline-flex; gap: 2px; color: #d98d00; flex: none; margin-top: .2rem; }
.stars svg { width: 1rem; height: 1rem; }
.hero__art { position: relative; }
.hero__art img { width: 100%; border-radius: var(--radius); }
.hero__badge { position: absolute; left: -.5rem; bottom: 1.5rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .75rem 1rem; font-size: var(--fs-0); display: flex; gap: .625rem; align-items: center; max-width: 16rem; }
.hero__badge strong { display: block; }
.hero__badge svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--c-primary); }
@media (max-width: 56rem) { .hero__badge { position: static; margin-top: 1rem; max-width: none; } }

/* ---------- 6. Trust bar & stats -------------------------------------- */
.trust { border-block: 1px solid var(--c-line); padding-block: 1.5rem; }
.trust__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 2rem; text-align: center; }
.trust__list li { display: flex; flex-direction: column; align-items: center; }
.stat { font-size: var(--fs-3); font-weight: 800; color: var(--c-primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-0); color: var(--c-muted); }

/* ---------- 7. Cards (services, testimonials, pricing) ----------------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 3rem; height: 3rem; border-radius: .875rem; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 1rem; }
.card__icon svg { width: 1.5rem; height: 1.5rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -1rem; left: 1.5rem; width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center; background: var(--c-primary); color: #fff; font-weight: 800; font-size: 1rem; }
.step h3 { font-size: 1.2rem; margin-top: .25rem; }
.step p:last-child { margin-bottom: 0; }

/* Team */
.member { text-align: center; }
.member h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.member__avatar { width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 999px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--c-primary); }
.member__avatar--b { background: #3b6ea5; }
.member__avatar--c { background: #8a4b9c; }
.member img.member__avatar { object-fit: cover; }
.member__role { color: var(--c-primary); font-weight: 600; font-size: var(--fs-0); margin-bottom: .75rem; }
.member__meta { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--c-line); display: grid; gap: .35rem; font-size: var(--fs-0); }
.member__meta div { display: flex; justify-content: space-between; gap: 1rem; }
.member__meta dt { color: var(--c-muted); }
.member__meta dd { margin: 0; font-weight: 600; text-align: right; }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.quote blockquote { margin: 0; font-size: var(--fs-1); }
.quote blockquote p { margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-0); color: var(--c-muted); }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 999px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c-primary); flex: none; }
.avatar--b { background: #3b6ea5; }
.avatar--c { background: #8a4b9c; }
.quote figcaption strong { color: var(--c-ink); display: block; }

/* Pricing */
.pricing { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--c-primary); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); background: var(--c-accent-soft); color: var(--c-accent-ink); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan__price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: .5rem 0 .25rem; }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--c-muted); letter-spacing: 0; }
.plan__meta { color: var(--c-muted); font-size: var(--fs-0); margin-bottom: 1.25rem; }
.plan__list { display: grid; gap: .6rem; margin-bottom: 1.5rem; flex: 1; }
.plan__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-0); }
.plan__list svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--c-success); margin-top: .15rem; }
.pricing-note { text-align: center; margin-top: 1.5rem; font-size: var(--fs-0); }

/* ---------- 8. FAQ ----------------------------------------------------- */
.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .75rem; height: .75rem; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: rotate(45deg); transition: transform .2s; margin-right: .25rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { border-bottom: 1px solid var(--c-line); }
.faq .faq__body { padding: 1rem 1.25rem; color: var(--c-muted); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- 9. Booking form -------------------------------------------- */
.booking { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 56rem) { .booking { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.booking__aside ul { display: grid; gap: 1rem; margin-top: 1.5rem; }
.booking__aside li { display: flex; gap: .75rem; align-items: flex-start; }
.booking__aside li svg { width: 1.5rem; height: 1.5rem; color: var(--c-primary); flex: none; margin-top: .1rem; }
.form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: var(--fs-0); }
.field .hint { font-size: .8rem; color: var(--c-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid #9aa8b0; border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 0; box-shadow: none; border-color: var(--c-primary); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field .error { font-size: .85rem; color: var(--c-error); font-weight: 600; min-height: 0; }
.field .error:empty { display: none; }
.field--check { flex-direction: row; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.field--check input { width: 1.35rem; height: 1.35rem; min-height: 0; margin: .15rem 0 0; flex: none; accent-color: var(--c-primary); }
.field--check label { font-weight: 400; flex: 1; }
.field--check .error { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-success { background: #e6f4ec; color: var(--c-success); }
.form__status.is-error { background: #fdecea; color: var(--c-error); }

/* ---------- 10. Footer ------------------------------------------------- */
.footer { background: var(--c-footer); color: var(--c-footer-ink); padding-block: 3.5rem 2rem; }
.footer a { color: #fff; }
.footer a:hover { color: var(--c-accent-soft); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1rem; }
.footer .brand { color: #fff; }
.footer .brand span span { color: var(--c-accent-soft); }
.footer p, .footer li { font-size: var(--fs-0); }
.footer address { font-style: normal; }
.footer ul { display: grid; gap: .5rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .85rem; color: #9fb3b9; }
.footer__bottom a { color: #d6e0e3; }
.footer__note { margin: 1.25rem 0 0; font-size: .8rem; color: #9fb3b9; }

/* Error page */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: calc(var(--header-h) + 2rem); }
.error-page .code { display: block; font-size: var(--fs-4); font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: .5rem; }
.error-page p { max-width: 34rem; margin-inline: auto; }

/* ---------- 11. Back to top & reveal animations ------------------------ */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 3rem; height: 3rem; border-radius: 999px; border: 0; background: var(--c-ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(.5rem); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg { width: 1.25rem; height: 1.25rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 12. Legal page --------------------------------------------- */
.prose { max-width: 44rem; margin-inline: auto; padding-top: calc(var(--header-h) + 2rem); }
.prose h2 { font-size: var(--fs-2); margin-top: 2rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }

@media print { .header, .to-top, .skip-link { display: none; } .hero { padding-top: 0; } }
