/* ==========================================================================
   THE LAW OFFICES OF JOHN-MARK D. REID — v2 "Warm Espresso & Gold"
   Reference implementation of 02-DESIGN-SYSTEM-SPEC.md
   ========================================================================== */

:root {
  --color-base: #0E0B09;
  --color-raised: #15100D;
  --color-hairline: #33271F;
  --color-secondary: #9C8973;
  --color-gold: #C8A96B;
  --color-gold-deep: #A8884E;
  --color-headline: #F4EEE3;
  --color-body: #D8CDBB;
  --color-light-bg: #F6F2EA;
  --color-light-surface: #FBF8F1;
  --color-ink: #1C140E;
  --color-overlay: rgba(14, 11, 9, .72);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;

  --container: 1180px;
  --pad-section: 130px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 0.9s;
  --dur-theme: 0.55s;
  --dur-hover: 0.3s;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-base);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400; /* body copy is Regular throughout — no bold in body copy */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--dur-hover) var(--ease-out); }

/* Graduated scale, BOLDER weights per consolidated team feedback (revises the 300-weight round):
   sizes stay restrained, weight carries the authority */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--color-headline); }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: 0; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.18; letter-spacing: 0; }
h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--color-gold); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--pad-section) 0; }

.overline {
  display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 28px;
}
.caption { font-size: 0.82rem; line-height: 1.6; color: var(--color-secondary); }
.lede {
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 300;
  line-height: 1.6; color: var(--color-body);
}

.note-panel {
  background: var(--color-raised);
  border: 1px solid var(--color-hairline);
  padding: 28px;
}
.section-light .note-panel { background: var(--color-light-bg); }
.note-panel h3 { margin-bottom: 14px; }
.note-panel p { color: var(--color-body); }
.note-panel p + p { margin-top: 14px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--color-hairline);
  background: var(--color-raised);
  color: var(--color-body);
}
.form-status.is-visible { display: block; }
.form-status.success {
  border-color: rgba(200, 169, 107, .75);
  color: var(--color-headline);
}
.form-status.error {
  border-color: #B77961;
  color: #F2C9B9;
}

.social-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.social-icon svg { width: 100%; height: 100%; fill: currentColor; }
.social-line a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.social-line .social-icon {
  width: 34px;
  height: 34px;
}
.social-line {
  max-width: 380px;
  text-align: center;
}

.post-submit-booking {
  display: none;
  margin-top: 24px;
}
.post-submit-booking.is-visible { display: block; }

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  width: min(520px, calc(100% - 48px));
  padding: 22px 24px;
  background: var(--color-light-surface);
  border: 1px solid rgba(28, 20, 14, .22);
  box-shadow: 0 14px 40px rgba(14, 11, 9, .22);
  color: var(--color-ink);
}
.consent-banner p { color: var(--color-ink); font-size: .9rem; line-height: 1.55; }
.consent-banner a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.consent-actions button { border: 1px solid var(--color-ink); cursor: pointer; }
.consent-actions .consent-reject { background: transparent; color: var(--color-ink); }
.cookie-settings {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* light section — hairline boundaries so the dark↔light transition is deliberate, not a hard cut */
.section-light {
  background: var(--color-light-surface);
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
}
.section-light h1, .section-light h2, .section-light h3 { color: var(--color-ink); }
.section-light p, .section-light .lede { color: #4A4036; }
.section-light .caption { color: #8A7B68; }

/* hairline */
.hairline { border: 0; border-top: 1px solid var(--color-hairline); }

/* ---------- Buttons (only rounded element: 2px) ---------- */
.btn {
  display: inline-block; padding: 18px 40px; border-radius: 2px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  cursor: pointer; transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease, border-color var(--dur-hover) ease;
  border: 1px solid transparent;
}
/* No scale or lift on hover — colour transitions only */
.btn-primary { background: var(--color-gold); color: var(--color-base); }
.btn-primary:hover { background: var(--color-gold-deep); color: var(--color-base); }
.btn-ghost { border-color: var(--color-hairline); color: var(--color-headline); background: transparent; }
.btn-ghost:hover { border-color: var(--color-gold); background: var(--color-gold); color: var(--color-base); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-gold);
  color: var(--color-base); padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--dur-theme) var(--ease-out), border-color var(--dur-theme) var(--ease-out);
}
.site-header.scrolled { background: var(--color-raised); border-bottom-color: var(--color-hairline); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 180px; height: auto; }
.brand .brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--color-headline); line-height: 1.1; }
.brand .brand-sub { display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-secondary); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav > a, .nav-drop > button {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-body);
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  transition: color var(--dur-hover) ease;
}
.main-nav > a:hover, .main-nav > a.active, .nav-drop > button:hover { color: var(--color-gold); }
.main-nav .btn { padding: 14px 28px; }

.nav-drop { position: relative; }
.nav-drop .drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--color-raised); border: 1px solid var(--color-hairline);
  min-width: 180px; opacity: 0; visibility: hidden;
  transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out), visibility var(--dur-hover);
}
.nav-drop:hover .drop-menu, .nav-drop.open .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop-menu a {
  display: block; padding: 14px 20px; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-body);
  border-bottom: 1px solid var(--color-hairline);
}
.drop-menu a:last-child { border-bottom: 0; }
.drop-menu a:hover { color: var(--color-gold); }

.nav-toggle { display: none; background: none; border: 0; color: var(--color-headline); font-size: 1.5rem; cursor: pointer; }
.tel-mobile { display: none; }

/* ---------- Hero — background image with scrim (revises type-led, per team feedback) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--color-base); padding: 160px 0 100px; overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  z-index: 0;
}
/* scrim: strong on the text side, soft on the right; bottom fade gradient-blends into the next section */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14,11,9,.92) 0%, rgba(14,11,9,.72) 45%, rgba(14,11,9,.45) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1;
  background: linear-gradient(180deg, rgba(14,11,9,0) 0%, var(--color-base) 100%);
}
.hero .container { position: relative; z-index: 2; }
/* Mobile: text spans the full width, so the scrim must hold everywhere — vertical weighting replaces the left bias */
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(14,11,9,.7) 0%, rgba(14,11,9,.85) 55%, rgba(14,11,9,.95) 100%); }
}
.hero .urgent-line { margin-top: 28px; }
.hero .urgent-line a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 4px; }
.hero .overline { margin-bottom: 36px; }
/* Headline: ONE line at >=1024px — size reduced to fit, never tracking. */
.hero h1 { max-width: none; font-size: clamp(1.7rem, 3.3vw, 2.8rem); }
.hero h1 .line { display: block; } /* controlled two-line break below 1024px (break at sentence boundary — confirm with principal) */
@media (min-width: 1024px) {
  .hero h1 { white-space: nowrap; }
  .hero h1 .line { display: inline; }
}
.hero .sub { margin: 36px 0 48px; max-width: 44ch; }
.hero-foot { margin-top: 72px; }

/* Hero page-load stage-in: headline 0.8s, subline +0.2s, buttons +0.4s */
@keyframes stageIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero .stage { opacity: 0; animation: stageIn 0.8s ease forwards; }
.hero .stage-2 { animation-delay: 0.2s; }
.hero .stage-3 { animation-delay: 0.4s; }

/* ---------- Credibility band ---------- */
.cred-band { padding: 32px 0; border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); }
.cred-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.cred-band .overline { margin: 0; color: var(--color-secondary); }
.cred-band .outlet { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--color-secondary); opacity: 0.45; text-transform: uppercase; }

/* ---------- Practice index (editorial) ---------- */
.practice-index { border-top: 1px solid var(--color-hairline); }
.practice-row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--color-hairline);
  transition: background var(--dur-hover) var(--ease-out);
}
.practice-row .num { font-size: 0.72rem; color: var(--color-secondary); letter-spacing: 0.1em; }
.practice-row .title {
  font-family: var(--font-body); font-size: 0.9rem; /* 14.4px — editorial index per issue log */
  font-weight: 400; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-headline);
  transition: color var(--dur-hover) ease;
}
.practice-row .arrow {
  font-size: 1.1rem; color: var(--color-secondary);
  transition: color var(--dur-hover) ease, transform var(--dur-hover) ease;
}
.practice-row:hover { background: #1C1410; } /* per issue log: subtle row bg shift */
.practice-row:hover .title, .practice-row:hover .arrow { color: var(--color-gold); }
.practice-row:hover .arrow { transform: translateX(5px); } /* 4–6px per issue log */
/* Causes of action — gold, standard single reveal (per-item stagger removed: too theatrical) */
.causes { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; color: var(--color-gold); text-transform: uppercase; margin: -16px 0 32px; }
.causes .sep { color: var(--color-headline); opacity: .5; padding: 0 8px; }

/* ---------- Closing CTA (split, per R4 reference) ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--color-raised); padding: 0; }
.cta-photo { position: relative; min-height: 520px; background-size: cover; background-position: center; }
/* gradient-blend the photo into the raised panel (no hard separation) */
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,16,13,0) 60%, var(--color-raised) 100%); }
@media (max-width: 900px) { .cta-photo::after { background: linear-gradient(180deg, rgba(21,16,13,0) 60%, var(--color-raised) 100%); } }
.cta-content { display: flex; flex-direction: column; justify-content: center; padding: 96px 80px; }
.cta-seal { width: 190px; height: auto; margin-bottom: 28px; }
.cta-content h2 { max-width: 14ch; margin-bottom: 40px; }
.cta-content .tel-line { margin-top: 28px; }
.cta-content .tel-line a { color: var(--color-secondary); }
.cta-content .tel-line a:hover { color: var(--color-gold); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 220px 0 110px; background: var(--color-base); }
.page-hero.with-photo { position: relative; background-size: cover; background-position: center; }
.page-hero.with-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-overlay) 0%, rgba(14,11,9,.5) 100%); }
.page-hero.with-photo .container { position: relative; }
.page-hero .sub { margin-top: 28px; max-width: 52ch; }

/* ---------- Practice area BOXES (per team feedback: boxes, not a running list) ----------
   Minimalist: title only at rest; detail + sub-services reveal on hover / tap / keyboard. */
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pa-box {
  position: relative; min-height: 340px; overflow: hidden; cursor: pointer;
  display: flex; align-items: flex-end; text-align: left; border: 0; padding: 0;
  background: var(--color-raised); font-family: var(--font-body);
}
.pa-box .box-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform var(--dur-theme) ease; z-index: 0;
}
.pa-box::before { /* gradient overlay — legibility first */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,11,9,.25) 0%, rgba(14,11,9,.82) 78%, rgba(14,11,9,.92) 100%);
  transition: background var(--dur-hover) ease;
}
.pa-box .box-inner { position: relative; z-index: 2; padding: 28px; width: 100%; }
.pa-box .box-num { display: block; font-size: 0.72rem; letter-spacing: 0.24em; color: var(--color-gold); margin-bottom: 10px; }
.pa-box .box-title { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--color-headline); }
.pa-box .box-detail {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--dur-theme) ease, opacity var(--dur-theme) ease, margin var(--dur-theme) ease;
  margin-top: 0;
}
.pa-box:hover .box-bg, .pa-box.open .box-bg, .pa-box:focus-visible .box-bg { transform: scale(1.04); }
.pa-box:hover .box-detail, .pa-box.open .box-detail, .pa-box:focus-within .box-detail { max-height: 260px; opacity: 1; margin-top: 14px; }
.pa-box .box-detail p { font-size: 0.88rem; color: var(--color-body); line-height: 1.55; margin-bottom: 12px; }
.subs { display: flex; flex-direction: column; gap: 6px; }
.subs a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-gold); transition: color var(--dur-hover) ease;
}
.subs a:hover { color: var(--color-headline); }
@media (max-width: 1024px) { .pa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pa-grid { grid-template-columns: 1fr; } .pa-box { min-height: 280px; } }

/* ---------- Testimonials — rotating fade (no marquee; respects reduced motion) ---------- */
.testi-wrap { position: relative; min-height: 220px; }
.t-item { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.t-item.active { opacity: 1; position: relative; pointer-events: auto; }
.t-item blockquote { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.55; color: var(--color-headline); max-width: 62ch; }
.t-item cite { display: block; margin-top: 18px; font-style: normal; }
.t-dots { display: flex; gap: 10px; margin-top: 28px; }
.t-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--color-secondary); background: transparent; cursor: pointer; padding: 0; transition: background var(--dur-hover) ease, border-color var(--dur-hover) ease; }
.t-dots button.active { background: var(--color-gold); border-color: var(--color-gold); }

/* Name emphasis inside body copy (About) */
.name-emph { font-family: var(--font-display); font-weight: 500; font-size: 1.25em; color: var(--color-headline); }
.about-copy .about-role {
  margin: -14px 0 26px;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-copy p:not(.caption) {
  text-align: justify;
}

/* ---------- Map ---------- */
.map-frame { border: 1px solid var(--color-hairline); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(35%) sepia(12%); }

/* ---------- HYBRID running bands (Concept B — review against the boxes) ----------
   Full-width photo bands; strong scrim behind the text zone; top/bottom espresso fades
   dissolve each section into the next; faint hairline as the only demarcation. */
.band2 { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; cursor: pointer; scroll-margin-top: 96px; /* anchors land clear of the sticky header */ }
/* base scale gives the subtle scroll-parallax (JS) room to move without exposing edges */
.band2 .band-bg2 { position: absolute; inset: -1px; background-size: cover; background-position: center; z-index: 0; transform: scale(1.1); will-change: transform; }
.band2::before { /* readability scrim — strong behind the text, light on the right so the photo reads CLEAR */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14,11,9,.86) 0%, rgba(14,11,9,.55) 45%, rgba(14,11,9,.16) 100%);
}
.band2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14,11,9,0) 0%, rgba(14,11,9,.84) 58%, var(--color-base) 100%);
}
.band2 .fade-top, .band2 .fade-bottom { position: absolute; left: 0; right: 0; height: 180px; z-index: 1; pointer-events: none; }
.band2 .fade-top { top: -1px; background: linear-gradient(180deg, var(--color-base) 0%, rgba(14,11,9,.62) 42%, rgba(14,11,9,0) 100%); }
.band2 .fade-bottom { bottom: -1px; background: linear-gradient(0deg, var(--color-base) 0%, rgba(14,11,9,.62) 42%, rgba(14,11,9,0) 100%); }
/* Last band dissolves into the raised CTA/footer — same treatment as inter-band fades */
.band2:last-of-type::after {
  background: linear-gradient(180deg, rgba(14,11,9,0) 0%, rgba(14,11,9,.84) 58%, var(--color-raised) 100%);
}
.band2:last-of-type .fade-bottom {
  background: linear-gradient(0deg, var(--color-raised) 0%, rgba(14,11,9,.62) 42%, rgba(14,11,9,0) 100%);
}
.band2 + .band2 { margin-top: 0; border-top: 0; }
.band2 .container { position: relative; z-index: 2; }
.band2 .inner { max-width: 600px; padding: 110px 0; }
/* refined band typography — titles carry more presence than the boxes */
.band2 h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
/* gold rule that draws in as the band enters view */
.band2 .rule2 { width: 0; height: 2px; background: var(--color-gold); margin: 16px 0 18px; transition: width 1s var(--ease-out) 0.45s; }
.band2 .inner.visible .rule2 { width: 64px; }
/* staggered entrance: number → title → rule (detail keeps its hover/tap reveal) */
.band2 .inner > .box-num, .band2 .inner > h2 { opacity: 0; transform: translateY(16px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.band2 .inner.visible > .box-num { opacity: 1; transform: none; transition-delay: 0.1s; }
.band2 .inner.visible > h2 { opacity: 1; transform: none; transition-delay: 0.25s; }
/* smoother detail reveal + cascading sub-links on open */
.band2 .box-detail { transition: max-height 0.7s var(--ease-out), opacity 0.7s var(--ease-out), margin 0.7s var(--ease-out); }
.band2 .subs a { opacity: 0; transform: translateY(8px); }
.band2:hover .subs a, .band2.open .subs a, .band2:focus-within .subs a { opacity: 1; transform: none; }
.band2 .subs a { transition: color var(--dur-hover) ease, border-color var(--dur-hover) ease, transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out); }
.band2:hover .subs a:nth-child(1), .band2.open .subs a:nth-child(1), .band2:focus-within .subs a:nth-child(1) { transition-delay: 0.12s; }
.band2:hover .subs a:nth-child(2), .band2.open .subs a:nth-child(2), .band2:focus-within .subs a:nth-child(2) { transition-delay: 0.24s; }
.band2:hover .subs a:nth-child(3), .band2.open .subs a:nth-child(3), .band2:focus-within .subs a:nth-child(3) { transition-delay: 0.36s; }
.band2:hover .subs a:hover, .band2.open .subs a:hover { transition-delay: 0s; transform: translateX(6px); }
.band2 .box-detail p { font-size: 0.95rem; }
/* enhanced sub-service links inside the bands */
.band2 .subs { gap: 10px; margin-top: 4px; }
.band2 .subs a {
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.12em;
  padding: 2px 0; border-bottom: 1px solid rgba(200,169,107,.35);
  width: fit-content; display: inline-block;
  transition: color var(--dur-hover) ease, border-color var(--dur-hover) ease, transform var(--dur-hover) ease;
}
.band2 .subs a:hover { color: var(--color-headline); border-bottom-color: var(--color-headline); transform: translateX(6px); }
@media (max-width: 640px) { .band2 { min-height: 64vh; } .band2 .inner { padding: 80px 0; } }
/* Touch devices: no hover exists — detail and sub-links are always visible, nothing hidden behind a tap */
@media (hover: none) {
  .band2 { cursor: default; }
  .band2 .box-detail { max-height: 320px; opacity: 1; margin-top: 14px; }
  .band2 .subs a { opacity: 1; transform: none; }
}
/* Jump index — six-link editorial strip for fast navigation of the running bands */
.jump-index { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; }
.jump-index a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-body); transition: color var(--dur-hover) ease;
}
.jump-index a .jnum { color: var(--color-gold); margin-right: 8px; font-weight: 400; }
.jump-index a:hover { color: var(--color-gold); }

.review-strip { padding: 14px 0; background: var(--color-raised); border-bottom: 1px solid var(--color-hairline); }
.review-strip .caption a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Practice service bands ---------- */
.service-band {
  position: relative; min-height: 72vh; display: flex; align-items: center;
  padding: 110px 0; overflow: hidden;
}
/* CSS blur per issue log — 4px starting value (3–5px range, principal to confirm); scale prevents edge bleed */
.service-band .band-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(4px); transform: scale(1.05); z-index: 0;
}
/* Scrim lowered to 55% dark end (was 72%) so the photographs read — flagged for daylight phone test */
.service-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,9,.55) 0%, rgba(14,11,9,.35) 100%); z-index: 1; }
.service-band .container { position: relative; z-index: 2; }
.service-band .inner { max-width: 560px; }
.service-band p { margin: 20px 0 36px; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.split .text { display: flex; flex-direction: column; justify-content: center; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split p + p { margin-top: 1.1rem; }

/* ---------- Testimonials (Client Experience) ---------- */
.quote { padding: 56px 0; border-bottom: 1px solid var(--color-hairline); }
.quote:last-of-type { border-bottom: 0; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.6; color: var(--color-headline); max-width: 60ch; }
.quote cite { display: block; margin-top: 20px; font-style: normal; }

/* ---------- Resource rows / FAQ ---------- */
.resource-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline;
  padding: 32px 24px; border-bottom: 1px solid var(--color-hairline);
}
.resource-row .title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--color-headline); transition: color var(--dur-hover) ease; }
.resource-row .excerpt {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-secondary);
}
.resource-row .arrow { color: var(--color-secondary); transition: color var(--dur-hover) ease, transform var(--dur-hover) ease; }
.resource-row:hover, .resource-row:focus-visible { background: #1C1410; }
.resource-row:hover .title, .resource-row:hover .arrow,
.resource-row:focus-visible .title, .resource-row:focus-visible .arrow { color: var(--color-gold); }
.resource-row:hover .arrow, .resource-row:focus-visible .arrow { transform: translateX(5px); }

.article-detail {
  scroll-margin-top: 110px;
  border-top: 1px solid var(--color-hairline);
  padding: var(--pad-section) 0;
}
.article-detail .container { max-width: 820px; }
.article-detail h2 { margin: 12px 0 28px; }
.article-detail p + p { margin-top: 1rem; }

details.faq { border-bottom: 1px solid var(--color-hairline); }
details.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--color-headline);
  transition: color var(--dur-hover) var(--ease-out);
}
details.faq summary:hover { color: var(--color-gold); }
/* FAQ on the light section (per issue log 2): question near-black default, gold hover/expanded */
.section-light details.faq summary { color: var(--color-base); transition: color var(--dur-hover) ease; }
.section-light details.faq summary:hover, .section-light details.faq[open] summary { color: var(--color-gold); }
.section-light details.faq .faq-body { color: #3D2F25; } /* suggested in issue log — confirm with principal */
.section-light details.faq { border-bottom-color: #D9D0C0; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--color-gold); font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 0 32px; max-width: 64ch; }

/* ---------- Forms — hairline border, no fill, 0 radius (per issue log) ---------- */
.field { margin-bottom: 28px; }
.field label {
  display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-secondary); margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; background: rgba(246, 242, 234, .02); border: 1px solid #4A392E; box-shadow: none;
  border-radius: 0; padding: 14px 16px; color: var(--color-headline);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--dur-hover) var(--ease-out);
}
.field select { -webkit-appearance: none; appearance: none; }
.field select option { background: var(--color-raised); color: var(--color-body); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-gold); }
.field textarea { resize: vertical; }

.embed-frame { border: 1px solid var(--color-hairline); padding: 48px 32px; text-align: center; }

/* ---------- Contact channel index ---------- */
.channel-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  padding: 36px 0; border-bottom: 1px solid var(--color-hairline);
  transition: background var(--dur-hover) var(--ease-out);
}
.channel-row:first-of-type { border-top: 1px solid var(--color-hairline); }
.channel-row .title {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 300;
  color: var(--color-headline); transition: color var(--dur-hover) var(--ease-out);
}
.channel-row .hint { font-size: 0.82rem; color: var(--color-secondary); letter-spacing: 0.06em; }
.channel-row .arrow { font-size: 1.2rem; color: var(--color-secondary); transition: color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.channel-row:hover { background: rgba(21,16,13,.4); }
.channel-row:hover .title, .channel-row:hover .arrow { color: var(--color-gold); }
.channel-row:hover .arrow { transform: translateX(8px); }
@media (max-width: 640px) { .channel-row { grid-template-columns: 1fr auto; } .channel-row .hint { display: none; } }

/* ---------- Footer ---------- */
footer { background: var(--color-raised); border-top: 1px solid var(--color-hairline); padding: 96px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 72px; }
.footer-grid img { width: 180px; margin-bottom: 20px; }
footer h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-headline); margin-bottom: 20px; }
footer a { display: block; color: var(--color-secondary); font-size: 0.92rem; margin-bottom: 12px; }
footer a:hover { color: var(--color-gold); }
footer p { color: var(--color-secondary); font-size: 0.92rem; }
.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo-link img { margin-bottom: 0; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  color: var(--color-headline);
}
.footer-social a:hover {
  color: var(--color-gold);
}
.threads-mark {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}
.footer-bottom { border-top: 1px solid var(--color-hairline); padding-top: 32px; text-align: center; }
.footer-bottom .caption { opacity: 0.6; max-width: 72ch; margin: 12px auto 0; }

/* ---------- Scroll reveals — fade + rise, 0.9s ease, 0.1s sibling stagger ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-reveal) ease, transform var(--dur-reveal) ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-reveal .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .stage, .causes .cause, .band2 .inner > .box-num, .band2 .inner > h2, .band2 .subs a { opacity: 1 !important; transform: none !important; }
  .band2 .rule2 { width: 64px !important; }
  .band2 .band-bg2 { transform: scale(1.05) !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1179px) { :root { --pad-section: 110px; } }
@media (max-width: 1024px) { :root { --pad-section: 96px; } }
@media (max-width: 900px) {
  .main-nav {
    display: none; position: fixed; inset: 88px 0 0 0; background: var(--color-base);
    flex-direction: column; align-items: flex-start; padding: 48px 24px; gap: 28px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0; text-transform: none; }
  .nav-drop { width: 100%; }
  .nav-drop .drop-menu {
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 0;
    border-left: 1px solid var(--color-hairline);
    margin-top: 12px;
    display: none;
  }
  .drop-menu a {
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 14px 0 14px 18px;
  }
  .nav-drop:hover .drop-menu, .nav-drop.open .drop-menu, .nav-drop:focus-within .drop-menu {
    display: block;
    transform: none;
  }
  .brand img { width: auto; height: 44px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; font-size: 1.75rem; line-height: 1;
  }
  .main-nav > a.btn {
    display: block; width: 100%; padding: 6px 0;
    background: transparent; border: 0; border-radius: 0;
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
    letter-spacing: 0; text-transform: none; color: var(--color-body); text-align: left;
  }
  .main-nav > a.btn:hover, .main-nav > a.btn.active {
    background: transparent; color: var(--color-gold);
  }
  .cta-split, .split, .footer-grid { grid-template-columns: 1fr; }
  .cta-content { padding: 64px 24px; }
  .cta-photo { min-height: 360px; }
}
@media (max-width: 640px) {
  :root { --pad-section: 72px; }
  .practice-row { grid-template-columns: 48px 1fr auto; padding: 28px 0; }
  .resource-row { grid-template-columns: 1fr auto; padding: 28px 18px; }
  .resource-row .date { grid-column: 1 / -1; }
  .btn-row .btn { width: 100%; text-align: center; }
  .hero { min-height: 80vh; padding-top: 130px; }
  .consent-banner { right: 16px; bottom: 16px; width: calc(100% - 32px); padding: 20px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .btn { width: 100%; min-width: 0; padding: 14px 10px; font-size: .66rem; }
}
