/* ==========================================================================
   Nel Blu Behavioral Services — site styles
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Page sections
   7. Utilities  8. Motion preferences
   ========================================================================== */

/* 1. Fonts (self-hosted, latin subset, variable weight) ------------------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-var.woff2") format("woff2");
}

/* 2. Tokens -------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #17375b;
  --navy-deep: #0f2740;
  --gold: #c4a46a;          /* decorative use, and text on navy */
  --gold-text: #7d5f28;     /* gold for text on white / soft blue (AA) */
  --white: #ffffff;
  --soft-blue: #e7f0f5;

  /* Neutrals */
  --ink: #1f3347;
  --muted: #4f6275;
  --line: #d6e1e9;
  --error: #b3261e;
  --success: #1e6b4a;

  /* Type */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h1: clamp(1.875rem, 1.2rem + 2.4vw, 3.625rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4rem, 2.75rem + 4.5vw, 7rem);

  /* Layout */
  --container: 75rem;
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  --header-h: 5rem;
  --radius: 6px;
  --radius-lg: 10px;
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--navy);
}

/* 3. Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}

img,
svg,
picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }

p, ul, ol, dl { margin: 0 0 var(--space-4); }
p { max-width: 68ch; }
:where(p, ul, ol):last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--gold-text); }

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

::selection { background: var(--soft-blue); color: var(--navy-deep); }

/* 4. Layout -------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 50rem; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--soft-blue); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head p { color: var(--muted); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}

.grid-3 {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 48rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
}

/* 5. Components ---------------------------------------------------------- */

/* Skip link */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--white); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.75rem 1.625rem;
  border: 1px solid transparent; /* taste-skill-ignore: invisible, keeps button size */
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); /* taste-skill-ignore: focus ring */ }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }

.btn--primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }

.btn--secondary { background: var(--soft-blue); border-color: var(--soft-blue); color: var(--navy); }
.btn--secondary:hover { background: #d6e6ee; border-color: #d6e6ee; color: var(--navy); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--soft-blue); border-color: var(--soft-blue); color: var(--navy); }
.btn--light:focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold); } /* taste-skill-ignore: focus ring */

.btn--ghost-light { background: rgb(255 255 255 / 0.14); border-color: transparent; color: var(--white); }
.btn--ghost-light:hover { background: rgb(255 255 255 / 0.24); color: var(--white); }
.btn--ghost-light:focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold); } /* taste-skill-ignore: focus ring */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--gold-text); }
.text-link svg { width: 1rem; height: 1rem; }

/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 6px 20px rgb(15 39 64 / 0.07); /* taste-skill-ignore: sticky bar */
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.brand { display: block; flex: none; border-radius: 50%; }
.brand img { width: auto; height: 4rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--navy);
  font: 600 0.9375rem/1 var(--font-sans);
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); /* taste-skill-ignore: focus ring */ }
.nav-toggle__icon { position: relative; width: 1.125rem; height: 0.75rem; }
.nav-toggle__icon::before,
.nav-toggle__icon::after,
.nav-toggle__icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon span { top: calc(50% - 1px); }
.nav-toggle__icon::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.25rem + 1.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: block;
  padding-block: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav__link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav__cta { margin-left: var(--space-2); }
.site-nav__cta .btn { min-height: 2.75rem; padding-inline: 1.25rem; font-size: var(--fs-sm); }
.site-nav__home { display: none; }

@media (max-width: 67.49rem) {
  :root { --header-h: 4.25rem; }
  .brand img { height: 3.25rem; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    box-shadow: 0 16px 24px rgb(15 39 64 / 0.08); /* taste-skill-ignore: floating menu */
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding-block: var(--space-2) var(--space-5);
  }
  .site-nav__home { display: block; }
  .site-nav__link {
    padding-block: 0.875rem;
    font-size: 1.0625rem;
  }
  .site-nav__link[aria-current="page"] { background: var(--soft-blue); border-radius: var(--radius); padding-left: var(--space-4); }
  .site-nav__cta { margin: var(--space-5) 0 0; }
  .site-nav__cta .btn { width: 100%; min-height: 3rem; font-size: 1rem; }

  /* Without JavaScript the menu simply wraps below the logo */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: var(--space-3); }
  html:not(.js) .site-nav { width: 100%; }
}

/* Value / feature list (plain text columns, no icons) */
.features {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) {
  .features { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
}
.feature h2, .feature h3 { margin-bottom: var(--space-2); font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); }
.feature p { color: var(--ink); }

/* Service items (filled surface) */
.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--soft-blue);
}
.section--tint .service { background: var(--white); }
.service p { color: var(--ink); }
.service .text-link { align-self: flex-start; margin-top: auto; }

/* Panels */
.panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius);
}
.panel h3 { margin-bottom: var(--space-3); }
.panel p { color: var(--muted); }

/* Checklist */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--gold-text);
  border-bottom: 2px solid var(--gold-text);
  transform: rotate(-45deg);
}
.checklist--cols { gap: var(--space-3) var(--space-6); }
@media (min-width: 40rem) { .checklist--cols { grid-template-columns: 1fr 1fr; } }

/* Steps */
.steps {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(var(--steps, 3), 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font: 500 1.125rem/1 var(--font-serif);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--muted); font-size: var(--fs-sm); }

/* FAQ (native disclosure, no JavaScript) */
.faq { display: grid; gap: var(--space-3); }
.faq details { border-radius: var(--radius-lg); background: var(--soft-blue); padding-inline: var(--space-5); }
.section--tint .faq details { background: var(--white); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font: 500 var(--fs-h3)/1.3 var(--font-serif);
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: var(--space-2);
  border-right: 2px solid var(--gold-text);
  border-bottom: 2px solid var(--gold-text);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq summary:hover { color: var(--gold-text); }
.faq__answer { padding-bottom: var(--space-5); color: var(--ink); }

/* Notice */
.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--soft-blue);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.notice svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15em; color: var(--navy); }
.notice p { max-width: none; }
.note { font-size: var(--fs-sm); color: var(--muted); }

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--gold-text); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* Forms */
.form {
  display: grid;
  gap: var(--space-5);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--soft-blue);
  border-radius: var(--radius-lg);
}
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label,
.field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #a9b8c6;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317375B' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 0.75rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(23 55 91 / 0.2); /* taste-skill-ignore: focus ring */
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }

.check { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.check input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}
.check label { font-weight: 400; font-size: var(--fs-sm); }
.check .field__error { grid-column: 2; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form__status { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.form__status:empty { display: none; }
.form__status--error { color: var(--error); }
.form__success {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--soft-blue);
  border-radius: var(--radius-lg);
}
.form__success:focus { outline: none; }
.form__success h2 { font-size: var(--fs-h3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot */

/* Contact aside */
.contact-aside > * + * { margin-top: var(--space-6); }
.contact-aside h2 { font-size: var(--fs-h3); margin-bottom: var(--space-3); }

/* Prose (policy pages) */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin-top: var(--space-7); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-2); }

/* 6. Page sections ------------------------------------------------------- */

/* Home hero */
.hero { position: relative; background: var(--white); }
.hero__content { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) var(--space-6); }
.hero__content h1 { margin-bottom: var(--space-5); }
.hero__content .lead { color: var(--ink); max-width: 36rem; }
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1155 / 788;
  object-fit: cover;
}

@media (max-width: 39.99rem) {
  .hero .actions .btn { width: 100%; }
}

/* Tablet: full photograph below the copy, its white gradient blending into the page */
@media (min-width: 40rem) {
  .hero__media img { aspect-ratio: 1855 / 848; object-position: right center; }
}

/* Desktop: copy sits inside the photograph's white gradient area */
@media (min-width: 75rem) {
  .hero {
    display: flex;
    align-items: center;
    min-height: clamp(35rem, 38vw, 50rem);
  }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 70% 25%;
  }
  .hero__content {
    position: relative;
    padding-block: var(--space-8);
  }
  .hero__content > * { max-width: min(34rem, 42vw); }
  .hero__content h1 { max-width: min(44rem, 52vw); font-size: clamp(2.5rem, 1.2rem + 2.4vw, 3.25rem); }
}

/* Inner page header */
.page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
  background: var(--soft-blue);
}
.page-header .container { position: relative; }
.page-header h1 { max-width: 20ch; }
.page-header .lead { max-width: 44rem; color: var(--ink); }


/* Pull statement */
.statement {
  margin: 0;
  font: 400 clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem)/1.45 var(--font-serif);
  color: var(--navy);
}

/* Closing call-to-action band */
.cta-band {
  padding-block: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem);
  background: var(--navy);
  color: var(--white);
}
.cta-band__inner {
  display: grid;
  gap: var(--space-5) var(--space-7);
  align-items: center;
}
@media (min-width: 56rem) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: var(--space-3); }
.cta-band p { color: #d5e0ea; }
.cta-band .actions { margin-top: 0; }

/* Footer */
.site-footer {
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--navy-deep);
  color: #c9d6e2;
  font-size: var(--fs-sm);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--gold); }
.footer-grid {
  display: grid;
  gap: var(--space-7) var(--space-6);
}
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.25fr; } }
.footer-brand img {
  width: 6.5rem;
  height: auto;
  padding: 0.5rem;
  margin-bottom: var(--space-4);
  background: var(--white);
  border-radius: 50%;
}
.footer-brand p { max-width: 22rem; }
.footer-title {
  margin-bottom: var(--space-4);
  font: 700 1rem/1.4 var(--font-sans);
  color: var(--gold);
}
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.footer-links a { display: inline-block; padding-block: 0.125rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: var(--space-5);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; max-width: none; }

/* 404 */
.error-page { text-align: center; }
.error-page .actions { justify-content: center; }
.error-page p { margin-inline: auto; }

/* 7. Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px; /* taste-skill-ignore: visually hidden */
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

/* 8. Motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 9. Additions for the completed site ------------------------------------ */

/* The author rule `display: grid` on .form would otherwise override [hidden] */
[hidden] { display: none !important; }

/* Heading look for elements that need a lower heading level in the outline */
.h3 { font: 500 var(--fs-h3)/1.3 var(--font-serif); letter-spacing: -0.01em; color: var(--navy); }

/* Hero: emphasised phrase, and stacking so the copy sits above the full-bleed photo on desktop */
.hero__media { overflow: hidden; }
@media (min-width: 75rem) {
  .hero__media { z-index: 0; }
  .hero__content { z-index: 1; }
}

/* Values band */

/* Photograph on inner pages */
.figure { margin: 0; }
.figure--inline { margin-block: var(--space-6); }
.figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Stacked steps (single column, e.g. Careers) */
.steps--stacked { grid-template-columns: 1fr !important; }
.steps--stacked .step::after { display: none; }

/* Gold-ruled items used as plain blocks inside grids */
.grid-3 > .service { height: 100%; }

/* Keep the focus ring visible on the programmatically focused <main> without a flash on skip-link use */
main:focus { outline: none; }


/* Print */
@media print {
  .site-header, .skip-link, .cta-band, .nav-toggle, .hero__media { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .site-footer { background: none; color: #000; padding-top: 1rem; }
  .site-footer a { color: #000; }
}

/* Align "learn more" links to the bottom of equal-height service cards */
.service p { margin-bottom: var(--space-5); }
.service p + .text-link,
.service .text-link { margin-top: auto; }


/* 10. Revisions ---------------------------------------------------------- */
.mt-5 { margin-top: var(--space-5); }

/* Utility bar: phone, email, language */
.utility { background: var(--navy-deep); color: #dbe6ef; font-size: 0.875rem; }
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 2.5rem;
}
.utility__place { margin: 0; max-width: none; }
.utility__list { display: flex; align-items: center; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.utility a { display: inline-flex; align-items: center; gap: var(--space-2); padding-block: 0.5rem; color: var(--white); font-weight: 600; text-decoration: none; }
.utility a:hover { color: var(--gold); text-decoration: underline; }
.utility a:focus-visible { outline-color: var(--gold); }
.utility svg { width: 1rem; height: 1rem; flex: none; }
@media (max-width: 47.99rem) {
  .utility__place, .utility__email { display: none; }
  .utility__inner { justify-content: flex-end; }
  .utility__list { width: 100%; justify-content: space-between; }
}

/* Insurance list */
.insurers { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .insurers { grid-template-columns: 1fr 1fr; } }
.insurers li { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--soft-blue); }
.section--tint .insurers li { background: var(--white); }
.insurers strong { font: 500 1.375rem/1.2 var(--font-serif); color: var(--navy); }
.insurers span { color: var(--ink); font-size: var(--fs-sm); }

/* Contact card */
.contact-card { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--navy); color: var(--white); }
.contact-card h2 { color: var(--white); font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: var(--gold); }
.contact-card p { margin-bottom: var(--space-3); max-width: none; }
.contact-card__phone { font: 500 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--font-serif); text-decoration: none; }
.footer-address { font-style: normal; line-height: 1.8; }

/* Entrance motion (transform and opacity only; script adds .reveal, so nothing hides without JS) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero__media img { animation: hero-drift 1.4s ease both; }
}
@keyframes hero-drift { from { transform: scale(1.04); } to { transform: scale(1); } }

/* 11. V4: breathing room between stacked sections inside narrow content columns (service-area pages) */
.container--narrow > * + h2 { margin-top: var(--space-7); }
