/* ==========================================================================
   Easy Home Buyers
   Tokens first, then base, then components, then sections in page order.
   Brand: navy #34495E, teal #5F97A5, charcoal #3A3A3A, white.
   Every size and gap below comes from a token. Add a token before adding a number.
   ========================================================================== */

/* Typefaces are self-hosted: Lato Bold (headings) and Source Sans 3 (body, labels, buttons), both under the
   SIL Open Font License, with the licence texts in assets/fonts. Latin subset only; other scripts fall back
   to the system font. */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy: #34495e;
  --navy-deep: #26374a;        /* a darker shade of the brand navy: footer, photo bands */
  --teal: #5f97a5;             /* every call-to-action button, heading rules */
  --teal-hover: #4c7d8b;       /* button hover; white text on it is 4.5:1 */
  --teal-text: #3f7585;        /* teal for text links; 5.1:1 on white */
  --teal-light: #8fc0cc;       /* accents on dark backgrounds */
  --charcoal: #3a3a3a;         /* body text */
  --ink: #232a31;              /* headings, a near-black with a little of the navy in it */
  --white: #ffffff;

  /* Supporting neutrals */
  --mist: #f2f3f5;             /* alternate section band */
  --card-from: #f3f4f6;        /* cards fade from this to white */
  --line: #dde2e6;
  --muted: #56626c;            /* secondary text; 6:1 on white */
  --on-navy: #e3ebef;          /* body text on navy */
  --on-navy-soft: #c3d2d9;     /* small print on navy */
  --field-border: #7d8d97;     /* input outlines; 3.4:1 on white, above the 3:1 minimum for UI boundaries */
  --placeholder: #5d6a74;      /* 5.6:1 on white, since the placeholder is the visible field label */
  --error: #a3342b;
  --error-on-dark: #ffc4ba;
  --draft-bg: #fff6e0;         /* TODO note on the legal pages while details are missing */
  --draft-line: #b7791f;

  /* Type */
  --font-display: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --text-xs: 0.875rem;         /* 14px  legal text, consent wording */
  --text-sm: 0.9375rem;        /* 15px  helper text, eyebrow labels */
  --text-md: 1.0625rem;        /* 17px  body */
  --text-btn: 1.1875rem;       /* 19px  button labels: bold at this size is "large text" for AA on brand teal */
  --text-lg: 1.25rem;          /* 20px  card titles, questions */
  --text-xl: 1.5rem;           /* 24px  form button, step numbers */
  --text-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);    /* 28 to 40px  h2 */
  --text-3xl: clamp(2rem, 1.45rem + 2.2vw, 3.125rem);    /* 32 to 50px  h1 */

  --lh-display: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.6;

  /* Space: an 8px scale */
  --space-1: 0.5rem;           /*   8 */
  --space-2: 1rem;             /*  16 */
  --space-3: 1.5rem;           /*  24 */
  --space-4: 2rem;             /*  32 */
  --space-5: 2.5rem;           /*  40 */
  --space-6: 3rem;             /*  48 */
  --space-8: 4rem;             /*  64 */
  --space-10: 5rem;            /*  80 */
  --space-12: 6rem;            /*  96 */

  --radius: 4px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --shadow-soft: 0 6px 18px rgb(16 24 32 / 0.08);
  --shadow-label: 0 4px 14px rgb(16 24 32 / 0.12);
  --shadow-card: 0 1px 2px rgb(16 24 32 / 0.1), 0 16px 40px rgb(16 24 32 / 0.28);

  --container: 72rem;
  --narrow: 66rem;
  --header-h: 5rem;
}

/* ------------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Author display rules (img above) would otherwise beat the browser's own [hidden] rule. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); line-height: var(--lh-display); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: var(--teal-text); }
a:hover { color: var(--navy); }
/* An email address is one long word; let it wrap on narrow phones rather than push the page sideways. */
a[href^="mailto:"] { overflow-wrap: anywhere; }

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

@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;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus { left: 0; }

.visually-hidden,
.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------ section rhythm */

.section { padding-block: var(--space-8); }
.section--mist { background: var(--mist); }

/* A dark band over the hero photo. Without the photo it is plain deep navy. */
.section--photo {
  background:
    linear-gradient(rgb(26 36 48 / 0.86), rgb(26 36 48 / 0.86)),
    url("/assets/photos/hero.jpg") center / cover no-repeat,
    var(--navy-deep);
  color: var(--on-navy);
}
.section--photo :focus-visible { outline-color: var(--white); }
.section--photo h2 { color: var(--white); }
.section--photo .section__lede { color: var(--white); }
.section--photo .section__lede a { color: var(--white); }

@media (min-width: 56rem) {
  .section { padding-block: var(--space-10); }
}

/* Every section opens the same way: a small label, the heading on a full-width teal rule, a short intro. */
.section__head { margin-bottom: var(--space-5); text-align: center; }
.section__head h2 {
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--teal);
}
.section__lede {
  max-width: 52rem;
  margin: var(--space-3) auto 0;
  font-size: var(--text-md);
}
.section__lede > p + p { margin-top: var(--space-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-2);
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-label);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}
.eyebrow img { flex: none; width: 1.5rem; height: auto; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: var(--space-1) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-btn);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--white); }
.btn--primary[disabled] { background: var(--teal-hover); border-color: var(--teal-hover); cursor: progress; }

.btn--block { width: 100%; }

/* The form's own button: bigger, as on the reference layout. */
.btn--big {
  min-height: 4rem;
  font-size: var(--text-xl);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgb(16 24 32 / 0.25);
  box-shadow: 0 6px 16px rgb(52 73 94 / 0.25);
}

/* ---------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 4.5rem;
}

.header__logo { display: block; flex: none; }
.header__logo img { height: 2.75rem; width: auto; }

/* Under 360px there is no room for a labelled Call button beside the logo, so it keeps only its icon. */
@media (max-width: 22.4375rem) {
  .header__logo img { height: 2.5rem; }
  .call-btn { justify-content: center; width: 2.75rem; padding: 0; }
  .call-btn__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

.header__right { display: flex; align-items: center; gap: var(--space-2); }

.header__nav { display: none; }
.header__nav ul { display: flex; align-items: center; gap: var(--space-3); }
.header__nav a {
  display: block;
  padding-block: var(--space-1);
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.header__nav a:hover { border-bottom-color: var(--teal); color: var(--ink); }

.header__phone { display: none; text-decoration: none; text-align: right; }
.header__phone small {
  display: block;
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.header__phone strong {
  color: var(--teal-text);
  font-size: var(--text-lg);
  font-weight: 700;
  white-space: nowrap;
}
.header__phone:hover strong { color: var(--navy); }

.header__cta { display: none; }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 2.75rem;
  padding: 0 var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: var(--text-md);
  font-weight: 700;
  text-decoration: none;
}
.call-btn svg { flex: none; width: 1.125rem; height: 1.125rem; }

.burger {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6875rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger i { display: block; height: 2px; background: var(--navy); }

.drawer {
  display: none;
  padding-block: var(--space-1) var(--space-3);
  background: var(--white);
  border-top: 1px solid var(--line);
}
.drawer.is-open { display: block; }
.drawer ul { margin-bottom: var(--space-3); }
.drawer li a {
  display: block;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Tablet: phone number and button appear; the menu stays in the drawer. */
@media (min-width: 48rem) {
  .header__bar { min-height: var(--header-h); }
  .header__logo img { height: 3.5rem; }
  .header__phone { display: block; }
  .header__cta { display: inline-flex; }
  .call-btn { display: none; }
}

/* Wide desktop: the full navigation fits, and the drawer is retired. */
@media (min-width: 72rem) {
  .header__logo img { height: 4rem; }
  .header__nav { display: block; }
  .header__nav a { white-space: nowrap; }
  .header__right { gap: var(--space-4); }
  .header__cta { min-height: 3rem; padding-inline: var(--space-3); }
  .burger, .drawer { display: none !important; }
}

/* ------------------------------------------------------------------ hero */

/* hero.jpg sits under a navy overlay. If the photo has not been added yet, the
   branded stroke artwork and plain navy underneath show instead. */
.hero {
  /* Extra darkening where the text sits, so white type clears 4.5:1 even over a very bright photo. */
  --scrim: linear-gradient(180deg, rgb(38 55 74 / 0.55) 0%, rgb(38 55 74 / 0) 75%);
  position: relative;
  padding-block: var(--space-5) var(--space-8);
  color: var(--white);
  background:
    var(--scrim),
    linear-gradient(rgb(52 73 94 / 0.64), rgb(52 73 94 / 0.64)),
    url("/assets/photos/hero.jpg") center / cover no-repeat,
    url("/assets/img/hero-strokes.svg") 4% bottom / auto 48% no-repeat,
    var(--navy);
}
.hero :focus-visible { outline-color: var(--white); }

.hero__grid { display: grid; gap: var(--space-5); }

.hero h1 {
  max-width: 20ch;
  color: var(--white);
  font-family: var(--font-body);
  text-shadow: 0 2px 8px rgb(16 24 32 / 0.35);
}

.hero__sub {
  margin-top: var(--space-3);
  max-width: 34rem;
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgb(16 24 32 / 0.35);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-3);
  max-width: 34rem;
}
.checks li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 600;
  text-shadow: 0 1px 4px rgb(16 24 32 / 0.35);
}
.checks svg { flex: none; width: 1.25rem; height: 1.25rem; }
.checks circle { fill: var(--teal-light); }
.checks path { fill: none; stroke: var(--navy-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 62rem) {
  .hero {
    --scrim: linear-gradient(90deg, rgb(38 55 74 / 0.6) 0%, rgb(38 55 74 / 0) 85%);
    padding-block: var(--space-10);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-8);
    align-items: center;
  }
}

/* ------------------------------------------------------------- lead form */

/* In the hero the form sits on a light, slightly see-through card. */
.offer {
  container-type: inline-size;
  padding: var(--space-3) var(--space-2);
  background: rgb(240 243 245 / 0.94);
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
@media (min-width: 40rem) { .offer { padding: var(--space-3); } }

.offer__title { font-size: var(--text-xl); text-align: center; }

.field { margin-top: var(--space-2); }

.field-row { display: grid; gap: 0 var(--space-2); }
@container (min-width: 22rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: var(--space-1) var(--space-2);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--text-md);
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus {
  outline: 3px solid rgb(95 151 165 / 0.45);
  outline-offset: 0;
  border-color: var(--teal-text);
}
.field.has-error input { border-color: var(--error); background: #fdf6f5; }

.field__error {
  margin-top: var(--space-1);
  color: var(--error);
  font-size: var(--text-sm);
  font-weight: 600;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  margin-top: var(--space-2);
  color: var(--charcoal);
  font-size: var(--text-xs);
  line-height: 1.45;
}
.consent input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  accent-color: var(--teal-text);
}
.consent a { white-space: nowrap; }
.consent.has-error { color: var(--error); }

.offer .btn { margin-top: var(--space-3); }

.offer__note {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
}

.offer__call {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.offer__call a {
  display: inline-block;
  color: var(--navy);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
}
.offer__call a:hover { color: var(--teal-text); }

/* At the foot of the page the form sits straight on the dark band, with no card. */
.offer--bare {
  max-width: 52rem;
  margin-inline: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--on-navy);
}
.offer--bare .field input { border-color: var(--white); }
.offer--bare .consent,
.offer--bare .offer__note,
.offer--bare .offer__call { color: var(--on-navy); }
.offer--bare .consent a,
.offer--bare .offer__call a { color: var(--white); }
.offer--bare .offer__call { border-top-color: rgb(255 255 255 / 0.2); }
.offer--bare .consent input { accent-color: var(--teal); }
.offer--bare .field__error,
.offer--bare .consent.has-error { color: var(--error-on-dark); }
.offer--bare .field__error a { color: inherit; }

.form-error {
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: #fdf6f5;
  border-left: 4px solid var(--error);
  color: var(--error);
  font-weight: 600;
}
.form-error a { color: inherit; }

/* Honeypot: present for bots, unreachable for people. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------- hero entrance (only motion on the page) */

@media (prefers-reduced-motion: no-preference) {
  .lift {
    opacity: 0;
    transform: translateY(var(--space-2));
    animation: lift 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .lift--2 { animation-delay: 0.1s; }
  .lift--3 { animation-delay: 0.2s; }
  @keyframes lift { to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------- how it works */

.steps {
  display: grid;
  gap: var(--space-3);
  max-width: var(--narrow);
  margin-inline: auto;
}
.step {
  position: relative;
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(160deg, var(--card-from) 0%, var(--white) 55%);
  border: 1px solid var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.step h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: left;
}
.step__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-text);
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1;
}
.step p { margin-top: var(--space-2); }

/* Three across, with a chevron in each gap. */
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--space-8) / -2);
    width: var(--space-3);
    height: var(--space-3);
    border-top: 6px solid #cbd2d8;
    border-right: 6px solid #cbd2d8;
    transform: translate(60%, -50%) rotate(45deg);
  }
}

/* ----------------------------------------------------------------- compare */

.compare-wrap {
  max-width: 62rem;
  margin-inline: auto;
  overflow-x: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  text-align: center;
}
.compare th,
.compare td {
  padding: var(--space-2) var(--space-1);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare thead th {
  background: linear-gradient(135deg, var(--teal-hover) 0%, var(--navy) 100%);
  border-bottom: 3px solid var(--ink);
  color: var(--white);
  font-size: var(--text-md);
  font-weight: 700;
}
.compare thead th + th { border-left: 1px solid rgb(255 255 255 / 0.25); }
.compare tbody th {
  background: var(--mist);
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.compare tbody td { border-left: 1px solid var(--line); }
.compare tbody td:last-child { border-right: 1px solid var(--line); }
.compare tbody tr:nth-child(even) td { background: #fafbfb; }
.compare td.compare__us { color: var(--ink); font-weight: 700; }

@media (min-width: 48rem) {
  .compare { font-size: var(--text-md); }
  .compare th, .compare td { padding: var(--space-2); }
  .compare thead th { font-size: var(--text-lg); }
  .compare tbody th { width: 30%; padding-left: var(--space-3); }
}

/* -------------------------------------------------------------- situations */

.situations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-2);
  max-width: var(--narrow);
  margin-inline: auto;
  text-align: center;
}
.situations dt {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: var(--lh-heading);
}
.situations dd { margin-top: var(--space-1); font-size: var(--text-sm); }

/* White disc with a drawn icon: navy outline, teal detail. */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: var(--space-2);
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}
.badge svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge .ac { stroke: var(--teal); }
.badge .ac--fill { fill: var(--white); }

@media (min-width: 48rem) {
  .situations { gap: var(--space-6) var(--space-4); }
  .situations dt { font-size: var(--text-lg); }
  .situations dd { font-size: var(--text-md); }
  .badge { width: 6rem; height: 6rem; }
  .badge svg { width: 3.25rem; height: 3.25rem; }
}
@media (min-width: 64rem) { .situations { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* -------------------------------------------------------- video placeholders */

.watch__row {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.video-slot {
  position: relative;
  flex: 0 0 min(72%, 20rem);
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--white);
  scroll-snap-align: start;
}
.video-slot svg { width: 4rem; height: 4rem; }
.video-slot circle { fill: var(--teal); }
.video-slot path { fill: var(--white); }
.video-slot__tag,
.video-slot__caption {
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  line-height: 1.3;
}
.video-slot__tag { top: var(--space-2); font-weight: 700; }
.video-slot__caption { bottom: var(--space-2); color: var(--on-navy-soft); font-size: var(--text-sm); }

/* From tablet width the three frames share the row and shrink to fit it, so the page never scrolls sideways. */
@media (min-width: 48rem) {
  .watch__row { justify-content: center; overflow: visible; }
  .video-slot { flex: 1 1 0; min-width: 0; max-width: 20rem; }
}

/* --------------------------------------------------------------- why us */

.why {
  display: grid;
  gap: var(--space-3);
  max-width: var(--narrow);
  margin-inline: auto;
}
.why li {
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(160deg, var(--card-from) 0%, var(--white) 55%);
  border-radius: var(--radius-lg);
  color: var(--charcoal);
  text-align: center;
}
.why svg {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why h3 { margin-top: var(--space-2); }
.why p { margin-top: var(--space-1); max-width: 28rem; margin-inline: auto; }

@media (min-width: 48rem) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ meet chris */

.about {
  display: grid;
  gap: var(--space-5);
  grid-template-areas: "photo" "copy" "video";
}
.about__photo { grid-area: photo; margin: 0; max-width: 20rem; }
.about__copy { grid-area: copy; }
.about__video { grid-area: video; }
.about__video .video-slot { width: 100%; max-width: 16rem; }

.about__copy p { max-width: 38rem; }
.about__copy p + p { margin-top: var(--space-2); }
.about__lead { color: var(--ink); font-weight: 700; }

/* The photo sits over a branded placeholder, so a missing file never shows a broken image. */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy) url("/assets/img/portrait-placeholder.svg") center / cover no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.about__photo figcaption { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.about__photo figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--text-lg); }

@media (min-width: 48rem) {
  .about {
    grid-template-columns: 16rem minmax(0, 1fr);
    grid-template-areas: "photo copy" ". video";
    gap: var(--space-5) var(--space-8);
    align-items: start;
  }
}
@media (min-width: 72rem) {
  .about {
    grid-template-columns: 17.5rem minmax(0, 1fr) 16rem;
    grid-template-areas: "photo copy video";
  }
}

/* -------------------------------------------------------------------- faq */

/* Every answer is open: question in bold sans, answer behind a teal rule. */
.faq {
  display: grid;
  gap: var(--space-5) var(--space-8);
  max-width: var(--narrow);
  margin-inline: auto;
}
.faq h3 {
  font-family: var(--font-body);
  text-wrap: pretty;
  font-size: var(--text-lg);
  line-height: 1.3;
}
.faq p {
  margin-top: var(--space-2);
  padding-left: var(--space-2);
  border-left: 3px solid var(--teal);
}

@media (min-width: 56rem) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ areas */

.areas {
  display: grid;
  gap: var(--space-3);
  max-width: 62rem;
  margin-inline: auto;
}
.areas > div {
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(180deg, var(--card-from) 0%, var(--white) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.areas ul { margin-top: var(--space-2); }
.areas li::before { content: "\2022\00a0"; color: var(--teal-text); }

@media (min-width: 48rem) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- closing CTA */

.closer__tel {
  display: inline-block;
  margin-top: var(--space-1);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 700;
  text-decoration: none;
}
.closer__tel:hover { color: var(--on-navy); }
/* Shown instead of the phone number while site.config.json has none. */
.closer__alt a { text-underline-offset: 3px; text-decoration-color: var(--teal); }

/* ----------------------------------------------------------------- footer */

.footer { padding-block: var(--space-8) var(--space-4); background: var(--navy-deep); color: var(--on-navy-soft); font-size: var(--text-sm); }
.footer a { color: var(--white); }
.footer a:hover { color: var(--on-navy); }
.footer :focus-visible { outline-color: var(--white); }

.footer__grid { display: grid; gap: var(--space-5); }
.footer__logo { height: 4.5rem; width: auto; }
.footer__blurb { margin-top: var(--space-2); max-width: 22rem; font-size: var(--text-md); }

.footer__title {
  margin-bottom: var(--space-2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer li { margin-bottom: var(--space-1); }
.footer__links a { font-weight: 600; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__contact a { font-size: var(--text-md); }

.social { display: flex; gap: var(--space-1); margin-top: var(--space-3); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #4a5f74;
  border-radius: var(--radius);
}
.social a:hover { border-color: var(--teal-light); }
.social svg { width: 1.25rem; height: 1.25rem; }

.footer__legal {
  max-width: 62rem;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid #3c5068;
  font-size: var(--text-xs);
  line-height: 1.7;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid #3c5068;
  font-size: var(--text-xs);
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { text-decoration: underline; }

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
}

/* ---------------------------------------------------------- sticky mobile CTA */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--line);
  transition: transform 0.2s ease, visibility 0.2s;
}
.sticky-cta.is-hidden { transform: translateY(100%); visibility: hidden; }

@media (max-width: 47.99rem) { body { padding-bottom: 5.5rem; } }
@media (min-width: 48rem) { .sticky-cta { display: none; } }

/* ------------------------------------------------- subpage headline band */

.pagehead {
  padding-block: var(--space-6);
  background:
    linear-gradient(rgb(38 55 74 / 0.9), rgb(38 55 74 / 0.9)),
    url("/assets/photos/hero.jpg") center / cover no-repeat,
    var(--navy);
  color: var(--white);
  text-align: center;
}
.pagehead h1 { color: var(--white); font-size: var(--text-2xl); }
.pagehead__lede { max-width: 40rem; margin: var(--space-2) auto 0; color: var(--on-navy); font-size: var(--text-lg); }
@media (min-width: 56rem) { .pagehead { padding-block: var(--space-8); } }

/* ------------------------------------------------------------ legal pages */

.prose { max-width: 44rem; margin-inline: auto; }
.prose h2 {
  margin-top: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--teal);
  font-size: var(--text-xl);
}
.prose h3 { margin-top: var(--space-3); font-size: var(--text-lg); }
.prose p { margin-top: var(--space-2); }
.prose ul { margin-top: var(--space-2); padding-left: var(--space-3); list-style: disc; }
.prose li { margin-top: var(--space-1); padding-left: var(--space-1); }
.prose li::marker { color: var(--teal-text); }
.prose__updated {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-label);
  color: var(--muted);
  font-size: var(--text-sm);
}
.prose__updated + h2,
.draft-note + h2 { margin-top: var(--space-5); }
/* Visible until site.config.json has the details these pages depend on. */
.prose .draft-note {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--draft-bg);
  border-left: 4px solid var(--draft-line);
  font-size: var(--text-sm);
}
