/* =========================================================
   Design system: white and teal (matched to the logo), Inter, 8px spacing, 12-column grid.
   Change colours, type and spacing in :root.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Colour: white and teal. Logo teal is #009A96; --blue is a deeper shade of it so text and buttons pass WCAG AA. */
  --white: #ffffff;
  --mist: #f3f9f8;          /* alternate section background */
  --blue: #007B77;          /* teal: buttons, links, key accents */
  --blue-dark: #00605C;     /* hover */
  --navy: #0f2f2e;          /* deep teal ink: headings, footer */
  --text: #3d4b4a;          /* body text */
  --line: #dde9e8;          /* hairlines */
  --sky: #e3f4f3;           /* gradient start only */
  --on-navy: #ffffff;
  --on-navy-soft: #a9d6d3;  /* light teal text on footer */

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* 8px spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s15: 120px;

  --radius-card: 20px;
  --radius-img: 24px;
  --max: 1120px;
  --gutter: 32px;
  --section: var(--s8);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --section: var(--s15); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.875rem, 1.1rem + 2.2vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s2); max-width: 65ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
p a:not([class]), .faq__panel a:not([class]) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s2); top: -80px; z-index: 100;
  background: var(--blue); color: var(--white); padding: 12px 24px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: var(--s2); color: var(--white); text-decoration: none; }

/* Client-input marker (kept in palette) */
.ni {
  background: var(--sky); color: var(--navy);
  outline: 1px dashed var(--blue); outline-offset: -1px;
  border-radius: 6px; padding: 0 6px; overflow-wrap: anywhere;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

.grid-12 { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gutter); row-gap: var(--s4); }
@media (min-width: 640px) { .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.grid-12 > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 900px) {
  .span-4 { grid-column: span 4 !important; }
  .span-5 { grid-column: span 5 !important; }
  .span-6 { grid-column: span 6 !important; }
  .span-7 { grid-column: span 7 !important; }
  .start-7 { grid-column: 7 / span 6 !important; }
  .start-8 { grid-column: 8 / span 5 !important; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .md-span-6 { grid-column: span 6 !important; }
}

.section-head { margin-bottom: var(--s8); max-width: 720px; }
.label {
  display: block; font-size: 13px; line-height: 1.4; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--s2);
}
.section-head h2 + p, .lead { margin-top: var(--s3); font-size: 1.125em; }
.section-head .lead { margin-top: var(--s3); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--blue); color: var(--white);
  font: 600 16px/1.25 var(--font); letter-spacing: -0.005em;
  cursor: pointer; transition: background-color .2s var(--ease);
}
.btn:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--blue);
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg.arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s5); }
.ext-note { display: block; margin-top: var(--s2); font-size: 14px; line-height: 1.5; color: var(--text); max-width: 46ch; }
.ext-icon { width: 14px; height: 14px; flex: none; }
.phone-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1); min-height: 44px; color: var(--navy); font-weight: 500; }
.phone-line svg { width: 20px; height: 20px; color: var(--blue); }

/* ---------- Top bar ---------- */
.topbar { background: var(--mist); font-size: 14px; color: var(--text); }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s1) var(--s3); padding-block: var(--s1); }
.topbar__item { display: inline-flex; align-items: center; gap: var(--s1); }
.topbar svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }
.logo { color: var(--navy); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; max-width: 240px; }
.logo:hover { color: var(--navy); text-decoration: none; }
.logo img { display: block; height: 47px; width: auto; }
@media (max-width: 600px) { .logo img { height: 40px; } }
.footer__brand img { display: block; height: 60px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding: 10px 16px;
  background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: 500 15px var(--font); color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.no-js .site-nav { display: block; position: static; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; padding: var(--s1) 24px var(--s3); }
.site-nav li { border-bottom: 1px solid var(--line); }
.site-nav li.nav-cta { border: 0; padding-top: var(--s3); }
.site-nav a:not(.btn) {
  display: flex; align-items: center; gap: 6px; min-height: 56px;
  color: var(--navy); font-size: 17px; font-weight: 500; white-space: nowrap;
}
.site-nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue); }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; border: 0; background: none; max-height: none; overflow: visible; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s3); padding: 0; }
  .site-nav li { border: 0; }
  .site-nav li.nav-cta { padding: 0 0 0 var(--s1); }
  .site-nav a:not(.btn) { min-height: 44px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); padding-block: var(--s8); }
.hero .grid-12 { align-items: center; row-gap: var(--s6); }
.hero h1 { max-width: 12ch; }
.hero__sub { margin-top: var(--s3); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; max-width: 34ch; }
.hero__media img { width: 100%; border-radius: var(--radius-img); aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - 108px); display: flex; align-items: center; padding-block: var(--s12); }
  .hero > .container { width: min(100% - 48px, var(--max)); }
  .hero__media img { aspect-ratio: 4 / 5; max-height: calc(100svh - 300px); min-height: 480px; margin-left: auto; }
}

/* Inner page heading */
.page-hero { background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); padding-block: var(--s10) var(--s8); }
.page-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); max-width: 18ch; }
.page-hero .lead { margin-top: var(--s3); }

/* ---------- Cards ---------- */
.card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; color: inherit;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
a.card:hover { box-shadow: 0 8px 30px rgba(15, 47, 46, .06); color: inherit; text-decoration: none; }
a.card:hover h3 { color: var(--blue); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.card__body p { font-size: 16px; }
.card__body .text-link { margin-top: auto; padding-top: var(--s2); }
.card--plain .card__body { gap: var(--s2); }
.icon { width: 32px; height: 32px; color: var(--blue); margin-bottom: var(--s1); }

/* Condition index list (two columns of hairline rows) */
.index-list { list-style: none; display: grid; column-gap: var(--gutter); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .index-list { grid-template-columns: 1fr 1fr; } }
.index-list li { border-bottom: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 96px 1fr 24px; gap: var(--s3); align-items: center;
  padding-block: var(--s3); color: inherit;
}
.index-row:hover { text-decoration: none; color: inherit; }
.index-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.index-row h3 { font-size: 1.125rem; margin-bottom: 4px; transition: color .2s var(--ease); }
.index-row p { font-size: 15px; line-height: 1.5; }
.index-row svg { width: 20px; height: 20px; color: var(--blue); transition: transform .2s var(--ease); }
.index-row:hover h3 { color: var(--blue); }
.index-row:hover svg { transform: translateX(3px); }

/* Split media */
.media img { width: 100%; border-radius: var(--radius-img); }
.headshot-placeholder {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius-img);
  background: var(--mist); border: 1px dashed var(--blue);
  display: grid; place-items: center; text-align: center; padding: var(--s4);
  color: var(--navy); font-weight: 500;
}
.headshot { display: block; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin-inline: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px var(--mist); }
.headshot-placeholder svg { display: block; width: 48px; height: 48px; margin: 0 auto var(--s2); color: var(--blue); }
.stack > * + * { margin-top: var(--s3); }

/* Plain columns separated by a hairline */
.col-rule { border-top: 1px solid var(--line); padding-top: var(--s4); }
.col-rule h3 { margin-bottom: var(--s2); }


/* ---------- Inner-page components ---------- */
.jump-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s4); }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--navy); font-size: 15px; font-weight: 500;
}
.jump-links a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.jump-label { margin-top: var(--s4); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.jump-label + .jump-links { margin-top: var(--s2); }

.service-list { border-top: 1px solid var(--line); }
.service { padding-block: var(--s6); border-bottom: 1px solid var(--line); align-items: center; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
@media (min-width: 640px) and (max-width: 899px) { .service__text { grid-column: span 6 !important; } }
@media (min-width: 900px) { .service__text { grid-column: 6 / -1 !important; } }
.service h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; margin-bottom: var(--s2); }

.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); padding-block: var(--s3); }
.rows strong { display: block; color: var(--navy); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 4px; }
@media (min-width: 900px) {
  .rows--split li { display: grid; grid-template-columns: 4fr 8fr; column-gap: var(--gutter); align-items: baseline; padding-block: var(--s4); }
  .rows--split strong { margin: 0; font-size: 1.25rem; }
}

.checks { list-style: none; display: grid; gap: var(--s2); }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007B77' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.steps { list-style: none; counter-reset: step; }
.step-num { display: block; font-size: 15px; font-weight: 600; color: var(--blue); letter-spacing: .02em; margin-bottom: var(--s2); }

.box { border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s4); background: var(--white); }
.box h2, .box h3 { margin-bottom: var(--s2); }
.box .btn { margin-top: var(--s3); }
.note { border: 1px solid var(--line); border-radius: 16px; padding: var(--s2) var(--s3); color: var(--navy); font-weight: 500; max-width: none; }

.contact-list { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s4); }
.contact-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.contact-list strong { display: block; color: var(--navy); font-weight: 600; }
.map-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-img); background: var(--mist); margin-top: var(--s4); }

/* FAQ: hairline rows, plus rotates to a cross, smooth height */
.container.faq > *, .container.legal > * { max-width: 800px; }
.faq__group + .faq__group { margin-top: var(--s10); }
.faq__group h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: var(--s3); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.faq__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  min-height: 64px; padding: var(--s2) 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 1.0625rem/1.4 var(--font); color: var(--navy);
}
.faq__btn:hover { color: var(--blue); }
.faq__btn svg { width: 24px; height: 24px; flex: none; color: var(--blue); transition: transform .3s var(--ease); }
.faq__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease), visibility .35s; }
.faq__panel > div { overflow: hidden; }
.faq__panel > div > :first-child { margin-top: 0; }
.faq__panel > div > :last-child { padding-bottom: var(--s3); }
.faq__panel.is-closed { grid-template-rows: 0fr; visibility: hidden; }

/* Legal placeholders */
.placeholder-block { border: 1px dashed var(--blue); border-radius: var(--radius-card); padding: var(--s4); margin-top: var(--s3); }
.placeholder-block h2 { font-size: 1.375rem; margin-bottom: var(--s1); }
.legal h2 { font-size: 1.375rem; margin-top: var(--s5); margin-bottom: var(--s1); }
.legal p + p { margin-top: var(--s2); }

/* Closing call to action (no image) */
.cta h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-soft); font-size: 15px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--on-navy); }
.site-footer .ni { background: transparent; color: var(--on-navy); outline-color: var(--on-navy-soft); }
.footer__top { padding-block: var(--s12) var(--s8); row-gap: var(--s6); }
.footer__brand { color: var(--on-navy); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s2); }
.footer__title { color: var(--on-navy); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s2); }
.footer__list { list-style: none; display: grid; gap: var(--s1); }
.footer__list a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.site-footer .btn { margin-top: var(--s3); }
.crisis {
  border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16);
  padding-block: var(--s4); color: var(--on-navy); font-size: 17px; font-weight: 500; line-height: 1.6; max-width: none;
}
.crisis a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding-block: var(--s4) var(--s6); font-size: 14px; }
@media (min-width: 900px) {
  .footer__top > :nth-child(1) { grid-column: span 4 !important; }
  .footer__top > :nth-child(2) { grid-column: span 4 !important; }
  .footer__top > :nth-child(3) { grid-column: span 2 !important; }
  .footer__top > :nth-child(4) { grid-column: span 2 !important; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease-out, transform .45s ease-out; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media print { .topbar, .site-header, .nav-toggle { display: none; } }
