/* Gulf Coast Home Resolutions — visual system.
   Tokens from docs/design/gchr-website/_tokens.txt (approved design pass).
   Rationale: the competitor set is uniformly blue/orange "we buy houses". A warm
   sand ground with deep gulf navy and teal reads local and calm rather than
   urgent, and gives the two comparison paths distinct, non-judgmental colours. */

:root {
  --ink:     #0e2233;
  --sea:     #0f6e7d;
  --sea-lt:  #5ecbd8;
  --sand:    #f6f1e9;
  --surface: #ffffff;
  --line:    #e4ddd2;
  --muted:   #5b6b78;
  --cash:    #1a5fb4;
  --list:    #14713c;
  --warn:    #a1560b;

  --wrap: 1120px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14, 34, 51, .06), 0 8px 24px rgba(14, 34, 51, .06);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1em; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sea); margin: 0 0 .75rem;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* Skip link — keyboard users should not have to tab the whole nav. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px; flex-wrap: wrap;
}
/* A single-line wordmark: the trading name only. The legal entity is a
   disclosure, not branding — it belongs in the footer, About, Privacy and
   Terms, where it already is. */
.brand {
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; line-height: 1.2; margin-right: auto;
}

.nav { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--sea); color: var(--sea); }

.header-call {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; background: var(--sand);
}
.header-call:hover { border-color: var(--sea); color: var(--sea); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .85rem 1.6rem;
  font-family: var(--body); font-size: 1rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--sea); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--sea); color: var(--sea); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sea); outline-offset: 2px;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: var(--sea-lt); }
.section-ink p, .section-ink li { color: #cfd9e1; }
.section-ink a { color: var(--sea-lt); }

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* ── The three-path comparison — the site's differentiator ──────────── */
.paths { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.path {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--line);
}
.path-cash { border-top-color: var(--cash); }
.path-list { border-top-color: var(--list); }
.path-both { border-top-color: var(--sea); }
.path h3 { margin-bottom: .35rem; }
.path .path-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.path ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.path li { margin-bottom: .4rem; }
.caveat {
  display: block; margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line);
  font-size: .875rem; color: var(--warn); font-weight: 500;
}

/* ── Steps ──────────────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; align-items: start; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-size: 1.15rem; font-weight: 600;
  display: grid; place-items: center;
}
.section-ink .steps li::before { background: var(--sea-lt); color: var(--ink); }
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; }

/* ── Cards / grids ──────────────────────────────────────────────────── */
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.section-alt .card { background: var(--sand); }

/* ── Honesty callout — used wherever we bound a claim ───────────────── */
.note {
  border-left: 4px solid var(--warn); background: #fdf6ec;
  padding: 1.1rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0; color: #5c3d10;
}
.note strong { color: var(--warn); }
.section-ink .note { background: rgba(255,255,255,.06); color: #e8d9c2; border-left-color: #d99a4e; }
.section-ink .note strong { color: #f0b978; }

/* ── Form ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:invalid:not(:placeholder-shown) { border-color: #b42318; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* 24px is the WCAG 2.2 AA minimum target size (2.5.8); the label is a second,
   much larger target for the same control. */
.consent { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; margin: 1.35rem 0; }
.consent input { width: 24px; min-height: 24px; height: 24px; margin-top: .22rem; accent-color: var(--sea); }
.consent label { font-size: .84rem; line-height: 1.55; color: var(--muted); font-weight: 400; }

.form-status { margin-top: 1rem; font-size: .92rem; font-weight: 600; }
.form-status[data-state='error'] { color: #b42318; }
.form-status[data-state='working'] { color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: .85rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.35rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.03rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--sea); line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: '\2013'; }
.faq details[open] summary { margin-bottom: .75rem; }
.faq p:last-child { margin-bottom: 0; }

/* ── Legal / prose pages ────────────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #cfd9e1; padding: 3.5rem 0 2rem; }
.site-footer a { color: #cfd9e1; text-decoration: none; }
.site-footer a:hover { color: var(--sea-lt); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid h4 { font-family: var(--body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sea-lt); margin: 0 0 .85rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .93rem; }
.footer-brand { font-family: var(--display); font-size: 1.1rem; color: #fff; margin-bottom: .5rem; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .82rem; color: #9fb0bd;
}
.footer-legal p { margin-bottom: .6rem; }

/* ── Sticky mobile call bar ─────────────────────────────────────────── */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 50;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.15);
  }
  .callbar a {
    flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center;
    gap: .5rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .97rem;
  }
  .callbar a + a { border-left: 1px solid rgba(255,255,255,.15); }
  body { padding-bottom: 56px; }
  .site-header .wrap { min-height: 64px; padding-block: .6rem; }
  .nav { order: 3; width: 100%; gap: 1rem; font-size: .9rem; }
  .header-call { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
