/* ============================================================
   Tyler Flood & Associates — Clergy Abuse Practice
   Static rebuild of clergyabuseattorneys.com
   Palette + typography + breakpoints derived from
   /migration-source/styles/css-analysis-summary.md
   ============================================================ */

:root {
  /* Colors — from Oxygen universal-styles forensic analysis */
  --c-bg:         #ffffff;
  --c-bg-dark:    #060d21;
  --c-bg-darker:  #010616;
  --c-bg-pale:    #eff4fb;
  --c-text:       #060d21;
  --c-text-muted: #3b3c38;
  --c-text-inv:   #ffffff;
  --c-accent:     #baa157;
  --c-accent-dk:  #6b4c0e;
  --c-link:       #204699;
  --c-divider:    #dddddd;
  --c-overlay:    rgba(29, 41, 53, 0.63);

  /* Type */
  --font-ui:    'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hero:  'Montserrat', 'Roboto', system-ui, sans-serif; /* Prod uses Montserrat 200 for hero headline */

  /* Spacing / layout */
  --max-content: 1440px;
  --gutter: clamp(20px, 4vw, 60px);
  --section-py: clamp(56px, 9vw, 120px);

  /* Motion */
  --ease-base:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-hero-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-hero-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  0.2s;
  --dur-base:  0.3s;
  --dur-slow:  0.6s;

  /* Radii / shadows */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --shadow-card: 0 8px 28px rgba(6, 13, 33, 0.08);
  --shadow-lg:   0 20px 60px rgba(6, 13, 33, 0.18);
}

/* ========== Reset + base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; transition: color var(--dur-base) var(--ease-base); }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--c-text);
}
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
strong, b { font-weight: 700; }

/* ========== Containers ========== */
.container { max-width: var(--max-content); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-py) 0; }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-inv); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-text-inv); }
.section--pale { background: var(--c-bg-pale); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}
/* section-eyebrow — renders as an h2 for proper heading outline but looks like .eyebrow */
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 14px;
  line-height: 1.4;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--c-accent);
  background: var(--c-accent);
  color: var(--c-bg-dark);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-base),
              border-color var(--dur-base) var(--ease-base),
              color var(--dur-base) var(--ease-base),
              transform var(--dur-fast) var(--ease-base);
}
.btn:hover { background: var(--c-accent-dk); border-color: var(--c-accent-dk); color: var(--c-text-inv); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--c-accent); }
.btn-ghost:hover { background: var(--c-accent); color: var(--c-bg-dark); }
.btn-dark { background: var(--c-bg-dark); border-color: var(--c-bg-dark); color: var(--c-text-inv); }
.btn-dark:hover { background: transparent; color: var(--c-bg-dark); }

/* ========== Header / Nav ========== */
.site-header {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: var(--max-content);
  margin: 0 auto;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--c-text-inv);
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.site-logo-icon {
  width: 46px; height: 46px;
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.site-logo-icon svg { width: 22px; height: 22px; fill: var(--c-accent); }
.site-logo-text { display: inline-flex; flex-direction: column; gap: 3px; }
.site-logo-text .top  { color: var(--c-accent); font-size: 15px; letter-spacing: 0.16em; }
.site-logo-text .bot  { color: var(--c-text-inv); font-size: 20px; font-weight: 300; letter-spacing: 0.26em; }
.site-logo:hover { color: var(--c-text-inv); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav > li { position: relative; }
.primary-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-inv);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-base);
}
.primary-nav a:hover,
.primary-nav a.current,
.primary-nav li.has-dropdown:hover > a { color: var(--c-accent); }

.primary-nav .has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-base) var(--ease-base);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 280px;
  background: var(--c-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 10px 0;
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-base), transform var(--dur-base) var(--ease-base);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dropdown li { margin: 0; }
.dropdown a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown a:hover { background: rgba(186, 161, 87, 0.08); color: var(--c-accent); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
}
.header-phone:hover { color: var(--c-text-inv); }

/* Hamburger */
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--c-text-inv);
}
.burger svg { width: 26px; height: 26px; }

/* ========== Hero (homepage, vanilla rebuild of SR7) ========== */
/* =========================================================
   Hero slider — vanilla rebuild of Slider Revolution
   Data-driven: slides defined in window.__HERO_SLIDES__
   Single-slide static on page; multi-slide auto-advance.
   ========================================================= */
.hero {
  position: relative;
  min-height: 720px;
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  overflow: hidden;
  isolation: isolate;
}

/* Each slide is absolutely stacked; only .active is visible */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-hero-io);
  pointer-events: none;
  z-index: 1;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }

/* Slide background (per-slide image) */
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }

/* Dark gradient overlay for legibility — calibrated lighter so the library bg + gavel + book
   stay visible across the whole hero while text remains readable on the left. */
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(6, 13, 33, 0.72) 0%, rgba(6, 13, 33, 0.55) 38%, rgba(6, 13, 33, 0.28) 72%, rgba(6, 13, 33, 0.10) 100%);
}

/* Angled NAVY-BLUE slash overlays — three stacked translucent polygons matching
   prod's SR7 shape layers exactly. Computed values lifted from clergyabuseattorneys.com
   via Playwright probe (2026-04-23): rgba(0,14,45,0.33) fill with these clip-paths. */
.hero-slash {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.hero-slash span {
  position: absolute;
  background: rgba(0, 14, 45, 0.33);
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.1s var(--ease-hero-io), transform 1.1s var(--ease-hero-io);
}
.hero-slide.active .hero-slash span { opacity: 1; transform: translateX(0); }
/* Prod overlay #1: big trapezoid from x=460 spanning to right edge, 100% height.
   Dimensions at 1440w were rect=(460,0,1080,778) → 75% width from 32% offset. */
/* Per SR7 timeline for Shape-8: t=300ms, duration=700ms, translateX(100%)→0 */
.hero-slash span {
  transition: opacity 0.7s var(--ease-hero-io), transform 0.7s var(--ease-hero-io);
}
.hero-slide.active .hero-slash span { transition-delay: 300ms; }
.hero-slash span:nth-child(1) {
  top: 0; bottom: 0; left: 32%; right: 0;
  clip-path: polygon(30% 100%, 0% 0%, 70% 0%, 100% 100%);
}
/* Prod overlay #2: right-half triangle, rect=(719,0,720,778) → 50% width, 50% offset */
.hero-slash span:nth-child(2) {
  top: 0; bottom: 0; left: 50%; right: 0;
  clip-path: polygon(0% 100%, 50% 0%, 100% 0%, 100% 100%);
}
.hero-slide.active .hero-slash span:nth-child(2) { transition-delay: 450ms; }
/* Prod overlay #3: right-half triangle, same size, mirrored clip */
.hero-slash span:nth-child(3) {
  top: 0; bottom: 0; left: 50%; right: 0;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%, 100% 100%);
}
.hero-slide.active .hero-slash span:nth-child(3) { transition-delay: 600ms; }
/* Prod uses SR7 absolute positioning where the text BLOCK spans ~72% of viewport
   and the portrait is layered on top. Match that: single-row grid with the text
   taking the full column width, portrait positioned absolute over the right side.
   Left gutter reduced to 20px to match prod's x=20 offset. */
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-content);
  margin: 0 auto;
  height: 100%;
  padding: clamp(64px, 8vw, 115px) 20px;  /* ~127px top on prod — trim to match */
}
.hero-copy { max-width: 1080px; }

/* Per-layer intro animation — lifted directly from prod's SR7 timeline data
   captured in hero/SR7.JSON.parsed.json. Each layer has its own motion:
     subhead  @ 0ms     300ms   fade opacity 0→1
     slash-1  @ 300ms   700ms   translateX(100%) → 0
     eyebrow  @ 1000ms  1200ms  translateY(-100%) → 0  (drops from ABOVE)
     h1       @ 1200ms  1000ms  translateX(175%) → 0 with mask-reveal sweep (power3.out)
     cta      @ 1500ms  1200ms  translateY(100%) → 0  (rises from BELOW)
     portrait @ 300ms   1100ms  translateX(+60) → 0 (supporting animation, not in SR7)
*/
.hero-slide .hero-sub {
  opacity: 0;
  transition: opacity 0.3s var(--ease-hero-io);
}
.hero-slide .hero-eyebrow {
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 1.2s var(--ease-hero-io), transform 1.2s var(--ease-hero-io);
}
.hero-slide h1 {
  opacity: 0;
  transform: translateX(175%);
  clip-path: inset(0 100% 0 0);
  transition: opacity 1.0s var(--ease-hero-in), transform 1.0s var(--ease-hero-in), clip-path 1.0s var(--ease-hero-in);
}
.hero-slide .hero-cta {
  opacity: 0;
  transform: translateY(100%);
  /* Separate intro (opacity/transform) from hover (bg/color/shadow) so hover stays snappy.
     Per-property transition-delay list keeps hover immediate while intro waits 1500ms.
     Order: opacity, transform, background-image, color, box-shadow. */
  transition-property: opacity, transform, background-image, color, box-shadow;
  transition-duration: 1.2s, 1.2s, 0.4s, 0.4s, 0.4s;
  transition-timing-function: var(--ease-hero-io), var(--ease-hero-io), var(--ease-base), var(--ease-base), var(--ease-base);
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}
.hero-slide.active .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1500ms, 1500ms, 0s, 0s, 0s;  /* only intro delayed */
}
.hero-slide .hero-portrait {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.1s var(--ease-hero-io), transform 1.1s var(--ease-hero-io);
}

/* Activate: each layer arrives at rest at its prod-matched delay */
.hero-slide.active .hero-sub      { opacity: 1;             transition-delay: 0ms; }
.hero-slide.active .hero-portrait { opacity: 1; transform: none; transition-delay: 300ms; }
.hero-slide.active .hero-eyebrow  { opacity: 1; transform: translateY(0); transition-delay: 1000ms; }
.hero-slide.active h1             { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); transition-delay: 1200ms; }
.hero-slide.active .hero-cta      { opacity: 1; transform: translateY(0); transition-delay: 1500ms; }

/* Eyebrow — small dark-navy pill with gold text (prod sr7-txt values:
   font Roboto 900 14px, padding 6px 18px, radius 12px, bg rgba(14,25,45,0.68)). */
.hero-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(14, 25, 45, 0.68);
  border: 0;
  border-radius: 12px;
  font-family: 'Roboto', var(--font-ui);
  font-size: 14px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 34px;
}

/* Headline — Montserrat 200 72px white, line-height 82px (prod exact).
   Scales down responsively below 1440. */
.hero h1 {
  font-family: var(--font-hero);
  font-weight: 200;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.139;
  color: #ffffff;
  margin: 0 0 22px;
  letter-spacing: normal;
}

/* Subhead — Roboto 400 20px pure white, 25px line-height (prod exact).
   Block spans the full hero-copy width (~1045px) so text wraps into ~2-3 lines
   matching prod's layout. */
.hero-sub {
  font-family: 'Roboto', var(--font-ui);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.25;
  max-width: none;
  margin: 0 0 42px;
  color: #ffffff;
  letter-spacing: normal;
}

/* CTA — prod uses SR7's exact gradient values, captured via Playwright hover probe:
   static bg  linear-gradient(181deg, #101d3a 0%, #0e192d 50%, #11161e 100%)  gold text
   hover  bg  linear-gradient(181deg, #00203f 0%, #00274c 50%, #002e59 100%)  white text
   box-shadow `rgba(0,122,255,0.2) 0 5px 20px` (subtle blue glow — same on both states) */
.hero-cta {
  display: inline-block;
  position: relative;
  padding: 8px 60px;
  background-color: #0e192d;
  background-image: linear-gradient(181deg, #101d3a 0%, #0e192d 50%, #11161e 100%);
  color: var(--c-accent);
  font-family: 'Roboto', var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 122, 255, 0.2);
  /* transitions defined in .hero-slide .hero-cta block above (multi-property) */
}
.hero-cta:hover,
.hero-cta:focus-visible {
  background-image: linear-gradient(181deg, #00203f 0%, #00274c 50%, #002e59 100%);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 122, 255, 0.35);
}

/* Portrait — absolutely positioned over the right side so text block can span full width
   like prod's SR7 layout. */
.hero-portrait {
  position: absolute;
  right: 60px;
  bottom: 0;
  width: 38%;
  max-width: 520px;
  z-index: 3;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.45));
}
.hero-portrait img { width: 100%; height: auto; }
@media (max-width: 991px) {
  .hero-portrait { position: static; width: 80%; max-width: 360px; margin: 32px auto 0; }
  .hero-copy     { max-width: 100%; }
}

/* Slider controls — dots below. Hidden with 1 slide via .hero[data-count="1"]. */
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 12px;
}
.hero[data-count="1"] .hero-controls { display: none; }
.hero-dot {
  width: 10px; height: 10px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-base), border-color var(--dur-base) var(--ease-base);
}
.hero-dot.active,
.hero-dot:hover { background: var(--c-accent); border-color: var(--c-accent); }

/* Left/right arrows (hidden until 2+ slides) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(6,13,33,0.25);
  color: var(--c-text-inv);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-base) var(--ease-base), border-color var(--dur-base) var(--ease-base), color var(--dur-base) var(--ease-base);
}
.hero-arrow:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg-dark); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero[data-count="1"] .hero-arrow { display: none; }

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: transform var(--dur-base) var(--ease-base), box-shadow var(--dur-base) var(--ease-base), border-color var(--dur-base) var(--ease-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--c-accent); }
.card h3 { margin-top: 0; color: var(--c-bg-dark); }
.card p { color: var(--c-text-muted); margin-bottom: 0; }
.card--dark { background: var(--c-bg-dark); border-color: transparent; color: var(--c-text-inv); }
.card--dark h3 { color: var(--c-accent); }
.card--dark p { color: rgba(255, 255, 255, 0.85); }

/* ========== Articles list page ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-tile {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(6, 13, 33, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-base), box-shadow var(--dur-base) var(--ease-base);
  text-decoration: none;
  color: inherit;
}
.article-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(6, 13, 33, 0.13); color: inherit; }
.article-tile .article-tile-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-dark) url("../images/attorney-pen-bg.webp") center / cover no-repeat;
  position: relative;
}
.article-tile .article-tile-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,13,33,0.6), rgba(6,13,33,0.3));
}
.article-tile-body { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.article-tile .article-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0;
}
.article-tile h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-bg-dark);
}
.article-tile p { margin: 0; color: var(--c-text-muted); font-size: 15px; line-height: 1.65; flex-grow: 1; }
.article-tile .read-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.article-tile:hover .read-more { color: var(--c-bg-dark); }
@media (max-width: 991px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 599px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* Article byline on individual article pages */
.article-byline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 18px;
}

/* ========== Case-studies page card grid ========== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.case-tile {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(6, 13, 33, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-base), box-shadow var(--dur-base) var(--ease-base);
}
.case-tile:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(6, 13, 33, 0.15); }
.case-tile-img {
  background-size: cover;
  background-position: center;
  width: 100%;
  aspect-ratio: 346 / 196;
}
.case-tile-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}
.case-tile h3 {
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--c-accent);
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-bg-dark);
}
.case-tile p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.65;
  flex-grow: 1;
}
.case-tile .more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 14px 28px;
  background: var(--c-bg-darker);
  color: #ffffff;
  font-family: 'Roboto', var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--dur-base) var(--ease-base), color var(--dur-base) var(--ease-base);
}
.case-tile .more:hover { background: var(--c-accent); color: var(--c-bg-dark); }
@media (max-width: 991px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 599px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ========== Inline contact block (renders at end of every prose/service/article page) ========== */
.inline-contact {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 60px var(--gutter) 40px;
  text-align: center;
}
.inline-contact > h3:first-child {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.inline-contact h3.addr { font-family: var(--font-ui); font-size: 17px; font-weight: 600; color: var(--c-bg-dark); margin: 0 0 4px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.inline-contact h3.phone { font-family: var(--font-ui); margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.inline-contact h3.phone a { color: var(--c-bg-dark); }
.inline-contact h3.email { font-family: var(--font-ui); margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.inline-contact h3.email a { color: var(--c-link); }

/* Case result card — matches the big-number-led style from source */
.case-card {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  padding: 36px 32px;
  border-radius: var(--r-md);
  border-top: 3px solid var(--c-accent);
  transition: transform var(--dur-base) var(--ease-base);
}
.case-card:hover { transform: translateY(-4px); }
.case-card .amount {
  display: block;
  font-family: var(--font-hero, var(--font-ui));
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  color: var(--c-accent);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.case-card h3 { color: var(--c-text-inv); font-size: 18px; margin-bottom: 12px; line-height: 1.3; }
.case-card p { color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.6; }
.case-card .more { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); }
.case-card .more:hover { color: var(--c-text-inv); }

/* ========== Testimonial ========== */
.testimonial {
  background: var(--c-bg);
  border-left: 4px solid var(--c-accent);
  padding: 32px 36px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.testimonial h3 { margin: 0 0 16px; color: var(--c-bg-dark); font-size: 20px; }
.testimonial p { color: var(--c-text-muted); font-style: italic; margin-bottom: 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

/* ========== FAQ accordion ========== */
.faq { max-width: 900px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--c-divider);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  color: var(--c-bg-dark);
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--c-accent);
  transition: transform var(--dur-base) var(--ease-base);
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-base);
}
.faq-a-inner { padding: 0 0 22px; color: var(--c-text-muted); }
.faq-item.open .faq-a { max-height: 1200px; }

/* ========== Forms ========== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--c-bg-dark); letter-spacing: 0.04em; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-base) var(--ease-base), box-shadow var(--dur-base) var(--ease-base);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(186, 161, 87, 0.2);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.success { color: #2d7a2d; }
.form-status.error { color: #b13d3d; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ========== Footer ========== */
.site-footer {
  background: var(--c-bg-darker);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-footer h4 {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--c-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  max-width: var(--max-content);
  margin: 48px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== Page hero (non-home) ========== */
.page-hero {
  background: var(--c-bg-dark) url("../images/attorney-pen-bg.webp") center / cover no-repeat;
  color: var(--c-text-inv);
  padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 13, 33, 0.9), rgba(6, 13, 33, 0.55));
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--c-text-inv); margin: 0; max-width: 840px; }
.page-hero .crumb {
  display: inline-block;
  color: var(--c-accent);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ========== Service-page layout (content + "All Services" sidebar) ========== */
.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.svc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--c-bg-dark);
  border-top: 3px solid var(--c-accent);
  padding: 28px 0 18px;
  box-shadow: var(--shadow-card);
}
.svc-sidebar h4 {
  color: var(--c-text-inv);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 28px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(186, 161, 87, 0.25);
}
.svc-sidebar ul { list-style: none; padding: 0; margin: 0; }
.svc-sidebar a {
  display: block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--dur-base) var(--ease-base), color var(--dur-base) var(--ease-base), border-color var(--dur-base) var(--ease-base);
}
.svc-sidebar a:hover {
  color: var(--c-accent);
  background: rgba(186, 161, 87, 0.05);
}
.svc-sidebar a.current {
  background: rgba(32, 70, 153, 0.38);
  color: var(--c-text-inv);
  border-left-color: var(--c-accent);
  font-weight: 600;
}
@media (max-width: 991px) {
  .svc-layout { grid-template-columns: 1fr; gap: 32px; }
  .svc-sidebar { position: static; }
}

/* Overview block used on service pages */
.svc-overview-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-bg-dark);
  margin: 0 0 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-accent);
  max-width: 480px;
}

/* ========== Prose (article body) ========== */
.prose { max-width: 820px; font-size: 17px; line-height: 1.75; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose ul, .prose ol { color: var(--c-text-muted); }
.prose strong { color: var(--c-text); }
.prose a { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-accent); }
.prose ul li { list-style-type: disc; }
.prose blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 8px 22px;
  font-style: italic;
  color: var(--c-text-muted);
}

/* ========== Back-to-top ========== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  background: var(--c-accent);
  color: var(--c-bg-dark);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-base), transform var(--dur-base) var(--ease-base);
  z-index: 90;
  display: grid; place-items: center;
}
.back-to-top:hover { background: var(--c-accent-dk); color: var(--c-text-inv); transform: translateY(-2px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 18px; height: 18px; }

/* ========== Utility ========== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== Responsive ========== */
@media (max-width: 991px) {
  .primary-nav { display: none; }
  .header-phone { display: none; }
  .burger { display: block; }
  .site-header.menu-open .primary-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--c-bg-dark);
    padding: 18px var(--gutter);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-header.menu-open .primary-nav > li { display: block; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .site-header.menu-open .primary-nav > li:last-child { border-bottom: 0; }
  .site-header.menu-open .primary-nav a { padding: 14px 0; font-size: 16px; }
  .site-header.menu-open .dropdown {
    position: static; opacity: 1; transform: none; pointer-events: auto;
    box-shadow: none; border: 0; padding: 0 0 8px 16px; background: transparent;
    display: none;
  }
  .site-header.menu-open .has-dropdown.open .dropdown { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-portrait { justify-self: center; max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .section { padding: 56px 0; }
  .hero { min-height: 520px; }
  .btn { padding: 12px 22px; font-size: 13px; }
}
