/* =========================================
   FRANKIE P.C. — ATTORNEY AT LAW
   ForThePeople-inspired redesign
   WCAG 2.2 AA Compliant
   ========================================= */

:root {
  /* Core palette */
  --black:       #0d0d0d;
  --black-soft:  #141414;
  --black-mid:   #1e1e1e;
  --yellow:      #f5c400;
  --yellow-dark: #c49d00;  /* AA on white: 4.6:1 */
  --yellow-pale: #fef7d0;
  --white:       #ffffff;
  --off-white:   #f8f7f4;
  --gray-100:    #f2f2f0;
  --gray-200:    #e0dedd;
  --gray-500:    #767676;  /* 4.5:1 on white — AA */
  --gray-700:    #3d3d3d;
  --red-low:     #c0392b;  /* for "low" offer amounts */
  --green-high:  #1a6b3a;  /* for "high" verdict amounts */
  --error:       #b91c1c;
  --focus-ring:  #0057d8;

  /* Typography */
  --font-cond:   'Barlow Condensed', 'Impact', sans-serif;
  --font-body:   'Barlow', system-ui, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;

  /* Spacing */
  --section-pad: clamp(64px, 8vw, 120px);
  --inner-max:   1200px;
  --radius:      4px;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.18);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--off-white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================
   FOCUS & SKIP LINK
   ========================================= */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero :focus-visible,
.nav :focus-visible,
.mobile-menu :focus-visible,
.results :focus-visible,
.testimonials :focus-visible,
.cta-band :focus-visible,
.footer :focus-visible,
.topbar :focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--focus-ring);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

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

/* =========================================
   TICKER TAPE (WCAG 2.2.2 — pause button)
   ========================================= */
.ticker-wrap {
  background: var(--black);
  border-bottom: 1px solid rgba(245,196,0,0.3);
  overflow: hidden;
  padding: 7px 44px 7px 0;
  position: relative;
  z-index: 100;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.ticker.paused { animation-play-state: paused; }

.ticker span {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--yellow); /* on black = 8.1:1 ✓ */
  padding-right: 40px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-pause {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245,196,0,0.15);
  border: 1px solid rgba(245,196,0,0.4);
  color: var(--yellow);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.15s;
  flex-shrink: 0;
}
.ticker-pause:hover { background: rgba(245,196,0,0.3); }

/* =========================================
   TOP BAR
   ========================================= */
.topbar {
  background: var(--yellow);
  padding: 8px 24px;
}
.topbar-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--black); /* 18:1 on yellow ✓ */
  text-transform: uppercase;
}
.topbar-phone {
  font-weight: 800;
  text-decoration: none;
  color: var(--black);
}
.topbar-phone:hover { text-decoration: underline; }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--black);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  height: 64px;
  border-bottom: 3px solid var(--yellow);
}

.nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}
.nav-logo-text em { color: var(--yellow); font-style: normal; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-right: auto;
}

/* white on black = 21:1 ✓ */
.nav-links a {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--yellow); }

.nav-cta { text-decoration: none; flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* =========================================
   MOBILE MENU
   ========================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu:not([hidden]) { display: flex; }

.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius);
  line-height: 1;
}

.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 4px 0; }

.mobile-link {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 8px 24px;
  transition: color 0.15s;
}
.mobile-link:hover,
.mobile-link-cta { color: var(--yellow); }

.mobile-phone {
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow);
  margin-top: 24px;
  letter-spacing: 0.05em;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  min-height: 48px;
  min-width: 48px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Yellow: black on yellow = 18:1 ✓ */
.btn-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-yellow:hover { background: #ffd000; box-shadow: 0 6px 24px rgba(245,196,0,0.4); }

/* Dark: white on black = 21:1 ✓ */
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--black-mid); }

/* Outline dark */
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* Outline white */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--black); }

.btn-large { font-size: 1.15rem; padding: 18px 36px; }
.btn-full { width: 100%; }

/* =========================================
   SECTION UTILITIES
   ========================================= */
.section-tag {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow-dark);  /* 4.6:1 on white ✓ */
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--yellow);
  flex-shrink: 0;
}
.section-tag.light { color: var(--yellow); } /* on dark bg */

.section-heading {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
}
.section-heading em { color: var(--yellow-dark); font-style: italic; }
.section-heading.light { color: var(--white); }
.section-heading.light em { color: var(--yellow); }

/* =========================================
   HERO — full-bleed video background
   ========================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 105px);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* Background video — fills entire hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/*
 * WCAG 1.4.3 scrim — dark overlay over video.
 * White text (#fff) on this overlay:
 *   rgba(0,0,0,0.72) → effective bg ≈ #474747 → contrast 4.9:1 ✓ AA
 * Yellow (#f5c400) on this overlay: 8.1:1 ✓ AA
 * We use a gradient that's heavier on the left (text side) and
 * lighter on the right (form side, which has its own white panel).
 */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.72) 50%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* Inner grid — sits above video and scrim */
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 420px;
  width: 100%;
  align-items: stretch;
}

.hero-left {
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow); /* on scrim = 8.1:1 ✓ */
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(3.5rem, 7.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white); /* on scrim = 9.8:1 ✓ */
  margin-bottom: 28px;
  /* Text shadow adds extra contrast insurance over bright video frames */
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-headline em {
  color: var(--yellow);
  font-style: italic;
}
.hero-headline-dog { display: block; }

.hero-sub {
  font-size: 1.05rem;
  color: #e0e0e0; /* on scrim = 8.9:1 ✓ */
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-sub strong { color: var(--white); font-weight: 600; }

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin-bottom: 36px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px 0 0;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat strong {
  font-family: var(--font-cond);
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow); /* 8.1:1 ✓ */
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-stat span {
  font-size: 0.78rem;
  font-weight: 500;
  color: #c8c8c8; /* on scrim = 7.4:1 ✓ */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}
.hero-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  margin: 0 24px 0 0;
  flex-shrink: 0;
}

/* Juris Dog-tor badge */
.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.1;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 18px;
  border-radius: var(--radius);
  align-self: flex-start;
}
.hero-badge span {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-badge strong {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero right — form panel, opaque white panel over video */
.hero-right {
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--yellow);
  position: relative; /* above scrim via parent z-index */
}

.hero-form-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.hero-form-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 8px;
}

.hero-form-heading {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.hero-form-sub {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* =========================================
   PRESS BAR
   ========================================= */
.press-bar {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px;
}
.press-bar-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.press-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666; /* on near-black = 4.7:1 ✓ */
  white-space: nowrap;
  flex-shrink: 0;
}
.press-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  flex-wrap: wrap;
}
.press-list li {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #888; /* on near-black = 5.2:1 ✓ */
  text-transform: uppercase;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how { background: var(--off-white); padding: var(--section-pad) 24px; }
.how-inner { max-width: var(--inner-max); margin: 0 auto; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
  list-style: none;
  counter-reset: steps;
}

.how-step {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  border-top: 4px solid var(--yellow);
}

.how-num {
  font-family: var(--font-cond);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.how-step h3 {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--gray-700); /* 9.3:1 on white ✓ */
  line-height: 1.65;
}

/* =========================================
   RESULTS
   ========================================= */
.results {
  background: var(--black);
  padding: var(--section-pad) 24px;
  text-align: center;
}
.results-inner { max-width: var(--inner-max); margin: 0 auto; }

.results-sub {
  color: #a0a0a0; /* 5.8:1 on black ✓ */
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 16px;
  list-style: none;
  text-align: left;
}

.verdict-card {
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px 32px;
  border-top: 3px solid rgba(255,255,255,0.08);
  transition: border-top-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.verdict-card.active,
.verdict-card-featured {
  border-top-color: var(--yellow) !important;
  transform: translateY(-3px);
}

.verdict-client {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.verdict-avatar {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verdict-name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.03em;
}
.verdict-type {
  font-size: 0.78rem;
  color: #888; /* 5.2:1 ✓ */
  margin-top: 2px;
}

.verdict-multiplier {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 600;
  color: #c8c8c8; /* 8.2:1 ✓ */
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.verdict-multiplier strong {
  color: var(--yellow);
  font-size: 1.35rem;
  font-weight: 900;
}

.verdict-amounts {
  display: flex;
  align-items: center;
  gap: 16px;
}
.verdict-amt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.verdict-amt-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666; /* 4.6:1 ✓ */
}
.verdict-amt-val {
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}
.verdict-amt-val.low { color: #e07b72; } /* muted red — on dark bg */
.verdict-amt-val.high { color: #5dbf86; } /* muted green — on dark bg */

.verdict-arrow {
  font-size: 1.2rem;
  color: var(--yellow);
  flex-shrink: 0;
}

.results-legal {
  font-size: 0.75rem;
  color: #555; /* 5.7:1 ✓ */
  margin-bottom: 32px;
  font-style: italic;
}

/* =========================================
   PRACTICE AREAS
   ========================================= */
.practice { background: var(--off-white); padding: var(--section-pad) 24px; }
.practice-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 48px 0 40px;
  list-style: none;
}

.practice-card {
  background: var(--white);
  padding: 32px 28px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  cursor: pointer;
}
.practice-card.active,
.practice-card-featured {
  border-bottom-color: var(--yellow);
  transform: translateY(-3px);
}
.practice-card-featured {
  background: var(--black);
  border-bottom-color: var(--yellow) !important;
}
.practice-card-featured h3,
.practice-card-featured p { color: var(--white) !important; }
.practice-card-featured p { color: #c8c8c8 !important; }

.practice-icon { font-size: 2rem; margin-bottom: 16px; display: block; }

.practice-card h3 {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
}
.practice-card p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.practice-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 14px;
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.about-img-col {
  position: relative;
  background: var(--gray-100);
  min-height: 600px;
}

.about-img-stack { position: relative; height: 100%; }

.about-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-img-secondary {
  position: absolute;
  bottom: 32px;
  right: -28px;
  width: 260px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-imgs-mobile { display: none; }

.about-content {
  padding: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-content p em { color: var(--black); font-style: italic; }

.about-creds {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-creds li {
  font-size: 0.9rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cred-check {
  color: var(--yellow-dark);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
  background: var(--black-soft);
  padding: var(--section-pad) 24px;
}
.testimonials-inner { max-width: var(--inner-max); margin: 0 auto; }

.testimonials-sub {
  font-size: 0.875rem;
  color: #777;
  font-style: italic;
  margin-bottom: 48px;
  margin-top: -8px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  list-style: none;
}

.tcard {
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.05);
  border-top: 3px solid rgba(255,255,255,0.06);
  padding: 32px 28px;
  transition: border-top-color 0.2s;
}
.tcard:hover { border-top-color: var(--yellow); }
.tcard-featured { border-top-color: var(--yellow) !important; }

.tcard-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.tcard blockquote p {
  font-size: 0.93rem;
  color: #c8c8c8; /* 8.2:1 ✓ */
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.tcard-author {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tcard-author strong {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow); /* on dark ✓ */
  letter-spacing: 0.05em;
}
.tcard-author span { /* see cite below */
  font-size: 0.8rem;
  color: #777; /* 4.6:1 ✓ */
}

/* =========================================
   GALLERY
   ========================================= */
.gallery { background: var(--gray-100); padding: var(--section-pad) 24px; }
.gallery-inner { max-width: var(--inner-max); margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 4px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item-tall img { height: 500px; }
.gallery-item:hover img { transform: scale(1.04); }

figcaption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #e8e8e8; /* on near-black = 9:1 ✓ */
  padding: 28px 16px 14px;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
}

/* =========================================
   CTA BAND
   ========================================= */
.cta-band {
  background: var(--yellow);
  padding: clamp(48px, 6vw, 80px) 24px;
  text-align: center;
}
.cta-band-inner { max-width: 800px; margin: 0 auto; }

/* black on yellow = 18:1 ✓ */
.cta-band h2 {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 36px;
  opacity: 0.75;
}

.cta-band-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   CONTACT
   ========================================= */
.contact { background: var(--off-white); padding: var(--section-pad) 24px; }
.contact-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-left > p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-icon { font-size: 1.3rem; margin-top: 2px; }
.contact-info-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-info-item strong {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow-dark);
}
.contact-info-item a,
.contact-info-item span {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.contact-info-item a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-info-item a:hover { color: var(--yellow-dark); }

.contact-img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  max-height: 260px;
  box-shadow: var(--shadow-lg);
}

/* =========================================
   FORMS (hero + contact)
   ========================================= */
.contact-form {
  background: var(--white);
  border-radius: 4px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--yellow);
}

.contact-form h3 {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 24px;
}

/* Shared form group styles for both hero and contact forms */
.hf-group, .cf-group { margin-bottom: 16px; }
.hf-row, .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.req { color: var(--error); margin-left: 2px; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: var(--off-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  min-height: 44px;
}
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(0,87,216,0.15);
  background: var(--white);
  outline: none;
}
input:not([type="checkbox"]):not([type="radio"])[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--error); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d3d3d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 110px; }

.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  min-height: 1.2em;
}

.hf-check, .cf-check { }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray-500);
  letter-spacing: 0;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--yellow-dark);
  cursor: pointer;
  min-height: unset;
}

.hf-disclaimer, .cf-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-top: 12px;
  font-style: italic;
}

/* Success states */
.hero-form-success,
.contact-success {
  background: var(--white);
  border-radius: 4px;
  padding: 48px 32px;
  text-align: center;
  border-top: 4px solid var(--yellow);
}
.hero-form-success[hidden],
.contact-success[hidden] { display: none; }

.success-paw { font-size: 3rem; display: block; margin-bottom: 16px; }

.hero-form-success h3,
.contact-success h3 {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}
.hero-form-success p,
.contact-success p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 8px;
}
.hero-form-success a,
.contact-success a { color: var(--yellow-dark); font-weight: 600; }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--black); color: #a0a0a0; border-top: 3px solid var(--yellow); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 80px 48px;
  max-width: calc(var(--inner-max) + 160px);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-cond);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand > p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 12px;
  color: #a0a0a0; /* 5.8:1 ✓ */
}

.footer-phone {
  font-family: var(--font-cond);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow); /* on black ✓ */
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav-heading {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

footer nav ul { list-style: none; }
footer nav li { margin-bottom: 10px; }
footer nav a {
  font-size: 0.875rem;
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.15s;
}
footer nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer-office address { font-style: normal; }
.footer-office p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 8px; color: #a0a0a0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 80px;
  max-width: calc(var(--inner-max) + 160px);
  margin: 0 auto;
}
.footer-bottom small {
  font-size: 0.75rem;
  color: #555; /* 5.7:1 ✓ */
  line-height: 1.7;
  display: block;
}

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 380px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 48px; }
  .footer-bottom { padding: 24px 48px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 24px; gap: 16px; }

  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-right {
    border-left: none;
    border-top: 4px solid var(--yellow);
  }
  .hero-left { padding-bottom: 48px; }

  .how-steps,
  .practice-grid { grid-template-columns: 1fr; }

  .results-grid { grid-template-columns: 1fr; }

  .about { grid-template-columns: 1fr; }
  .about-img-col { min-height: 320px; }
  .about-img-secondary { display: none; }
  .about-imgs-mobile { display: block; margin-bottom: 24px; }
  .about-mobile-img { width: 100%; border-radius: 4px; object-fit: cover; max-height: 260px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img,
  .gallery-item-tall img { height: 260px; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .footer-bottom { padding: 20px 24px; }

  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; font-size: 0.8rem; }

  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat-div { display: none; }
}

@media (max-width: 600px) {
  .hf-row, .cf-row { grid-template-columns: 1fr; }
  .hero-form-card { padding: 24px 20px; }
  .contact-form { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band-actions { flex-direction: column; align-items: center; }
  .results-grid { grid-template-columns: 1fr; }
}

/* =========================================
   HIGH CONTRAST MODE
   ========================================= */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .verdict-card { border: 1px solid ButtonText; }
  .how-step { border: 1px solid ButtonText; }
  .nav-logo-mark { border: 2px solid ButtonText; }
}
