/* ==========================================================================
   Veterinary clinic template — stylesheet
   --------------------------------------------------------------------------
   Structure
     1.  Design tokens          6.  Sections
     2.  Reset & base           7.  Forms
     3.  Layout primitives      8.  Footer
     4.  Typography             9.  Floating & sticky actions
     5.  Buttons & controls    10.  Motion

   Re-skinning: every colour in the site resolves from the token block below.
   Change --brand / --accent / --bg and the whole site follows.
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Light is the default in every environment; dark applies only when the
     visitor opts in with the toggle (persisted in localStorage). */
  color-scheme: light;

  /* Brand — teal family */
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-deep: #0c3f3b;
  --brand-darkest: #082e2b;
  --brand-light: #14b8a6;
  --brand-pale: #d9ebe8;
  --brand-wash: #eef6f4;

  /* Accent — warm orange */
  --accent: #f97316;
  --accent-ink: #b5480d;
  --accent-soft: #ffedd5;

  /* Neutrals — warm paper */
  --bg: #fdfbf7;
  --bg-alt: #f5f1e9;
  --surface: #ffffff;
  --surface-sunk: #faf7f1;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-mute: #78716c;
  --line: #e7e0d4;
  --line-soft: #efeae0;

  /* On dark surfaces */
  --on-dark: #f3faf8;
  --on-dark-soft: #b9d3ce;
  --on-dark-line: rgb(255 255 255 / 0.14);

  --danger: #b91c1c;

  /* Elevation — warm-tinted, low opacity */
  --shadow-xs: 0 1px 2px rgb(28 25 23 / 0.05);
  --shadow-sm: 0 2px 4px rgb(28 25 23 / 0.04), 0 6px 16px rgb(28 25 23 / 0.05);
  --shadow-md: 0 4px 10px rgb(28 25 23 / 0.05), 0 16px 36px rgb(28 25 23 / 0.08);
  --shadow-lg: 0 8px 20px rgb(28 25 23 / 0.07), 0 32px 70px rgb(28 25 23 / 0.11);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step-h1: clamp(2.45rem, 1.55rem + 3.5vw, 4.15rem);
  --step-h2: clamp(1.95rem, 1.4rem + 2.1vw, 3rem);
  --step-h3: clamp(1.2rem, 1.08rem + 0.4vw, 1.4rem);
  --step-lead: clamp(1.06rem, 1rem + 0.32vw, 1.22rem);
  --step-body: 1.0425rem;
  --step-sm: 0.94rem;
  --step-xs: 0.83rem;

  /* Rhythm */
  --section-y: clamp(4.5rem, 3.2rem + 5.2vw, 7.75rem);
  --shell: 1180px;
  --header-h: 74px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --brand: #2dd4bf;
  --brand-dark: #5eead4;
  --brand-deep: #0b3a36;
  --brand-darkest: #072623;
  --brand-light: #99f6e4;
  --brand-pale: #17403c;
  --brand-wash: #14322f;

  --accent: #fb923c;
  --accent-ink: #fdba74;
  --accent-soft: #422012;

  --bg: #131210;
  --bg-alt: #1a1815;
  --surface: #201e1a;
  --surface-sunk: #1a1815;
  --ink: #f6f2ea;
  --ink-soft: #b8b0a3;
  --ink-mute: #948c80;
  --line: #35312a;
  --line-soft: #2b2822;

  --on-dark: #f3faf8;
  --on-dark-soft: #a9c8c3;
  --on-dark-line: rgb(255 255 255 / 0.12);

  --danger: #f87171;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-sm: 0 2px 4px rgb(0 0 0 / 0.35), 0 6px 16px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 10px rgb(0 0 0 / 0.4), 0 16px 36px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 8px 20px rgb(0 0 0 / 0.45), 0 32px 70px rgb(0 0 0 / 0.5);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
dl, dd { margin: 0; }
:where(input, select, textarea) { font: inherit; }

::selection { background: var(--brand); color: #fff; }
[data-theme="dark"] ::selection { color: #07211f; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.anchor { display: block; height: 0; }

.skip-link {
  position: fixed;
  top: -120px; left: 16px;
  z-index: 300;
  background: var(--brand);
  color: #fff;
  padding: 0.75em 1.25em;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.shell {
  width: min(var(--shell), 100% - 2.75rem);
  margin-inline: auto;
}
@media (max-width: 560px) {
  .shell { width: min(var(--shell), 100% - 2.25rem); }
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  text-align: center;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.15rem;
}
.eyebrow__rule {
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}
.eyebrow--invert { color: var(--brand-light); }
.section__head .eyebrow { justify-content: center; }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.section__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.section__sub {
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: var(--step-lead);
  line-height: 1.62;
  text-wrap: pretty;
}

.lead {
  margin-top: 1.5rem;
  font-size: var(--step-lead);
  line-height: 1.66;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  font-size: var(--step-sm);
  color: var(--brand);
  margin-top: 1.35rem;
}
.link-arrow svg { transition: transform 0.28s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   5. Buttons & controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 0.945rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  padding: 0.85em 1.55em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  text-align: center;
  transition: transform 0.22s var(--ease), box-shadow 0.28s var(--ease),
              background-color 0.24s var(--ease-soft), color 0.24s var(--ease-soft),
              border-color 0.24s var(--ease-soft);
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 26%, transparent);
}
.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 34%, transparent);
}
[data-theme="dark"] .btn--primary { color: #06211e; }

.btn--outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn--quiet:hover { color: var(--brand); border-color: var(--brand); }

.btn--white {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.16);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(0 0 0 / 0.22); }
[data-theme="dark"] .btn--white { color: #0b3a36; }

.btn--ghost-light {
  border-color: rgb(255 255 255 / 0.34);
  color: var(--on-dark);
  background: rgb(255 255 255 / 0.06);
}
.btn--ghost-light:hover {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.55);
  transform: translateY(-2px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft),
              background-color 0.2s var(--ease-soft), transform 0.2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }

/* ==========================================================================
   6. Sections
   ========================================================================== */

/* ---------- Utility bar ---------- */
.utility {
  background: var(--brand-deep);
  color: var(--on-dark-soft);
  font-size: var(--step-xs);
  font-weight: 600;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: 0.4rem;
}
.utility__status { display: inline-flex; align-items: center; gap: 0.55em; }
.utility__links { display: flex; align-items: center; gap: 1.4rem; }
.utility__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  transition: color 0.2s var(--ease-soft);
}
.utility__link:hover { color: #fff; }
.utility__link--phone { color: #fff; font-weight: 700; }

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgb(74 222 128 / 0.2);
  flex-shrink: 0;
}
.status-dot--closed { background: #fbbf24; box-shadow: 0 0 0 3px rgb(251 191 36 / 0.2); }

@media (max-width: 760px) {
  .utility__inner { justify-content: center; }
  .utility__status { display: none; }
  .utility__links { gap: 1.1rem; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft),
              background-color 0.4s var(--ease-soft);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgb(28 25 23 / 0.02), 0 8px 28px rgb(28 25 23 / 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-width: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
[data-theme="dark"] .brand__mark { color: #06211e; }
.brand:hover .brand__mark { transform: rotate(-7deg) scale(1.05); }

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__descriptor {
  font-size: 0.635rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.nav__list { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.55em 0.85em;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease-soft);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85em; right: 0.85em;
  bottom: 0.28em;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brand); }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 0.65rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  padding: 11px;
}
.hamburger span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease-soft);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav {
    /* Anchored to the header rather than the viewport: the header's
       backdrop-filter makes it the containing block, so position:fixed
       would be measured from the header, not the top of the screen. */
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    max-height: calc(100vh - var(--nav-offset, 114px));
    max-height: calc(100dvh - var(--nav-offset, 114px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.85rem 1.4rem 1.6rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s var(--ease), opacity 0.24s var(--ease-soft), visibility 0.24s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    font-size: 1.05rem;
    padding: 0.85em 0.4em;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav__link::after { display: none; }
  .nav__cta { display: grid; gap: 0.6rem; margin-top: 1.35rem; }
  .header__cta { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4.5vw, 5.5rem) clamp(3.5rem, 2.5rem + 5vw, 6rem);
  overflow: clip;
}
.hero__wash {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 78% 8%, color-mix(in srgb, var(--brand-light) 22%, transparent), transparent 70%),
    radial-gradient(45% 40% at 6% 85%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h1);
  line-height: 1.045;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.15rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.15rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5em; }
.hero__facts svg { color: var(--brand); flex-shrink: 0; }

/* Hero media cluster */
.hero__media { position: relative; }
.hero__frame {
  overflow: hidden;
  background: var(--bg-alt);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.hero__frame--main {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  max-width: 27rem;
  margin-inline: auto;
}
.hero__frame--inset {
  position: absolute;
  left: max(0px, calc(50% - 20.5rem));
  bottom: 8%;
  width: min(13.5rem, 42%);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-md);
}

.hero__badge {
  position: absolute;
  top: 7%;
  right: max(0px, calc(50% - 21rem));
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 0.7rem 1rem;
}
.hero__badge strong { display: block; font-size: 0.87rem; line-height: 1.3; }
.hero__badge p { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.3; }
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgb(34 197 94 / 0.16);
  flex-shrink: 0;
}
.hero__badge-dot--closed { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  /* Stacked hero: cap the measure so the headline keeps a readable line length. */
  .hero__copy { max-width: 36rem; }
  .hero__media { max-width: 36rem; width: 100%; }
  .hero__frame--main { max-width: none; aspect-ratio: 5 / 4; }
  .hero__frame--inset { left: 0; bottom: -1.5rem; width: min(11rem, 36%); }
  .hero__badge { right: 0; top: auto; bottom: -1.25rem; }
}
@media (max-width: 620px) {
  .hero__frame--main { aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); }
  .hero__frame--inset { display: none; }
  .hero__badge {
    position: static;
    margin-top: 1rem;
    width: fit-content;
  }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Assurances ---------- */
.assurance {
  border-block: 1px solid var(--line);
  background: var(--surface-sunk);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.assurance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 0.8rem + 2vw, 2.75rem);
}
.assurance__item svg {
  width: 24px; height: 24px;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.assurance__item h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 0.35rem;
}
.assurance__item p { font-size: var(--step-sm); color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 900px) { .assurance__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .assurance__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .assurance__item { display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; }
  .assurance__item svg { grid-row: span 2; margin-bottom: 0; margin-top: 0.15rem; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
@media (max-width: 1080px) { .services { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 840px)  { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services { grid-template-columns: 1fr; } }

.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease-soft);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}
.service__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--brand-wash);
  color: var(--brand);
  margin-bottom: 1.15rem;
  transition: background-color 0.35s var(--ease-soft), transform 0.4s var(--ease);
}
.service__icon svg { width: 23px; height: 23px; }
.service:hover .service__icon { background: var(--brand); color: #fff; transform: scale(1.05); }
[data-theme="dark"] .service:hover .service__icon { color: #06211e; }

.service h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.service > p {
  font-size: var(--step-sm);
  color: var(--ink-soft);
  line-height: 1.6;
  flex-grow: 1; /* keeps the divider + list aligned across cards of unequal copy */
}
.service__list {
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.42rem;
  font-size: 0.86rem;
  color: var(--ink-mute);
}
.service__list li { position: relative; padding-left: 0.95rem; line-height: 1.5; }
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 55%, transparent);
}

/* Mobile: the icon moves beside the heading so eight cards stay scannable.
   Must follow the .service rules above — media queries add no specificity. */
@media (max-width: 560px) {
  .service {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    align-items: center;
    padding: 1.4rem 1.35rem;
  }
  .service__icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
  .service__icon svg { width: 21px; height: 21px; }
  .service h3 { grid-column: 2; margin-bottom: 0; }
  .service > p { grid-column: 1 / -1; margin-top: 0.85rem; flex-grow: 0; }
  .service__list { grid-column: 1 / -1; }
}

/* ---------- Urgent ---------- */
.urgent {
  background: linear-gradient(158deg, var(--brand-darkest), var(--brand-deep) 58%, var(--brand-dark) 130%);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.75rem);
}
/* --brand-dark is a light mint in the dark theme, so this band needs its own ramp. */
[data-theme="dark"] .urgent {
  background: linear-gradient(158deg, #05201d, var(--brand-darkest) 55%, #0f4b46 130%);
}
.urgent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.urgent__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.urgent__lead {
  margin-top: 1.1rem;
  color: var(--on-dark-soft);
  font-size: var(--step-body);
  line-height: 1.65;
  max-width: 34em;
}
.urgent__actions { margin-top: 1.85rem; }
.urgent__note {
  margin-top: 1.15rem;
  font-size: var(--step-xs);
  color: color-mix(in srgb, var(--on-dark-soft) 78%, transparent);
  max-width: 36em;
  line-height: 1.6;
}

.urgent__signs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.urgent__signs li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.045);
  font-size: 0.875rem;
  line-height: 1.45;
}
.urgent__signs li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .urgent__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .urgent__signs { grid-template-columns: 1fr; }
  .urgent__actions .btn { width: 100%; }
}

/* ---------- Approach ---------- */
.approach {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
@media (max-width: 940px) { .approach { grid-template-columns: 1fr; } }

.approach__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--bg);
}
.approach__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 940px) {
  .approach__media { aspect-ratio: 16 / 10; max-width: 34rem; }
}

.checklist { margin-top: 1.9rem; display: grid; gap: 1.05rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.85rem; }
.checklist svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.28em;
}
.checklist div { font-size: var(--step-sm); color: var(--ink-soft); line-height: 1.6; }
.checklist strong { color: var(--ink); font-weight: 700; }

.visit-steps {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.visit-steps__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.visit-steps__head h3 {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
}
.visit-steps__head p { color: var(--ink-mute); font-size: var(--step-sm); }

.visit-steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  counter-reset: step;
}
.visit-steps__list li { position: relative; }
.visit-steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.visit-steps__list h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.visit-steps__list p { font-size: var(--step-sm); color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 800px) {
  .visit-steps__list { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Life stages ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) { .stages { grid-template-columns: 1fr; } }

.stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.85rem 1.7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stage--feature {
  background: linear-gradient(170deg, var(--brand-wash), var(--surface) 70%);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.stage__age {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}
.stage h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}
.stage__body { font-size: var(--step-sm); color: var(--ink-soft); line-height: 1.62; }
.stage__list {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.55rem;
  font-size: 0.885rem;
}
.stage__list li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--ink-soft); line-height: 1.5; }
.stage__list li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 0.58em;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ---------- Facilities ---------- */
.facilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
@media (max-width: 880px) { .facilities { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

.facility {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.facility:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.facility img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 0.8s var(--ease);
}
.facility:hover img { transform: scale(1.04); }
.facility figcaption { padding: 1.4rem 1.5rem 1.6rem; }
.facility h3 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin-bottom: 0.45rem;
}
.facility p { font-size: var(--step-sm); color: var(--ink-soft); line-height: 1.6; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
@media (max-width: 880px) { .team { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card__media { overflow: hidden; background: var(--bg-alt); }
.team-card__media img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  object-position: center 26%;
  transition: transform 0.8s var(--ease);
}
.team-card:hover .team-card__media img { transform: scale(1.04); }
.team-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.team-card__role {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 0.3rem;
}
.team-card__bio {
  margin-top: 0.85rem;
  font-size: var(--step-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}
.team-card__tags { margin-top: 1.15rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.team-card__tags li {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.34em 0.85em;
  border-radius: var(--r-pill);
  background: var(--brand-wash);
  color: var(--brand);
}

/* ---------- Reviews ---------- */
.reviews { max-width: 50rem; margin-inline: auto; }
.reviews__viewport { overflow: hidden; }
.reviews__track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.review {
  flex: 0 0 100%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.9rem, 1.2rem + 2.5vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.review__quote {
  position: absolute;
  top: 0.55rem;
  right: 1.9rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.14;
  pointer-events: none;
}
.review blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.65vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-wrap: pretty;
}
.review figcaption {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
}
.review figcaption strong { display: block; font-size: 0.95rem; }
.review figcaption span { font-size: var(--step-xs); color: var(--ink-mute); font-weight: 600; }

.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 1.75rem;
}
.reviews__dots { display: flex; gap: 0.1rem; }
/* The visible dot is small; the button itself stays a comfortable touch target. */
.reviews__dot {
  position: relative;
  width: 24px;
  height: 44px;
}
.reviews__dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: width 0.35s var(--ease), background-color 0.3s var(--ease-soft);
}
.reviews__dot.is-active::before { width: 22px; background: var(--brand); }

/* ---------- Booking ---------- */
.booking {
  background: linear-gradient(155deg, var(--brand-deep), var(--brand-dark) 120%);
  color: var(--on-dark);
}
[data-theme="dark"] .booking {
  background: linear-gradient(155deg, var(--brand-darkest), #0f4b46 120%);
}
.booking__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 960px) { .booking__inner { grid-template-columns: 1fr; } }

.booking .section__title { color: #fff; }
.booking .section__title em { color: var(--brand-light); }
.booking .section__sub { color: var(--on-dark-soft); }

.booking__steps { margin-top: 2.1rem; display: grid; gap: 1.15rem; }
.booking__steps li { display: flex; gap: 0.95rem; align-items: flex-start; }
.booking__step-num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--on-dark-line);
  background: rgb(255 255 255 / 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-light);
}
.booking__steps strong { font-size: 0.97rem; font-weight: 700; }
.booking__steps p { font-size: var(--step-sm); color: var(--on-dark-soft); line-height: 1.55; }

.booking__direct {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.045);
}
.booking__direct > p { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.9rem; }
.booking__direct-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}
@media (max-width: 940px) { .faq { grid-template-columns: 1fr; } }
@media (min-width: 941px) { .faq__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); } }

.faq__list { display: grid; gap: 0.7rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.faq-item:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.faq-item[open] {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item__chevron {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease-soft);
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }

.faq-item__body {
  padding: 0 1.35rem 1.35rem;
  color: var(--ink-soft);
  font-size: var(--step-sm);
  line-height: 1.68;
}
.faq-item[open] .faq-item__body { animation: faq-open 0.35s var(--ease); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Visit ---------- */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.35rem;
  align-items: stretch;
}
@media (max-width: 940px) { .visit { grid-template-columns: 1fr; } }

.visit__map {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 26rem;
  background: var(--surface);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 26rem; border: 0; }
[data-theme="dark"] .visit__map iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.75); }

.visit__panels { display: grid; gap: 0.9rem; align-content: start; }

.info-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.45rem;
}
.info-card__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--brand-wash);
  color: var(--brand);
}
.info-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.info-card p { font-size: var(--step-sm); color: var(--ink-soft); line-height: 1.6; }
.info-card a { color: var(--brand); font-weight: 700; }
.info-card a:hover { text-decoration: underline; }
.info-card__meta {
  margin-top: 0.65rem;
  font-size: var(--step-xs) !important;
  color: var(--ink-mute) !important;
  line-height: 1.55;
}
.info-card .link-arrow { margin-top: 0.85rem; font-size: var(--step-xs); }

.hours { display: grid; gap: 0.3rem; font-size: var(--step-sm); }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { color: var(--ink-soft); }
.hours dd { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  /* Keep day and time on one line each rather than wrapping mid-label. */
  .hours { font-size: 0.85rem; }
  .hours > div { gap: 0.6rem; }
}
.hours > div.is-today dt,
.hours > div.is-today dd { color: var(--brand); }

/* ---------- Closing CTA ---------- */
.closing {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  overflow: hidden;
  color: var(--on-dark);
  background: var(--brand-darkest);
}
.closing__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--brand-darkest) 94%, transparent) 8%,
    color-mix(in srgb, var(--brand-deep) 82%, transparent) 52%,
    color-mix(in srgb, var(--brand-dark) 62%, transparent) 100%);
}
[data-theme="dark"] .closing::after {
  background: linear-gradient(115deg, rgb(5 32 29 / 0.95) 8%, rgb(7 38 35 / 0.88) 52%, rgb(15 75 70 / 0.7) 100%);
}
.closing__inner { max-width: 40rem; }
.closing h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.closing p {
  margin-top: 1rem;
  color: var(--on-dark-soft);
  font-size: var(--step-lead);
  line-height: 1.6;
}
.closing__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 520px) { .closing__actions .btn { flex: 1 1 100%; } }

/* ==========================================================================
   7. Forms
   ========================================================================== */
.booking__form-wrap { position: relative; }

.form {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 1rem + 2.2vw, 2.4rem);
}
.form__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.form__intro { font-size: var(--step-xs); color: var(--ink-mute); margin-bottom: 1.5rem; margin-top: 0.35rem; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

.form__field { margin-bottom: 1rem; min-width: 0; }
.form__field label {
  display: block;
  font-size: 0.815rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.form__field label span { color: var(--danger); }

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  max-width: 100%;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface-sunk);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xs);
  padding: 0.72em 0.9em;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft), background-color 0.2s var(--ease-soft);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--ink-mute); opacity: 0.85; }
.form__field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2.2' 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.75rem center;
  background-size: 17px;
  padding-right: 2.4rem;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.form__field textarea { resize: vertical; min-height: 84px; }
.form__field input[type="date"] { min-height: 2.9em; }
[data-theme="dark"] .form__field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }

.form__error {
  display: none;
  color: var(--danger);
  font-size: 0.765rem;
  font-weight: 700;
  margin-top: 0.32rem;
}
.form__field.has-error input,
.form__field.has-error select { border-color: var(--danger); }
.form__field.has-error .form__error { display: block; }

.form__submit { width: 100%; margin-top: 0.5rem; }
.form__fineprint {
  margin-top: 0.95rem;
  font-size: var(--step-xs);
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.55;
}
.form__fineprint a { color: var(--brand); font-weight: 700; }

/* On success the card collapses down to the confirmation rather than
   overlaying a full-height panel of empty space. */
.form.is-submitted > :not(.form__success) { display: none; }

.form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.5rem 0.5rem;
  animation: rise 0.45s var(--ease);
}
.form__success[hidden] { display: none; }
.form__success-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.form__success h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.form__success h4:focus { outline: none; }
.form__success p { color: var(--ink-soft); font-size: var(--step-sm); max-width: 36ch; line-height: 1.6; }
.form__success .btn { margin-top: 0.6rem; }

.form__success-fallback {
  font-size: var(--step-xs) !important;
  color: var(--ink-mute) !important;
}
.form__success-fallback a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.form__success-fallback[hidden] { display: none; }

.form__demo-note {
  margin-top: 0.9rem;
  font-size: var(--step-xs);
  color: color-mix(in srgb, var(--on-dark-soft) 82%, transparent);
  text-align: center;
  line-height: 1.55;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.footer {
  background: var(--brand-darkest);
  color: var(--on-dark-soft);
  padding-top: clamp(3.25rem, 2.5rem + 3vw, 4.75rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; gap: 2rem; } }

.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__descriptor { color: var(--on-dark-soft); opacity: 0.85; }
.brand--footer .brand__mark {
  background: rgb(255 255 255 / 0.1);
  color: var(--brand-light);
}

.footer__blurb {
  margin-top: 1.15rem;
  font-size: var(--step-sm);
  line-height: 1.6;
  max-width: 30ch;
  opacity: 0.9;
}

.footer__social { display: flex; gap: 0.6rem; margin-top: 1.35rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--on-dark-line);
  color: var(--on-dark-soft);
  transition: background-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft), transform 0.25s var(--ease);
}
.footer__social a:hover {
  background: var(--brand-light);
  color: #06211e;
  transform: translateY(-2px);
}

.footer__col h3 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.68;
  margin-bottom: 1rem;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: var(--step-sm);
  line-height: 1.55;
  padding-block: 0.32rem;
  transition: color 0.2s var(--ease-soft);
}
.footer__col a:hover { color: var(--brand-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: var(--step-xs);
  opacity: 0.75;
}
.footer__credit-name {
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--brand-light);
}
a.footer__credit-name:hover { text-decoration: underline; }

/* ==========================================================================
   9. Floating & sticky actions
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #05341a;
  box-shadow: 0 8px 26px rgb(37 211 102 / 0.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgb(37 211 102 / 0.42); }
.whatsapp-fab[hidden] { display: none; }

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 115;
  display: none;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgb(28 25 23 / 0.08);
}
.action-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.3rem;
  border-radius: var(--r-sm);
  font-size: 0.735rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-height: 48px;
  justify-content: center;
  transition: background-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}
.action-bar__item:active { background: var(--brand-wash); }
.action-bar__item--primary { background: var(--brand); color: #fff; }
[data-theme="dark"] .action-bar__item--primary { color: #06211e; }
.action-bar__item[hidden] { display: none; }

@media (max-width: 760px) {
  .action-bar { display: flex; gap: 0.4rem; }
  .whatsapp-fab { display: none; }
  body { padding-bottom: 4.75rem; }
}

/* ==========================================================================
   10. Motion
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   11. Small-screen refinements
   ========================================================================== */
@media (max-width: 760px) {
  /* Comfortable touch targets for controls that are otherwise text-sized. */
  .utility__inner { min-height: 44px; padding-block: 0.15rem; }
  .utility__link { padding-block: 0.45rem; }
  .icon-btn, .hamburger { width: 44px; height: 44px; }
  .link-arrow { padding-block: 0.45rem; }
  .footer__col a { padding-block: 0.5rem; }
  .info-card p a { display: inline-block; padding-block: 0.2rem; }
}

@media (max-width: 400px) {
  /* Keep the wordmark on one line beside the toggle and menu button. */
  .brand { gap: 0.55rem; }
  .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand__mark svg { width: 21px; height: 21px; }
  .brand__name { font-size: 1.05rem; }
  .brand__descriptor { font-size: 0.575rem; letter-spacing: 0.13em; }
  .header__inner { gap: 0.75rem; }

  .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; gap: 0.55em; }
  .eyebrow__rule { width: 18px; }
}

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

@media print {
  .header, .utility, .action-bar, .whatsapp-fab, .reviews__controls, .skip-link { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
