/* ==========================================================================
   Atlantis Health Group
   Bright, white healthcare theme in the brand's navy and blue.
   Built mobile-first and to WCAG 2.1 AA: text contrast of 4.5:1 or better,
   3:1 for controls and focus rings, 44px touch targets, reflow at 320px.
   ========================================================================== */

:root {
  /* Brand, sampled from the Atlantis shield */
  --navy: #0c1445;
  --navy-deep: #080e33;
  --blue: #104e84;
  --sky: #6fb4e3;

  /* Surfaces */
  --white: #ffffff;
  --tint: #eaf4fb;
  --tint-2: #d6eaf8;

  /* Text */
  --text: #1d2440;
  --muted: #47526e;

  /* Lines: --line is decorative, --field outlines controls (3:1 on white) */
  --line: #d3dde9;
  --field: #66768f;

  --focus: #1668b0;
  --err: #b3261e;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 20, 69, 0.06), 0 10px 28px -12px rgba(12, 20, 69, 0.22);

  --nav-h: 64px;
  --pad: 1.5rem;
  --wrap: 72rem;
  --font: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Notch / home-indicator insets (iPhone landscape, Android cutouts) */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(16, 78, 132, 0.15);
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--tint-2); color: var(--navy); }

/* One clear focus ring everywhere; white on the dark bands */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.topbar:focus-visible,
.section--c :focus-visible,
.footer :focus-visible { outline-color: #fff; }

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Announcement bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 44px;
  padding: 0.5rem calc(var(--pad) + var(--safe-r)) 0.5rem calc(var(--pad) + var(--safe-l));
  background: var(--navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.topbar:focus-visible { outline-offset: -5px; }
.topbar .icon { transition: transform 0.2s; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px -6px rgba(12, 20, 69, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 calc(var(--pad) + var(--safe-r)) 0 calc(var(--pad) + var(--safe-l));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
}
.brand img { height: 42px; width: auto; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand__name span {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__links {
  display: none;
  gap: 0.5rem;
  margin-left: auto;
}
.nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.875rem;
  border-radius: 999px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav__link[aria-current="page"] { background: var(--tint); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.375rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--navy);
  cursor: pointer;
}
.nav__toggle .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.25; }

/* Full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 4.5rem calc(var(--pad) + var(--safe-r)) calc(2rem + var(--safe-b)) calc(var(--pad) + var(--safe-l));
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.menu__close {
  position: absolute;
  top: 10px;
  right: calc(var(--pad) - 10px + var(--safe-r));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--navy);
  cursor: pointer;
}
.menu__close .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.25; }
.menu__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.menu__link {
  display: block;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.menu__cta {
  justify-content: center;
  min-height: 52px;
  margin-top: 1.75rem;
  font-size: 1.0625rem;
}
html.menu-open { overflow: hidden; }

/* ---------- Demo password gate ----------
   Shown to every visitor until the password is entered. The page stays visible behind a
   70% tint with a slight blur, but cannot be scrolled or clicked. */

html:not(.gate-ok),
html:not(.gate-ok) body { overflow: hidden; }
html:not(.gate-ok) body > *:not(.gate) { pointer-events: none; -webkit-user-select: none; user-select: none; }
html.gate-ok .gate { display: none; }

.gate {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) calc(1.25rem + var(--safe-r)) calc(1.25rem + var(--safe-b)) calc(1.25rem + var(--safe-l));
  background: rgba(8, 14, 51, 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.gate__panel {
  width: 100%;
  max-width: 26rem;
  margin: auto;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 30px 80px -20px rgba(8, 14, 51, 0.6);
  text-align: center;
}
.gate__mark { width: auto; height: 4rem; margin: 0 auto 1.25rem; }
.gate__label {
  display: block;
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}
.gate .input { text-align: center; }
.gate__error {
  min-height: 1.5rem;
  margin: 0.5rem 0 0.5rem;
  color: var(--err);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  margin: 0;
  padding: 0.625rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { transition: transform 0.2s; }
.btn--solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost { border-color: var(--navy); background: var(--white); color: var(--navy); }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { cursor: progress; opacity: 0.7; }

.spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .icon { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  /* Fills the first screen on phones; svh keeps the height stable while browser toolbars show and hide */
  min-height: min(calc(100vh - var(--hero-top, 108px)), 44rem);
  min-height: min(calc(100svh - var(--hero-top, 108px)), 44rem);
  background: linear-gradient(180deg, #f6fbfe 0%, var(--tint) 100%);
}

/* Soft swells along the bottom edge of the hero */
.waves {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 34%;
  max-height: 15rem;
  pointer-events: none;
}

/* Pause / play for the moving waves (WCAG 2.2.2) */
.motion {
  position: absolute;
  top: 0.5rem;
  right: calc(0.5rem + var(--safe-r));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.motion .icon { width: 1.125rem; height: 1.125rem; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem calc(var(--pad) + var(--safe-r)) calc(1.5rem + var(--safe-b)) calc(var(--pad) + var(--safe-l));
}

.hero__copy { text-align: center; }

.hero__eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--blue);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.hero__title {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 7.6vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__title-main { display: block; }

.hero__lede {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Side by side on phones so both actions stay on the first screen */
.hero__actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.hero__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  white-space: nowrap;
}

/* Brand illustration: the shield on a soft disc with four care icons around it.
   Everything inside is sized in % or em, so it scales as one piece with .hero__art. */
.hero__visual {
  order: -1;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.25rem 0 1rem;
  pointer-events: none;
}
.hero__art {
  position: relative;
  width: 54%;
  max-width: 13rem;
  aspect-ratio: 1;
  font-size: 0.65rem;
}

/* On phones the illustration takes whatever room the headline and buttons leave on the first
   screen, and steps aside entirely when there is none. Older browsers keep the fixed size above. */
@supports (container-type: size) {
  .hero__visual { container-type: size; }
  .hero__art {
    --w: min(72cqw, 19rem, 100cqh - 0.5rem);
    width: var(--w);
    max-width: none;
    font-size: calc(var(--w) / 20);
  }
  /* Little room left: just the shield as a small emblem. Almost none: nothing. */
  @container (max-height: 8rem) {
    .hero__art .chip { display: none; }
    .hero__disc { top: 0; right: 0; bottom: 0; left: 0; box-shadow: 0 0 0 0.3em rgba(255, 255, 255, 0.7), 0 0.8em 1.6em -0.8em rgba(12, 20, 69, 0.35); }
  }
  @container (max-height: 3.25rem) {
    .hero__art { display: none; }
  }
}

.hero__disc {
  position: absolute;
  top: 9%;
  right: 9%;
  bottom: 9%;
  left: 9%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff 10%, var(--tint-2) 100%);
  box-shadow: 0 0 0 0.55em rgba(255, 255, 255, 0.7), 0 1.4em 2.6em -1em rgba(12, 20, 69, 0.35);
}
.hero__disc img { width: auto; height: 60%; }

.chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 0.5em 1.2em -0.4em rgba(12, 20, 69, 0.4);
}
.chip .icon { width: 46%; height: 46%; }
.chip--a { top: 3%; left: 5%; }
.chip--b { top: 13%; right: 0; background: var(--blue); color: #fff; }
.chip--c { bottom: 7%; left: 0; background: var(--navy); color: #fff; }
.chip--d { right: 8%; bottom: 1%; }

/* Compact hero for inner pages */
.hero--page { min-height: 0; }
.hero--page .hero__inner { padding-top: 3rem; padding-bottom: 4.5rem; }
.hero--page .hero__title { font-size: clamp(2rem, 7vw, 3rem); }

/* ---------- Sections ---------- */

.section {
  padding: 3rem calc(var(--pad) + var(--safe-r)) 3rem calc(var(--pad) + var(--safe-l));
  scroll-margin-top: var(--nav-h);
}
.section--a { background: var(--white); }
.section--b { background: var(--tint); }
.section--c { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; }

.section__head {
  max-width: var(--wrap);
  margin: 0 auto 1.5rem;
  text-align: center;
}
.section__title {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.625rem, 4.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.section--c .section__title { color: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}
.cell { min-width: 0; }

.lead {
  padding-left: 1rem;
  border-left: 4px solid var(--sky);
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
.copy {
  max-width: 65ch;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.copy--lg { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.copy + .btn { margin-top: 1.5rem; }
.section--c .copy { color: #fff; }

.cell--figure { display: grid; place-items: center; }
.map { width: 100%; max-width: 34rem; }
.crest {
  width: clamp(8.5rem, 20vw, 12.5rem);
  height: clamp(8.5rem, 20vw, 12.5rem);
  padding: clamp(1.5rem, 3.4vw, 2.125rem);
  border-radius: 50%;
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18);
}

/* Why Choose Us: a single column of cards on phones (no sideways scrolling), then 2 and 3 across */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--wrap);
  margin: 0 auto;
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.feature__icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue);
}
.feature__icon .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.75; }
.feature__title {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.feature__text { color: var(--text); font-size: 1rem; line-height: 1.6; }

/* ---------- Quote / contact ---------- */

.contact {
  padding: 3rem calc(var(--pad) + var(--safe-r)) 3.5rem calc(var(--pad) + var(--safe-l));
  background: var(--tint);
  scroll-margin-top: var(--nav-h);
}
.contact--page { background: var(--white); }
.contact__inner { max-width: 44rem; margin: 0 auto; }
.contact__head { margin-bottom: 1.75rem; text-align: center; }
.contact__title {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.contact__head .copy { margin: 0 auto; }
.contact__head .copy a { display: inline-block; padding: 0.625rem 0; color: var(--blue); text-underline-offset: 3px; }
.contact__head .copy strong { color: var(--navy); }
.contact__head .copy a strong { color: inherit; }

.form {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}
.form__note { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.form__note span { color: var(--err); font-weight: 700; }

.field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.field > label {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.field--required > label::after { content: " *"; color: var(--err); font-weight: 700; }

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--field);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--text);
  /* 16px minimum: anything smaller makes iOS zoom the page on focus */
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus {
  border-color: var(--blue);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }

select.input {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1445' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
  cursor: pointer;
}

textarea.input { min-height: 8.5rem; resize: vertical; }

input[type="date"].input { color-scheme: light; text-align: left; }
input[type="date"].input::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }

input[type="file"].input {
  padding: 0.375rem;
  border-style: dashed;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
input[type="file"].input::file-selector-button {
  min-height: 36px;
  margin-right: 0.75rem;
  padding: 0.375rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.field__error { color: var(--err); font-size: 0.9375rem; line-height: 1.5; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.consent input {
  position: relative;
  display: grid;
  flex: none;
  place-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--field);
  border-radius: 5px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
/* Invisible padding so the 24px box still offers a 44px touch target */
.consent input::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
}
.consent input::after {
  content: "";
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border: solid #fff;
  border-width: 0 0 3px 3px;
  opacity: 0;
  transform: rotate(-45deg);
}
.consent input:checked { border-color: var(--blue); background: var(--blue); }
.consent input:checked::after { opacity: 1; }
.consent label {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  cursor: pointer;
}

.form__status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid #1c7a4e;
  border-radius: 8px;
  background: #e9f7ef;
  color: #0e3d27;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.form__status::before {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #1c7a4e;
}
.form__status.is-error { border-color: var(--err); background: #fdecea; color: #6b1510; }
.form__status.is-error::before { background: var(--err); }
.form__status.is-notice { border-color: #8a6100; background: #fff6d9; color: #4a3500; }
.form__status.is-notice::before { background: #8a6100; }

/* ---------- Footer ---------- */

.footer { background: var(--navy-deep); color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: 2.5rem calc(var(--pad) + var(--safe-r)) 2.5rem calc(var(--pad) + var(--safe-l));
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer__logo { display: block; border-radius: 8px; }
.footer__logo img { width: auto; height: clamp(6.5rem, 12vw, 8.5rem); }

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.tile + .tile { background: #fff; color: var(--navy); }

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  align-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1rem;
}
.footer__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.footer__link .icon { color: var(--sky); transition: transform 0.2s; }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #d5def0;
  font-size: 0.9375rem;
}
.footer__bar p {
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  /* right side leaves room for the floating scroll-to-top button */
  padding: 1.25rem calc(4.5rem + var(--safe-r)) calc(1.25rem + var(--safe-b)) calc(var(--pad) + var(--safe-l));
}

.totop {
  position: fixed;
  right: calc(1rem + var(--safe-r));
  bottom: calc(1rem + var(--safe-b));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(8, 14, 51, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}
.totop .icon { width: 1.25rem; height: 1.25rem; }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Not-found page: copy centred in a full-height hero ---------- */

.hero--center .hero__inner { justify-content: center; }
.hero--center .hero__copy { text-align: center; }
.hero--center .hero__lede { margin-right: auto; margin-left: auto; }
.hero--center .hero__actions { justify-content: center; }

/* ---------- Motion ---------- */

@keyframes spin { to { transform: rotate(360deg); } }

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* Hover only where a real pointer exists, so taps never leave a stuck hover state */
@media (hover: hover) {
  .topbar:hover { text-decoration: underline; text-underline-offset: 3px; }
  .topbar:hover .icon { transform: translateX(3px); }
  .nav__link:hover { background: var(--tint); }
  .nav__toggle:hover, .menu__close:hover { background: var(--tint); }
  .menu__link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
  .nav__cta:hover { background: var(--navy); color: #fff; }
  .btn--solid:hover { border-color: var(--navy); background: var(--navy); }
  .btn--solid:hover .icon { transform: translateX(3px); }
  .btn--ghost:hover { background: var(--tint-2); }
  .motion:hover { background: var(--navy); color: #fff; }
  .tile:hover { background: #fff; color: var(--navy); }
  .tile + .tile:hover { background: var(--tint-2); }
  .footer__link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .footer__link:hover .icon { transform: translateX(3px); }
  .totop:hover { background: var(--blue); }
  .input:hover { border-color: var(--navy); }
  input[type="file"].input:hover::file-selector-button { background: var(--tint); }
}

/* Windows high-contrast and similar modes: keep shapes that rely on backgrounds visible */
@media (forced-colors: active) {
  .btn, .nav__cta, .tile, .feature, .form, .gate__panel, .motion, .totop { border: 2px solid; }
  .consent input:checked::after { border-color: CanvasText; }
}

/* ---------- Small phones (iPhone SE, compact Androids) ---------- */

@media (max-width: 479px) {
  :root { --nav-h: 60px; }
  .brand img { height: 38px; }
  .brand__name { font-size: 1.125rem; }
  .brand__name span { font-size: 0.625rem; letter-spacing: 0.12em; }
  .nav__cta { padding: 0.375rem 0.75rem; }
}

@media (max-width: 374px) {
  :root { --pad: 1.125rem; }
  .hero__inner { padding-top: 1rem; padding-bottom: calc(1rem + var(--safe-b)); }
  .hero__eyebrow { margin-bottom: 0.375rem; font-size: 0.875rem; }
  .hero__lede { font-size: 1rem; line-height: 1.5; }
  .hero__actions { gap: 0.5rem; margin-top: 1rem; }
  .hero__actions .btn { font-size: 1rem; }
  .brand__name span { display: none; }
  .nav__cta { gap: 0.375rem; padding: 0.375rem 0.625rem; font-size: 0.875rem; }
  .motion { right: calc(0.25rem + var(--safe-r)); }
  .footer__nav { gap: 0 1rem; }
  .footer__link { font-size: 1rem; }
}

/* Short viewports (landscape phones): let the hero size to its content */
@media (max-height: 520px) and (max-width: 1023px) {
  .hero__visual { display: none; }
  .hero__inner { justify-content: center; padding-top: 0.75rem; padding-bottom: calc(0.75rem + var(--safe-b)); }
  .hero__eyebrow { margin-bottom: 0.25rem; }
  .hero__title { margin-bottom: 0.5rem; font-size: clamp(1.5rem, 4.6vw, 2rem); }
  .hero__actions { margin-top: 0.75rem; }
}

/* ---------- Tablets ---------- */

@media (min-width: 640px) {
  .hero__actions { justify-content: center; gap: 0.75rem; }
  .hero__actions .btn { flex: none; padding-right: 1.75rem; padding-left: 1.75rem; }
  .hero__lede { font-size: 1.125rem; }

  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .section__head { margin-bottom: 2rem; }

  .features { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .feature { display: block; padding: 1.5rem; }
  .feature__icon { margin-bottom: 1rem; }
  .feature__title { margin-bottom: 0.5rem; }

  .contact { padding-top: 4rem; padding-bottom: 4.5rem; }
  .form { gap: 1.5rem; padding: 2rem; }
  .form__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--about { grid-template-columns: 5fr 7fr; }
  .split--family { grid-template-columns: auto 1fr; max-width: 56rem; }
  .lead { padding-left: 1.5rem; }

  .footer__grid { grid-template-columns: auto 1fr; gap: 4rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .footer__brand { align-items: flex-start; }
  .tiles { justify-content: flex-start; }
  .footer__nav { max-width: 30rem; padding-top: 0; border-top: 0; justify-self: end; width: 100%; }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  :root { --nav-h: 72px; --pad: 2rem; }

  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__actions { margin-left: 1rem; }
  .nav__cta { padding: 0.375rem 1.125rem; font-size: 1rem; }
  .brand img { height: 46px; }

  .hero { min-height: min(calc(100vh - var(--hero-top, 116px)), 38rem); min-height: min(calc(100svh - var(--hero-top, 116px)), 38rem); }
  .waves { height: 40%; }
  .motion { top: auto; right: calc(1rem + var(--safe-r)); bottom: 1rem; }
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    max-width: calc(var(--wrap) + 2 * var(--pad));
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 5.5rem;
  }
  .hero__copy { flex: 1.25; text-align: left; }
  .hero__eyebrow { margin-bottom: 0.75rem; font-size: 1.125rem; }
  .hero__title { margin-bottom: 1.25rem; font-size: clamp(2.5rem, 4.1vw, 3.375rem); line-height: 1.12; }
  .hero__lede { max-width: 32rem; margin: 0; font-size: 1.25rem; }
  .hero__actions { justify-content: flex-start; margin-top: 2rem; }

  .hero__visual { order: 0; flex: 1; padding: 0; container-type: normal; }
  .hero__art { display: block; width: 23rem; max-width: 100%; font-size: 1.15rem; }

  .hero--page { min-height: 0; }
  .hero--page .waves { height: 46%; }
  .hero--page .hero__inner { display: block; padding-top: 4rem; padding-bottom: 6.5rem; }
  .hero--page .hero__copy { text-align: center; }
  .hero--page .hero__lede { margin: 0 auto; max-width: 40rem; }
  .hero--center .hero__copy { flex: none; text-align: center; }
  .hero--center .hero__inner { flex-direction: column; }
  .hero--center .hero__lede { margin: 0 auto; }
  .hero--center .hero__actions { justify-content: center; }

  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .section__head { margin-bottom: 2.5rem; }
  .split { gap: 4rem; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .feature { padding: 1.75rem; }
  .contact { padding-top: 5rem; padding-bottom: 5.5rem; }
}
