/* ============================================================================
   WERRING LAW OFFICE — core.css
   The design contract. Every page is built from these tokens + components.

   DESIGN LAW (do not violate — this is what makes 15 pages read as one site):
     1. RADIUS IS ZERO. Everywhere. No bubbles, no pills, no rounded cards.
     2. NO DROP SHADOWS. Separation comes from flat colour blocks, full-bleed
        photo bands, and hairline rules. Never from a shadow.
     3. TWO FAMILIES ONLY. Cormorant Garamond (display, >=28px only — it is too
        high-contrast to read below that). DM Sans (everything else).
     4. Banner titles are REAL HTML TEXT over a photo. Never baked into an image.
     5. Colour is anchored on the logo: forest #1B4332, parchment #F0E0C8.

   Palette sampled directly from WL_newlogo.jpg: green #184028, cream #F0E0C8.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

/* ---------------------------------------------------------------- TOKENS  */
:root {
  /* Brand — forest scale */
  --forest:        #1B4332;  /* primary. the emblem green */
  --forest-deep:   #0D2818;  /* darkest bands, footer */
  --forest-mid:    #2D6A4F;
  --forest-light:  #40916C;
  --forest-wash:   #E8F0EB;  /* faintest green tint */

  /* Brand — gold accent. Used for RULES and small marks, never large fills. */
  --gold:          #C49A2A;
  --gold-soft:     #E5D5A8;
  --gold-wash:     #F5EDD1;

  /* Neutrals — warm, anchored on the logo's parchment */
  --parchment:     #F0E0C8;  /* the logo's native background */
  --cream:         #FDFBF7;  /* page background */
  --sand:          #F5F0E6;  /* alternating band */
  --white:         #FFFFFF;

  /* Ink */
  --ink:           #1C2B23;  /* body text */
  --ink-soft:      #5E7D6F;  /* secondary text */
  --ink-faint:     #8A9A92;
  --rule:          #D8D3C7;  /* hairline borders */
  --rule-strong:   #B9B3A3;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --wrap:        1280px;
  --wrap-wide:   1440px;
  --wrap-narrow: 820px;   /* long-form reading measure */
  --header-h:        104px;
  --header-h-sticky:  76px;

  /* Band rhythm — the vertical ladder. Use these, don't invent paddings. */
  --band-xl: 128px;
  --band-lg:  96px;
  --band-md:  64px;
  --band-sm:  32px;

  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------ RESET */
*, *::before, *::after { box-sizing: border-box; }

/* DESIGN LAW #1 — enforced globally, not per-component. */
*, *::before, *::after { border-radius: 0 !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* iframe needs display:block (inline leaves a ~9px baseline strip under every
   embedded map) and border:0 (UA default is `2px inset`). It must NOT get
   `height:auto` — CSS beats the HTML height attribute, so that would collapse
   a height="420" map embed to the browser's default 150px. */
iframe { max-width: 100%; display: block; border: 0; }
/* Map fills its slot rather than floating in it. */
.split__media > iframe { width: 100%; height: 100%; min-height: 420px; }

/* 16:9 embed wrapper, for the Resources page's YouTube/Vimeo posts. A map can
   take a fixed height because it isn't aspect-locked; video is, and a fixed
   height letterboxes it at narrow widths. */
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--forest-deep); }
.embed > iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
a { color: var(--forest); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; }

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

.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;
}

/* skip link — accessibility, and it must not look broken when focused */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: var(--white); padding: 12px 20px;
  font-weight: 700; font-size: 14px;
}
.skip:focus { left: 0; color: var(--white); }

/* ------------------------------------------------------------------- TYPE */
/* Cormorant is high-contrast and thin: display sizes only (>=28px). */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }

/* h4/h5/h6 land below Cormorant's readable floor — they are sans. */
h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
}
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Eyebrow — the small letterspaced label above a heading. Structural, sans. */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
  display: block;
}
.eyebrow--onDark { color: var(--gold-soft); }

/* Gold hairline. The site's primary separator. */
.rule {
  width: 64px; height: 2px; background: var(--gold);
  border: 0; margin: 0 0 1.5rem;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------- LAYOUT */
.wrap        { width: 100%; max-width: var(--wrap);        margin: 0 auto; padding: 0 32px; }
.wrap--wide  { max-width: var(--wrap-wide); }
.wrap--narrow{ max-width: var(--wrap-narrow); }

/* Band = a full-bleed horizontal section. The only vertical rhythm allowed. */
.band { padding: var(--band-lg) 0; position: relative; }
.band--xl { padding: var(--band-xl) 0; }
.band--md { padding: var(--band-md) 0; }
.band--sm { padding: var(--band-sm) 0; }
.band--flush { padding: 0; }

.band--cream     { background: var(--cream); }
.band--sand      { background: var(--sand); }
.band--parchment { background: var(--parchment); }
.band--wash      { background: var(--forest-wash); }

.band--forest,
.band--deep {
  background: var(--forest);
  color: var(--parchment);
}
.band--deep { background: var(--forest-deep); }
.band--forest h1, .band--forest h2, .band--forest h3,
.band--deep   h1, .band--deep   h2, .band--deep   h3 { color: var(--white); }
.band--forest h4, .band--forest h5, .band--forest h6,
.band--deep   h4, .band--deep   h5, .band--deep   h6 { color: var(--white); }
.band--forest .lede, .band--deep .lede { color: var(--gold-soft); }
/* :not(.btn) matters. `.band--forest a` (0,1,1) outranks `.btn--gold` (0,1,0),
   so without this it repaints gold buttons' text gold-soft — gold-on-gold at
   1.80:1, and the home page's primary CTA was doing exactly that. Buttons carry
   their own colour; only prose links get recoloured for the dark band. */
.band--forest a:not(.btn), .band--deep a:not(.btn) { color: var(--gold-soft); }
.band--forest a:not(.btn):hover, .band--deep a:not(.btn):hover { color: var(--white); }

/* ---------------------------------------------------------------- BUTTONS */
/* Square, uppercase, sans. Four styles, no more. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 30px;
  border: 2px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
  text-align: center;
}
.btn .ico { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn--primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--white); }

.btn--gold { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }
.btn--gold:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--white); }

.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--white); }

.btn--onDark { background: transparent; color: var(--white); border-color: var(--gold-soft); }
.btn--onDark:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }

/* Text button — the "click to call" tier */
.btn--text {
  padding: 16px 0; color: var(--forest); border: 0;
  border-bottom: 2px solid var(--gold);
}
.btn--text:hover { color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-row--center { justify-content: center; }

/* ============================================================================
   BANNER — the per-page masthead.
   Andrew's mockup baked the title into the image. We don't: this is real HTML
   text over a photo, so it is selectable, responsive, indexable and readable
   by a screen reader, and copy changes never require regenerating an asset.

   Structure:
     <section class="banner" style="--banner-img:url(...)">
       <div class="banner__scrim"></div>
       <div class="wrap banner__inner">
         <div class="banner__text"> eyebrow / h1 / tagline </div>
         <div class="banner__emblem"> emblem svg </div>
       </div>
     </section>
   ========================================================================= */
.banner {
  position: relative;
  background: var(--forest);
  background-image: var(--banner-img, none);
  background-size: cover;
  background-position: var(--banner-pos, center);
  min-height: var(--banner-h, 340px);
  display: flex; align-items: center;
  overflow: hidden;
}
.banner--tall { --banner-h: 460px; }

/* The scrim is a hard left-to-right forest gradient. Complete Law relies on the
   photo happening to be light where the text sits — that's fragile and fails the
   moment you swap the image. This guarantees contrast on ANY photo. */
.banner__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(13,40,24,0.94) 0%,
      rgba(13,40,24,0.86) 42%,
      rgba(13,40,24,0.55) 70%,
      rgba(13,40,24,0.35) 100%);
}
.banner--noPhoto .banner__scrim {
  background: linear-gradient(90deg, var(--forest-deep) 0%, var(--forest) 100%);
}
/* Gold hairline pinned to the bottom edge of every banner — the through-line
   that ties all 15 pages together. */
.banner::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--gold); z-index: 3;
}

.banner__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  width: 100%;
  padding-top: var(--band-md); padding-bottom: var(--band-md);
}
.banner__text { max-width: 660px; }
.banner__text h1 { color: var(--white); margin: 0 0 0.35em; }
.banner__tagline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--gold-soft);
  margin: 0;
  max-width: 46ch;
}

/* The emblem, anchored right — exactly as in Andrew's mockup. */
.banner__emblem {
  flex: none; width: clamp(92px, 11vw, 140px);
  color: var(--gold-soft); opacity: 0.9;
}

/* ---------------------------------------------------------------- EMBLEM */
/* The traced tree-and-shield mark. Delivered as a CSS mask rather than an
   <img> or inline SVG: the 50KB traced file is fetched ONCE and cached for a
   week (see firebase.json), while background-color:currentColor lets the same
   file render gold on forest, forest on cream, or cream on forest. An <img>
   could not recolour; inlining would ship 50KB of path data on every page. */
.emblem-mark {
  display: block; width: 100%;
  aspect-ratio: 1494 / 1746;      /* the traced viewBox — keeps it from collapsing */
  background-color: currentColor;
  -webkit-mask: url('/images/werring-emblem.svg') no-repeat center / contain;
          mask: url('/images/werring-emblem.svg') no-repeat center / contain;
}

/* ------------------------------------------------------------- SITE HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--t);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
  transition: min-height var(--t);
}
.site-header.is-stuck .site-header__inner { min-height: var(--header-h-sticky); }

/* Lockup: traced emblem + wordmark set in LIVE TYPE (Cormorant), not an image.
   Tracing AI letterforms would have baked in their wobble; real type also means
   the wordmark matches every heading on the site exactly. */
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup__mark { width: 42px; color: var(--gold); flex: none; transition: width var(--t); }
.site-header.is-stuck .lockup__mark { width: 34px; }
.lockup__words { display: flex; flex-direction: column; line-height: 1; }
.lockup__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.55rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white);
}
.lockup__sub {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-top: 4px;
}

.site-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-header__utility { display: flex; align-items: center; gap: 18px; }
.site-header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 700; font-size: 0.95rem;
}
.site-header__phone:hover { color: var(--gold); }
.site-header__phone .ico { width: 15px; height: 15px; color: var(--gold); }
.site-header__cta {
  padding: 11px 20px; font-size: 0.7rem;
  background: var(--gold); color: var(--forest-deep);
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background var(--t), color var(--t);
}
.site-header__cta:hover { background: var(--white); color: var(--forest-deep); }

/* ---------------------------------------------------------------- NAV */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.88);
  border-bottom: 2px solid transparent;
}
.nav__link:hover,
.nav__item.is-open > .nav__link { color: var(--white); border-bottom-color: var(--gold); }
.nav__link[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav__caret { width: 9px; height: 9px; transition: transform var(--t); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* Dropdown — a clean square panel. No radius, no shadow, hairline border. */
.nav__menu {
  position: absolute; top: 100%; left: 0; min-width: 268px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a {
  display: block; padding: 11px 20px;
  font-size: 0.88rem; color: var(--ink);
  border-left: 3px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.nav__menu a:hover { background: var(--sand); border-left-color: var(--gold); color: var(--forest); }

/* Mobile nav trigger */
.nav-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center; color: var(--white);
}
.nav-toggle .ico { width: 24px; height: 24px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--forest-deep);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto; padding: 24px;
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav__close { width: 44px; height: 44px; color: var(--white); display: flex; align-items: center; justify-content: center; }
.mobile-nav__close .ico { width: 22px; height: 22px; }
.mobile-nav a {
  display: block; padding: 14px 0;
  color: var(--white); font-size: 1rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav__sub a {
  padding-left: 18px; font-size: 0.85rem; text-transform: none;
  letter-spacing: 0; color: var(--gold-soft); font-weight: 400;
}

/* ============================================================================
   DRAWER — progressive disclosure. Used by the consultation form and FAQs.
   "Smooth drawers, clean lines" — square, hairline-ruled, height-animated.
   ========================================================================= */
.drawer { border: 1px solid var(--rule); border-bottom: 0; background: var(--white); }
.drawer:last-of-type { border-bottom: 1px solid var(--rule); }
.drawer.is-open { border-left: 3px solid var(--gold); }

.drawer__trigger {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 22px 26px; text-align: left;
  transition: background var(--t);
}
.drawer__trigger:hover { background: var(--sand); }

.drawer__num {
  flex: none; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--white);
  font-size: 0.78rem; font-weight: 700;
  transition: background var(--t);
}
.drawer.is-open .drawer__num { background: var(--gold); color: var(--forest-deep); }
.drawer.is-complete .drawer__num { background: var(--forest-light); }

.drawer__title { flex: 1; font-weight: 700; font-size: 1rem; color: var(--forest-deep); }
.drawer__hint { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-faint); margin-top: 2px; }
.drawer__caret { flex: none; width: 16px; height: 16px; color: var(--ink-soft); transition: transform var(--t); }
.drawer.is-open .drawer__caret { transform: rotate(180deg); }

/* Height-animated body. JS sets --drawer-h to scrollHeight; falls back to a
   generous max-height if JS is unavailable so the form still works. */
.drawer__body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer.is-open .drawer__body { max-height: var(--drawer-h, 1200px); }
.drawer__inner { padding: 4px 26px 28px; border-top: 1px solid var(--rule); padding-top: 24px; }

/* ----------------------------------------------------------------- FORMS */
.field { margin-bottom: 20px; }
.field__label {
  display: block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--forest-deep); margin-bottom: 8px;
}
.field__req { color: var(--gold); }
.field__help { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E7D6F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* Square radio/check cards — replaces bubbly native controls */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; border: 1px solid var(--rule-strong);
  background: var(--white); cursor: pointer;
  font-size: 0.92rem; transition: border-color var(--t), background var(--t);
}
.choice__box::before {
  content: ''; flex: none; width: 15px; height: 15px;
  border: 1px solid var(--rule-strong); background: var(--white);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.choice input:checked + .choice__box { border-color: var(--forest); background: var(--forest-wash); }
.choice input:checked + .choice__box::before {
  background: var(--forest); border-color: var(--forest);
  box-shadow: inset 0 0 0 2px var(--white);
}
.choice input:focus-visible + .choice__box { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Consent / disclaimer checkbox — larger tap target, wraps long legal text */
.consent { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.consent input { flex: none; width: 19px; height: 19px; margin-top: 3px; accent-color: var(--forest); }
.consent label { font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); cursor: pointer; }

.form-status { padding: 16px 18px; margin-top: 18px; font-size: 0.92rem; display: none; }
.form-status.is-shown { display: block; }
.form-status--ok   { background: var(--forest-wash); border-left: 3px solid var(--forest-light); color: var(--forest-deep); }
.form-status--err  { background: #FBEAEA; border-left: 3px solid #B03A32; color: #7A241E; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: #B03A32; }
.field__error { font-size: 0.8rem; color: #B03A32; margin-top: 6px; display: none; }
.field--error .field__error { display: block; }

/* ------------------------------------------------------------- SERVICE TILE */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--rule); }

/* auto-fit is tuned for 3 tiles. With 8 (home, services) it drops to 3 columns
   between ~900-1200px and orphans tiles 7-8 on a ragged half-empty row. Same
   class of bug .steps--5 has a ladder for; this is that ladder for tiles. */
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1240px) { .tile-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tile-grid--4 { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column;
  background: var(--white); padding: 36px 32px;
  border-top: 3px solid transparent;
  transition: background var(--t), border-color var(--t);
}
.tile:hover { background: var(--sand); border-top-color: var(--gold); }
.tile__ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }
/* Team portrait — sits where the icon would, a 4:5 head-and-shoulders crop.
   Zero radius / no shadow, like everything else; a hairline gold top rule ties
   it to the .bio frame on the same page. */
.tile__photo {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: top;
  background: var(--sand); border-top: 3px solid var(--gold);
  margin-bottom: 20px;
}
.tile h3 { font-size: 1.45rem; margin-bottom: 0.4em; }
.tile p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 20px; }
.tile__more {
  margin-top: auto; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest);
  display: inline-flex; align-items: center; gap: 8px;
}
.tile:hover .tile__more { color: var(--gold); }
.tile__more .ico { width: 14px; height: 14px; transition: transform var(--t); }
.tile:hover .tile__more .ico { transform: translateX(4px); }

/* ------------------------------------------------------------------ STEPS */
/* The "4 easy steps" band. Flat forest blocks, gold numerals, zero radius.
   Default (auto-fit) is for 3-4 items on a LIGHT band. For 5 items use
   .steps--5: auto-fit needs ~1200px to keep five on one row and orphans the
   fifth at quarter width across every common laptop viewport in between. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1180px) { .steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .steps--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .steps--5 { grid-template-columns: 1fr; } }

.step { background: var(--forest); color: var(--parchment); padding: 34px 28px; position: relative; }
/* .step's fill is --forest, identical to .band--forest's — on a forest band the
   blocks and their gaps vanish and you get floating numerals on a green field.
   Darken the blocks and add a hairline so the component works on any band. */
.band--forest .step { background: var(--forest-deep); border: 1px solid rgba(255,255,255,0.09); }
.band--deep   .step { background: var(--forest);      border: 1px solid rgba(255,255,255,0.09); }
.step__n {
  font-family: var(--font-display); font-size: 2.9rem; font-weight: 600;
  line-height: 1; color: var(--gold); margin-bottom: 14px; display: block;
}
.step h4 { color: var(--white); margin-bottom: 0.5em; font-size: 1.08rem; }
.step p { font-size: 0.9rem; color: rgba(240,224,200,0.82); margin: 0; }

/* ------------------------------------------------------------------ LISTS */
/* The checked service list used on every practice-area page. */
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks--2col { grid-template-columns: 1fr 1fr; gap: 11px 32px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.ticks li::before {
  content: ''; flex: none; width: 7px; height: 7px; margin-top: 9px;
  background: var(--gold); transform: rotate(45deg);
}
.band--forest .ticks li, .band--deep .ticks li { color: var(--parchment); }

/* --------------------------------------------------------------- SPLIT BAND */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split--narrowText { grid-template-columns: 5fr 7fr; }
/* Image comes from --split-img, set by chrome.js from a data-bg attribute — the
   same hook the banner uses. Previously this component could only be given an
   image via an inline style=, which DESIGN LAW forbids, so it was unusable:
   the contract and the component contradicted each other and nothing could use
   it. data-bg resolves that. */
.split__media {
  position: relative; min-height: 420px;
  background-color: var(--forest-wash);
  background-image: var(--split-img, none);
  background-size: cover; background-position: center;
}
.split--flip .split__media { order: -1; }

/* Empty photo slot — for the Locations office photos we don't have yet. Reads
   as a deliberate placeholder, not a broken image. */
.split__media--empty {
  background: var(--forest-wash);
  border: 1px dashed var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
}
.split__media--empty span {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  /* was --ink-faint: ~2.5:1 on --forest-wash, fails WCAG AA on small bold text */
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- QUOTE */
.quote { border-left: 3px solid var(--gold); padding-left: 32px; }
.quote blockquote {
  margin: 0 0 16px; font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.35; color: var(--forest-deep);
}
.band--forest .quote blockquote, .band--deep .quote blockquote { color: var(--white); }
.quote cite {
  font-family: var(--font-sans); font-style: normal;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}

/* --------------------------------------------------------------- ATTORNEY BIO */
/* A photo aside + long-form bio. Added when Andrew supplied his own bio + a
   headshot (2026-07-17). The photo is a FRAMED, matted portrait (white mat,
   hairline border, gold top rule) — NOT a full-bleed cover. That matters: the
   supplied headshot has a blue studio-vignette background; a frame contains it
   so it reads as a deliberate portrait instead of clashing with the cream page.
   Zero radius / no shadow, like everything else. */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: start; }
.bio__aside { position: sticky; top: calc(var(--header-h-sticky) + 24px); }
.bio__photo {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 8px;
}
.bio__photo img { display: block; width: 100%; height: auto; }
.bio__name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--forest-deep); margin: 18px 0 2px; line-height: 1.1;
}
.bio__title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin: 0;
}
.bio__body > p { margin: 0 0 1.3em; }
.bio__body > p:first-child {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--ink-soft);
}
.bio__body > p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; gap: 32px; }
  /* On a narrow screen the sticky aside + a full-width photo would eat the whole
     first screen; cap it and un-stick it. */
  .bio__aside { position: static; max-width: 320px; }
}

/* ------------------------------------------------------------------ EVENTS */
/* /events cards + empty state. Flat, square, hairline — same language as .tile
   and .drawer. The date "chip" is a forest block with the day in Cormorant. */
.event-list { display: grid; gap: 1px; background: var(--rule); }
.event-card {
  display: grid; grid-template-columns: 132px 1fr; gap: 0;
  background: var(--white); border-top: 3px solid var(--gold);
}
.event-card__when {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; background: var(--forest); color: var(--parchment);
  text-align: center;
}
.event-card__when .ico { width: 34px; height: 34px; color: var(--gold-soft); }
.event-card__month { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.event-card__day { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--white); }
.event-card__year { font-size: 0.82rem; color: rgba(240,224,200,0.7); }
.event-card__body { padding: 30px 32px; }
.event-card__body h3 { font-size: 1.55rem; margin-bottom: 0.5em; }
.event-card__meta { list-style: none; display: grid; gap: 8px; margin: 0 0 18px; }
.event-card__meta li { display: flex; gap: 10px; align-items: center; font-size: 0.94rem; color: var(--ink-soft); }
.event-card__meta .ico { width: 16px; height: 16px; color: var(--gold); flex: none; }
.event-card__desc { color: var(--ink); margin-bottom: 16px; }
.event-card__desc p { margin: 0 0 0.9em; }
.event-card__rsvp {
  background: var(--forest-wash); border-left: 3px solid var(--gold);
  padding: 12px 16px; font-size: 0.92rem; margin: 0 0 4px;
}
.event-card__walkin {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
  font-size: 0.92rem; font-weight: 600; color: var(--forest);
}
.event-card__walkin .ico { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* RSVP form — revealed under the RSVP button. Zero radius, no shadow, gold top
   rule, same language as the rest of the site. */
.rsvp-form {
  margin-top: 18px; padding: 22px;
  background: var(--sand); border: 1px solid var(--rule); border-top: 3px solid var(--gold);
}
.rsvp-form__lead { font-family: var(--font-display); font-size: 1.2rem; color: var(--forest-deep); margin: 0 0 16px; }
.rsvp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.rsvp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rsvp-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--forest);
}
.rsvp-field--wide { grid-column: 1 / -1; }
.rsvp-field .req { color: var(--gold); }
.rsvp-field .opt { color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.rsvp-field input, .rsvp-field textarea {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--ink); background: var(--white); border: 1px solid var(--rule); padding: 11px 13px; width: 100%;
}
.rsvp-field input:focus, .rsvp-field textarea:focus { outline: none; border-color: var(--gold); }
.rsvp-field textarea { resize: vertical; min-height: 58px; }
.rsvp-form__hint { font-size: 0.82rem; color: var(--ink-soft); margin: 10px 0 0; }
.rsvp-form__actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.rsvp-form__msg { font-size: 0.9rem; margin: 12px 0 0; color: var(--forest); }
.rsvp-form__msg.is-err { color: #A8412F; }
.rsvp-form__done { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--forest-deep); margin: 0; }
.rsvp-form__done .ico { width: 20px; height: 20px; color: var(--gold); flex: none; }
@media (max-width: 620px) { .rsvp-form__grid { grid-template-columns: 1fr; } }

.empty-event { text-align: center; padding: 40px 24px; max-width: 560px; margin: 0 auto; }
.empty-event .ico { width: 40px; height: 40px; color: var(--rule-strong); margin: 0 auto 16px; }
.empty-event h3 { font-size: 1.6rem; margin-bottom: 0.4em; }
.empty-event p { color: var(--ink-soft); }

@media (max-width: 620px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card__when { flex-direction: row; gap: 10px; padding: 16px; }
  .event-card__day { font-size: 1.8rem; }
  .event-card__body { padding: 24px 20px; }
}

/* ------------------------------------------------------------- SITE FOOTER */
.site-footer { background: var(--forest-deep); color: rgba(240,224,200,0.72); padding: var(--band-lg) 0 0; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: var(--band-md);
}
.site-footer h5 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.site-footer a { color: rgba(240,224,200,0.72); font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.site-footer__links { list-style: none; display: grid; gap: 10px; }
.site-footer__lockup { margin-bottom: 20px; }
.site-footer__lockup .lockup__mark { color: var(--gold); width: 40px; }
.site-footer__contact { display: grid; gap: 10px; font-size: 0.92rem; }
.site-footer__contact div { display: flex; gap: 11px; align-items: flex-start; }
.site-footer__contact .ico { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 4px; }
.site-footer__tagline { font-size: 0.92rem; max-width: 34ch; margin-bottom: 20px; }
.site-footer__officeName { color: var(--white); display: block; font-size: 0.88rem; }
.site-footer__hoursNote { font-style: normal; font-size: 0.78rem; color: rgba(240,224,200,0.5); }

.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 26px 0; font-size: 0.8rem;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
/* FDCPA / attorney-advertising notices live here. Small but never hidden. */
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; font-size: 0.76rem; line-height: 1.65;
  color: rgba(240,224,200,0.5);
}

/* ============================================================================
   UTILITIES
   Added after the first fan-out: four independent page builds all reported that
   the exemplar was teaching `style="margin-top:36px"` / `style="text-align:center"`
   while this file's own DESIGN LAW forbids hardcoded values. They were right —
   the exemplar was the drift. These are the sanctioned escape hatches. If you
   need a spacing value that isn't here, add it here; never inline it.
   ========================================================================= */
.u-mt-lg   { margin-top: 36px; }
.u-mt-md   { margin-top: 24px; }
.u-mb-lg   { margin-bottom: 32px; }
.u-mb-md   { margin-bottom: 24px; }
.u-mb-sm   { margin-bottom: 16px; }
.u-flush   { margin: 0; }
.u-center  { text-align: center; }
.u-onDark-soft { color: var(--gold-soft); margin-bottom: 16px; }
.u-offscreen { position: absolute; left: -9999px; }

/* The CTA band closes all 8 practice pages identically. It was three inline
   styles away from being a component; now it is one. */
.cta { text-align: center; }
.cta .lede { margin-bottom: 32px; }
.cta-inline { gap: 32px; align-items: center; }

/* ------------------------------------------------------------------- MISC */
/* Needs an intrinsic size: an SVG with no width/height defaults to ~300px and
   only gets clamped by max-width:100%, so a bare .ico dropped into a paragraph
   renders enormous. 1em keeps inline icons the size of the text around them;
   sized parents (.tile__ico, .btn .ico, .drawer__caret) override it. */
.ico {
  display: inline-block; vertical-align: middle;
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--solid { fill: currentColor; stroke: none; }

/* Scroll reveal — subtle, cheap, no library. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 1100px) {
  .nav, .site-header__utility { display: none; }
  .nav-toggle { display: flex; }
  .site-header__right { flex-direction: row; align-items: center; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  :root { --band-xl: 80px; --band-lg: 64px; --band-md: 48px; }
  .wrap { padding: 0 22px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--flip .split__media { order: 0; }
  .split__media { min-height: 280px; }
  .ticks--2col { grid-template-columns: 1fr; }
  .banner__emblem { display: none; }  /* text needs the full width at this size */
  .banner { --banner-h: 260px; }
  .banner--tall { --banner-h: 300px; }
  .banner__scrim { background: linear-gradient(90deg, rgba(13,40,24,0.93) 0%, rgba(13,40,24,0.78) 100%); }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .lockup__name { font-size: 1.25rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .drawer__trigger { padding: 18px; }
  .drawer__inner { padding: 20px 18px 24px; }
}

/* ------------------------------------------------------------------ PRINT */
@media print {
  .site-header, .mobile-nav, .banner__emblem, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
