/* ==========================================================================
   Helen Popich Harris, APLC — Main Stylesheet
   Sophisticated, Bespoke Family Law Practice in Lafayette, Louisiana
   ========================================================================== */

:root {
  /* Brand Palette - Deep Burgundy & Champagne Gold */
  --color-burgundy-900: #2d060c;
  --color-burgundy-800: #480c15;
  --color-burgundy-700: #6a1523; /* Primary letterhead burgundy */
  --color-burgundy-600: #821b2d;
  --color-burgundy-100: #fbf1f3;
  --color-burgundy-50:  #fdf8f9;

  --color-gold-700: #8c6a21;
  --color-gold-600: #a98330;
  --color-gold-500: #c5a059; /* Primary stationery gold */
  --color-gold-400: #d8ba78;
  --color-gold-300: #e8d4a4;
  --color-gold-100: #faf5ea;
  --color-gold-50:  #fdfbf7;

  /* Neutrals & Editorial Tones */
  --color-bg-page:    #fdfbf7; /* Warm alabaster */
  --color-bg-surface: #ffffff;
  --color-bg-muted:   #f6f2ea;
  --color-bg-dark:    #1a1d20;

  --color-text-main:  #1e2227; /* Rich charcoal */
  --color-text-body:  #374151;
  --color-text-muted: #6b7280;
  --color-text-light: #fdfbf7;

  --color-border:       #e7dfd3;
  --color-border-light: #f0ebe1;
  --color-border-gold:  rgba(197, 160, 89, 0.4);

  /* Typography */
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 8px 24px rgba(197, 160, 89, 0.25);

  /* Layout Spacing */
  --container-max: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Variant 1: Executive Sapphire Navy & Champagne Gold (Unmistakable Deep Royal Blue) */
:root[data-theme="navy"] {
  --color-burgundy-900: #0a1e38; /* Rich Oceanic Midnight Navy */
  --color-burgundy-800: #10325c; /* Deep Prestige Navy */
  --color-burgundy-700: #184e8e; /* Vibrant Royal Sapphire Blue */
  --color-burgundy-600: #2367b5; /* Brilliant Sapphire Accent */
  --color-burgundy-100: #e5effa; /* Pale Crisp Ice Blue */
  --color-burgundy-50:  #f0f6fc; /* Subtle Crisp Ice Blue Surface */

  --color-gold-700: #8a6b29;
  --color-gold-600: #ad8937;
  --color-gold-500: #cfa44c; /* Bright Champagne Gold */
  --color-gold-400: #e2be6c;
  --color-gold-300: #f0d898;
  --color-gold-100: #fbf6ea;
  --color-gold-50:  #fefdf9;

  --color-bg-page:    #f5f8fc;
  --color-bg-surface: #ffffff;
  --color-bg-muted:   #eaf1f7;
  --color-text-main:  #0a1e38;
  --color-text-body:  #293b4f;
  --color-text-muted: #5e7288;
  --color-border:     #d4e1ed;
  --color-border-light: #e5edf5;
  --color-border-gold: rgba(207, 164, 76, 0.45);
}

/* Variant 2: Heritage Botanical Emerald & Warm Sandstone (Unmistakable Pine Emerald) */
:root[data-theme="emerald"] {
  --color-burgundy-900: #072b1b; /* Rich Cypress Forest Emerald */
  --color-burgundy-800: #0d422b; /* Deep Botanical Pine */
  --color-burgundy-700: #146341; /* Vibrant Heritage Botanical Emerald */
  --color-burgundy-600: #1c8055; /* Brilliant Jade Accent */
  --color-burgundy-100: #e3f4ec; /* Pale Botanical Mint */
  --color-burgundy-50:  #f0faf4; /* Subtle Botanical Sage Surface */

  --color-gold-700: #7d6428;
  --color-gold-600: #a38438;
  --color-gold-500: #caa852; /* Warm Sandstone Gold */
  --color-gold-400: #dec072;
  --color-gold-300: #eedaa1;
  --color-gold-100: #faf6eb;
  --color-gold-50:  #fefcf9;

  --color-bg-page:    #f4f9f6;
  --color-bg-surface: #ffffff;
  --color-bg-muted:   #e7f2eb;
  --color-text-main:  #092618;
  --color-text-body:  #263d30;
  --color-text-muted: #587063;
  --color-border:     #d2e3d8;
  --color-border-light: #e3ede7;
  --color-border-gold: rgba(202, 168, 82, 0.45);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-page);
  color: var(--color-text-body);
  line-height: 1.68;
  font-size: 1.05rem;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-burgundy-700);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--color-gold-500);
}

/* Accessibility Focus Visible Outlines */
:focus-visible {
  outline: 2.5px solid var(--color-gold-500);
  outline-offset: 3px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-burgundy-900);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-block-end: 1.25rem;
}

p:last-child {
  margin-block-end: 0;
}

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

a:hover {
  color: var(--color-burgundy-900);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}

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

.section-burgundy {
  background: linear-gradient(135deg, var(--color-burgundy-800) 0%, var(--color-burgundy-900) 100%);
  color: var(--color-text-light);
}

.section-burgundy h1, 
.section-burgundy h2, 
.section-burgundy h3 {
  color: #ffffff;
}

.section-burgundy .section-subtitle {
  color: var(--color-gold-400);
}

/* Editorial Eyebrow & Subtitle */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-600);
  margin-block-end: 0.85rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-gold-500);
}

.eyebrow-start::after {
  display: none;
}

.section-title {
  margin-block-end: 1.25rem;
}

.section-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  color: var(--color-text-body);
  max-width: 720px;
  margin-block-end: 2rem;
  font-weight: 400;
}

.text-center {
  text-align: center;
}

.text-center .section-lead {
  margin-inline: auto;
}

/* Button & Action Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  min-height: 48px;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-burgundy-700) 0%, var(--color-burgundy-800) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-burgundy-600) 0%, var(--color-burgundy-700) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-500) 0%, var(--color-gold-600) 100%);
  color: #1a0f05;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-400) 0%, var(--color-gold-500) 100%);
  color: #1a0f05;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.42);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-burgundy-700);
  color: var(--color-burgundy-700);
}

.btn-outline:hover {
  background-color: var(--color-burgundy-700);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--color-gold-400);
  color: var(--color-gold-300);
}

.btn-outline-gold:hover {
  background: var(--color-gold-500);
  border-color: var(--color-gold-500);
  color: #1a0f05;
}

/* Elegant Gold Divider */
.gold-divider {
  height: 2px;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--color-gold-500), transparent);
  margin: 1.5rem auto;
}

.gold-divider-left {
  margin-inline: 0 auto;
  background: linear-gradient(90deg, var(--color-gold-500), transparent);
}

/* Badge & Credential Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--color-burgundy-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-burgundy-800);
}

.badge-pill-gold {
  background-color: var(--color-gold-100);
  border-color: rgba(197, 160, 89, 0.4);
  color: var(--color-gold-700);
}

/* ==========================================================================
   Accessibility Scaling & Display Preferences
   ========================================================================== */

/* Font Size Scaling */
html[data-a11y-size="small"] {
  font-size: 14.5px !important;
}

html[data-a11y-size="large"] {
  font-size: 18.5px !important;
}

html[data-a11y-size="xlarge"] {
  font-size: 21px !important;
}

/* High Contrast Mode (WCAG AAA Compliance) */
html[data-a11y-contrast="high"] {
  --color-bg-page: #000000 !important;
  --color-bg-surface: #0a0a0a !important;
  --color-bg-muted: #141414 !important;
  --color-text-main: #ffffff !important;
  --color-text-body: #f8f8f8 !important;
  --color-text-muted: #e0e0e0 !important;
  --color-border: #ffffff !important;
  --color-border-light: #ffffff !important;
  --color-border-gold: #ffd700 !important;
  --color-burgundy-900: #000000 !important;
  --color-burgundy-800: #141414 !important;
  --color-burgundy-700: #ffff00 !important;
  --color-burgundy-600: #ffff33 !important;
  --color-burgundy-100: #222222 !important;
  --color-burgundy-50:  #181818 !important;
  --color-gold-500: #ffd700 !important;
  --color-gold-400: #ffea70 !important;
  --color-gold-300: #fff2a3 !important;
}

html[data-a11y-contrast="high"] body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html[data-a11y-contrast="high"] .site-header {
  background-color: #000000 !important;
  border-bottom: 2px solid #ffffff !important;
}

html[data-a11y-contrast="high"] .top-bar {
  background-color: #000000 !important;
  border-bottom: 2px solid #ffffff !important;
}

html[data-a11y-contrast="high"] .btn-primary {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

html[data-a11y-contrast="high"] .btn-gold {
  background: #ffd700 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  font-weight: 800 !important;
}

html[data-a11y-contrast="high"] .btn-outline {
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
  background: transparent !important;
}

html[data-a11y-contrast="high"] .btn-outline:hover {
  background: #ffff00 !important;
  color: #000000 !important;
}

html[data-a11y-contrast="high"] .card,
html[data-a11y-contrast="high"] .practice-card,
html[data-a11y-contrast="high"] .credential-showcase-card,
html[data-a11y-contrast="high"] .faq-item,
html[data-a11y-contrast="high"] .contact-form-card,
html[data-a11y-contrast="high"] .contact-info-card,
html[data-a11y-contrast="high"] .footer-main {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

html[data-a11y-contrast="high"] .brand-name,
html[data-a11y-contrast="high"] .brand-title-sub,
html[data-a11y-contrast="high"] .section-title,
html[data-a11y-contrast="high"] .hero-title {
  color: #ffffff !important;
}

html[data-a11y-contrast="high"] a {
  color: #ffff00 !important;
}

/* Readable / Dyslexia-Friendly Typography */
html[data-a11y-font="readable"] body,
html[data-a11y-font="readable"] h1,
html[data-a11y-font="readable"] h2,
html[data-a11y-font="readable"] h3,
html[data-a11y-font="readable"] h4,
html[data-a11y-font="readable"] p,
html[data-a11y-font="readable"] a,
html[data-a11y-font="readable"] span,
html[data-a11y-font="readable"] li,
html[data-a11y-font="readable"] button,
html[data-a11y-font="readable"] input,
html[data-a11y-font="readable"] textarea,
html[data-a11y-font="readable"] .brand-name,
html[data-a11y-font="readable"] .brand-title-sub,
html[data-a11y-font="readable"] .footer-brand-title,
html[data-a11y-font="readable"] .footer-brand-sub {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "OpenDyslexic", "Arial", sans-serif !important;
  letter-spacing: 0.035em !important;
  line-height: 1.8 !important;
  word-spacing: 0.08em !important;
}

/* Highlight Interactive Links */
html[data-a11y-links="highlight"] a:not(.btn):not(.brand) {
  text-decoration: underline !important;
  text-decoration-thickness: 2.5px !important;
  text-decoration-color: #e5a700 !important;
  text-underline-offset: 4px !important;
  background-color: rgba(229, 167, 0, 0.16) !important;
  border-radius: 2px !important;
  padding-inline: 2px !important;
}
