/* ==========================================================================
   Norra Health — styles.css
   Scandinavian, calm, unhurried. Warm white pages, sand bands, pine accents.
   Mobile-first · breakpoints at 768px, 920px (desktop nav) and 1100px
   ========================================================================== */

:root {
  --bg: #FBFAF8;            /* warm white — page background */
  --ink: #2A2E2C;           /* graphite — text */
  --euc: #7FB0A0;           /* eucalyptus — accent */
  --pine: #3E5F54;          /* deep pine — strong accent / buttons */
  --sand: #E8E0D4;          /* sand — section bands & card fills */

  /* Secondary ink tiers. Both clear 4.5:1 on all three surfaces they land
     on — warm white 5.8/5.1, white 6.0/5.3, sand 5.1/4.6. */
  --ink-soft: rgba(42, 46, 44, 0.76);
  --ink-faint: rgba(42, 46, 44, 0.70);
  --line: rgba(42, 46, 44, 0.12);
  /* Hairlines can stay whisper-thin, but a form field's edge is a control
     boundary — WCAG 1.4.11 wants 3:1. This is graphite at 0.46 over sand,
     baked opaque so the booking card's white fill can't wash it out:
     3.13:1 against the warm-white field fill on every surface it lands on. */
  --field-border: #918E87;
  --euc-tint: rgba(127, 176, 160, 0.16);
  --pine-deep: #335046;

  /* Eucalyptus is decorative only — it fails AA as a text colour.
     This lighter tint carries 4.8:1 on pine for small text. */
  --euc-light: #BEDBD1;
  --on-pine: rgba(251, 250, 248, 0.78);   /* 4.9:1 on pine */

  --radius: 20px;
  --radius-pill: 999px;

  --font-display: "Epilogue", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;

  --shadow-soft: 0 10px 30px -18px rgba(42, 46, 44, 0.28);
  --shadow-lift: 0 24px 48px -24px rgba(62, 95, 84, 0.38);
  --shadow-card: 0 30px 60px -30px rgba(42, 46, 44, 0.35);

  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --speed: 0.45s;           /* nothing faster than 400ms */
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: clip;
  overflow-wrap: break-word;   /* long emails/URLs can never widen a track */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.28rem;
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background-color: var(--sand);   /* honest placeholder while loading */
  object-fit: cover;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Actionable phone / email links — legible on warm white, sand and pine */
.inline-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(42, 46, 44, 0.4);
  transition: color var(--speed) var(--ease),
              text-decoration-color var(--speed) var(--ease);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--pine);
  text-decoration-color: currentColor;
}

.footer-col .inline-link {
  text-decoration-color: rgba(251, 250, 248, 0.45);
}

.footer-col .inline-link:hover,
.footer-col .inline-link:focus-visible {
  color: #FFFFFF;
  text-decoration-color: currentColor;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

::selection {
  background: var(--euc);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2.5rem, 1140px);
  margin-inline: auto;
}

section[id],
aside[id] {
  scroll-margin-top: 96px;
}

/* The rule above only covers in-page anchor targets. Focus scrolls too — Tab or
   Shift+Tab onto a control the browser has to bring into view — and that scroll
   knows nothing about the sticky header, so a short control lands underneath its
   76px band and the keyboard user cannot see where they are (WCAG 2.2 SC 2.4.11).
   Same clearance, same number as the anchors. scroll-margin never paints and
   never reflows, so not a pixel of the page moves because of this. */
a,
button,
input,
select,
textarea,
summary,
[tabindex]:not([tabindex="-1"]) {
  scroll-margin-top: 96px;
}

main > section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

/* Skip link — visible only on keyboard focus */

.skip-link {
  position: absolute;
  top: -4.5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.3rem;
  border-radius: 0 0 14px 14px;
  background: var(--pine);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  transition: top var(--speed) var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- Shared pieces ---------- */

.pill {
  display: inline-block;
  padding: 0.42rem 1.05rem;
  border-radius: var(--radius-pill);
  background: var(--euc-tint);
  color: var(--pine);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill-on-sand {
  background: rgba(251, 250, 248, 0.75);
  color: var(--pine);
}

.pill-small {
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 54ch;
}

.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.75rem, 6vw, 4.25rem);
}

.section-head .pill {
  justify-self: start;
}

.section-head h2 {
  max-width: 24ch;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 58ch;
}

.section-head-left {
  text-align: left;
  margin-bottom: 2.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.92rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: background-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              translate var(--speed) var(--ease);
}

.btn-primary {
  background: var(--pine);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--pine-deep);
  translate: 0 -4px;
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  background: transparent;
  color: var(--pine);
  box-shadow: inset 0 0 0 1.5px var(--pine);
}

.btn-ghost:hover {
  background: var(--euc-tint);
  translate: 0 -4px;
  box-shadow: inset 0 0 0 1.5px var(--pine), var(--shadow-lift);
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 1.05rem 2rem;
  font-size: 1.02rem;
}

/* Sand band sections */

.band-sand {
  background: var(--sand);
}

/* ---------- Scroll reveal & hover lift ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* .lift keeps the reveal transition and adds the hover lift. It uses the
   independent `translate` property so it never fights `transform`. */
.lift {
  transition: opacity 0.65s var(--ease),
              transform 0.65s var(--ease),
              translate var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.lift:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-lift);
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -24px rgba(42, 46, 44, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--pine);
}

.brand-mark {
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Hamburger */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  border-radius: 12px;
  transition: background-color var(--speed) var(--ease);
}

.nav-toggle:hover {
  background: var(--euc-tint);
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--speed) var(--ease);
  transform-origin: center;
}

.nav-open .nav-toggle-line:first-of-type {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle-line:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile nav panel */

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 1.25rem 1.75rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(42, 46, 44, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              visibility var(--speed) var(--ease);
}

.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-list {
  display: grid;
  gap: 0.4rem;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.nav-list a:hover {
  background: var(--euc-tint);
  color: var(--pine);
}

.nav-cta {
  justify-self: start;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  align-content: center;
}

.hero-copy h1 {
  max-width: 13ch;
}

/* Hand-drawn underline under the last words of the headline */

.scribble-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.scribble {
  position: absolute;
  left: 0;
  bottom: -0.04em;
  width: 100%;
  height: 0.2em;
  color: var(--euc);
  pointer-events: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta svg {
  color: var(--euc);
  flex: none;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
}

/* Booking card — overlaps the photo (the layout signature) */

.booking-card {
  position: relative;
  margin: -3.5rem 1rem 0;
  padding: 1.75rem 1.6rem;
  background: #FFFFFF;   /* overlaps the photo — needs to read as a solid card */
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.booking-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.booking-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--euc);
  box-shadow: 0 0 0 5px var(--euc-tint);
  animation: booking-pulse 2.8s var(--ease) infinite;
}

@keyframes booking-pulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--euc-tint); }
  50%      { box-shadow: 0 0 0 10px rgba(127, 176, 160, 0.07); }
}

.booking-next {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.booking-next strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
}

.booking-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ==========================================================================
   Forms (booking card + appointment form)
   ========================================================================== */

.form-fields {
  display: grid;
  gap: 1.05rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field > span em {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  width: 100%;
  padding: 0.72rem 0.95rem;
  background: var(--bg);
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E5F54' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--euc);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 4px var(--euc-tint);
}

/* `outline: none` here out-specifies the global :focus-visible ring at the top
   of the file, which is fine while the box-shadow stands in for it — but on a
   date field Chromium parks focus on an inner segment, the host stops matching
   :focus, and the shadow goes with it. This puts the house ring back for
   keyboard focus only. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.form-row {
  display: grid;
  gap: 1.05rem;
}

.form-fine {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-faint);
  max-width: 56ch;
}

/* Inline success states */

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--euc-tint);
  color: var(--pine);
}

.form-success p {
  font-size: 0.97rem;
  line-height: 1.55;
}

.form-success svg {
  flex: none;
  margin-top: 0.15rem;
}

.form-success-large {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 3rem 1.75rem;
}

.form-success-large h3 {
  color: var(--pine);
}

.form-success-large p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.form-success-large svg {
  margin-top: 0;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust {
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2.75rem;
  row-gap: 0.9rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.trust-list svg {
  color: var(--euc);
  flex: none;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 2rem 1.8rem;
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--pine);
  margin-bottom: 0.35rem;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card:hover .service-icon {
  background: var(--pine);
  color: var(--bg);
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* Specificity (not !important) beats the generic `.service-card p` rule.
   `margin-top: auto` pins the price to the foot of every card, so the row
   of prices aligns no matter how long each description runs. */
.service-card .service-price {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}

/* `<strong>` defaults to `bolder`, which would resolve to a 900 we never
   download — inherit keeps the figures in the real Karla 700. */
.service-card .service-price strong {
  font-weight: inherit;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.how-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.how .section-head {
  margin-bottom: 2.25rem;
}

.steps {
  display: grid;
  gap: 2.1rem;
}

.step-card {
  position: relative;
  display: flex;
  gap: 1.4rem;
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(62, 95, 84, 0.3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pine);
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.step-card:hover .step-num {
  background: var(--pine);
  color: var(--bg);
  border-color: var(--pine);
}

.step-card:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: -2.1rem;
  border-left: 1.5px dashed rgba(62, 95, 84, 0.35);
}

.step-card h3 {
  margin-bottom: 0.35rem;
}

.step-card p {
  color: var(--ink-soft);
  font-size: 0.99rem;
  max-width: 46ch;
}

/* The steps sit on the sand band, so the lift shouldn't paint a card shadow */
.step-card.lift:hover {
  box-shadow: none;
}

/* ==========================================================================
   Stats (deep pine band, count-up)
   ========================================================================== */

.stats {
  background: var(--pine);
  color: var(--bg);
}

.stats-grid {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

.stat {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--euc-light);
}

.stat p {
  color: var(--on-pine);
  font-size: 0.97rem;
  max-width: 24ch;
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid {
  display: grid;
  gap: 1.75rem;
}

.team-card {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  justify-items: start;
  padding: 1.9rem 1.6rem 2rem;
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

/* Each doctor is introduced by a portrait held in the same circle language as
   `.step-num`, with the Scandinavian palette carried in the hairline ring. */
.team-photo {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  border: 1.5px solid rgba(62, 95, 84, 0.28);
  transition: border-color var(--speed) var(--ease);
}

.team-card:hover .team-photo {
  border-color: var(--pine);
}

.team-body {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
}

.team-body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ==========================================================================
   Patient stories
   ========================================================================== */

.stories-grid {
  display: grid;
  gap: 1.75rem;
}

.story-card {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding: 2.4rem 2rem 2.1rem;
  background: #FFFFFF;   /* sits on the sand band — needs to lift off it */
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* The big opening quote is ornament, not text. Chromium puts generated content
   in the accessibility tree, so without the `/ ""` each patient story is
   announced starting with a stray quotation mark. That slash is the alt-text
   form of `content` — same glyph painted, nothing handed to a screen reader. */
.story-card::before {
  content: "\201C" / "";
  position: absolute;
  top: 0.5rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--euc);
  opacity: 0.32;
  pointer-events: none;
}

.story-card blockquote p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 52ch;
}

.story-person {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.story-person img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: none;
}

.story-person div {
  display: grid;
  gap: 0.1rem;
}

.story-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.story-role {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-container {
  width: min(100% - 2.5rem, 820px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color var(--speed) var(--ease);
}

.faq-toggle:hover {
  color: var(--pine);
}

.faq-icon {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 50%;
  background: var(--euc-tint);
  color: var(--pine);
  transition: rotate var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}

.faq-item.is-open .faq-icon {
  rotate: 45deg;
  background: var(--pine);
  color: var(--bg);
}

/* `visibility: hidden` also removes the collapsed answer from the
   accessibility tree, so screen readers honour the accordion state. */
.faq-answer {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: height var(--speed) var(--ease),
              visibility var(--speed) var(--ease);
}

.faq-item.is-open .faq-answer {
  visibility: visible;
}

.faq-answer-inner {
  padding: 0 0.25rem 1.5rem;
}

.faq-answer-inner p {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ==========================================================================
   Appointment form + contact
   ========================================================================== */

.appointment-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.appointment-form {
  padding: 2rem 1.6rem;
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Once the fields are gone, the card no longer needs form-sized padding */
.appointment-form.was-sent {
  padding-block: 1rem;
}

.contact-block {
  display: grid;
  gap: 1.25rem;
}

.contact-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.contact-card {
  padding: 2.1rem 1.8rem;
  background: var(--sand);
  border-radius: var(--radius);
}

.contact-card h3 {
  font-size: 1.05rem;
  color: var(--pine);
  margin-bottom: 0.85rem;
}

.contact-card > * + h3 {
  margin-top: 1.9rem;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-list svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--pine);
}

.hours {
  display: grid;
  gap: 0.4rem;
  max-width: 320px;
}

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.98rem;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  color: var(--ink-soft);
  text-align: right;
}

.contact-note {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(42, 46, 44, 0.14);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--pine);
  color: rgba(251, 250, 248, 0.85);
  padding-block: clamp(3.5rem, 7vw, 5rem) 1.75rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.97rem;
  color: rgba(251, 250, 248, 0.78);
}

.brand-footer {
  color: var(--euc-light);
}

.brand-footer .brand-name {
  color: var(--bg);
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--euc-light);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
  font-size: 0.97rem;
}

.footer-col a {
  transition: color var(--speed) var(--ease);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-col address {
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(251, 250, 248, 0.78);
}

.btn-footer {
  margin-top: 1.35rem;
  color: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(251, 250, 248, 0.4);
}

.btn-footer:hover {
  background: rgba(251, 250, 248, 0.12);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px rgba(251, 250, 248, 0.7);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(251, 250, 248, 0.16);
  font-size: 0.88rem;
  color: rgba(251, 250, 248, 0.76);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-legal a {
  transition: color var(--speed) var(--ease);
}

.footer-legal a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Breakpoint: 768px
   ========================================================================== */

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .appointment-form {
    padding: 2.5rem 2.4rem;
  }

  .booking-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   Breakpoint: 920px — desktop navigation
   The six links plus the CTA need brand (167px) + nav (677px) + gap (16px)
   = 860px of content, and `.container` only supplies viewport − 40px. Below
   920px the row wraps, so the hamburger serves the whole 0–919px range.
   ========================================================================== */

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list {
    display: flex;
    gap: 0.35rem;
  }

  .nav-list a {
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.96rem;
  }

  .nav-cta {
    padding: 0.68rem 1.4rem;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   Breakpoint: 1100px
   ========================================================================== */

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr 1.02fr;
    gap: 4.5rem;
  }

  /* Tall enough that the booking card overlaps it rather than covers it */
  .hero-photo {
    aspect-ratio: 4 / 5;
  }

  /* Booking card hangs off the photo's lower-left corner */
  .booking-card {
    position: absolute;
    left: -3rem;
    bottom: -3rem;
    width: 340px;
    max-width: none;
    margin: 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 4.5rem;
  }

  .how-figure img {
    aspect-ratio: 3 / 3.4;
  }

  .appointment-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 2.25rem;
  }

  .footer-grid {
    gap: 3.5rem;
  }
}

/* ==========================================================================
   Reduced motion — no movement at all
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .booking-dot {
    animation: none !important;
  }

  .btn:hover,
  .lift:hover,
  .skip-link:focus {
    translate: none;
  }

  .site-nav {
    transform: none;
  }
}
