/* ============================================================
   Boyle Heights Fire Legal Help — visual system v2
   Concept: "atmosphere clearing to light." Deep luminous hero
   (dawn through haze), editorial serif (Fraunces) over a warm
   grotesque (Hanken Grotesk), airy light content. Warm, serious.
   ============================================================ */

:root {
  /* ink / neutrals */
  --ink: #0d1719;
  --ink-2: #16272c;
  --ink-soft: #43575d;
  --muted: #607479;
  --paper: #f2f4f2;
  --paper-2: #e7ece8;
  --line: #d4dcd8;
  --line-strong: #c2cdc8;
  --white: #ffffff;

  /* atmosphere accents */
  --gold: #cf8638;          /* sodium / dawn light through smoke */
  --gold-bright: #e7a85a;
  --gold-tint: #f5e7d3;
  --teal: #0c6e72;          /* clear air — primary action */
  --teal-deep: #094f53;
  --teal-tint: #d9ebe9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 7px;
  --shadow-sm: 0 1px 2px rgba(13, 23, 25, 0.05), 0 4px 14px rgba(13, 23, 25, 0.05);
  --shadow-lg: 0 14px 50px rgba(13, 23, 25, 0.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 0.42em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.35rem, 6vw, 4rem); font-weight: 560; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
strong { font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 0.73rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--teal-deep); margin: 0 0 0.9em;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block;
}
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ---------- advertising strip ---------- */
.adstrip {
  background: var(--ink); color: #9fb2b5; font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase; text-align: center;
  padding: 7px 16px; font-weight: 700;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 244, 242, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; color: var(--ink); letter-spacing: -0.01em; }
.brand small { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 3px; }
.header-spacer { flex: 1; }
.header-tel {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; color: var(--ink); white-space: nowrap;
}
.header-tel svg { width: 15px; height: 15px; stroke: var(--teal); }
.header-tel:hover { color: var(--teal-deep); }
.header-cta {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  padding: 10px 17px; border-radius: var(--radius); font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.header-cta:hover { background: var(--teal-deep); color: #fff; }
@media (max-width: 600px) { .header-tel span { display: none; } }

/* ---------- language toggle ---------- */
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang button { appearance: none; border: 0; background: transparent; cursor: pointer; padding: 6px 13px; color: var(--muted); font-weight: 800; font-size: 0.78rem; font-family: inherit; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ============================================================
   HERO — the signature: dawn light through clearing smoke
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
  color: #eef3f2;
  padding: clamp(60px, 11vw, 124px) 0 clamp(54px, 8vw, 92px);
}
.hero::before { /* atmosphere: warm dawn glow + cool clear-air pool */
  content: ""; position: absolute; inset: -20% -10% -10% -10%; z-index: -2;
  background:
    radial-gradient(70% 55% at 78% 8%, rgba(231, 168, 90, 0.34), rgba(231,168,90,0) 60%),
    radial-gradient(80% 70% at 12% 100%, rgba(12, 110, 114, 0.30), rgba(12,110,114,0) 62%),
    linear-gradient(165deg, #0a1416 0%, #122428 55%, #163036 100%);
}
.hero::after { /* drifting haze veil */
  content: ""; position: absolute; inset: -30%; z-index: -1; opacity: 0.5;
  background: radial-gradient(45% 40% at 60% 35%, rgba(231,168,90,0.16), transparent 70%),
              radial-gradient(40% 35% at 30% 60%, rgba(255,255,255,0.05), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, -1%, 0) scale(1.02); } to { transform: translate3d(4%, 2%, 0) scale(1.08); } }

.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }
.hero h1 { color: #fff; max-width: 18ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.hero .lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: rgba(238, 243, 242, 0.84); max-width: 56ch; margin-top: 0.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero__meta { margin-top: 26px; font-size: 0.86rem; color: rgba(238,243,242,0.6); display: flex; gap: 22px; flex-wrap: wrap; }
.hero__meta b { color: #fff; font-weight: 700; }

/* horizon line — smoke meets clear sky */
.hero-horizon { height: 2px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--teal) 75%, transparent); opacity: 0.85; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: var(--radius); text-decoration: none; border: 1.5px solid transparent; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0b7e83; color: #fff; }
.btn--gold { background: var(--gold); color: #20140a; }
.btn--gold:hover { background: var(--gold-bright); color: #20140a; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.32); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); color: #fff; }

/* ---------- status / resources banner (elevated) ---------- */
.statusbar { background: var(--ink-2); color: #dfe8e7; border-bottom: 1px solid rgba(255,255,255,0.06); }
.statusbar__inner { display: flex; gap: 16px; align-items: center; padding: 13px 0; }
.pulse { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold-bright); opacity: 0.6; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.statusbar p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: #cdd9d8; }
.statusbar strong { color: #fff; }
.statusbar a { color: var(--gold-bright); font-weight: 700; }

/* ---------- situation router cards ---------- */
.router { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; margin-top: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px;
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card:hover::before { transform: scaleX(1); }
.card__num { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); font-weight: 600; }
.card h3 { margin: 10px 0 8px; font-size: 1.22rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.card__more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--teal-deep); }

/* ---------- prose ---------- */
.prose h2 { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1em; max-width: 68ch; }
.prose li { position: relative; padding-left: 1.5em; margin-bottom: 0.62em; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.prose .note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0; font-size: 0.98rem; box-shadow: var(--shadow-sm); }
.deadline { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-tint); color: #7c4f17; border: 1px solid #e6cda3; border-radius: 999px; padding: 5px 15px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 14px; }

/* ---------- resources ---------- */
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; }
.resource { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.resource h3 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; }
.resource p { font-size: 0.93rem; margin: 0 0 5px; color: var(--ink-soft); }

/* ---------- intake (dark, premium) ---------- */
.intake { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #e3ebea; }
.intake::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 85% 0%, rgba(231,168,90,0.18), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(12,110,114,0.22), transparent 60%); }
.intake h2 { color: #fff; }
.intake .eyebrow { color: var(--gold-bright); }
.intake .eyebrow::before { background: var(--gold-bright); }
.intake .lede { color: #bccac8; max-width: 56ch; font-size: 1.08rem; }
.form-card { background: var(--white); color: var(--ink); border-radius: 12px; padding: 30px; max-width: 640px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 17px; }
.field > label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }
.req { color: var(--gold); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); padding: 12px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fbfcfb; transition: border-color .14s ease, box-shadow .14s ease;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px var(--teal-tint); outline: none; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; font-weight: 500; cursor: pointer; }
.check input { margin-top: 3px; flex: none; accent-color: var(--teal); }
.consent { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { accent-color: var(--teal); margin-top: 2px; }
.form-error { color: #b4561f; font-size: 0.85rem; margin-top: 5px; display: none; font-weight: 600; }
.field.invalid .form-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #c5662c; }
.form-success { display: none; background: var(--white); color: var(--ink); border-radius: 12px; padding: 32px; text-align: center; max-width: 640px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--teal); }
.form-success h3 { color: var(--teal-deep); }
.privacy { font-size: 0.8rem; color: #8ea09e; margin-top: 18px; max-width: 56ch; }

/* ---------- footer ---------- */
.site-footer { background: #0a1214; color: #8ea09e; font-size: 0.86rem; padding: 52px 0 56px; }
.site-footer a { color: #c2cfcd; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand b { color: #fff; }
.site-footer .brand small { color: #7d8f8d; }
.footer-contact { margin-top: 12px; line-height: 1.7; }
.footer-contact a { display: inline-block; }
.footer-nav a { display: block; margin-bottom: 8px; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.disclaimer { border-top: 1px solid #1b2a2d; margin-top: 32px; padding-top: 22px; font-size: 0.78rem; line-height: 1.6; color: #6f8280; }

.hide { display: none !important; }
