/* LawLife — The Chamber */
:root {
  --ink: #0A0C10;
  --navy: #131C33;
  --parch: #F2ECDE;
  --brass: #C7A15B;
  --slate: #8A8F9C;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(4rem, 10vw, 8.75rem);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--ink);
  color: var(--parch);
}
img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { opacity: 0.88; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.875rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.surface-ink { background: var(--ink); color: var(--parch); }
.surface-parch { background: var(--parch); color: var(--ink); }
.surface-navy { background: var(--navy); color: var(--parch); }
.surface-brass { background: var(--brass); color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, 1280px); margin-inline: auto; }
.section { padding: var(--pad) 0; position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.hairline { border: 0; border-top: 1px solid currentColor; opacity: 0.35; margin: 0; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.lead { font-size: 1.125rem; max-width: 38rem; opacity: 0.9; }
.muted { opacity: 0.78; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  background: transparent; color: var(--parch);
}
.site-header.is-stuck {
  background: var(--parch); color: var(--ink);
  box-shadow: 0 1px 0 rgba(10,12,16,0.08);
}
.site-header.is-stuck .brand-mark,
.site-header.is-stuck .nav-link { color: inherit; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0; width: min(100% - 2.5rem, var(--max)); margin-inline: auto;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px; border: 1px solid var(--brass);
  display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em; color: var(--brass);
}
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; align-items: center; }
.nav-link {
  font-size: 0.9rem; text-decoration: none; opacity: 0.88;
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; text-decoration: underline; }
.nav-cta {
  display: inline-flex; align-items: center; padding: 0.55rem 1rem;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  border: 1px solid currentColor;
}
.nav-toggle {
  display: none; background: none; border: 1px solid currentColor;
  color: inherit; padding: 0.4rem 0.65rem; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.9rem 1.35rem; font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-brass { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn-outline {
  background: transparent; color: currentColor; border-color: currentColor;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* Hero — The Chamber */
.hero-chamber {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; padding: 7rem 0 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,0.55) 0%, rgba(10,12,16,0.72) 45%, rgba(10,12,16,0.92) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(199,161,91,0.12), transparent 55%),
    url("/images/lawlife-07-consultation.jpg") center/cover no-repeat;
}
.hero-chamber .wrap { position: relative; z-index: 1; width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.hero-top {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 0.75rem;
}
.hero-content { padding: 3rem 0 2.5rem; max-width: 40rem; }
.hero-content h1 .em { color: var(--brass); }
.hero-sub { color: rgba(242,236,222,0.85); max-width: 540px; }
.hero-column {
  position: absolute; left: 8%; bottom: 18%; top: 45%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--brass), transparent);
  opacity: 0.55; z-index: 1;
}
.hero-trust {
  border-top: 1px solid rgba(242,236,222,0.25);
  padding: 0.9rem 0 1.4rem;
  font-family: var(--font-mono); font-size: 12px; color: var(--slate);
  letter-spacing: 0.04em;
}

/* Metrics */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(199,161,91,0.35);
  border-bottom: 1px solid rgba(199,161,91,0.35);
  padding: 2rem 0;
}
.metric-num {
  font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--brass); display: block; margin-bottom: 0.35rem;
}
.metric-label { font-size: 0.9rem; opacity: 0.85; }

/* Stages — vertical column rail */
.stages { display: grid; gap: 0; position: relative; padding-left: 2rem; }
.stages::before {
  content: ""; position: absolute; left: 0.35rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--brass); opacity: 0.55;
}
.stage {
  position: relative; padding: 1.35rem 0 1.35rem 1.25rem;
  border-bottom: 1px solid rgba(242,236,222,0.12);
}
.stage::before {
  content: ""; position: absolute; left: -1.72rem; top: 1.65rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--brass);
}
.stage-num { font-family: var(--font-mono); font-size: 12px; color: var(--brass); letter-spacing: 0.14em; }

/* Cards / areas */
.area-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.area-card {
  position: relative; padding: 1.75rem 1.35rem;
  background: rgba(242,236,222,0.05); border: 1px solid rgba(199,161,91,0.45);
  overflow: hidden;
}
.area-card .ghost {
  position: absolute; right: 0.6rem; top: 0.2rem;
  font-family: var(--font-mono); font-size: 3.5rem; color: rgba(199,161,91,0.12);
  line-height: 1; pointer-events: none;
}
.tick {
  display: inline-block; width: 28px; height: 1px; background: var(--brass);
  margin-bottom: 0.85rem; vertical-align: middle;
}

.media-frame {
  border: 1px solid rgba(199,161,91,0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.media-frame img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.work-card {
  border-top: 1px solid rgba(199,161,91,0.45); padding-top: 1.25rem;
}
.service-card {
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2rem; align-items: start; margin-bottom: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(199,161,91,0.25);
}
.service-card:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.service-card--reverse { grid-template-columns: 1fr minmax(220px, 340px); }
.service-card--reverse .service-card__media { order: 2; }
.service-card__media { margin: 0; }
.matter-block { margin-bottom: 2.5rem; }
.faq-list details {
  border-bottom: 1px solid rgba(199,161,91,0.3); padding: 1rem 0;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; list-style: none;
  font-family: var(--font-display); font-size: 1.15rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.disclaimer {
  font-size: 0.92rem; opacity: 0.88; border-left: 2px solid var(--brass);
  padding-left: 1rem; margin: 1.5rem 0;
}

/* Forms */
.form-grid { display: grid; gap: 1rem; max-width: 36rem; }
label { display: grid; gap: 0.35rem; font-size: 0.92rem; font-weight: 600; }
input, select, textarea {
  font: inherit; padding: 0.75rem 0.85rem; border: 1px solid rgba(10,12,16,0.25);
  background: #fff; color: var(--ink); width: 100%;
}
.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.site-footer { padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.footer-meta { opacity: 0.8; font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1.25rem 0; }
.footer-disclaimer {
  font-size: 0.82rem; opacity: 0.75; border-top: 1px solid rgba(242,236,222,0.15);
  padding-top: 1.25rem; max-width: 58rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; inset: auto 1rem 1rem; z-index: 200;
  max-width: 420px; padding: 1.25rem; border: 1px solid rgba(199,161,91,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.cookie-panel { margin-top: 0.75rem; font-size: 0.88rem; }
.cookie-panel[hidden] { display: none !important; }

/* Page hero (inner) */
.page-hero { padding: 8.5rem 0 3rem; }
.page-hero h1 { max-width: 18ch; }

/* Reveal — only when JS present */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .split, .work-grid, .area-rail, .footer-grid, .metrics, .service-card, .service-card--reverse {
    grid-template-columns: 1fr;
  }
  .service-card--reverse .service-card__media { order: 0; }
  .hero-chamber { min-height: 82vh; }
  .hero-column { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem; gap: 0.75rem;
    background: var(--parch); color: var(--ink);
  }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open { background: var(--parch); color: var(--ink); }
}

/* Prose legal pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.fee { font-family: var(--font-mono); font-size: 0.9rem; color: var(--brass); }
.surface-parch .fee { color: #8a6b2e; }
.seal {
  width: 36px; height: 36px; border: 1px solid var(--brass);
  display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 10px; color: var(--brass); margin-bottom: 1rem;
}
