/* Madison Law Firm — Law for the Injured
   Palette carried over from the original site:
   deep green #02481F, tan gold #B7955C, soft gold #E6C769 */

:root {
  --green-900: #01301a;
  --green-800: #02481f;
  --green-700: #0b5c2e;
  --gold-600: #9c7b45;
  --gold-500: #b7955c;
  --gold-300: #e6c769;
  --gold-bright: #f5c33b;
  --cream: #f8f5ef;
  --sand: #efe8dc;
  --ink: #1b1f1c;
  --muted: #5b625d;
  --line: #e2dccf;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 48, 26, 0.10);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-800); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--green-900);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.9rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-300); color: var(--green-900); }
.btn-primary:hover { background: #efd583; }
.btn-cta { background: var(--gold-bright); color: var(--green-900); box-shadow: 0 4px 14px rgba(245, 195, 59, 0.45); }
.btn-cta:hover { background: #ffd35a; box-shadow: 0 6px 18px rgba(245, 195, 59, 0.6); }
.btn-dark { background: var(--green-800); color: var(--white); }
.btn-dark:hover { background: var(--green-700); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--green-900); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--green-800); color: var(--gold-300);
  font-family: var(--serif); font-weight: 700; font-size: 1.65rem; line-height: 1;
}
.brand-text { white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-800); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-links a.btn-cta, .nav-links a.btn-cta:hover { color: var(--green-900); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem 20px; }
  .nav-links .btn { margin: 1rem 20px; justify-content: center; }
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(230,199,105,.22), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 60%, #0d3d22 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding: 5.5rem 0 5rem; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero .lead { color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 1.8rem;
}
.hero-card h2 { color: var(--white); font-size: 1.35rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--gold-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2301301a'%3E%3Cpath d='M8.1 13.6 4.5 10l1.2-1.2 2.4 2.4 6.2-6.2 1.2 1.2z'/%3E%3C/svg%3E") center/80% no-repeat;
}
.hero-card .check-list li { color: rgba(255,255,255,.9); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0; gap: 2rem; }
}

/* Page header (inner pages) */
.page-hero { background: linear-gradient(160deg, var(--green-900), var(--green-800)); color: var(--white); padding: 4rem 0 3.5rem; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500)); }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,.82); }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: var(--gold-300); text-decoration: none; }

/* Sections */
section { padding: 5rem 0; }
.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-alt { background: var(--white); }
.section-sand { background: var(--sand); }

/* Trust bar */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 2rem; }
.trust-item { display: grid; gap: .1rem; border-left: 3px solid var(--gold-500); padding-left: .9rem; }
.trust-item strong { font-family: var(--serif); font-size: 1.45rem; color: var(--green-800); line-height: 1.2; }
@media (max-width: 800px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
.trust-item span { color: var(--muted); font-size: .92rem; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold-500); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sand); color: var(--green-800);
  margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.panel {
  background: var(--green-800); color: var(--white);
  border-radius: 20px; padding: 2.2rem;
}
.panel h3 { color: var(--gold-300); }
.panel p { color: rgba(255,255,255,.85); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  background: var(--gold-300); color: var(--green-900);
}
.step h3 { margin-bottom: .25rem; }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--green-900);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; color: var(--gold-600); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-top: .8rem; color: var(--muted); max-width: 75ch; }

/* Team */
.person { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.person img { border-radius: var(--radius); background: var(--sand); aspect-ratio: 1; object-fit: cover; }
.person .role { color: var(--gold-600); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.person dl { margin: 1.2rem 0 0; }
.person dt { font-weight: 600; color: var(--green-900); margin-top: 1rem; }
.person dd { margin: .25rem 0 0; color: var(--muted); }
@media (max-width: 700px) { .person { grid-template-columns: 1fr; } .person img { max-width: 220px; } }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-900));
  color: var(--white); border-radius: 24px;
  padding: 3rem; display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: rgba(255,255,255,.8); margin: .5rem 0 0; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: .92rem; color: var(--green-900); display: grid; gap: .35rem; }
.form input, .form textarea, .form select {
  font: inherit; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold-500); border-color: var(--gold-500); }
.form-error { margin: 0; padding: .8rem 1rem; border-radius: 10px; background: #fdecea; color: #8a1c12; font-weight: 600; font-size: .95rem; }
.form .fine { font-size: .82rem; color: var(--muted); font-weight: 400; }
.notice-banner {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 12px;
  background: #fff6db; border: 2px solid var(--gold-bright); border-left-width: 6px;
  color: var(--green-900);
}
.notice-banner svg { width: 26px; height: 26px; flex: none; color: #b45309; margin-top: 1px; }
.notice-banner strong { display: block; font-size: 1.02rem; }
.notice-banner span { display: block; font-size: .92rem; color: var(--ink); margin-top: .15rem; }
.notice-banner--hero { margin-top: 1.4rem; max-width: 620px; }
.page-hero .notice-banner span { color: var(--ink); }
.field-error { color: #a1271b; font-size: .85rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.form [aria-invalid="true"] { border-color: #c0392b; background: #fff8f7; outline-color: #c0392b; }

/* Footer */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--gold-300); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero--compact { padding: 2.5rem 0 2.2rem; }
.page-hero--compact .lead { margin-bottom: 0; }
section.contact-form-section { padding-top: 2.5rem; }
