/* ==========================================================================
   Whitaker Hollis LLP — portfolio piece 03 (multi-attorney firm)
   Third design language: cool, dense, institutional. Near-white, sharp corners,
   a single restrained accent, tighter vertical rhythm than pieces 01 and 02.
   Same engineering: one stylesheet, no external requests, no build step.
   ========================================================================== */

:root {
  --ink: #101828;
  --ink-2: #1d2939;
  --body: #475467;
  --muted: #98a2b3;
  --line: #e4e7ec;
  --line-soft: #f2f4f7;
  --paper: #ffffff;
  --paper-2: #f9fafb;
  --accent: #1b3a5c;
  --accent-2: #12293f;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section: clamp(3.25rem, 6.5vw, 5.5rem);
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--sans); font-size: 1rem; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; margin: 0 0 .55em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .75rem 1.25rem; }
.skip:focus { left: 0; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #98a6bb; }
.section--ink h2, .section--ink h3 { color: #fff; }

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.185rem); color: var(--ink-2); line-height: 1.6; }
.measure { max-width: 64ch; }

.label {
  font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section--ink .label { color: #8fb0d4; }
.section--ink .label::after { background: rgba(255,255,255,.16); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .95rem 1.6rem; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- Header --------------------------------------------------------------- */
.topbar { background: var(--ink); color: #8b98ad; font-size: .78125rem; letter-spacing: .02em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #8fb0d4; }
@media (max-width: 700px) { .topbar__note { display: none; } .topbar .wrap { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }

.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.1; }
.brand__mark { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); letter-spacing: .01em; }
.brand__sub { font-size: .625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-block: .3rem; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.header .btn { padding: .7rem 1.25rem; font-size: .75rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .55rem .9rem; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

@media (max-width: 980px) {
  .nav-toggle { display: block; margin-left: auto; }
  .header .wrap > .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem; display: none;
    max-height: 70vh; overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
  .nav .btn { margin-top: 1rem; width: 100%; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--line); padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: end; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; align-items: start; } }
.hero h1 { max-width: 17ch; }
.hero .lede { max-width: 52ch; }
.hero .btn-row { margin-top: 2rem; }

.hero__facts { border-top: 2px solid var(--ink); padding-top: 1.35rem; }
.hero__facts dl { margin: 0; display: grid; gap: 1.05rem; }
.hero__facts dt { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero__facts dd { margin: .2rem 0 0; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }

/* --- Practice index (numbered list, not cards) ---------------------------- */
.index { border-top: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: 4rem 1.1fr 1.6fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background-color .16s ease;
}
.index__row:hover { background: var(--paper-2); color: inherit; }
.index__num { font-family: var(--serif); color: var(--muted); font-size: 1rem; }
.index__row h3 { margin: 0; }
.index__row p { margin: 0; font-size: .9375rem; }
.index__go { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); white-space: nowrap; }
@media (max-width: 880px) {
  .index__row { grid-template-columns: 2.5rem 1fr; gap: .35rem 1rem; }
  .index__num { grid-row: 1 / 3; }
  .index__go { grid-column: 2; margin-top: .5rem; }
}

/* --- Grid / cards --------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.35rem, 2.2vw, 1.85rem); }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .9375rem; }

/* --- Attorney roster ------------------------------------------------------ */
.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .roster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roster { grid-template-columns: 1fr; } }

.roster__item { background: var(--paper); padding: 1.75rem; text-decoration: none; color: inherit; display: block; transition: background-color .16s ease; }
.roster__item:hover { background: var(--paper-2); color: inherit; }
/* Replace .headshot with <img> when real photography exists. */
.headshot {
  aspect-ratio: 4 / 5; margin-bottom: 1.15rem; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(165deg, #eef1f4 0%, #dfe4ea 55%, #ccd3dc 100%);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.4rem; color: rgba(16,24,40,.26);
}
.roster__item h3 { margin-bottom: .15rem; font-size: 1.15rem; }
.roster__role { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .8rem; }
.roster__meta { font-size: .875rem; color: var(--body); margin: 0; }

/* --- Matters -------------------------------------------------------------- */
.matters { display: grid; gap: 0; border-top: 1px solid var(--line); }
.matters li { list-style: none; padding: 1.35rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .matters li { grid-template-columns: 1fr; gap: .35rem; } }
.matters dt, .matters .matters__cat { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: .25rem; }
.matters p { margin: 0; font-size: .9688rem; color: var(--ink-2); }

.disclaimer { font-size: .78125rem; color: var(--muted); line-height: 1.55; border-left: 2px solid var(--line); padding-left: 1rem; margin-top: 2rem; }

/* --- Split / prose -------------------------------------------------------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1.5fr .75fr; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 2.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5rem; }

.aside { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); padding: 1.75rem; position: sticky; top: 96px; background: var(--paper-2); }
.aside h3 { font-size: 1.15rem; }
.aside p { font-size: .9375rem; }
.aside .btn { width: 100%; margin-top: .75rem; }
@media (max-width: 980px) { .aside { position: static; } }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 2.5rem 1.5rem 0; font-size: .9688rem; }

/* --- CTA ------------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band p { max-width: 56ch; margin-inline: auto; color: #98a6bb; }
.cta-band .btn-row { justify-content: center; margin-top: 1.85rem; }

/* --- Page head ------------------------------------------------------------ */
.pagehead { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-block: clamp(2.75rem, 5.5vw, 4rem); }
.pagehead .lede { max-width: 62ch; }
.crumbs { font-size: .78125rem; color: var(--muted); margin-bottom: 1.15rem; letter-spacing: .02em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin-inline: .5rem; }

/* --- Forms ---------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .45rem; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .9688rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: .8rem .9rem; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(27,58,92,.12); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.09); }
.field .err { display: none; font-size: .8125rem; color: #b42318; margin-top: .4rem; }
.field .err.is-shown { display: block; }
.hint { font-size: .8125rem; color: var(--muted); margin-top: .5rem; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .875rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--body); }
.consent input { width: auto; margin-top: .25rem; flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin-top: 1.5rem; padding: 1rem 1.15rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.success { display: none; background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); padding: clamp(1.75rem, 3vw, 2.5rem); text-align: center; }
.success.is-shown { display: block; }

.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
.panel dl { margin: 0; display: grid; gap: 1.1rem; }
.panel dt { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .3rem; }
.panel dd { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.panel dd a { font-weight: 600; text-decoration: none; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: #8b98ad; font-size: .9063rem; padding-block: clamp(3rem, 5.5vw, 4rem) 2rem; }
.footer a { color: #d3dae4; text-decoration: none; }
.footer a:hover { color: #8fb0d4; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 1.1rem; font-weight: 700; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer__brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .3rem; }
.footer__sub { font-size: .625rem; letter-spacing: .22em; text-transform: uppercase; color: #8fb0d4; font-weight: 700; margin-bottom: .9rem; }

.legal { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); padding-top: 1.65rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78125rem; color: #6f7d92; line-height: 1.6; }
.legal p + p { margin-top: .75rem; }
.legal__row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 1.15rem; }
.demo-note { margin-top: 1.15rem; padding: .8rem 1rem; border: 1px dashed rgba(255,255,255,.2); border-radius: var(--r); color: #7f8da2; font-size: .78125rem; }
