/* ============================================================
   Garden Grove Chemical Leak — shared styles
   Design system mirrors YourBreachRights.com (Zimmerman Reed).
   Palette: warm off-white surface, near-black ink, warm rust accent.
   Type: Playfair Display (headlines) + DM Sans (everything else).
   No border-radius anywhere — square corners are intentional.
   ============================================================ */

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

:root {
  --bg:      #F6F4F1;   /* warm off-white — dominant surface        */
  --ink:     #0E0E0E;   /* near-black — primary text                */
  --mid:     #6B6560;   /* warm mid-gray — body text                */
  --muted:   #A09A92;   /* muted — metadata, captions               */
  --rule:    #DDD9D3;   /* warm rule — borders & dividers           */
  --accent:  #D97F5E;   /* warm rust — CTAs, active labels, hovers   */
  --warm:    #E8E4DE;   /* warm neutral panel                       */
  --max:     1180px;    /* content column max width                 */
  --pad:     64px;      /* desktop side padding                     */
}

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- shared layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { max-width: var(--max); margin: 0 auto; padding: 72px var(--pad); border-bottom: 1px solid var(--rule); }

.eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }

/* ---------- typography ---------- */
.display {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 56px; line-height: 1.0; letter-spacing: -0.025em; color: var(--ink);
}
.display em { font-style: italic; font-weight: 400; color: var(--mid); }
h2.title {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 22px;
}
h2.title em { font-style: italic; font-weight: 400; color: var(--mid); }
h3.sub {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 12px;
}
.lead { font-size: 17px; font-weight: 300; color: var(--mid); line-height: 1.72; }
p.body { font-size: 15px; font-weight: 300; color: var(--mid); line-height: 1.78; margin-bottom: 16px; }
p.body strong { font-weight: 500; color: var(--ink); }
.label-sm { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- navigation ---------- */
.nav { background: var(--bg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.nav-logo { height: 24px; width: auto; display: block; flex-shrink: 0; }
.nav-firm { display: inline-flex; align-items: center; flex-shrink: 0; transition: opacity .15s; }
.nav-firm:hover { opacity: 0.65; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.06em;
  color: var(--mid); text-decoration: none; white-space: nowrap; transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: var(--accent) !important; border-bottom: 1px solid var(--accent); padding-bottom: 1px; font-weight: 500 !important; }
.nav-cta:hover { color: var(--ink) !important; border-color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn-fill, .btn-accent {
  padding: 14px 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; display: inline-block;
  font-family: "DM Sans", sans-serif; border: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn-fill   { background: var(--ink);    color: var(--bg); }
.btn-fill:hover   { background: var(--accent); }
.btn-accent { background: var(--accent); color: #F6F4F1; }
.btn-accent:hover { background: var(--ink); }
.btn-text {
  font-size: 12px; font-weight: 400; letter-spacing: 0.06em; color: var(--mid);
  text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; display: inline-block;
}
.btn-text:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 80px var(--pad) 64px; border-bottom: 1px solid var(--rule); }
.hero .display { margin-bottom: 24px; max-width: 820px; }
.hero .lead { max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- two-column case layout ---------- */
.case-grid { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 72px; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.case-main > section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.case-main > section:last-child { border-bottom: none; margin-bottom: 0; }
.case-main ul.plain { list-style: none; margin: 4px 0 8px; }
.case-main ul.plain li {
  font-size: 15px; font-weight: 300; color: var(--mid); line-height: 1.7;
  padding: 11px 0 11px 22px; border-bottom: 1px solid var(--rule); position: relative;
}
.case-main ul.plain li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 13px; }
.case-main ul.plain li:last-child { border-bottom: none; }

/* fact strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 8px 0 4px; }
.fact { background: var(--bg); padding: 22px 20px; }
.fact-value { font-family: "Playfair Display", serif; font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 4px; }
.fact-label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- sticky intake sidebar ---------- */
.intake { position: sticky; top: 96px; border: 1px solid var(--rule); background: #fff; }
.intake-head { background: var(--ink); color: var(--bg); padding: 24px 26px; }
.intake-head .label-sm { color: var(--accent); margin-bottom: 8px; }
.intake-head h3 { font-family: "Playfair Display", serif; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.intake-head p { font-size: 13px; font-weight: 300; color: #C9C4BE; line-height: 1.6; margin-top: 10px; }
.intake-body { padding: 0; }
.intake-frame { width: 100%; border: none; display: block; min-height: 640px; }
.intake-foot { padding: 16px 26px; border-top: 1px solid var(--rule); font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* sidebar CTA card (form now opens in a modal) */
.intake-cta { padding: 26px; }
.intake-cta .btn-accent { width: 100%; text-align: center; }
.intake-cta .note { margin-top: 14px; font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ---------- intake modal (pop-out form) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(14,14,14,.62); z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 660px; border: 1px solid var(--rule); position: relative; box-shadow: 0 24px 60px rgba(14,14,14,.28); }
.modal-head { background: var(--ink); color: var(--bg); padding: 22px 56px 22px 26px; }
.modal-head .label-sm { color: var(--accent); margin-bottom: 6px; }
.modal-head h3 { font-family: "Playfair Display", serif; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--bg); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 6px; transition: color .15s; }
.modal-close:hover { color: var(--accent); }
.modal-frame { width: 100%; border: none; display: block; min-height: 60vh; background: #fff; }
.modal-foot { padding: 14px 26px; border-top: 1px solid var(--rule); font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ---------- "how it works" steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .num { font-family: "Playfair Display", serif; font-size: 56px; font-weight: 700; color: var(--rule); line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px; }
.step .tick { width: 24px; height: 1px; background: var(--accent); margin-bottom: 14px; }
.step .head { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.step .desc { font-size: 14px; font-weight: 300; color: var(--mid); line-height: 1.7; }

/* ---------- attribute table ---------- */
.attr { border: 1px solid var(--rule); }
.attr-row { padding: 18px 24px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; }
.attr-row:last-child { border-bottom: none; }
.attr-row .k { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.attr-row .v { font-size: 14px; color: var(--ink); }
.attr-row .v.accent { font-weight: 500; color: var(--accent); }

/* ---------- attorneys ---------- */
.atty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.atty { background: var(--bg); padding: 32px 28px; }
.atty .photo { width: 100%; aspect-ratio: 4/3; background: var(--warm); border: 1px solid var(--rule); margin-bottom: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.atty .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.atty .name { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.atty .role { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.atty .bio { font-size: 14px; font-weight: 300; color: var(--mid); line-height: 1.7; }

/* ---------- dark CTA band (one per page max) ---------- */
.band { background: var(--ink); color: var(--bg); }
.band-inner { max-width: var(--max); margin: 0 auto; padding: 64px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.band h2 { font-family: "Playfair Display", serif; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.band h2 em { font-style: italic; font-weight: 400; color: #C9C4BE; }
.band p { font-size: 14px; font-weight: 300; color: #C9C4BE; line-height: 1.7; margin-top: 12px; max-width: 460px; }

/* ---------- thank-you (qualified / disqualified) ---------- */
.thanks { max-width: 720px; margin: 0 auto; padding: 120px var(--pad) 100px; text-align: center; }
.thanks .mark { width: 56px; height: 56px; border: 1px solid var(--accent); color: var(--accent); border-radius: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 28px; }
.thanks h1 { font-family: "Playfair Display", serif; font-size: 46px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 20px; }
.thanks p.msg { font-size: 18px; font-weight: 300; color: var(--mid); line-height: 1.7; max-width: 540px; margin: 0 auto 36px; }
.other-cases { border-top: 1px solid var(--rule); margin-top: 8px; text-align: left; }
.other-cases h4 { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 28px 0 4px; }
.other-cases a.case-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color .15s; }
.other-cases a.case-row .cn { font-size: 16px; font-weight: 500; color: var(--ink); }
.other-cases a.case-row .cd { font-size: 13px; font-weight: 300; color: var(--mid); flex: 1; }
.other-cases a.case-row .ca { color: var(--rule); font-size: 14px; }
.other-cases a.case-row:hover .cn { color: var(--accent); }
.other-cases a.case-row:hover .ca { color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 48px var(--pad); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-logo { height: 22px; width: auto; opacity: 0.9; margin-bottom: 16px; }
.footer .disclaimer { font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.7; max-width: 620px; }
.footer .meta { font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.7; text-align: right; }
.footer .meta a { color: var(--mid); text-decoration: none; border-bottom: 1px solid var(--rule); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .display { font-size: 40px; }
  .case-grid { grid-template-columns: 1fr; gap: 40px; }
  .intake { position: static; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; }
  .atty-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer .meta { text-align: left; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .thanks { padding: 80px var(--pad) 64px; }
  .thanks h1 { font-size: 34px; }
}
