/* ============================================================
   DORRITY LAW OFFICE — Design System & Stylesheet
   Based on Lex Gotham "Digital Atelier" design spec
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@300;400;500;600;700&family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ============================================================
   1. DESIGN TOKENS (Custom Properties)
   ============================================================ */
:root {
  /* --- Color: Primary & Midnight Depth --- */
  --primary-container: #0a192f;
  --primary: #b9c7e4;
  --on-primary-container: #e0e6f1;

  /* --- Color: Metallic Champagne (Gold Leaf) --- */
  --tertiary: #e9c176;
  --on-tertiary-container: #9e7d3a;

  /* --- Color: Neutral Surfaces --- */
  --surface: #131313;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1a1a1a;
  --surface-container: #1e1e1e;
  --surface-container-high: #252525;
  --surface-container-highest: #2f2f2f;
  --surface-bright: #1c1c1c;

  /* --- Color: On-Surface Text --- */
  --on-surface: #e6e1d9;
  --on-surface-variant: #c4bfb6;
  --on-surface-muted: #8a8580;

  /* --- Color: Outline & Borders --- */
  --outline: rgba(196, 191, 182, 0.30);
  --outline-variant: rgba(196, 191, 182, 0.15);
  --ghost-border: rgba(196, 191, 182, 0.10);

  /* --- Color: Error --- */
  --error: #ffb4ab;

  /* --- Color: Gradients --- */
  --gradient-hero: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(14, 14, 14, 0.88) 100%);
  --gradient-btn-primary: linear-gradient(135deg, #0a192f 0%, #0e0e0e 100%);

  /* --- Typography: Font Families --- */
  --font-display: 'Noto Serif', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-label: 'Inter', 'Helvetica Neue', sans-serif;

  /* --- Typography: Sizes --- */
  --display-lg: clamp(2.5rem, 5vw, 3.5rem);
  --display-md: clamp(2rem, 4vw, 3rem);
  --display-sm: clamp(1.75rem, 3vw, 2.25rem);
  --title-lg: clamp(1.5rem, 2.5vw, 1.875rem);
  --title-md: clamp(1.25rem, 2vw, 1.5rem);
  --title-sm: 1.125rem;
  --body-lg: 1.125rem;
  --body-md: 1rem;
  --body-sm: 0.875rem;
  --label-lg: 0.8125rem;
  --label-md: 0.75rem;
  --label-sm: 0.6875rem;

  /* --- Typography: Weights --- */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* --- Spacing --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* --- Radius (sharp, tailored) --- */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-md: 0.375rem;

  /* --- Shadows --- */
  --shadow-ambient: 0px 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-card: 0px 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-subtle: 0px 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px 8px rgba(185, 199, 228, 0.06);
  --shadow-gold-glow: 0 0 30px 4px rgba(233, 193, 118, 0.12);
  --shadow-btn: 0 4px 20px rgba(233, 193, 118, 0.25);
  --shadow-btn-hover: 0 8px 32px rgba(233, 193, 118, 0.35);

  /* --- Glassmorphism --- */
  --glass-bg: rgba(19, 19, 19, 0.70);
  --glass-blur: blur(20px);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* --- Texture (noise overlay) --- */
  --texture-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");

  /* --- Layout --- */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--body-md);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  color: var(--on-surface);
  background-color: var(--surface-container-lowest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--tertiary);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--on-surface);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--display-lg);
  font-weight: var(--weight-bold);
}

h2 {
  font-size: var(--display-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: var(--title-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--title-md);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--on-surface-variant);
}

.label {
  font-family: var(--font-label);
  font-size: var(--label-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

.label-gold {
  font-family: var(--font-label);
  font-size: var(--label-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}

blockquote {
  font-family: var(--font-display);
  font-size: var(--title-md);
  font-style: italic;
  line-height: 1.6;
  color: var(--on-surface);
  border-left: 2px solid var(--tertiary);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--surface-container-low);
}

/* Numbers in Noto Serif */
.serif-number {
  font-family: var(--font-display);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* Texture overlay on all sections */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* Glowing divider between sections */
.section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(185, 199, 228, 0.08) 20%,
    rgba(233, 193, 118, 0.15) 50%,
    rgba(185, 199, 228, 0.08) 80%,
    transparent 100%
  );
  box-shadow: 0 0 20px 4px rgba(233, 193, 118, 0.05);
  z-index: 2;
}

.section:last-of-type::after {
  display: none;
}

.section--surface-low {
  background-color: var(--surface-container-low);
}

.section--surface {
  background-color: var(--surface);
}

.section--primary {
  background-color: var(--primary-container);
}

/* Asymmetric editorial grid */
.grid-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .grid-editorial {
    grid-template-columns: 40% 1fr;
    gap: var(--space-3xl);
  }
}

/* Standard grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column content layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* ============================================================
   5. NAVIGATION — Glassmorphic Sticky
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--ghost-border);
  transition: background var(--transition-base);
}

.site-nav.scrolled {
  background: rgba(14, 14, 14, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: var(--font-label);
  font-size: var(--label-lg);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--on-surface);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tertiary);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-sm));
  left: 50%;
  transform: translateX(-50%);
  min-width: 480px;
  background: rgba(19, 19, 19, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius-default);
  padding: var(--space-md);
  display: none;
  box-shadow: var(--shadow-ambient);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.nav-dropdown-menu a {
  display: block;
  font-family: var(--font-body);
  font-size: var(--body-sm);
  font-weight: var(--weight-regular);
  text-transform: none;
  letter-spacing: 0;
  color: var(--on-surface-variant);
  padding: var(--space-xs) var(--space-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  border-radius: var(--radius-sm);
}

.nav-dropdown-menu a:hover {
  color: var(--on-surface);
  background: var(--surface-container-high);
}

.nav-dropdown-menu a::after {
  display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-xs);
  background: none;
  border: none;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
  z-index: 999;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-label);
  font-size: var(--title-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--ghost-border);
}

.mobile-menu a:hover {
  color: var(--tertiary);
}

.mobile-submenu {
  padding-left: var(--space-lg);
}

.mobile-submenu a {
  font-size: var(--body-sm);
  text-transform: none;
  letter-spacing: 0;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.mobile-dropdown-toggle.open svg {
  transform: rotate(180deg);
}

/* ============================================================
   6. HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.hero--short {
  min-height: 45vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -0.5%); }
  100% { transform: scale(1.12) translate(0.5%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--body-lg);
  max-width: 560px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-xl);
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-label);
  font-size: var(--label-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--on-surface-muted);
}

.breadcrumb a:hover {
  color: var(--tertiary);
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: var(--label-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-quart);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on all buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  transition: left 0.5s var(--ease-out-quart);
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, #0a192f 0%, #162a4a 50%, #0e0e0e 100%);
  color: var(--on-primary-container);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-subtle);
}

.btn--primary:hover {
  border-color: var(--tertiary);
  color: var(--tertiary);
  box-shadow: var(--shadow-btn);
  transform: scale(1.04);
}

.btn--secondary {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.4) 0%, rgba(19, 19, 19, 0.4) 100%);
  color: var(--primary);
  border: 1px solid var(--outline-variant);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--on-surface);
  box-shadow: 0 4px 20px rgba(185, 199, 228, 0.15);
  transform: scale(1.04);
}

.btn--gold {
  background: linear-gradient(135deg, rgba(233, 193, 118, 0.12) 0%, rgba(158, 125, 58, 0.08) 50%, rgba(233, 193, 118, 0.12) 100%);
  color: var(--tertiary);
  border: 1px solid rgba(233, 193, 118, 0.3);
  box-shadow: 0 2px 12px rgba(233, 193, 118, 0.1);
}

.btn--gold:hover {
  border-color: var(--tertiary);
  background: linear-gradient(135deg, rgba(233, 193, 118, 0.2) 0%, rgba(158, 125, 58, 0.15) 50%, rgba(233, 193, 118, 0.2) 100%);
  box-shadow: var(--shadow-btn-hover);
  transform: scale(1.05);
  color: #fff;
}

/* ============================================================
   8. CARDS
   ============================================================ */

/* Case Dossier Card */
.card-dossier {
  background: rgba(47, 47, 47, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 2px solid var(--tertiary);
  border-radius: var(--radius-default);
  padding: var(--space-xl) var(--space-lg);
  transition: all 0.4s var(--ease-out-quart);
}

.card-dossier:hover {
  background: rgba(60, 60, 60, 1);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 193, 118, 0.06);
}

.card-dossier h3 {
  font-size: var(--title-sm);
  margin-bottom: var(--space-sm);
}

.card-dossier p {
  font-size: var(--body-sm);
  color: var(--on-surface-muted);
  margin-bottom: 0;
}

/* Practice Area Card */
.card-practice {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-default);
  background: var(--surface-container-high);
  transition: all 0.4s var(--ease-out-quart);
}

.card-practice:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(233, 193, 118, 0.06);
  background: var(--surface-container-highest);
}

.card-practice-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart), filter 0.4s var(--ease-out-quart);
  filter: brightness(0.85);
}

.card-practice:hover .card-practice-img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.card-practice-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.card-practice h3 {
  font-size: var(--title-sm);
  margin-bottom: var(--space-xs);
}

.card-practice p {
  font-size: var(--body-sm);
  color: var(--on-surface-muted);
  margin-bottom: 0;
}

.card-practice a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-practice .card-link {
  font-family: var(--font-label);
  font-size: var(--label-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-top: var(--space-sm);
  display: inline-block;
}

/* Attorney Card */
.card-attorney {
  background: var(--surface-container-low);
  border-radius: var(--radius-default);
  overflow: hidden;
}

.card-attorney-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}

.card-attorney-body {
  padding: var(--space-xl) var(--space-lg);
}

.card-attorney h3 {
  font-size: var(--title-lg);
  margin-bottom: var(--space-xs);
}

.card-attorney .label-gold {
  margin-bottom: var(--space-lg);
  display: block;
}

/* ============================================================
   9. CREDENTIAL STRIP
   ============================================================ */
.credential-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.credential-strip img {
  height: 60px;
  width: auto;
  filter: brightness(0.7) grayscale(30%);
  transition: all 0.4s var(--ease-out-quart);
}

.credential-strip img:hover {
  filter: brightness(1.1) grayscale(0%);
  transform: scale(1.1);
}

/* ============================================================
   10. FORMS
   ============================================================ */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-label);
  font-size: var(--label-md);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--outline);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: var(--body-md);
  padding: var(--space-sm) 0;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--tertiary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-container-lowest);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: none;
  position: relative;
  overflow: hidden;
}

/* Glowing top border for footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(185, 199, 228, 0.1) 25%,
    rgba(233, 193, 118, 0.18) 50%,
    rgba(185, 199, 228, 0.1) 75%,
    transparent 100%
  );
  box-shadow: 0 0 30px 6px rgba(233, 193, 118, 0.04);
}

/* Texture on footer */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-label);
  font-size: var(--label-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

.footer-col p,
.footer-col a {
  font-size: var(--body-sm);
  color: var(--on-surface-muted);
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--tertiary);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--ghost-border);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: var(--body-sm);
  color: var(--on-surface-muted);
  margin-bottom: 0;
}

.footer-badge img {
  height: 48px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.footer-badge:hover img {
  opacity: 1;
}

/* ============================================================
   12. CALLOUT BOXES
   ============================================================ */
.callout {
  background: var(--surface-container-low);
  border-radius: var(--radius-default);
  padding: var(--space-xl) var(--space-lg);
  margin: var(--space-2xl) 0;
}

.callout--gold {
  background: rgba(233, 193, 118, 0.06);
  border-left: 2px solid var(--tertiary);
}

.callout--gold p {
  color: var(--on-surface);
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--primary-container);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Texture on CTA */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* Glowing divider top */
.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(233, 193, 118, 0.2) 50%,
    transparent 100%
  );
  box-shadow: 0 0 24px 6px rgba(233, 193, 118, 0.06);
  z-index: 1;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--on-surface);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: var(--on-surface-variant);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

/* Sidebar CTA (for practice pages) */
.sidebar-cta {
  background: var(--surface-container-high);
  border-radius: var(--radius-default);
  padding: var(--space-xl);
  text-align: center;
}

.sidebar-cta h3 {
  font-size: var(--title-sm);
  margin-bottom: var(--space-sm);
}

.sidebar-cta p {
  font-size: var(--body-sm);
  margin-bottom: var(--space-md);
}

.sidebar-cta .phone-number {
  font-family: var(--font-display);
  font-size: var(--title-lg);
  color: var(--tertiary);
  display: block;
  margin-bottom: var(--space-md);
}

/* ============================================================
   14. VIDEO EMBED
   ============================================================ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-default);
  background: var(--surface-container-high);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   15. MAP EMBED
   ============================================================ */
.map-wrapper {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-default);
  background: var(--surface-container-high);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(40%) invert(92%) contrast(83%);
}

/* ============================================================
   16. DISCLAIMER
   ============================================================ */
.disclaimer {
  font-size: var(--body-sm);
  color: var(--on-surface-muted);
  line-height: 1.6;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--ghost-border);
  margin-top: var(--space-2xl);
}

/* ============================================================
   17. ATTORNEY DETAIL SECTIONS
   ============================================================ */
.attorney-section {
  margin-bottom: var(--space-2xl);
}

.attorney-section h4 {
  font-family: var(--font-label);
  font-size: var(--label-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--ghost-border);
}

.attorney-section ul {
  list-style: none;
}

.attorney-section ul li {
  font-size: var(--body-sm);
  color: var(--on-surface-variant);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--ghost-border);
}

.attorney-section ul li:last-child {
  border-bottom: none;
}

/* ============================================================
   18. PRACTICE PAGE CONTENT LAYOUT
   ============================================================ */
.practice-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .practice-content {
    grid-template-columns: 1fr 320px;
    gap: var(--space-3xl);
  }
}

.practice-main h2 {
  font-size: var(--title-lg);
  margin-top: var(--space-xl);
}

.practice-main ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.practice-main ul li {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  margin-bottom: var(--space-xs);
}

/* ============================================================
   19. TESTIMONIALS
   ============================================================ */
.testimonial {
  background: var(--surface-container-low);
  padding: var(--space-xl);
  border-radius: var(--radius-default);
  margin-bottom: var(--space-lg);
}

.testimonial p {
  font-style: italic;
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  margin-bottom: var(--space-sm);
}

.testimonial cite {
  font-family: var(--font-label);
  font-size: var(--label-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tertiary);
  font-style: normal;
}

/* ============================================================
   20. SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header .label-gold {
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header p {
  max-width: 600px;
  font-size: var(--body-lg);
}

/* ============================================================
   21. CONTACT INFO LIST
   ============================================================ */
.contact-info-list {
  margin-bottom: var(--space-xl);
}

.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--ghost-border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item .contact-label {
  font-family: var(--font-label);
  font-size: var(--label-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  min-width: 80px;
}

.contact-info-item .contact-value {
  color: var(--on-surface);
  font-size: var(--body-md);
}

.contact-info-item a {
  color: var(--primary);
}

/* ============================================================
   22. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--tertiary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   23. RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 639px) {
  .hero {
    min-height: 55vh;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .credential-strip img {
    height: 40px;
  }

  .footer-grid {
    gap: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .hero--short {
    min-height: 35vh;
  }
}

/* ============================================================
   24. SCROLL ANIMATIONS & PARALLAX
   ============================================================ */

/* --- Easing curves --- */
:root {
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Hero parallax --- */
.hero-bg img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* --- Scroll reveal: hidden state --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-quart),
              transform 0.7s var(--ease-out-quart);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stagger children (cards, credential logos) --- */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-quart),
              transform 0.6s var(--ease-out-quart);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays — set via JS custom property */
.reveal-stagger.is-visible > *:nth-child(1)  { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2)  { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3)  { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4)  { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5)  { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6)  { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7)  { transition-delay: 440ms; }
.reveal-stagger.is-visible > *:nth-child(8)  { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(9)  { transition-delay: 520ms; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 600ms; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 640ms; }
.reveal-stagger.is-visible > *:nth-child(13) { transition-delay: 680ms; }
.reveal-stagger.is-visible > *:nth-child(14) { transition-delay: 720ms; }

/* --- Slide from left (editorial headings) --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-out-quart),
              transform 0.7s var(--ease-out-quart);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Slide from right (editorial body/images) --- */
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-out-quart),
              transform 0.7s var(--ease-out-quart);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Scale-fade (credential logos, blockquotes) --- */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s var(--ease-out-quart),
              transform 0.6s var(--ease-out-quart);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Hero content entrance --- */
.hero-content .label-gold,
.hero-content h1,
.hero-content p,
.hero-content .btn {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out-expo) forwards;
}

.hero-content .label-gold { animation-delay: 0.15s; }
.hero-content h1          { animation-delay: 0.3s; }
.hero-content p           { animation-delay: 0.45s; }
.hero-content .btn        { animation-delay: 0.6s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- CTA section reveal --- */
.cta-section .label-gold,
.cta-section h2,
.cta-section p,
.cta-section .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-quart),
              transform 0.6s var(--ease-out-quart);
}

.cta-section.is-visible .label-gold { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.cta-section.is-visible h2          { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.cta-section.is-visible p           { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.cta-section.is-visible .btn        { opacity: 1; transform: translateY(0); transition-delay: 300ms; }

/* --- Gold accent bar draw-in for dossier cards --- */
.card-dossier {
  border-left-color: transparent;
  transition: background var(--transition-base),
              transform var(--transition-base),
              border-left-color 0.5s var(--ease-out-quart) 0.3s;
}

.reveal-stagger.is-visible .card-dossier {
  border-left-color: var(--tertiary);
}

/* --- Moving Light Sweep (ambient glow that drifts across sections) --- */
.light-sweep {
  position: relative;
  overflow: hidden;
}

.light-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse 600px 300px at 50% 50%,
    rgba(233, 193, 118, 0.03) 0%,
    transparent 70%
  );
  animation: lightDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes lightDrift {
  0%   { transform: translate(-20%, -10%); }
  33%  { transform: translate(15%, 5%); }
  66%  { transform: translate(-5%, -15%); }
  100% { transform: translate(20%, 10%); }
}

/* Second variant for variety */
.light-sweep-blue::after {
  background: radial-gradient(
    ellipse 500px 250px at 50% 50%,
    rgba(185, 199, 228, 0.03) 0%,
    transparent 70%
  );
  animation: lightDrift 16s ease-in-out infinite alternate-reverse;
}

/* --- Testimonial card hover --- */
.testimonial {
  transition: all 0.4s var(--ease-out-quart);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: var(--surface-container);
}

/* --- Sidebar CTA hover glow --- */
.sidebar-cta {
  transition: all 0.4s var(--ease-out-quart);
}

.sidebar-cta:hover {
  box-shadow: 0 0 30px rgba(233, 193, 118, 0.08);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-stagger > *,
  .cta-section .label-gold,
  .cta-section h2,
  .cta-section p,
  .cta-section .btn,
  .hero-content .label-gold,
  .hero-content h1,
  .hero-content p,
  .hero-content .btn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-bg img {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .light-sweep::after,
  .light-sweep-blue::after {
    animation: none !important;
    display: none;
  }
  @keyframes kenBurns { 0%, 100% { transform: scale(1); } }
}
