/* ─── Design System — Warm Palette ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --black:    #282214;
  --dark:     #1E1A10;
  --surface:  #FAF0D2;
  --elevated: #F5ECC0;
  --border:   rgba(185, 165, 110, 0.3);
  --cyan:     #C89335;
  --cyan-dim: #A67820;
  --steel:    #EFE0AA;
  --steel-dim:#DDD09A;
  --white:    #FFF4D6;
  --muted:    #A89060;
  --gold:     #C89335;
  --sage:     #8E9E6A;
  --sage-light: #B8C99A;
  --accent:   #F2E48C;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;
  --font-sub:     'Cormorant Garamond', Georgia, serif;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: #3D2A0A;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: clip;
}

/* ─── Noise Texture Overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── Mesh Gradient Background ─── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px) saturate(1.2);
  opacity: 0.6;
}

/* Ensure every direct child of body sits above the canvas */
body > * {
  position: relative;
  z-index: 1;
}

/* Light sections get a solid background so canvas doesn't bleed through */
section,
.page-section,
#about,
#counsel,
.home-about,
.home-counsel-preview,
.home-stats-strip,
.divider,
.dark-section,
#practice,
#cases,
.cta-banner {
  position: relative;
  z-index: 1;
}

/* ─── Cursor Glow ─── */
#cursor-glow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,147,53,0.08) 0%, rgba(200,147,53,0.03) 30%, transparent 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

#cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px 2px rgba(200,147,53,0.6);
  transition: transform 0.1s ease, opacity 0.3s ease;
  opacity: 0;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 80px;
  background: rgba(255,244,214,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(185,165,110,0.3);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background: rgba(255,244,214,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(185,165,110,0.35);
}

/* Inner pages always show solid nav */
nav.solid {
  background: rgba(255,244,214,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(185,165,110,0.35);
}

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

.nav-logo img.emblem {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.nav-logo .wordmark-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: #3D2A0A;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

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

.nav-cta {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid rgba(200,147,53,0.45);
  color: var(--cyan) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em !important;
  border-radius: 2px;
  transition: background 0.25s ease, border-color 0.25s ease !important;
}

.nav-cta:hover {
  background: rgba(200,147,53,0.15) !important;
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
}

/* ─── Hero — Home Full Screen ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
  background: #F6E6B6;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(200,147,53,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(160,120,30,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(242,228,140,0.04) 0%, transparent 60%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,147,53,0.08), rgba(200,147,53,0.18), rgba(200,147,53,0.08), transparent);
  pointer-events: none;
}

.hero-emblem {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: scale(0.85);
  animation: fadeUp 1s var(--ease-out) 0.2s forwards;
  box-shadow: 0 0 0 1px rgba(200,147,53,0.2), 0 0 40px rgba(200,147,53,0.1), 0 20px 60px rgba(0,0,0,0.5);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #2C1208;
  margin-bottom: 0.4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.55s forwards;
}

.hero-title em { font-style: italic; color: var(--sage); }

.hero-subtitle {
  font-family: var(--font-sub);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: #5C3D15;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) 0.7s forwards;
}

.hero-motto {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 3rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.hero-motto::before { content: '\201C'; color: var(--cyan); font-size: 1.6rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.hero-motto::after  { content: '\201D'; color: var(--cyan); font-size: 1.6rem; line-height: 0; vertical-align: -0.4em; margin-left: 4px; }

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) 1s forwards;
}

/* ─── Page Hero — Inner Pages ─── */
.page-hero {
  position: relative;
  background: #F6E6B6;
  padding: 160px 4rem 7rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(200,147,53,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(242,228,140,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative courthouse line-art — Practice Area heroes only.
   Anchored bottom-right of .page-hero; sits behind hero content (z-index 1 < hero-left z-index 2). */
/* Give only the Practice Area heroes (those carrying the courthouse) enough
   vertical room for the large illustration to sit fully visible with its base
   flush to the bottom edge — without affecting About/Contact/etc. heroes.
   (The PNG is pre-cropped to its artwork bounds, so bottom:0/right:0 anchor
   the steps and right edge exactly — no transparent padding.) */
.page-hero:has(.page-hero__courthouse) {
  min-height: clamp(440px, 38vw, 600px);
}

.page-hero__courthouse {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(440px, 44vw, 820px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(20px);
  animation: courthouseIn 1.3s var(--ease-out) 0.35s forwards;
}

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

@media (max-width: 1024px) {
  .page-hero:has(.page-hero__courthouse) { min-height: clamp(360px, 42vw, 440px); }
  .page-hero__courthouse { width: clamp(300px, 44vw, 440px); }
}

@media (max-width: 768px) {
  .page-hero:has(.page-hero__courthouse) { min-height: 0; }
  .page-hero__courthouse {
    width: 60%;
    right: -6%;
    bottom: 0;
    animation: none;
    opacity: 0.22;
    transform: none;
  }
}

@media (max-width: 480px) {
  .page-hero__courthouse { display: none; }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9A845C;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.breadcrumb a { color: #9A845C; text-decoration: none; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--cyan); }

.page-hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #282214;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s var(--ease-out) 0.45s forwards;
}

.page-hero-title em { font-style: italic; color: var(--sage); }

.page-hero-sub {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: #5A4535;
  max-width: 600px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s var(--ease-out) 0.6s forwards;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--cyan);
  color: #FFF1D0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 24px rgba(200,147,53,0.3);
}

.btn-primary:hover { transform: translateY(-2px); background: #A67820; box-shadow: 0 8px 32px rgba(200,147,53,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(239,224,170,0.45);
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}

.btn-outline:hover { border-color: var(--steel); color: var(--white); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  padding: 11px 28px;
  border: 1px solid rgba(200,147,53,0.4);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover { background: rgba(200,147,53,0.1); border-color: var(--cyan); }

/* ─── Section Layout ─── */
section, .page-section {
  padding: 7rem 4rem;
  max-width: 1240px;
  margin: 0 auto;
}

.section-full { max-width: 100%; padding-left: 0; padding-right: 0; }

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #282214;
  margin-bottom: 1.5rem;
}

.section-heading em { font-style: italic; color: var(--sage); }

/* ─── Divider ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 4rem;
  max-width: calc(100% - 8rem);
}

/* ─── Dark Sections (now light) ─── */
.dark-section {
  background: #FFF4D6;
  max-width: 100%;
  padding: 7rem 4rem;
}

.dark-section .inner, .dark-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.dark-section .section-heading { color: #2C1208; }
.dark-section .section-heading em { color: var(--sage); }
.dark-section .section-label { color: var(--sage); }
.dark-section .section-label::after { background: var(--sage); }

/* ─── About Section ─── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text p { color: #3A2C0A; font-size: 0.97rem; line-height: 1.85; margin-bottom: 1.2rem; }
.about-text p strong { color: #282214; font-weight: 400; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.stat-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-card:hover { border-color: rgba(200,147,53,0.4); }
.stat-card:hover::before { opacity: 1; }

.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--cyan); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #3A2C0A; }

/* ─── Practice Areas ─── */
#practice {
  background: #FFF4D6;
  max-width: 100%;
  padding: 7rem 4rem;
}

#practice .inner { max-width: 1240px; margin: 0 auto; }

#practice .section-heading { color: #2C1208; }
#practice .section-heading em { color: var(--sage); }

.practice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5px;
  margin-top: 3.5rem;
}

.practice-card {
  flex: 0 0 calc(25% - 1.125px);
  background: #D6171D;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(200,147,53,0.22);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-spring);
  text-decoration: none;
  display: block;
  color: inherit;
}

.practice-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.practice-card:hover { background: #B81217; border-color: rgba(200,147,53,0.45); transform: translateY(-3px); }
.practice-card:hover::after { transform: scaleX(1); }

.practice-icon { width: 40px; height: 40px; margin-bottom: 1.5rem; opacity: 0.9; stroke: #fff; }

.practice-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--steel); margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.practice-card p { font-size: 0.85rem; color: rgba(255,244,214,0.78); line-height: 1.75; }

.practice-card ul { list-style: none; margin-top: 0.8rem; }

.practice-card ul li {
  font-size: 0.8rem; color: rgba(255,244,214,0.70);
  padding: 0.25rem 0; padding-left: 1rem;
  position: relative;
}

.practice-card ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--cyan); font-size: 0.65rem; opacity: 0.6;
}

.practice-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 1.2rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.practice-link-arrow:hover { gap: 10px; }

/* ─── Counsel Profile ─── */
#counsel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}

.counsel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
}

.counsel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 60px;
  background: var(--cyan);
}

.counsel-monogram {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 1px rgba(200,147,53,0.2);
}

.counsel-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: #3D2A0A; margin-bottom: 0.3rem; }
.counsel-title { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.5rem; }

.counsel-meta { list-style: none; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.counsel-meta li { font-size: 0.78rem; color: #3A2C0A; padding: 0.4rem 0; border-bottom: 1px solid rgba(200,147,53,0.12); display: flex; gap: 0.6rem; }
.counsel-meta li span:first-child { color: #4A3818; min-width: 70px; font-size: 0.7rem; letter-spacing: 0.05em; }

.counsel-bio p { font-size: 0.96rem; color: #3A2C0A; line-height: 1.85; margin-bottom: 1.2rem; }
.counsel-bio p strong { color: #282214; font-weight: 400; }

.qualifications { margin-top: 2rem; }
.qualifications h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: #3D2A0A; margin-bottom: 1rem; letter-spacing: -0.01em; }

.qual-list { list-style: none; }
.qual-list li { font-size: 0.83rem; color: #3A2C0A; padding: 0.55rem 0; padding-left: 1.2rem; border-bottom: 1px solid rgba(200,147,53,0.12); position: relative; line-height: 1.5; }
.qual-list li::before { content: ''; position: absolute; left: 0; top: 1.1rem; width: 5px; height: 1px; background: var(--cyan); }

/* ─── Notable Cases ─── */
#cases {
  background: #FFF4D6;
  max-width: 100%;
  padding: 7rem 4rem;
}

#cases .inner { max-width: 1240px; margin: 0 auto; }

#cases .section-heading { color: #2C1208; }
#cases .section-heading em { color: var(--sage); }

.cases-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1px; }

.case-item {
  background: var(--white);
  border: 1px solid rgba(200,147,53,0.15);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.case-item:hover { background: var(--surface); border-color: rgba(200,147,53,0.3); }

.case-name { font-family: var(--font-sub); font-style: italic; font-size: 0.97rem; color: #282214; line-height: 1.4; }
.case-detail { font-size: 0.8rem; color: #3A2C0A; margin-top: 0.3rem; line-height: 1.5; }

.case-badge {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); background: rgba(200,147,53,0.1);
  border: 1px solid rgba(200,147,53,0.3);
  padding: 4px 12px; border-radius: 2px;
  white-space: nowrap;
}

/* ─── Contact ─── */
#contact { padding: 7rem 0; max-width: 100%; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  margin-top: 3.5rem;
}

.contact-info h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: #282214; margin-bottom: 2rem; letter-spacing: -0.02em; }

.contact-detail { display: flex; gap: 1.2rem; margin-bottom: 1.6rem; align-items: flex-start; }

.contact-icon {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 14px; height: 14px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }

.contact-detail-text { font-size: 0.87rem; color: #3A2C0A; line-height: 1.6; }
.contact-detail-text strong { display: block; color: #282214; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; font-weight: 400; }

.contact-form { background: var(--surface); border: 1px solid var(--border); padding: 2.5rem; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: #282214; margin-bottom: 1.8rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #4A3818; }

.form-group input, .form-group select, .form-group textarea {
  background: var(--elevated); border: 1px solid var(--border);
  color: #3D2A0A; font-family: var(--font-body);
  font-size: 0.87rem; font-weight: 300;
  padding: 12px 14px; border-radius: 2px;
  outline: none; transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--cyan); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9A8860; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface); }

/* ─── Footer ─── */
footer {
  background: #F0DCA0;
  border-top: 1px solid rgba(200,147,53,0.2);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img.emblem { width: 34px; height: 34px; border-radius: 50%; opacity: 0.7; }
.footer-logo .wordmark-text { font-family: var(--font-display); font-size: 0.9rem; font-style: italic; color: #3D2A0A; }

.footer-text { font-size: 0.75rem; color: #756650; text-align: center; }
.footer-text a { color: #756650; text-decoration: none; transition: color 0.2s ease; }
.footer-text a:hover { color: var(--cyan); }

.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #756650; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--cyan); }

/* ─── CTA Banner ─── */
.cta-banner {
  background: #F6E6B6;
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200,147,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; color: #2C1208; letter-spacing: -0.02em; margin-bottom: 1rem; position: relative; }
.cta-banner h2 em { font-style: italic; color: var(--sage); }
.cta-banner p { font-family: var(--font-sub); font-style: italic; color: #756650; font-size: 1rem; margin-bottom: 2.5rem; position: relative; }
.cta-banner .btn-actions { display: flex; gap: 1.25rem; justify-content: center; position: relative; }

/* ─── Process Steps ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(200,147,53,0.25);
  transition: border-color 0.3s ease;
}

.process-step:hover { border-left-color: var(--cyan); }

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(200,147,53,0.25);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.step-title { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: #282214; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.82rem; color: #3A2C0A; line-height: 1.7; }

/* ─── Matter Type Cards ─── */
.matter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  margin-top: 2.5rem;
}

.matter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.matter-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease-out);
}

.matter-card:hover { border-color: rgba(200,147,53,0.4); }
.matter-card:hover::before { transform: scaleY(1); }

.matter-card h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: #282214; margin-bottom: 0.5rem; }
.matter-card p { font-size: 0.82rem; color: #3A2C0A; line-height: 1.7; }

/* ─── Page intro text ─── */
.page-intro {
  max-width: 720px;
  font-size: 1rem;
  color: #6A5830;
  line-height: 1.9;
  margin-top: 2rem;
}

/* ─── Disclaimer ─── */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(200,147,53,0.4);
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: #7A6840;
  line-height: 1.7;
  margin-top: 3rem;
  font-style: italic;
}

/* ─── Two-column content ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.two-col-wide { grid-template-columns: 1.4fr 1fr; }

.content-block p { font-size: 0.96rem; color: #3A2C0A; line-height: 1.85; margin-bottom: 1.2rem; }
.content-block p strong { color: #282214; font-weight: 400; }
.content-block h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: #282214; margin-bottom: 1rem; letter-spacing: -0.01em; }

/* ─── Animations ─── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0) scale(1); } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ─── HR Accent ─── */
.hr-accent {
  border: none;
  height: 1px;
  background: linear-gradient(to right, var(--cyan), transparent);
  width: 80px;
  margin: 1.5rem 0 2.5rem;
}

/* ─── Hamburger Button ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--cyan); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--cyan); }

/* ─── Touch Devices — hide cursor decoration ─── */
@media (pointer: coarse) {
  #cursor-glow, #cursor-dot { display: none !important; }
  .btn-primary:hover { transform: none; box-shadow: 0 4px 24px rgba(200,147,53,0.3); }
  .btn-outline:hover { transform: none; }
  .practice-card:hover { transform: none; }
}

/* ─── Responsive — Tablet ─── */
@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  section, .page-section { padding: 5rem 2rem; }
  .page-hero { padding: 140px 2rem 5rem; }
  .dark-section { padding: 5rem 2rem; }
  .cta-banner { padding: 4rem 2rem; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  #counsel { grid-template-columns: 1fr; gap: 2.5rem; }
  .practice-grid .practice-card { flex: 0 0 calc(50% - 0.75px); }
  .contact-grid { grid-template-columns: 1fr; }
  #contact { padding: 5rem 2rem; }
  footer { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
  .footer-links { justify-content: center; }
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .divider { margin: 0 2rem; max-width: calc(100% - 4rem); }
}

/* ─── Responsive — Mobile ─── */
@media (max-width: 640px) {
  /* Hamburger nav */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: rgba(255, 244, 214, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(185, 165, 110, 0.3);
    padding: 0.5rem 0 1rem;
    gap: 0;
    list-style: none;
    transform: translateY(calc(-100% - 80px));
    transition: transform 0.35s var(--ease-out);
    z-index: 99;
    box-shadow: 0 8px 32px rgba(44, 18, 8, 0.08);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { border-bottom: 1px solid rgba(185, 165, 110, 0.12); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.75rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .nav-links .nav-cta {
    border: none;
    border-radius: 0;
    padding: 0.9rem 1.75rem;
    color: var(--cyan) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.1em !important;
  }

  .nav-logo .wordmark-text { font-size: 0.92rem; }

  /* Section layout */
  section, .page-section { padding: 3.5rem 1.25rem; }
  .dark-section { padding: 3.5rem 1.25rem; }
  .cta-banner { padding: 3rem 1.25rem; }
  #contact { padding: 3.5rem 1.25rem; }
  .page-hero { padding: 110px 1.25rem 3rem; }
  .divider { margin: 0 1.25rem; max-width: calc(100% - 2.5rem); }

  /* Practice cards — full width */
  .practice-grid .practice-card { flex: 0 0 100%; }

  /* Stats grid */
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* Stats strip — 2×2 */
  .home-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .strip-stat { padding: 1.4rem 1rem; }
  .strip-stat:nth-child(2n) { border-right: none; }
  .strip-stat:nth-child(n+3) { border-top: 1px solid var(--border); }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Grids */
  .matter-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }

  /* CTA buttons */
  .hero-actions,
  .cta-banner .btn-actions,
  .btn-actions { flex-direction: column; align-items: center; }

  /* Touch-friendly buttons */
  .btn-primary, .btn-outline {
    padding: 15px 32px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    display: block;
  }

  /* Case items — stack badge below text */
  .case-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .case-badge { align-self: flex-start; width: fit-content; }

  /* Tabs — horizontal scroll (!important overrides width:fit-content from base styles below) */
  .tab-list {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-list::-webkit-scrollbar { display: none; }

  /* Tables — horizontal scroll (!important overrides overflow:hidden from base styles below) */
  .sc-table-wrap { overflow-x: auto !important; overflow-y: visible !important; -webkit-overflow-scrolling: touch; }

  /* Inner section wrappers with inline 4rem horizontal padding */
  .inner-section-wrap { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

  /* Footer */
  footer { padding: 2.5rem 1.25rem; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }

  /* Counsel card padding */
  .counsel-card { padding: 1.5rem; }

  /* Strip stat number size */
  .strip-num { font-size: 1.9rem; }

  /* Section heading size */
  .section-heading { font-size: clamp(1.7rem, 7vw, 2.5rem); }

  /* Page hero title */
  .page-hero-title { font-size: clamp(2rem, 8vw, 3.2rem); }

  /* Hero title */
  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
}

/* ─── shadcn-Inspired Component Library ─── */

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
  line-height: 1.5;
  font-family: var(--font-body);
  flex-shrink: 0;
}
.badge-default  { background: var(--surface); color: #4A3818; border-color: var(--border); }
.badge-accent   { background: rgba(200,147,53,0.12); color: var(--cyan); border-color: rgba(200,147,53,0.32); }
.badge-solid    { background: var(--cyan); color: #FFF1D0; border-color: transparent; }
.badge-outline  { background: transparent; color: var(--cyan); border-color: rgba(200,147,53,0.45); }
.badge-federal  { background: #2C1A10; color: var(--steel); border-color: transparent; }
.badge-appeal   { background: rgba(200,147,53,0.18); color: var(--cyan); border-color: rgba(200,147,53,0.38); }
.badge-high     { background: var(--surface); color: #4A3818; border-color: var(--border); }
.badge-sessions { background: rgba(239,224,170,0.6); color: #6A5830; border-color: var(--border); }
.badge-dark     { background: rgba(200,147,53,0.2); color: var(--steel); border-color: rgba(239,220,180,0.22); }

/* Separator */
.sep { display: block; height: 1px; background: var(--border); border: none; }

/* Tabs */
.tab-list {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
  width: fit-content;
  margin-bottom: 2.5rem;
}
.tab-trigger {
  padding: 8px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  font-weight: 400;
  text-transform: uppercase;
  color: #4A3818;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab-trigger.active {
  background: var(--white);
  color: var(--cyan);
  box-shadow: 0 1px 4px rgba(200,147,53,0.14);
}
.tab-trigger:not(.active):hover { color: #282214; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Accordion */
.accordion-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #282214;
  text-align: left;
  transition: background 0.15s ease;
  line-height: 1.35;
}
.acc-trigger:hover { background: rgba(239,224,170,0.45); }
.acc-chevron {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--cyan); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.acc-inner {
  padding: 1rem 1.5rem 1.4rem;
  font-size: 0.87rem; color: #3A2C0A; line-height: 1.85;
  border-top: 1px solid rgba(200,147,53,0.12);
}
.acc-item.open .acc-body { max-height: 800px; }

/* Callout/Alert */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(200,147,53,0.22);
  background: rgba(200,147,53,0.04);
  font-size: 0.875rem;
  color: #3A2C0A;
  line-height: 1.65;
}
.callout-icon { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--cyan); fill: none; stroke-width: 2; margin-top: 2px; }
.callout-content { flex: 1; }
.callout-title { font-size: 0.73rem; font-weight: 700; letter-spacing: 0.07em; color: #282214; margin-bottom: 0.25rem; text-transform: uppercase; }

/* Timeline */
.timeline-wrap { position: relative; padding-left: 2.5rem; }
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 2rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), rgba(200,147,53,0.12));
}
.tl-item { position: relative; margin-bottom: 2.6rem; }
.tl-dot {
  position: absolute;
  left: -2.5rem; top: 5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cyan);
  transition: background 0.2s ease, transform 0.2s var(--ease-spring);
  z-index: 1;
}
.tl-item:hover .tl-dot { background: var(--cyan); transform: scale(1.25); }
.tl-year { font-size: 0.67rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.28rem; }
.tl-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: #282214; margin-bottom: 0.35rem; }
.tl-desc { font-size: 0.84rem; color: #4A3818; line-height: 1.75; }

/* Table */
.sc-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(200,147,53,0.08);
}
.sc-table { width: 100%; border-collapse: collapse; }
.sc-table thead { background: var(--surface); border-bottom: 1px solid var(--border); }
.sc-table th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A3818;
  font-weight: 400;
}
.sc-table td {
  padding: 1.1rem 1.25rem;
  color: #3A2C0A;
  border-bottom: 1px solid rgba(95,44,36,0.07);
  font-size: 0.875rem;
  line-height: 1.55;
  vertical-align: middle;
}
.sc-table tr:last-child td { border-bottom: none; }
.sc-table tbody tr { transition: background 0.12s ease; }
.sc-table tbody tr:hover td { background: rgba(239,224,170,0.35); }
.sc-table .case-italic { font-family: var(--font-sub); font-style: italic; font-size: 0.92rem; color: #282214; line-height: 1.45; }
.sc-table .case-area { font-size: 0.78rem; color: #6A5830; margin-top: 0.25rem; }
@media (max-width: 900px) { .sc-table { font-size: 0.8rem; } .sc-table th, .sc-table td { padding: 0.75rem 0.85rem; } }

/* sc-Card with structured slots */
.sc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.sc-card:hover { border-color: rgba(200,147,53,0.3); box-shadow: 0 4px 20px rgba(95,44,36,0.08); }
.sc-card-header { padding: 1.4rem 1.75rem 1rem; border-bottom: 1px solid var(--border); }
.sc-card-body   { padding: 1.25rem 1.75rem 1.5rem; }
.sc-card-footer { padding: 1rem 1.75rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface); }

/* Focus ring upgrade for all form inputs */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(200,147,53,0.16);
}

/* Badge row */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.8rem; }

/* Stat card rounded variant */
.stat-card-r {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat-card-r:hover { border-color: rgba(200,147,53,0.4); box-shadow: 0 4px 20px rgba(95,44,36,0.08); }
.stat-card-r::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.stat-card-r:hover::before { opacity: 1; }
