/* ============================================================
   The James Firm — Disability · Family · Estate Law · Lafayette, LA
   Design system. Instrument Sans + Newsreader italic.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper:      #FFFFFF;    /* brand background */
  --paper-2:    #F6F7F4;
  --panel:      #F1F4EF;    /* alternating light section */
  --ink:        #1A1D18;
  --ink-soft:   #333A34;
  --muted:      #667064;
  --line:       #E6E8E2;
  --line-2:     #D6DAD1;
  --pine:       #15371F;    /* brand green (main) */
  --pine-deep:  #0E2515;
  --gold:       #F9CE73;    /* brand gold (small details) */
  --gold-bright:#F9CE73;
  --dark:       #15371F;    /* dark sections use the brand green */
  --dark-2:     #1C4227;
  --on-dark:    #F5F6EF;
  --on-dark-mut:#AEB8AC;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.1rem);
  --step-1:  clamp(1.18rem, 1.1rem + .4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5:  clamp(3.2rem, 2.1rem + 5.2vw, 6.4rem);
  /* Shared size for the main section titles (About / Services / Attorneys) */
  --h-section: clamp(2.4rem, 1.92rem + 2.4vw, 3.6rem);
  /* Shared size for page-level titles (homepage hero + interior page heroes) */
  --h-hero: clamp(2.08rem, 1.37rem + 3.38vw, 4.16rem);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.02; letter-spacing: -.02em; }
p { margin: 0; }

.serif {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

::selection { background: var(--pine); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }
.section--panel { background: var(--panel); }
.section--dark { background: var(--dark); color: var(--on-dark); padding-block: clamp(44px, 5vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block;
}
.eyebrow--center::after {
  content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block;
}
.section--dark .eyebrow { color: var(--on-dark-mut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-size: var(--step--1); letter-spacing: .02em; font-weight: 500;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arrow { transition: transform .5s var(--ease-out); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn--solid { background: var(--pine); color: #fff; }
.btn--solid:hover { background: var(--pine-deep); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--on-dark-ghost { border-color: rgba(239,235,227,.32); color: var(--on-dark); }
.btn--on-dark-ghost:hover { border-color: var(--on-dark); transform: translateY(-2px); }

/* Matches .btn--solid so every inline link reads as a brand-green pill button */
.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-pill);
  background: var(--pine); color: #fff;
  font-size: var(--step--1); font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent; white-space: nowrap; width: max-content;
  transition: background-color .35s var(--ease), transform .5s var(--ease-out);
}
.textlink:hover { background: var(--pine-deep); }
.textlink .arrow { transition: transform .5s var(--ease-out); }
.textlink:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 112px; gap: 24px;
}
/* Explicit column placement: when .nav is hidden on mobile the actions must
   stay in the last column, not auto-place into the middle one. */
.site-header .brand { grid-column: 1; justify-self: start; }
.site-header .nav { grid-column: 2; justify-self: center; }
.site-header .header-actions { grid-column: 3; justify-self: end; }
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
/* transparent-over-hero: white text */
.site-header.on-hero:not(.is-solid) { color: var(--on-dark); }
.site-header.on-hero:not(.is-solid) .brand-mark { border-color: rgba(239,235,227,.5); }
.site-header.on-hero:not(.is-solid) .nav-link { color: var(--on-dark-mut); }
.site-header.on-hero:not(.is-solid) .nav-link:hover,
.site-header.on-hero:not(.is-solid) .nav-link.is-active { color: var(--on-dark); }
/* Header button stays brand green over the hero (with white text). */
.site-header.on-hero:not(.is-solid) .btn--solid { background: var(--pine); color: #fff; }
.site-header.on-hero:not(.is-solid) .btn--solid:hover { background: var(--pine-deep); }
/* Interior pages use a flat-green hero, so a green button vanishes. Use white. */
.site-header.on-hero--green:not(.is-solid) .btn--solid { background: #fff; color: var(--pine); }
.site-header.on-hero--green:not(.is-solid) .btn--solid:hover { background: var(--paper-2); color: var(--pine-deep); }
.site-header.on-hero:not(.is-solid) .menu-toggle { color: var(--on-dark); }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -.01em; }
/* Logo art is a wide ~2.17:1 lockup centered in a square canvas — crop the
   transparent vertical padding so the wordmark fills the header cleanly. */
.brand-logo { height: 46px; width: auto; aspect-ratio: 2.17 / 1; object-fit: cover; object-position: center; display: block; }
@media (max-width: 720px) { .brand-logo { height: 38px; } }
.site-footer .brand-logo { height: 58px; }
/* Text fallback (shown only if the logo image is missing) */
.brand-name { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name b { font-weight: 600; font-size: 1.14rem; color: var(--pine); letter-spacing: -.01em; }
.brand-name span { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.site-header.on-hero:not(.is-solid) .brand-name b { color: var(--on-dark); }
.site-header.on-hero:not(.is-solid) .brand-name span { color: var(--gold-bright); }
/* White-knockout logo on dark contexts (hero photo + footer green). */
.site-header.on-hero:not(.is-solid) .brand-logo,
.site-footer .brand-logo { filter: brightness(0) invert(1); opacity: .96; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); letter-spacing: .01em;
  position: relative; padding: 6px 0; transition: color .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); transform: translate(-2px, 4px) scale(0); transition: transform .4s var(--ease-out);
}
.nav-link.is-active::after { transform: translate(-2px, 4px) scale(1); }
.nav-link:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin: -8px;
}
.menu-toggle svg { display: block; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--dark); color: var(--on-dark);
  padding: 100px var(--gutter) 40px; display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform .55s var(--ease-out);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav a { font-size: clamp(1.8rem, 8vw, 2.6rem); padding: 14px 0; border-bottom: 1px solid rgba(239,235,227,.12); }
.mobile-nav a .serif { color: var(--on-dark-mut); }
.mobile-nav .mobile-foot { margin-top: auto; color: var(--on-dark-mut); font-size: var(--step--1); display: grid; gap: 6px; }

/* ============================================================
   HERO
   ============================================================ */
/* Near full-bleed hero: thin inset + rounded corners, panel starts at the top
   so the header (logo, menu, button) sits directly over the photo. */
.hero { padding: clamp(10px, 1.1vw, 16px); }
.hero-panel {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  min-height: min(94vh, 920px); display: flex; align-items: flex-end;
  background: linear-gradient(155deg, #1f4a2b, #15371f 55%, #0d2214);
  color: var(--on-dark); isolation: isolate;
}
.hero-panel .hero-media {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../img/hero.png');
  background-size: cover; background-position: center;
}
.hero-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,18,12,.6) 0%, rgba(8,18,12,.16) 24%, rgba(8,18,12,.32) 60%, rgba(8,18,12,.86) 100%),
    linear-gradient(74deg, rgba(8,18,12,.72) 0%, rgba(8,18,12,0) 56%);
}
.hero-slot-note {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,235,227,.72); border: 1px dashed rgba(239,235,227,.4);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.hero-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(28px, 5vw, 60px) var(--gutter);
}
.hero h1 {
  font-size: var(--h-hero); font-weight: 500; letter-spacing: -.02em; line-height: 1.06;
  max-width: none;
}
.hero h1 .serif,
.cta h2 .serif {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: .052em;
  text-underline-offset: .1em;
  text-decoration-color: currentColor;
}
.hero-lead {
  margin-top: 22px; max-width: none; color: rgba(239,235,227,.82);
  font-size: clamp(.85rem, .78rem + .3vw, .98rem); line-height: 1.55;
}
.hero .eyebrow { color: rgba(239,235,227,.72); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.hero-textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-dark); font-size: var(--step--1); font-weight: 500; letter-spacing: .01em;
  padding: 8px 2px; position: relative;
}
.hero-textlink::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out); opacity: .7;
}
.hero-textlink:hover::after { transform: scaleX(1); }


/* line reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; will-change: transform; }

/* ============================================================
   ABOUT + TRUST POINTS
   ============================================================ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-head { display: grid; gap: 16px; }
.about-lead { font-size: var(--h-section); line-height: 1.06; max-width: none; }
.about-sub { font-size: var(--step-2); line-height: 1.28; font-weight: 400; letter-spacing: -.01em; max-width: 22ch; }
.about-body { display: grid; gap: 22px; }
.about-body p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
.about-body .muted { color: var(--muted); font-size: var(--step-0); }

.trust {
  margin-top: clamp(40px, 6vw, 74px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
}
.trust-item { padding: 30px 26px 30px 0; position: relative; }
.trust-item + .trust-item { padding-left: 34px; border-left: 1px solid var(--line); }
.trust-kicker { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--pine); font-weight: 600; }
.trust-item h3 { font-size: var(--step-2); margin-top: 12px; font-weight: 500; }
.trust-item p { margin-top: 10px; color: var(--muted); font-size: var(--step-0); }

/* ============================================================
   SERVICES / PRACTICE LIST
   ============================================================ */
/* Eyebrow + heading pair inside a section head that also holds a side link */
.head-copy { display: grid; gap: 14px; justify-items: start; }
.cta .eyebrow { margin-bottom: 12px; }

.practice-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(30px, 4vw, 52px); }
.practice-head h2 { font-size: var(--h-section); max-width: none; }

.practice-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 60px); align-items: center;
  padding: clamp(26px, 3.4vw, 40px) 0; border-top: 1px solid var(--line);
}
.practice-list .practice-row:last-child { border-bottom: 1px solid var(--line); }
.practice-name { display: flex; align-items: baseline; gap: 16px; }
.practice-name .mark { font-size: 1rem; color: var(--gold); font-weight: 600; letter-spacing: .1em; padding-top: 4px; }
.practice-name h3 { font-size: var(--step-3); font-weight: 500; }
.practice-row p { color: var(--muted); font-size: var(--step-0); line-height: 1.55; }
.practice-row .textlink { justify-self: end; }

.practice-figure {
  margin: clamp(24px, 3vw, 40px) 0; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 7; background: var(--panel);
}

/* ============================================================
   WHY US CARDS
   ============================================================ */
.why-head { text-align: center; max-width: 42rem; margin: 0 auto clamp(36px, 5vw, 60px); display: grid; gap: 18px; justify-items: center; }
.why-head h2 { font-size: var(--h-section); line-height: 1.06; width: 100%; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(24px, 2.6vw, 34px); display: grid; gap: 14px; align-content: start;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -30px rgba(27,26,22,.5); border-color: var(--line-2); }
.card-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel); color: var(--pine); border: 1px solid var(--line);
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--step-1); font-weight: 500; }
.card p { color: var(--muted); font-size: var(--step-0); }
.card--wide { grid-column: span 1; }

/* ============================================================
   ATTORNEYS
   ============================================================ */
.people-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(30px, 4vw, 52px); }
.people-head h2 { font-size: var(--step-4); max-width: 18ch; }

/* Two columns: photos + button on the left, section titles on the right. */
.attorneys-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(22px, 2.8vw, 36px); align-items: start;
}
.attorneys-media { grid-column: 1; grid-row: 1; }
.attorneys-copy { grid-column: 2; grid-row: 1; display: grid; gap: 16px; justify-items: start; }
.attorneys-copy h2 { font-size: var(--h-section); }
.attorneys-copy p:not(.eyebrow) { color: var(--muted); font-size: var(--step-0); line-height: 1.6; }
.attorneys-copy .textlink { margin-top: 10px; }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); width: 100%; }
.person {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--r-md); background: var(--panel); display: block;
}
.person .photo-slot { position: absolute; inset: 0; }
.person .slot-img { transition: transform .7s var(--ease-out); }
.person:hover .slot-img { transform: scale(1.045); }

/* Green name bar reveals on hover */
.person-tag {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--dark); color: var(--on-dark); border-radius: 13px;
  padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transform: translateY(calc(100% + 14px)); opacity: 0;
  transition: transform .55s var(--ease-out), opacity .4s var(--ease);
}
.person:hover .person-tag, .person:focus-within .person-tag { transform: translateY(0); opacity: 1; }
/* Touch devices can't hover, so keep names visible there */
@media (hover: none) { .person .person-tag { transform: translateY(0); opacity: 1; } }
.person-tag .pt-name { display: grid; gap: 2px; min-width: 0; }
.person-tag .pt-n { font-size: var(--step-0); font-weight: 500; }
.person-tag .pt-r { font-size: var(--step--1); color: var(--on-dark-mut); }
.person-tag .round {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1px solid rgba(245,246,239,.45); display: grid; place-items: center;
}

/* photo slot placeholder */
.photo-slot {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(27,26,22,.03) 22px 23px),
    linear-gradient(160deg, var(--paper-2), var(--panel));
  color: var(--muted); text-align: center; padding: 20px;
}
.photo-slot { position: relative; }
.slot-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.photo-slot .ps-inner { display: grid; gap: 8px; justify-items: center; }
.photo-slot .ps-mono { font-family: "Newsreader", serif; font-style: italic; font-size: 1.6rem; color: var(--gold); }
.photo-slot .ps-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(30px, 4vw, 48px); }
.testi-head h2 { font-size: var(--h-section); max-width: none; }

/* Continuously looping review carousel */
.marquee {
  position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex; align-items: stretch; gap: clamp(16px, 1.6vw, 24px);
  width: max-content; animation: marquee-scroll 46s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - clamp(8px, .8vw, 12px))); }
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.review-card {
  flex: 0 0 clamp(272px, 25vw, 366px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(24px, 2.2vw, 32px);
  display: grid; gap: 14px; align-content: start;
}
.review-mark { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 2.6rem; line-height: .6; color: var(--gold); }
.review-card p { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.6; }
.review-meta { margin-top: 2px; font-size: var(--step--1); color: var(--muted); letter-spacing: .02em; }
.review-meta b { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   QUOTE BANNER
   ============================================================ */
.quote-section {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(48px, 6vw, 92px);
  background: var(--dark); color: var(--on-dark);
}
.quote-media {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../img/quote.png');
  background-size: cover; background-position: center;
}
.quote-section::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,18,12,.72) 0%, rgba(8,18,12,.62) 50%, rgba(8,18,12,.78) 100%);
}
.quote-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.quote-mark {
  font-family: "Newsreader", Georgia, serif; font-style: italic;
  font-size: clamp(3rem, 5vw, 4.4rem); line-height: .5; color: var(--gold);
}
.quote-section blockquote { margin: 0; max-width: 46rem; }
.quote-section blockquote p {
  font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.9rem); line-height: 1.28; letter-spacing: -.01em;
}
.quote-attr {
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-mut); font-weight: 500;
}

/* ============================================================
   PRACTICE-AREA LANDING PAGES (long-form SEO)
   ============================================================ */
.hero--lp .hero-panel { min-height: min(66vh, 600px); }

.lp-body { padding-block: clamp(52px, 7vw, 96px); }
.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 68px); align-items: start; }
.lp-prose { max-width: 760px; }
.lp-prose > * + * { margin-top: 1.15em; }
.lp-prose .lead { font-size: var(--step-1); color: var(--ink); line-height: 1.6; }
.lp-prose h2 { font-size: var(--step-3); letter-spacing: -.02em; margin-top: 1.7em; line-height: 1.12; }
.lp-prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.lp-prose p, .lp-prose li { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.7; }
.lp-prose ul, .lp-prose ol { padding-left: 1.15em; display: grid; gap: 9px; margin-top: .6em; }
.lp-prose strong { color: var(--ink); font-weight: 600; }
.lp-prose a { color: var(--pine); text-decoration: underline; text-underline-offset: 2px; }
.lp-callout {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--pine);
  border-radius: var(--r-sm); padding: 22px 24px; margin-top: 1.5em;
}
.lp-callout p { margin: 0; }

/* Sticky side card */
.lp-aside { position: sticky; top: 128px; display: grid; gap: 18px; }
.lp-card {
  background: var(--dark); color: var(--on-dark); border-radius: var(--r-md);
  padding: 26px 24px; display: grid; gap: 12px;
}
.lp-card h3 { font-size: var(--step-1); font-weight: 500; }
.lp-card p { color: var(--on-dark-mut); font-size: var(--step--1); line-height: 1.55; }
.lp-card .btn { margin-top: 4px; justify-content: center; }
.lp-card .lp-phone { font-size: var(--step-1); font-weight: 500; }
.lp-card .lp-phone:hover { color: var(--gold); }

/* On-this-page nav */
.lp-toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 22px; }
.lp-toc h4 { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lp-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lp-toc a { font-size: var(--step--1); color: var(--ink-soft); }
.lp-toc a:hover { color: var(--pine); }

/* FAQ accordion */
.faq { margin-top: 1.8em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 42px 20px 0; position: relative;
  font-weight: 500; font-size: var(--step-1); color: var(--ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem;
  color: var(--pine); font-weight: 400; line-height: 1; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0; padding: 0 0 22px; color: var(--ink-soft); font-size: var(--step-0); line-height: 1.7; }
.faq details > p + p { padding-top: 0; margin-top: -8px; }

/* Related practice areas */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.related-card {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -30px rgba(27,26,22,.5); border-color: var(--line-2); }
.related-card .rc-kicker { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.related-card h3 { font-size: var(--step-1); font-weight: 500; margin-top: 10px; }
.related-card p { color: var(--muted); font-size: var(--step--1); margin-top: 8px; line-height: 1.55; }

@media (max-width: 900px) {
  .lp-layout { grid-template-columns: 1fr; }
  .lp-aside { position: static; grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .lp-aside { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta { text-align: center; }
.cta h2 { font-size: var(--h-section); font-weight: 500; line-height: 1.06; }
.cta p { max-width: 52ch; margin: 14px auto 0; color: var(--muted); font-size: var(--step-0); }
.cta .cta-actions { margin-top: 24px; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.section--dark .cta p { color: var(--on-dark-mut); }

/* Pull quote on light sections. Compound selector so it beats `.cta h2`. */
.pull-quote,
.cta h2.pull-quote {
  font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.4rem); line-height: 1.3; letter-spacing: -.01em;
  max-width: 34rem; margin-inline: auto;
}

/* ============================================================
   PAGE HEADERS (interior pages)
   ============================================================ */
/* Interior page heroes reuse the homepage hero panel, shorter and photo-free
   (brand green gradient), so the two can never drift apart. */
.hero--page .hero-panel {
  min-height: min(62vh, 540px);
  align-items: center;          /* center content vertically... */
  padding-top: 90px;            /* ...in the area below the fixed 112px header */
}
@media (max-width: 720px) { .hero--page .hero-panel { min-height: min(74vh, 600px); } }
.hero--page .hero-panel::after {
  background: linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(8,18,12,.18) 45%, rgba(8,18,12,.42) 100%);
}
/* White hero button so it stands out from the flat green background */
.hero--page .btn--solid { background: #fff; color: var(--pine); }
.hero--page .btn--solid:hover { background: var(--paper-2); color: var(--pine-deep); }

/* Practice detail blocks */
.detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px);
  align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line);
}
.detail:nth-child(even) .detail-media { order: -1; }
.detail-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.detail-copy { display: grid; gap: 18px; align-content: center; }
.detail-copy h2 { font-size: var(--h-section); line-height: 1.06; }
.detail-copy p { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.6; }
.detail-list { display: grid; gap: 12px; margin-top: 4px; }
.detail-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.detail-list li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--gold); flex: none; }

/* Attorney profile */
.profile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
/* Even profiles put the photo on the right; flip the column widths too so the
   photo keeps the same (narrower) column width as the odd profiles. */
.profile:nth-child(even) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
.profile:nth-child(even) .profile-photo { order: 2; }
.profile-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); position: sticky; top: 100px; }
.profile-copy { display: grid; gap: 18px; }
.profile-copy .role { color: var(--pine); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: var(--step--1); }
.profile-copy h2 { font-size: var(--h-section); line-height: 1.06; }
.profile-copy p { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.6; }
.profile-facts { display: grid; gap: 2px; margin-top: 8px; border-top: 1px solid var(--line); }
.profile-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; color: var(--ink); }
.profile-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.social-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--pine); background: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .5s var(--ease-out);
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--pine); color: #fff; border-color: var(--pine); transform: translateY(-2px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-block { display: grid; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-block .lbl { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-block .val { font-size: var(--step-1); }
.contact-block a.val:hover { color: var(--pine); }

.map-embed {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 6; background: var(--panel);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.15); }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

.form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step--1); font-weight: 500; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 15px; width: 100%; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pine); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .disclaimer { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: var(--on-dark); padding-top: clamp(56px, 7vw, 96px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.footer-brand { max-width: 34ch; }
.footer-brand .brand { color: var(--on-dark); margin-bottom: 20px; }
.footer-brand .brand-mark { border-color: rgba(239,235,227,.5); }
.footer-brand .brand-name span { color: var(--on-dark-mut); }
.footer-brand p { color: var(--on-dark-mut); font-size: var(--step-0); line-height: 1.6; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(245,246,239,.22); color: var(--on-dark);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease-out);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--gold); color: var(--pine); border-color: var(--gold); transform: translateY(-2px); }
.footer-col h4 { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-mut); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-col span { color: var(--on-dark); font-size: var(--step-0); white-space: nowrap; }
.footer-col a { position: relative; }
.footer-col a:hover { color: var(--on-dark-mut); }
.footer-col .muted { color: var(--on-dark-mut); }
.footer-bottom {
  border-top: 1px solid rgba(239,235,227,.14); padding-block: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--on-dark-mut); font-size: var(--step--1);
}
.footer-bottom a:hover { color: var(--on-dark); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-disclaimer { color: var(--on-dark-mut); font-size: .76rem; line-height: 1.6; max-width: 90ch; padding-bottom: 26px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .r-fx { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.r-fx.is-in { opacity: 1; transform: none; }
.js .r-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.r-stagger.is-in > * { opacity: 1; transform: none; }
.r-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.r-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.r-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.r-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .r-fx, .r-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal-line > span { transform: none !important; }
  .btn, .card, .practice-row, .textlink .arrow, .person-tag { transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Stack the attorneys section early, so the title column never gets so narrow
   that "Meet the team" breaks onto two lines. */
@media (max-width: 1080px) {
  .attorneys-layout { grid-template-columns: 1fr; }
  .attorneys-media, .attorneys-copy { grid-column: auto; grid-row: auto; }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .detail, .detail:nth-child(even) .detail-media { grid-template-columns: 1fr; }
  .detail:nth-child(even) .detail-media { order: 0; }
  .profile, .profile:nth-child(even) .profile-photo { grid-template-columns: 1fr; }
  .profile:nth-child(even) .profile-photo { order: 0; }
  .profile-photo { position: static; aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .trust { grid-template-columns: 1fr; }
  .trust-item + .trust-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .practice-row { grid-template-columns: 1fr; gap: 14px; }
  .practice-row .textlink { justify-self: start; }
  .practice-head, .people-head, .testi-head { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .profile-facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
