/* LegalPro — The Brief */
:root {
  --paper: #FBFBF9;
  --grey: #ECEEF1;
  --ink: #10141C;
  --blue: #2450A6;
  --oxblood: #8C2F39;
  --steel: #7A828E;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(4rem, 10vw, 8.75rem);
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; background: var(--paper); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { opacity: 0.88; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.75rem, 6vw, 5.125rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.surface-paper { background: var(--paper); color: var(--ink); }
.surface-deepink { background: var(--ink); color: var(--paper); }
.surface-grey { background: var(--grey); color: var(--ink); }
.surface-blue { background: var(--blue); color: var(--paper); }

.wrap { width: min(100% - 2.5rem, var(--max)); 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.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 1rem; }
.surface-deepink .eyebrow { color: #8eb0ff; }
.lead { font-size: 1.125rem; max-width: 36rem; opacity: 0.88; }
.muted { opacity: 0.78; }
.mono { font-family: var(--font-mono); }
.em-blue { color: var(--blue); }
.ox { color: var(--oxblood); font-weight: 600; }
.hairline { border: 0; border-top: 1px solid currentColor; opacity: 0.28; margin: 0; }
.grid-texture {
  background-image: linear-gradient(rgba(16,20,28,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(16,20,28,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: transparent; color: var(--ink); transition: background .3s ease, color .3s ease; }
.site-header.is-stuck { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.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: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-left: 3px solid var(--blue); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--blue); }
.nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: center; }
.nav-link { font-size: .9rem; text-decoration: none; opacity: .9; }
.nav-link[aria-current="page"] { text-decoration: underline; }
.nav-cta { display: inline-flex; padding: .55rem 1rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; padding: .4rem .65rem; font-family: var(--font-mono); font-size: 11px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.35rem; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .2s ease, box-shadow .2s ease; font-family: var(--font-body); }
.btn:hover { filter: brightness(1.05); box-shadow: 0 10px 28px rgba(16,20,28,.12); }
.btn-blue { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* Hero — The Brief */
.hero-brief { min-height: 92vh; padding: 7.5rem 0 3rem; position: relative; }
.hero-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .85rem; }
.hero-ticks { display: flex; gap: .35rem; align-items: center; }
.hero-ticks span { width: 10px; height: 2px; background: var(--blue); display: inline-block; }
.hero-layout { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.margin-rule { width: 3px; background: var(--blue); min-height: 100%; position: relative; }
.margin-rule .tick-label { position: absolute; left: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.margin-rule .t1 { top: 8%; } .margin-rule .t2 { top: 32%; } .margin-rule .t3 { top: 56%; } .margin-rule .t4 { top: 80%; }
.hero-copy h1 { max-width: 16ch; }
.hero-standfirst { max-width: 560px; opacity: .8; }
.framed-plate { margin-top: 2.5rem; border: 1px solid var(--ink); position: relative; box-shadow: 0 20px 50px rgba(16,20,28,.08); }
.framed-plate::before, .framed-plate::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--blue); border-style: solid; z-index: 1; }
.framed-plate::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.framed-plate::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.framed-plate img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.plate-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(36,80,166,.06) 1px, transparent 1px); background-size: 100% 28px; }
.hero-trust { margin-top: 1.25rem; font-family: var(--font-mono); font-size: 12px; color: var(--steel); }

.practice-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.strip-card { padding: 1.5rem; border: 1px solid rgba(16,20,28,.15); background: var(--grey); }
.method-band { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.method-step { border-top: 2px solid var(--blue); padding-top: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.tile { padding: 1.5rem; border: 1px solid rgba(16,20,28,.2); position: relative; background: var(--paper); box-shadow: 0 1px 0 rgba(16,20,28,.04); }
.tile .snum { font-family: var(--font-mono); font-size: 12px; color: var(--blue); letter-spacing: .1em; }
.tile::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.hours-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.faq-list summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.disclaimer { font-size: .92rem; opacity: .88; border-left: 3px solid var(--blue); padding-left: 1rem; margin: 1.5rem 0; }
.media {
  border: 1px solid rgba(16,20,28,.2);
  position: relative;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(16,20,28,.08);
}
.media::before, .media::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--blue);
  border-style: solid;
  z-index: 1;
}
.media::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.media::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.media figcaption { padding: .75rem 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.page-hero {
  padding: 8.5rem 0 3.5rem;
  position: relative;
  border-bottom: 1px solid rgba(16,20,28,.08);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(4rem, 12vw, 8rem);
  height: 3px;
  background: var(--blue);
}
.page-hero h1 { max-width: 18ch; }
.form-grid { display: grid; gap: 1rem; max-width: 36rem; }

/* Service blocks */
.service-block {
  padding: 2rem;
  border: 1px solid rgba(16,20,28,.12);
  background: var(--paper);
  position: relative;
  box-shadow: 0 1px 0 rgba(16,20,28,.04);
}
.surface-grey .service-block { background: var(--paper); }
.service-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}
.service-block .fee { margin-bottom: .5rem; }
.service-block h2 { margin-top: 0; }
.service-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.service-index-item {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(16,20,28,.12);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.surface-grey .service-index-item { background: var(--paper); }
.service-index-item:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(16,20,28,.08);
  transform: translateY(-2px);
  opacity: 1;
}
.service-index-item .snum { font-family: var(--font-mono); font-size: 12px; color: var(--blue); letter-spacing: .1em; margin-bottom: .5rem; }
.service-index-item h3 { font-size: 1.05rem; margin: 0; line-height: 1.35; }

/* Work cards */
.work-card {
  border: 1px solid rgba(16,20,28,.12);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16,20,28,.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.surface-grey .work-card { background: var(--paper); }
.work-card .media { border: 0; box-shadow: none; margin: 0; }
.work-card .media::before, .work-card .media::after { display: none; }
.work-card .media img { aspect-ratio: 16/9; }
.work-card-body { padding: 1.5rem 1.65rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.work-card-body h2, .work-card-body h3 { font-size: 1.35rem; margin-top: 0; }
.work-card-body p:last-child { margin-bottom: 0; }
.matter-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .75rem;
}
.work-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

/* Contact layout */
.contact-layout { align-items: start; }
.contact-card {
  padding: 1.75rem;
  border: 1px solid rgba(16,20,28,.12);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(16,20,28,.06);
}
.contact-card h2 { margin-top: 0; font-size: 1.5rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-meta { display: grid; gap: .35rem; margin: 1.25rem 0; }
.contact-meta a { font-weight: 600; text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; opacity: 1; }
.form-card {
  padding: 1.75rem;
  border: 1px solid rgba(16,20,28,.12);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(16,20,28,.08);
}
.form-card .form-grid { max-width: none; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(36,80,166,.35);
  outline-offset: 1px;
  border-color: var(--blue);
}

/* FAQ enhancements */
.faq-list details {
  border: 1px solid rgba(16,20,28,.1);
  border-bottom: 1px solid rgba(16,20,28,.1);
  padding: 1.15rem 1.25rem;
  margin-bottom: .75rem;
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-list details[open] {
  border-color: rgba(36,80,166,.35);
  box-shadow: 0 8px 24px rgba(16,20,28,.06);
}
.faq-list details > p, .faq-list details > ul { margin: .85rem 0 0; padding-left: .25rem; }
.faq-list summary { position: relative; padding-right: 1.75rem; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--blue);
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }

/* About values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
.value-item {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(16,20,28,.1);
  background: var(--grey);
  border-left: 3px solid var(--blue);
}
.value-item strong { display: block; margin-bottom: .35rem; font-family: var(--font-display); }
label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 600; }
input, select, textarea { font: inherit; padding: .75rem .85rem; border: 1px solid rgba(16,20,28,.25); background: #fff; color: var(--ink); width: 100%; }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.fee { font-family: var(--font-mono); font-size: .9rem; color: var(--blue); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; }

.site-footer { padding: 3.5rem 0 2rem; font-size: .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.3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.footer-disclaimer { font-size: .82rem; opacity: .75; border-top: 1px solid rgba(251,251,249,.15); padding-top: 1.25rem; max-width: 58rem; }
.surface-paper .footer-disclaimer { border-top-color: rgba(16,20,28,.12); }

.cookie-banner { position: fixed; inset: auto 1rem 1rem; z-index: 200; max-width: 420px; padding: 1.25rem; border: 1px solid rgba(16,20,28,.2); box-shadow: 0 16px 40px rgba(16,20,28,.15); }
.cookie-banner[hidden] { display: none !important; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.cookie-panel { margin-top: .75rem; font-size: .88rem; }
.cookie-panel[hidden] { display: none !important; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .hero-brief { min-height: 80vh; }
  .hero-layout, .practice-strip, .method-band, .tiles, .work-grid, .work-grid-full, .service-index, .values-grid, .hours-strip, .split, .footer-grid { grid-template-columns: 1fr; }
  .margin-rule { 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; gap: .75rem; background: var(--ink); color: var(--paper); }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open { background: var(--ink); color: var(--paper); }
}
