/* ============================================
   MICHAEL A. ALAO, P.A. — DESIGN SYSTEM
   Ink Navy · Warm Ivory · Muted Brass
   ============================================ */

/* --- Design Tokens --- */
:root,
[data-theme='light'] {
  /* Surfaces — Warm Ivory */
  --color-bg: #f6f4ef;
  --color-surface: #faf8f4;
  --color-surface-2: #fdfcf9;
  --color-surface-offset: #efede7;
  --color-surface-offset-2: #e8e5de;
  --color-surface-dynamic: #e0ddd6;
  --color-divider: #e2dfd9;
  --color-border: #d4d0c8;

  /* Text — Ink */
  --color-text: #1a1f24;
  --color-text-muted: #5a6068;
  --color-text-faint: #9a9ea5;
  --color-text-inverse: #f6f4ef;

  /* Primary — Deep Ink Navy */
  --color-primary: #1e3a4c;
  --color-primary-hover: #15293a;
  --color-primary-active: #0e1d28;
  --color-primary-highlight: #d0dae2;

  /* Accent — Muted Brass */
  --color-accent: #8a7b3c;
  --color-accent-hover: #736730;
  --color-accent-active: #5c5326;
  --color-accent-highlight: #e8e2d0;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px oklch(0.2 0.02 220 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.2 0.02 220 / 0.08);
  --shadow-lg: 0 16px 48px oklch(0.2 0.02 220 / 0.12);

  /* Content Widths */
  --content-narrow: 640px;
  --content-default: 880px;
  --content-wide: 1180px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #12161a;
  --color-surface: #181d22;
  --color-surface-2: #1c2228;
  --color-surface-offset: #1a1f24;
  --color-surface-offset-2: #222830;
  --color-surface-dynamic: #2a3138;
  --color-divider: #232930;
  --color-border: #3a4250;

  --color-text: #e0ddd6;
  --color-text-muted: #9499a0;
  --color-text-faint: #6b7178;
  --color-text-inverse: #12161a;

  --color-primary: #6ba3b8;
  --color-primary-hover: #5a93a8;
  --color-primary-active: #4d82a0;
  --color-primary-highlight: #1e2d35;

  --color-accent: #c4a858;
  --color-accent-hover: #d4b868;
  --color-accent-active: #b89848;
  --color-accent-highlight: #2a2820;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.4);
}

/* System dark mode fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #12161a;
    --color-surface: #181d22;
    --color-surface-2: #1c2228;
    --color-surface-offset: #1a1f24;
    --color-surface-offset-2: #222830;
    --color-surface-dynamic: #2a3138;
    --color-divider: #232930;
    --color-border: #3a4250;
    --color-text: #e0ddd6;
    --color-text-muted: #9499a0;
    --color-text-faint: #6b7178;
    --color-text-inverse: #12161a;
    --color-primary: #6ba3b8;
    --color-primary-hover: #5a93a8;
    --color-primary-active: #4d82a0;
    --color-primary-highlight: #1e2d35;
    --color-accent: #c4a858;
    --color-accent-hover: #d4b868;
    --color-accent-active: #b89848;
    --color-accent-highlight: #2a2820;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.4);
  }
}

/* --- Base Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16, 4rem);
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base, 1rem);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 400;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: oklch(from var(--color-accent) l c h / 0.25);
  color: var(--color-text);
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

/* --- Layout Primitives --- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(3rem, 8vw, 7rem);
}

/* --- Type Scale --- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* --- Typography Utilities --- */
.text-display { font-family: var(--font-display); }
.text-body { font-family: var(--font-body); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

/* --- Legal Rule Divider --- */
.legal-rule {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border) 15%,
    var(--color-border) 85%,
    transparent
  );
  margin-block: clamp(2rem, 5vw, 4rem);
}

.legal-rule--accent {
  background: linear-gradient(
    to right,
    transparent,
    var(--color-accent) 20%,
    var(--color-accent) 80%,
    transparent
  );
  height: 2px;
  opacity: 0.4;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-logo svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.2;
  color: var(--color-text);
}

.header-logo-text .firm-name {
  display: block;
  font-weight: 500;
}

.header-logo-text .firm-sub {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.site-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  position: relative;
  padding-block: var(--space-1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-interactive);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: oklch(from var(--color-bg) l c h / 0.5);
  color: var(--color-text);
  border: 1px solid var(--color-text-faint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  padding-inline: var(--space-4);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(from var(--color-bg) l c h / 0.96) 0%,
    oklch(from var(--color-bg) l c h / 0.65) 50%,
    oklch(from var(--color-bg) l c h / 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero-eyebrow {
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
  max-width: 14ch;
}

.hero-tagline {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.75;
  max-width: 52ch;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --- Practice Areas --- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.practice-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.practice-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-interactive);
  overflow: hidden;
}

.practice-card:hover {
  border-color: var(--color-text-faint);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.practice-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.practice-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.practice-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.practice-card .practice-topics {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.practice-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  pointer-events: none;
}

.about-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.about-content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.about-content p strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Credentials list */
.credentials {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
}

.credentials dt {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.credentials dd {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.credentials dd:last-child {
  border-bottom: none;
}

/* --- Community Section --- */
.community {
  background: var(--color-surface-offset);
}

.community-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.community-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.community-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.community-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Waterline Banner --- */
.waterline-banner {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.waterline-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.waterline-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(from var(--color-bg) l c h / 0.95),
    oklch(from var(--color-bg) l c h / 0.5)
  );
}

.waterline-quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.waterline-quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.4;
  max-width: 40ch;
  color: var(--color-text);
  font-style: italic;
  text-shadow: 0 1px 3px oklch(from var(--color-bg) l c h / 0.8);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.contact-info > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contact-details {
  display: grid;
  gap: var(--space-5);
}

.contact-detail {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-primary);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.contact-detail-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.contact-detail-value a:hover {
  color: var(--color-primary);
}

/* Contact form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}

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

.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.5;
  margin-top: var(--space-4);
}

.form-disclaimer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-brand svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.footer-brand-text .sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 60ch;
  opacity: 0.7;
}

.footer-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
  opacity: 0.7;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-4);
}

.section-header .eyebrow {
  margin-bottom: var(--space-3);
}

.section-header h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 55ch;
}

/* Mobile nav actions — hidden on desktop, shown only in mobile drawer */
.mobile-nav-actions { display: none; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .desktop-cta { display: none; }
  .mobile-nav-actions { display: none; }

  .site-nav--open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-20) var(--space-6) var(--space-8);
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow-y: auto;
  }

  .site-nav--open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    width: 100%;
  }

  .site-nav--open .mobile-nav-actions {
    display: flex;
    margin-top: var(--space-6);
    width: 100%;
  }

  .site-nav--open .mobile-nav-actions .btn-primary {
    width: 100%;
  }

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

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

  .about-image {
    max-width: 360px;
    aspect-ratio: 4 / 3;
  }

  .community-list {
    grid-template-columns: 1fr;
  }

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

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

  .hero h1 {
    font-size: clamp(2.5rem, 2rem + 6vw, 4rem);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.nav-overlay--visible {
  display: block;
  opacity: 1;
}

/* --- Scroll Reveal (disabled — all content visible by default) --- */
