/* ============================================================================
   SHUKLA VEDIC - DESIGN SYSTEM & STYLE GUIDE
   ============================================================================

   Project: Shukla Vedic Website
   Description: Vedic astrology consultation practice for Ritesh Shukla
   Aesthetic: "Quiet and confident" - cream/gold/navy palette

   ============================================================================
   TABLE OF CONTENTS
   ============================================================================

   1. DESIGN SYSTEM VARIABLES (this section)
      - Brand Colors
      - Typography
      - Spacing & Layout
      - Dark Mode

   2. BASE STYLES & RESET (~line 150)
   3. DARK MODE OVERRIDES (~line 180)
   4. LAYOUT & CONTAINERS (~line 850)
   5. NAVIGATION & HEADER (~line 1050)
   6. BUTTONS (~line 1320)
   7. HERO SECTIONS (~line 1400)
   8. CARDS & COMPONENTS (~line 1700)
   9. FOOTER (~line 1950)
   10. PAGE-SPECIFIC STYLES (~line 2400)
   11. RESPONSIVE / MOBILE (~line 3200)
   12. ACCESSIBILITY ENHANCEMENTS (~line 4800)

   ============================================================================
   1. DESIGN SYSTEM VARIABLES
   ============================================================================ */

/*
   BRAND COLOR PALETTE - LIGHT MODE
   --------------------------------
   The palette is warm and sophisticated, avoiding harsh whites.
   "Quiet and confident" aesthetic.

   Primary Colors:
   - Navy (#0F1A29): Headlines, primary text, dark backgrounds
   - Gold (#D6A858): Accents, CTAs, highlights, brand identity
   - Cream (#EBE3D5): Page backgrounds, light sections

   Supporting Colors:
   - Sand (#E6D4BD): Alternate section backgrounds
   - Slate (#6B645A): Secondary/body text
   - Charcoal (#1C242B): Deep dark for gradients
*/

/*
   TYPOGRAPHY
   ----------
   Font Stack:
   - Logo: Poppins (light weight, lowercase)
   - Headings: Spectral (serif, elegant)
   - Body: Inter (clean sans-serif)

   Scale (rem-based for accessibility):
   - xs: 0.875rem (14px)
   - sm: 1rem (16px)
   - base: 1.125rem (18px) - body text
   - lg: 1.35rem (~22px)
   - xl: 1.75rem (28px)
   - 2xl: 2.25rem (36px)
   - 3xl: 3rem (48px)
   - 4xl: 4rem (64px) - hero headlines

   Line Height: 1.7 for body text (accessibility)

   IMPORTANT: No em dashes in sentences.
   Use &nbsp; to prevent orphans/widows in key phrases.
*/

/*
   SPACING & LAYOUT
   ----------------
   Max Content Width: 1140px
   Container Padding: 1.5rem (1rem on mobile)
   Section Spacing: 6rem (4rem on mobile)

   Border Radius Scale:
   - sm: 8px (cards, inputs)
   - md: 16px (larger cards, images)
   - lg: 24px (hero elements, CTAs)
   - pill: 999px (buttons, tags)
*/

/*
   BREAKPOINTS
   -----------
   - 480px: Small mobile
   - 768px: Tablet
   - 900px: Bio layout grid trigger
   - 901px: Desktop navigation
   - 1023px: Mobile/desktop threshold
   - 1024px: Large tablet
   - 1150px: Theme toggle position
   - 1200px: Large desktop
*/

/*
   KEY CSS CLASSES
   ---------------
   Layout:
   - .sv-container: Max-width centered container (1140px)
   - .sv-container-narrow: Narrower container (800px)
   - .sv-wrapper: Main page wrapper

   Backgrounds:
   - .bg-cream: Warm cream gradient background
   - .bg-sand: Sandy/tan background
   - .bg-navy: Dark navy gradient (for CTAs, dark sections)

   Grid:
   - .grid-2: Two-column grid
   - .grid-3: Three-column grid
   - .bio-layout: Image + text layout (0.8fr / 1.2fr)

   Components:
   - .card: Standard content card
   - .cta-card: Call-to-action card (navy background)
   - .quote-block: Styled quotation
   - .highlight-box: Highlighted content box

   Buttons:
   - .sv-btn: Base button styles
   - .sv-btn-primary: Gold gradient button (main CTA)
   - .sv-btn-secondary: Light background button
   - .sv-btn-outline: Transparent with border

   Typography:
   - .eyebrow: Uppercase label above headings
   - .lead: Larger intro paragraph text
   - .text-center: Centered text
*/

/*
   FOOTER DETAILS
   --------------
   Tagline: "Pattern recognition. Timing awareness. Compassionate guidance."
   (Note: &nbsp; before "guidance" to prevent orphan)

   Credentials (3 lines, centered):
   - 20+ years of practice
   - Working journalist
   - Clients across multiple time zones

   Copyright: © 2025 Shukla Vedic
*/

/* Google Fonts are linked in HTML head:
   - Spectral (serif): 400, 500, 600, 700 + italic
   - Inter (sans): 400, 500, 600, 700
   - Poppins: 300 (logo only)
*/

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
  /* Brand Palette - Light Mode */
  --sv-navy: #0F1A29;
  --sv-gold: #D6A858;
  --sv-gold-dark: #8B6B2E;      /* Darker bronze-gold for links on light backgrounds (better contrast) */
  --sv-gold-light: #E5C175;
  --sv-cream: #EBE3D5;
  --sv-cream-deep: #E0D4C3;
  --sv-sand: #E6D4BD;
  --sv-slate: #6B645A;
  --sv-charcoal: #1C242B;
  --sv-gold-subtle: rgba(214, 168, 88, 0.08);  /* For subtle gold background highlights */

  /* UI Colors */
  --sv-border: rgba(15, 26, 41, 0.08);
  --sv-surface-white: rgba(250, 246, 239, 0.7);  /* Warm cream tone instead of harsh white */
  --sv-surface-dark: #0F1A29;  /* Navy for dark surfaces in light mode */

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1140px;

  /* Typography */
  --font-logo: "Poppins", sans-serif;
  --font-serif: "Spectral", Georgia, serif;
  --font-heading: "Spectral", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "Courier New", monospace;

  /* Typography Scale */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.35rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-4xl: 4rem;
}

/* ============================================================================
   DARK MODE VARIABLES
   ============================================================================
   WCAG AA Compliant - contrast ratios noted for each color.
   Dark mode inverts the palette to warm browns instead of cold blacks.
*/

[data-theme="dark"] {
  --sv-navy: #E8DDD0;           /* Light warm cream for headings - 10.5:1 */
  --sv-gold: #DDB770;           /* Softer warm gold for accents - 7.1:1 */
  --sv-gold-light: #E5C175;     /* Lighter warm gold - 7.8:1 */
  --sv-cream: #120D08;          /* Deep warm brown - page background */
  --sv-cream-deep: #221610;     /* Slightly lighter brown */
  --sv-sand: #2D2318;           /* Warm dark sand - section backgrounds */
  --sv-slate: #C8BDB1;          /* Muted warm - secondary text */
  --sv-charcoal: #E8DDD0;       /* Light for text on dark */
  --sv-border: rgba(232, 221, 208, 0.15);
  --sv-surface-white: #241A12;  /* Dark cards/surfaces */
  --sv-surface-dark: #2D2318;   /* Warm brown for dark surfaces in dark mode */
  --sv-gold-bright: #F0D599;    /* Bright gold for buttons - 8.2:1 */
}

/* ============================================================================
   2. BASE STYLES & RESET
   ============================================================================ */

/* Reset for full-width sections */
html {
  margin: 0;
  padding: 0;
  /* Note: overflow-x on html/body can break position:sticky */
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* overflow-x: hidden removed - breaks position: sticky on .main-nav */
}

/* Disable all transitions during window resize */
body.is-resizing * {
  transition: none !important;
}

/* ===== DARK MODE COMPREHENSIVE OVERRIDES ===== */

/* Base Elements */
[data-theme="dark"] body {
  background-color: #1C1410;
  color: #D4C9BD;  /* 7.2:1 contrast ratio with background */
}

[data-theme="dark"] .sv-wrapper {
  background-color: #1C1410;
  color: #D4C9BD;
}

/* Header & Navigation */
[data-theme="dark"] .site-header {
  background: #241A12;
  border-bottom-color: rgba(232, 221, 208, 0.15);
}

[data-theme="dark"] .logo-main,
[data-theme="dark"] .main-nav a {
  color: #E8DDD0 !important;
}

/* Keep button text dark in dark mode nav */
[data-theme="dark"] .main-nav a.sv-btn-primary {
  color: #0A1A2F !important;  /* Dark navy for better contrast on gold button */
  font-weight: 600;
}

[data-theme="dark"] .main-nav a:hover {
  color: var(--sv-gold);
}

[data-theme="dark"] .main-nav a.sv-btn-primary:hover {
  color: #0A1A2F !important;  /* Maintain dark text on hover */
  font-weight: 600;
}

[data-theme="dark"] .main-nav a.active {
  color: #E8DDD0;
}

/* Background Sections */
[data-theme="dark"] .bg-white {
  background-color: #241A12;
}

[data-theme="dark"] .bg-cream {
  background: linear-gradient(180deg, #1C1410 0%, #261C14 100%);
}

[data-theme="dark"] .bg-sand {
  background: linear-gradient(180deg, #2D2318 0%, #33271C 100%);
}

/* Typography - ensure all headings and text are readable */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .sv-wrapper h1,
[data-theme="dark"] .sv-wrapper h2,
[data-theme="dark"] .sv-wrapper h3,
[data-theme="dark"] .sv-wrapper h4 {
  color: #E8DDD0;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] .sv-wrapper p,
[data-theme="dark"] .sv-wrapper li {
  color: #D4C9BD;
}

[data-theme="dark"] strong,
[data-theme="dark"] .sv-wrapper strong {
  color: #E8DDD0;
}

[data-theme="dark"] em {
  color: #C8BDB1;
}

[data-theme="dark"] a {
  color: var(--sv-gold);
}

[data-theme="dark"] a:hover {
  color: var(--sv-gold-light);
}

/* Cards & Surfaces */
[data-theme="dark"] .card,
[data-theme="dark"] .diff-card,
[data-theme="dark"] .question-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .package-card,
[data-theme="dark"] .reading-card,
[data-theme="dark"] .insight-card,
[data-theme="dark"] .orientation-card {
  background: #241A12;
  border-color: rgba(232, 221, 208, 0.15);
  color: #D4C9BD;
}

[data-theme="dark"] .card h3,
[data-theme="dark"] .diff-card h3,
[data-theme="dark"] .question-card h3,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .insight-card h3,
[data-theme="dark"] .orientation-card h4 {
  color: #E8DDD0;
}

/* Fix for Four Life Orientations boxes on About page with inline styles */
[data-theme="dark"] .grid-2 > div[style*="background: rgba(250, 246, 239"] {
  background: #241A12 !important;
  border-color: rgba(232, 221, 208, 0.15) !important;
}

/* Fix for all standalone boxes with cream background (like "What Every Reading Includes" box) */
[data-theme="dark"] div[style*="background: rgba(250, 246, 239"] {
  background: #241A12 !important;
  border-color: rgba(232, 221, 208, 0.15) !important;
}

/* Fix for tables with cream background */
[data-theme="dark"] table[style*="background: rgba(250, 246, 239"] {
  background: #1F1710 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] table[style*="background: rgba(250, 246, 239"] thead tr,
[data-theme="dark"] table[style*="background: rgba(250, 246, 239"] thead th {
  background: #2D2318 !important;
  color: #E8DDD0 !important;
}

[data-theme="dark"] table[style*="background: rgba(250, 246, 239"] tbody td {
  color: #E8DDD0 !important;
}

[data-theme="dark"] table[style*="background: rgba(250, 246, 239"] tbody td strong {
  color: #E8DDD0 !important;
}

[data-theme="dark"] table[style*="background: rgba(250, 246, 239"] tbody td p {
  color: #C8BDB1 !important;
}

[data-theme="dark"] table[style*="background: rgba(250, 246, 239"] tbody td a {
  color: #DDB770 !important;
}

/* Hero Section */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #120D08 0%, #1A1108 100%) !important;
}

[data-theme="dark"] .hero h1 {
  color: #E8DDD0 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Fix inline color: var(--sv-cream) spans in hero h1 in dark mode */
[data-theme="dark"] .hero h1 span[style*="color: var(--sv-cream)"] {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .hero p,
[data-theme="dark"] .hero .lead,
[data-theme="dark"] .hero-body {
  color: #D4C9BD;
}

[data-theme="dark"] .hero strong {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .hero-pill {
  background: linear-gradient(135deg, rgba(240,213,153,0.2) 0%, rgba(255,255,255,0.08) 100%);
  border-color: rgba(240,213,153,0.4);
  color: #E8DDD0;
}

/* Category Navigation Links (FAQ page) */
[data-theme="dark"] .category-nav a,
[data-theme="dark"] .category-links a {
  background: #241A12;
  border-color: rgba(232, 221, 208, 0.15);
  color: #D4C9BD;
}

[data-theme="dark"] .category-nav a:hover,
[data-theme="dark"] .category-links a:hover {
  background: #2D2318;
  color: #E8DDD0;
  border-color: rgba(232, 221, 208, 0.3);
}

/* Navy Sections (become warm dark in dark mode) */
[data-theme="dark"] .bg-navy,
[data-theme="dark"] .section-navy {
  background: linear-gradient(135deg, #2D2318 0%, #33271C 100%) !important;
}

[data-theme="dark"] .bg-navy h2,
[data-theme="dark"] .bg-navy h3,
[data-theme="dark"] .bg-navy h4,
[data-theme="dark"] .section-navy h2,
[data-theme="dark"] .section-navy h3,
[data-theme="dark"] .section-navy h4 {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .bg-navy p,
[data-theme="dark"] .bg-navy li,
[data-theme="dark"] .section-navy p,
[data-theme="dark"] .section-navy li {
  color: #E8DDD0 !important;
}

/* Override inline styles with var(--sv-cream) in bg-navy sections */
[data-theme="dark"] .bg-navy p[style*="color: var(--sv-cream)"],
[data-theme="dark"] .bg-navy h4[style*="color: var(--sv-cream)"] {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .bg-navy strong,
[data-theme="dark"] .section-navy strong {
  color: var(--sv-gold) !important;
}

[data-theme="dark"] .bg-navy em,
[data-theme="dark"] .section-navy em {
  color: #C8BDB1 !important;
}

[data-theme="dark"] .bg-navy .eyebrow,
[data-theme="dark"] .section-navy .eyebrow {
  color: var(--sv-gold);
}

[data-theme="dark"] .bg-navy .lead,
[data-theme="dark"] .section-navy .lead {
  color: #D4C9BD !important;
}

/* Eyebrow Labels */
[data-theme="dark"] .eyebrow {
  color: var(--sv-gold);
}

/* Buttons - Toned down for dark mode (not too bright) */
[data-theme="dark"] .sv-btn-primary {
  background: linear-gradient(135deg, #D6A858 0%, #E5C175 100%);
  color: #0A1A2F;  /* Dark navy for maximum contrast - 8.5:1 ratio */
  border-color: #D6A858;
  box-shadow: 0 4px 12px rgba(214, 168, 88, 0.35);
  font-weight: 600;  /* Slightly bolder for better readability */
}

[data-theme="dark"] .sv-btn-primary:hover {
  background: linear-gradient(135deg, #E5C175 0%, #F0D599 100%);
  color: #0A1A2F;  /* Maintain dark text for contrast */
  box-shadow: 0 6px 16px rgba(214, 168, 88, 0.45);
}

/* Primary button in bg-navy sections needs extra visibility in dark mode */
[data-theme="dark"] .bg-navy .sv-btn-primary {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 12px rgba(214, 168, 88, 0.4), 0 0 8px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .bg-navy .sv-btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 6px 16px rgba(214, 168, 88, 0.5), 0 0 12px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .sv-btn-secondary {
  background-color: #2D2318;
  color: #E8DDD0;
  border-color: rgba(232, 221, 208, 0.3);
}

[data-theme="dark"] .sv-btn-secondary:hover {
  background-color: #33271C;
  color: #E8DDD0;
  border-color: rgba(232, 221, 208, 0.5);
}

[data-theme="dark"] .sv-btn-outline {
  background: transparent;
  border-color: #E8DDD0;
  color: #E8DDD0;
}

[data-theme="dark"] .sv-btn-outline:hover {
  background: #E8DDD0;
  color: #1C1410;
}

/* Quote Blocks */
[data-theme="dark"] .quote-block {
  color: #D4C9BD;
}

/* FAQ & Accordion Items */
[data-theme="dark"] details.faq-item,
[data-theme="dark"] .faq-category details,
[data-theme="dark"] details.term-item {
  background: #241A12;
  border-color: rgba(232, 221, 208, 0.15);
}

[data-theme="dark"] details.faq-item summary,
[data-theme="dark"] .faq-category details summary,
[data-theme="dark"] details.term-item summary {
  color: #E8DDD0;
}

[data-theme="dark"] details.faq-item summary:hover,
[data-theme="dark"] .faq-category details summary:hover,
[data-theme="dark"] details.term-item summary:hover {
  color: var(--sv-gold);
}

[data-theme="dark"] details.faq-item summary::after,
[data-theme="dark"] .faq-category details summary::after,
[data-theme="dark"] details.term-item summary::after {
  color: var(--sv-gold);
}

[data-theme="dark"] details.faq-item[open] div,
[data-theme="dark"] .faq-category details[open] div,
[data-theme="dark"] details.term-item[open] div {
  color: #D4C9BD;
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: #120D08;
  color: #B8ADA1;
}

[data-theme="dark"] .footer-col h4 {
  color: #E8DDD0;
}

[data-theme="dark"] .footer-col a {
  color: #B8ADA1;
}

[data-theme="dark"] .footer-col a:hover {
  color: var(--sv-gold);
}

[data-theme="dark"] .footer-col p,
[data-theme="dark"] .footer-meta,
[data-theme="dark"] .site-footer p {
  color: #B8ADA1 !important;
}

[data-theme="dark"] .footer-meta a {
  color: #B8ADA1 !important;
}

[data-theme="dark"] .footer-meta a:hover {
  color: var(--sv-gold) !important;
}

[data-theme="dark"] .footer-grid .logo-main {
  color: #E8DDD0 !important;
}

/* Special Components */
[data-theme="dark"] .cta-card {
  background: linear-gradient(135deg, #2D2318 0%, #33271C 100%);
}

[data-theme="dark"] .cta-card h2 {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .cta-card p {
  color: #D4C9BD !important;
}

[data-theme="dark"] .cta-card strong {
  color: #E8DDD0 !important;
}



/* Highlight & Info Boxes */
[data-theme="dark"] .highlight-box,
[data-theme="dark"] .callout,
[data-theme="dark"] .callout-box {
  background: rgba(221, 183, 112, 0.08);
}

[data-theme="dark"] .sidebar-box {
  background: rgba(221, 183, 112, 0.08);
  border-color: rgba(221, 183, 112, 0.2);
}

[data-theme="dark"] .sidebar-box h4 {
  color: #E8DDD0;
}

[data-theme="dark"] .sidebar-box p {
  color: #D4C9BD;
}

/* Service Pricing */
[data-theme="dark"] .service-label {
  background: #1F1710;
  color: #E8DDD0;
}

[data-theme="dark"] .service-price,
[data-theme="dark"] .reading-price,
[data-theme="dark"] .package-price,
[data-theme="dark"] .pricing-amount {
  color: var(--sv-gold);
}

/* Numbered circle badges - fix bright text on gold in dark mode */
[data-theme="dark"] div[style*="background: var(--sv-gold)"][style*="color: var(--sv-navy)"] {
  color: #1C1410 !important;
}

/* Timeline circles with hardcoded navy background - match dark mode bg-navy background */
[data-theme="dark"] .bg-navy div[style*="background: #0A1A2F"] {
  background: #2D2318 !important;
}

/* Also handle the box-shadow ring around filled circles */
[data-theme="dark"] .bg-navy div[style*="box-shadow: 0 0 0 4px #0A1A2F"] {
  box-shadow: 0 0 0 4px #2D2318 !important;
}

/* Parent-child dynamic cards in bg-navy section - fix dark text on dark bg in dark mode */
[data-theme="dark"] .bg-navy div[style*="background: rgba(255, 248, 240, 0.1)"] p[style*="color: var(--sv-cream)"] {
  color: #E8DDD0 !important;
}

/* Clarity boxes */
[data-theme="dark"] .clarity-box {
  background: rgba(221, 183, 112, 0.08);
  border-color: rgba(221, 183, 112, 0.2);
}

[data-theme="dark"] .clarity-box h3 {
  color: #E8DDD0;
}

[data-theme="dark"] .clarity-box li {
  color: #D4C9BD;
}

[data-theme="dark"] .clarity-box strong {
  color: #E8DDD0;
}

/* Popular badge - Keep bright like buttons for visibility */
[data-theme="dark"] .popular-badge {
  background: var(--sv-gold-bright) !important;
  color: #1C1410 !important;
}

/* Contact Elements */
[data-theme="dark"] .contact-box,
[data-theme="dark"] .contact-info-box,
[data-theme="dark"] .checklist-box {
  background: #241A12;
  border-color: rgba(232, 221, 208, 0.15);
}

/* Breadcrumbs */
[data-theme="dark"] .breadcrumbs {
  color: #B8ADA1;
}

[data-theme="dark"] .breadcrumbs a {
  color: #B8ADA1;
}

[data-theme="dark"] .breadcrumbs a:hover {
  color: var(--sv-gold);
}

[data-theme="dark"] .breadcrumbs span {
  color: #B8ADA1;
}

/* Hero breadcrumbs - always on dark background, need light text in both modes */
[data-theme="dark"] .breadcrumbs.hero-breadcrumbs,
[data-theme="dark"] .breadcrumbs.hero-breadcrumbs a,
[data-theme="dark"] .breadcrumbs.hero-breadcrumbs span,
[data-theme="dark"] .hero .breadcrumbs.hero-breadcrumbs,
[data-theme="dark"] .hero .breadcrumbs.hero-breadcrumbs a,
[data-theme="dark"] .hero .breadcrumbs.hero-breadcrumbs span,
[data-theme="dark"] .hero-section .breadcrumbs.hero-breadcrumbs,
[data-theme="dark"] .hero-section .breadcrumbs.hero-breadcrumbs a,
[data-theme="dark"] .hero-section .breadcrumbs.hero-breadcrumbs span {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .breadcrumbs.hero-breadcrumbs a,
[data-theme="dark"] .hero .breadcrumbs.hero-breadcrumbs a,
[data-theme="dark"] .hero-section .breadcrumbs.hero-breadcrumbs a {
  opacity: 0.85;
}

[data-theme="dark"] .breadcrumbs.hero-breadcrumbs a:hover,
[data-theme="dark"] .hero .breadcrumbs.hero-breadcrumbs a:hover,
[data-theme="dark"] .hero-section .breadcrumbs.hero-breadcrumbs a:hover {
  color: var(--sv-gold) !important;
  opacity: 1;
}

[data-theme="dark"] .breadcrumbs.hero-breadcrumbs span,
[data-theme="dark"] .hero .breadcrumbs.hero-breadcrumbs span,
[data-theme="dark"] .hero-section .breadcrumbs.hero-breadcrumbs span {
  opacity: 0.6;
}

[data-theme="dark"] .breadcrumbs.hero-breadcrumbs > span:last-child,
[data-theme="dark"] .hero .breadcrumbs.hero-breadcrumbs > span:last-child,
[data-theme="dark"] .hero-section .breadcrumbs.hero-breadcrumbs > span:last-child {
  opacity: 1;
}

/* Hero Section Variants */
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #120D08 0%, #1A1108 100%) !important;
}

[data-theme="dark"] .hero-section h1 {
  color: #E8DDD0;
}

[data-theme="dark"] .hero-section p {
  color: #D4C9BD !important;
}

/* Hero and CTA outline buttons need light text in dark mode */
[data-theme="dark"] .hero .sv-btn-outline,
[data-theme="dark"] .cta-card .sv-btn-outline,
[data-theme="dark"] .cta-card .sv-btn-secondary {
  color: #E8DDD0 !important;
  border-color: rgba(232, 221, 208, 0.4) !important;
  background: transparent !important;
}

[data-theme="dark"] .hero .sv-btn-outline:hover,
[data-theme="dark"] .cta-card .sv-btn-outline:hover,
[data-theme="dark"] .cta-card .sv-btn-secondary:hover {
  background: rgba(232, 221, 208, 0.15) !important;
  color: #E8DDD0 !important;
  border-color: rgba(232, 221, 208, 0.6) !important;
}

/* Mobile Navigation */
[data-theme="dark"] .main-nav {
  background: #241A12;
}

[data-theme="dark"] .main-nav li {
  border-bottom-color: rgba(232, 221, 208, 0.15);
}

[data-theme="dark"] .main-nav a:hover {
  background-color: transparent;
  color: var(--sv-gold);
}

[data-theme="dark"] .main-nav a.active {
  background-color: transparent;
  color: #E8DDD0;
}

[data-theme="dark"] .hamburger-line {
  background-color: #E8DDD0;
}

/* Standalone Quotes */
[data-theme="dark"] p > em:only-child,
[data-theme="dark"] div > em:only-child,
[data-theme="dark"] .quote-block em,
[data-theme="dark"] blockquote em {
  color: #D4C9BD !important;
}

/* Logic blocks in dark mode */
[data-theme="dark"] .logic-block {
  background: #2D2318;
  color: var(--sv-gold);
  border: 1px solid rgba(221, 183, 112, 0.3);
}

/* Images in dark mode - reduce brightness */
[data-theme="dark"] img {
  opacity: 0.80;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] img:hover {
  opacity: 0.95;
}

/* Image Placeholders */
[data-theme="dark"] .photo-placeholder,
[data-theme="dark"] .visual-placeholder,
[data-theme="dark"] .hero-image-ph {
  background: linear-gradient(135deg, #2D2318 0%, #33271C 100%);
  border-color: rgba(232, 221, 208, 0.3);
  color: #B8ADA1;
}

/* bio-image-ph now contains real images, so no background needed */
[data-theme="dark"] .bio-image-ph {
  background: transparent;
}

/* Override inline styles in dark mode */
[data-theme="dark"] div[style*="background: #f9f9f9"],
[data-theme="dark"] div[style*="background: white"],
[data-theme="dark"] div[style*="background: rgba(255,255,255"],
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] {
  background: #241A12 !important;
}

/* Let --sv-sand variable work naturally - don't override it */
/* The variable itself changes in dark mode from #F0EBE3 to #2D2318 */

/* Lower specificity - will be overridden by more specific rules below */
[data-theme="dark"] div[style*="background: #f9f9f9"] p,
[data-theme="dark"] div[style*="background: white"] p,
[data-theme="dark"] div[style*="background: rgba(255,255,255"] p,
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] p,
[data-theme="dark"] div[style*="background: var(--sv-sand)"] h3,
[data-theme="dark"] div[style*="background: #f9f9f9"] h3,
[data-theme="dark"] div[style*="background: white"] h3,
[data-theme="dark"] div[style*="background: rgba(255,255,255"] h3,
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] h3,
[data-theme="dark"] div[style*="background: rgba(255,255,255"] h4,
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] h4 {
  color: #D4C9BD !important;
}

[data-theme="dark"] div[style*="background: var(--sv-sand)"] em,
[data-theme="dark"] div[style*="background: white"] em,
[data-theme="dark"] div[style*="background: rgba(255,255,255"] em,
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] em {
  color: #D4C9BD !important;
}

[data-theme="dark"] div[style*="background: white"] strong,
[data-theme="dark"] div[style*="background: rgba(255,255,255"] strong,
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] strong {
  color: #E8DDD0 !important;
}

[data-theme="dark"] div[style*="background: white"] li,
[data-theme="dark"] div[style*="background: rgba(255,255,255"] li,
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] li {
  color: #D4C9BD !important;
}

/* Add subtle border to white surface boxes in dark mode for better visibility */
[data-theme="dark"] div[style*="background: var(--sv-surface-white)"] {
  border: 1px solid rgba(232, 221, 208, 0.15) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Reset & Base */
.sv-wrapper {
  box-sizing: border-box;
  font-family: var(--font-sans);
  background-color: var(--sv-cream);
  color: #3a4a57;
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: hidden removed - breaks position: sticky on .main-nav */
  /* horizontal overflow is already handled by html, body */
  width: 100%;
}

.sv-wrapper * { box-sizing: border-box; }

.sv-wrapper h1 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2rem 0;
  color: var(--sv-navy);
}

.sv-wrapper h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem 0;  /* Reduced bottom margin for better visual grouping */
  color: var(--sv-navy);
}

.sv-wrapper h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 2rem 0 0.75rem 0;  /* Reduced bottom margin for better visual grouping */
  color: var(--sv-navy);
}

.sv-wrapper h4 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;  /* Increased from 500 for better hierarchy */
  line-height: 1.4;
  margin: 1.5rem 0 0.5rem 0;  /* Reduced bottom margin for tighter visual grouping */
  color: var(--sv-navy);
  letter-spacing: normal;  /* Removed excessive letter-spacing */
  text-transform: none;  /* Removed uppercase transformation for softer approach */
}

.sv-wrapper p {
  margin: 0 0 2rem 0;
  max-width: 65ch;
}

.sv-wrapper a:not(.sv-btn):not(.sv-btn-primary):not(.sv-btn-secondary):not(.sv-btn-outline) {
  color: var(--sv-navy);
  text-decoration: none;
  transition: all 0.2s ease;
}
.sv-wrapper a:not(.sv-btn):not(.sv-btn-primary):not(.sv-btn-secondary):not(.sv-btn-outline):hover {
  text-decoration: underline;
}

/* Improve contrast for gold links and text on light backgrounds */
.bg-cream a[style*="color: var(--sv-gold)"],
.bg-sand a[style*="color: var(--sv-gold)"],
p a[style*="color: var(--sv-gold)"],
div[style*="background: var(--sv-cream)"] a[style*="color: var(--sv-gold)"],
div[style*="background: var(--sv-sand)"] a[style*="color: var(--sv-gold)"],
section[style*="background: var(--sv-surface-white)"] a[style*="color: var(--sv-gold)"] {
  color: var(--sv-gold-dark) !important;
  font-weight: 600;
}
.bg-cream a[style*="color: var(--sv-gold)"]:hover,
.bg-sand a[style*="color: var(--sv-gold)"]:hover,
p a[style*="color: var(--sv-gold)"]:hover,
div[style*="background: var(--sv-cream)"] a[style*="color: var(--sv-gold)"]:hover,
div[style*="background: var(--sv-sand)"] a[style*="color: var(--sv-gold)"]:hover,
section[style*="background: var(--sv-surface-white)"] a[style*="color: var(--sv-gold)"]:hover {
  color: var(--sv-navy) !important;
  text-decoration: underline;
}

/* Improve contrast for gold strong text on light backgrounds */
.bg-cream strong[style*="color: var(--sv-gold)"],
.bg-sand strong[style*="color: var(--sv-gold)"],
div[style*="background: var(--sv-cream)"] strong[style*="color: var(--sv-gold)"],
div[style*="background: var(--sv-sand)"] strong[style*="color: var(--sv-gold)"],
section[style*="background: var(--sv-surface-white)"] strong[style*="color: var(--sv-gold)"] {
  color: var(--sv-gold-dark) !important;
  font-weight: 700;
}

/* Improve visibility for gold links on dark navy backgrounds */
.bg-navy a[style*="color: var(--sv-gold)"] {
  color: var(--sv-gold-light) !important;
  font-weight: 600;
}
.bg-navy a[style*="color: var(--sv-gold)"]:hover {
  color: #F0D599 !important;  /* Even brighter on hover */
  text-decoration: underline;
}

/* Gold links that should stay bright gold (not converted to dark gold) */
.gold-link-bright {
  color: var(--sv-gold) !important;
}
.gold-link-bright:hover {
  color: var(--sv-navy) !important;
  text-decoration: underline;
}

.sv-wrapper strong {
  font-weight: 600;
  color: var(--sv-navy);
}

.sv-wrapper em {
  font-style: italic;
  color: var(--sv-slate);
}

.sv-wrapper ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.sv-wrapper li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

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

/* --- UTILITIES --- */
.sv-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sv-container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Reduce padding on mobile for more content space */
@media (max-width: 480px) {
  .sv-container,
  .sv-container-narrow {
    padding: 0 1rem;
  }

  /* Make tables responsive on mobile */
  table {
    font-size: 1rem; /* 16px - iOS minimum to prevent zoom */
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table th,
  table td {
    padding: 0.75rem !important;
  }

  /* Prevent table cell text from wrapping too aggressively */
  table td strong {
    font-size: 1rem; /* 16px */
  }

  table td p {
    font-size: 0.9375rem; /* 15px - acceptable for secondary text */
  }

  /* Override paragraph max-width to ensure it fits within mobile viewport */
  .sv-wrapper p,
  .hero p,
  .hero-body {
    max-width: 100% !important;
  }
}

.text-center { text-align: center; }
.text-center h2,
.text-center h3,
.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--sv-gold-dark);  /* Darker gold for better contrast on cream/sand */
  display: block;
  margin-bottom: 1rem;
}

/* On white/light backgrounds, keep slightly brighter */
.bg-white .eyebrow,
.hero .eyebrow {
  color: var(--sv-gold);
}

/* On sand backgrounds, use darker gold for better contrast in light mode */
.bg-sand .eyebrow {
  color: var(--sv-navy);
}

.section-spacing {
  padding: 6rem 0;
  position: relative;
}

@media(max-width: 768px) {
  .section-spacing {
    padding: 4rem 0;
  }
}

/* Background Utilities */
.bg-white {
  background-color: var(--sv-surface-white);
  position: relative;
}

.bg-white::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

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

.bg-cream {
  background:
    radial-gradient(circle at 20% 80%, rgba(214,168,88,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(15,26,41,0.02) 0%, transparent 50%),
    linear-gradient(180deg, #EBE3D5 0%, #E0D4C3 100%);
  position: relative;
}

.bg-cream::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

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

.bg-sand {
  background: linear-gradient(180deg, #E6D4BD 0%, #DBC8AB 100%);
  position: relative;
}

.bg-sand::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

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

.bg-navy {
  background: linear-gradient(135deg, var(--sv-navy) 0%, var(--sv-charcoal) 100%);
  color: var(--sv-cream);
}

.bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy p { color: var(--sv-cream); }
.bg-navy h2 { font-weight: 700; color: var(--sv-cream) !important; }
.bg-navy h3 { font-weight: 700; color: var(--sv-cream) !important; }
.bg-navy h4 { color: var(--sv-gold); font-weight: 600; }
.bg-navy p { color: var(--sv-cream) !important; }
.bg-navy p[style*="opacity"] { color: var(--sv-cream) !important; }
.bg-navy strong { color: var(--sv-gold-light) !important; font-weight: 600; }
.bg-navy .eyebrow { color: var(--sv-gold); }
.bg-navy li { color: var(--sv-cream) !important; }
.bg-navy em { color: var(--sv-cream) !important; }
.bg-navy .lead { color: var(--sv-cream) !important; }

/* --- HEADER & NAVIGATION --- */
.site-header {
  background: var(--sv-cream);
  padding: 1rem 0;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }
}

/* Desktop layout - stacked: branding on top, nav below */
@media (min-width: 901px) {
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transition: none;
  }
}

.header-branding {
  text-align: center;
  margin-bottom: 1rem;
  transition: none;
}

@media (min-width: 901px) {
  .header-branding {
    margin-bottom: 0;
    text-align: center;
  }
}

.brand-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: none;
}

@media (min-width: 901px) {
  .brand-group {
    flex-direction: row;
    gap: 0.625rem;
    align-items: center;
  }
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.logo-main {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.005em;
  color: var(--sv-navy);
  line-height: 1.1;
  text-transform: lowercase;
}

@media (min-width: 1100px) {
  .logo-main {
    font-size: 1.55rem;
  }
}

.main-nav {
  text-align: center;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #F5EFE4;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sv-border);
  box-shadow: 0 2px 8px rgba(10,26,47,0.03);
}

[data-theme="dark"] .main-nav {
  background: #241A12;
  border-bottom-color: rgba(232, 221, 208, 0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }
}

/* Nav sticky styles - now properly outside header */

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1000px) {
  .main-nav ul {
    gap: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .main-nav ul {
    gap: 1.25rem;
  }
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sv-navy);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

@media (min-width: 1000px) {
  .main-nav a {
    font-size: 0.925rem;
  }
}

@media (min-width: 1200px) {
  .main-nav a {
    font-size: 1rem;
  }
}

.main-nav a:hover {
  color: var(--sv-gold);
  text-decoration: none;
}

.main-nav a.sv-btn-primary:hover {
  color: var(--sv-navy);
}

.main-nav a.sv-btn-primary,
.main-nav a.sv-btn-primary:focus,
.main-nav a.sv-btn-primary:active {
  text-decoration: none !important;
}

.main-nav a.sv-btn-primary::after {
  display: none !important;
}

.main-nav a.active {
  color: var(--sv-navy);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sv-gold);
  border-radius: 2px;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #D6A858 0%, #E5C175 100%);
  width: 0%;
  z-index: 10001;
  box-shadow: 0 1px 3px rgba(214, 168, 88, 0.4);
  opacity: 0;
  transition: width 0.15s ease-out, opacity 0.2s ease;
}

.scroll-progress-bar.visible {
  opacity: 1;
}

[data-theme="dark"] .scroll-progress-bar {
  background: linear-gradient(90deg, #C9A456 0%, #D4B06A 100%);
  box-shadow: 0 1px 3px rgba(201, 164, 86, 0.5);
}

/* Header CTA Button */
.header-cta {
  display: none; /* Hidden on mobile */
}

@media (min-width: 901px) {
  .header-cta {
    display: inline-flex;
    margin-left: 1.5rem;
  }

  .header-cta .sv-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
  }
}

/* Mobile Sticky Ribbon */
.mobile-cta-ribbon {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 26, 47, 0.95) 0%, rgba(10, 26, 47, 0.98) 100%);
  backdrop-filter: blur(10px);
  padding: 0.875rem 1rem;
  box-shadow: 0 -4px 20px rgba(10, 26, 47, 0.3);
  z-index: 999;
  border-top: 1px solid rgba(214, 168, 88, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 901px) {
  .mobile-cta-ribbon {
    display: none; /* Hidden on desktop since header CTA is visible */
  }
}

.mobile-cta-ribbon .sv-btn {
  flex: 1;
  max-width: 400px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  justify-content: center;
}

.mobile-cta-ribbon .ribbon-text {
  font-size: 0.8rem;
  color: var(--sv-cream);
  opacity: 0.9;
  font-weight: 500;
  white-space: nowrap;
}

/* Add padding to body to prevent content from being hidden behind ribbon on mobile */
@media (max-width: 900px) {
  body {
    padding-bottom: 70px;
  }
}

/* --- BUTTONS --- */
.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none !important;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.sv-btn:hover {
  transform: translateY(-2px);
}

.sv-btn:focus {
  outline: 3px solid var(--sv-gold);
  outline-offset: 2px;
  text-decoration: none !important;
}

.sv-btn:focus-visible {
  outline: 3px solid var(--sv-gold);
  outline-offset: 2px;
  text-decoration: none !important;
}

.sv-btn:focus:not(:focus-visible) {
  outline: none;
}

.sv-btn:active {
  transform: translateY(0);
}

.sv-btn-primary {
  background: linear-gradient(135deg, #D6A858 0%, #E5C175 100%);
  color: #0A1A2F !important;  /* Dark navy for maximum contrast - 8.5:1 ratio */
  border-color: var(--sv-gold);
  box-shadow:
    0 4px 12px rgba(214,168,88,0.3),
    0 0 0 1px rgba(214,168,88,0.2) inset;
  font-weight: 600;
}
.sv-btn-primary:hover {
  background: linear-gradient(135deg, #E5C175 0%, #F0D599 100%);
  color: #0A1A2F !important;  /* Maintain dark text on hover */
  box-shadow:
    0 6px 20px rgba(214,168,88,0.4),
    0 0 0 1px rgba(214,168,88,0.3) inset;
}

.sv-btn-secondary {
  background-color: rgba(250, 246, 239, 0.7);
  color: var(--sv-navy);
  border-color: var(--sv-border);
  box-shadow: 0 2px 8px rgba(10,26,47,0.05);
}
.sv-btn-secondary:hover {
  background-color: var(--sv-cream);
  border-color: var(--sv-navy);
  box-shadow: 0 4px 12px rgba(10,26,47,0.08);
}

.sv-btn-outline {
  background: transparent;
  border-color: var(--sv-charcoal);
  color: var(--sv-charcoal);
}
.sv-btn-outline:hover {
  background: var(--sv-charcoal);
  color: var(--sv-cream);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, var(--sv-navy) 0%, var(--sv-charcoal) 100%);
  color: var(--sv-cream);
  padding: 4rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(214,168,88,0.1), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(214,168,88,0.08), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 40% 20%, rgba(214,168,88,0.12), transparent);
  background-size: 550px 550px, 350px 350px, 250px 250px, 450px 450px, 200px 200px, 300px 300px, 400px 400px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 200px 150px, 280px 80px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(214,168,88,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(214,168,88,0.3);
  box-shadow: 0 0 20px rgba(214,168,88,0.1);
  font-size: 0.8rem;
  color: #E8DDD0;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-pill span.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  flex-shrink: 0;
  background: var(--sv-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(214,168,88,0.6);
}
.hero-pill span.separator {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sv-gold);
  border-radius: 50%;
  margin: 0 0.4rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -9999px;
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 600;
  color: #E8DDD0;  /* Light warm cream for comfortable readability - 10.5:1 ratio */
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p.lead {
  font-size: var(--text-lg);
  color: var(--sv-cream);  /* Match hero text for readability */
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.hero-body {
  color: var(--sv-cream);  /* Match hero text for better readability */
  margin-bottom: 2.5rem;
  font-size: var(--text-base);
  line-height: 1.7;
}

.hero-body strong,
.hero p.lead strong,
.hero strong {
  color: #E8DDD0 !important;  /* Light warm cream for comfortable emphasis */
}

.hero-meta-text {
  font-size: 0.9rem;
  color: #E8DDD0 !important;  /* Lighter cream for supporting text - 10.5:1 ratio */
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero outline buttons need light text on dark background (light mode) */
.hero .sv-btn-outline {
  color: var(--sv-cream);
  border-color: rgba(245, 239, 228, 0.4);
}

.hero .sv-btn-outline:hover {
  background: rgba(245, 239, 228, 0.15);
  color: var(--sv-cream);
  border-color: rgba(245, 239, 228, 0.6);
}

/* Hero credentials box - left-aligned on desktop, centered on tablet/mobile */
.hero-credentials {
  margin: 1.5rem 0;
}

@media (max-width: 1099px) {
  .hero-credentials {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.hero-image-ph {
  width: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, #f5f1eb 0%, #e8e2d8 100%);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--sv-slate);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: var(--sv-navy);
  font-style: normal;
  font-family: var(--font-mono), 'Courier New', monospace;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  position: relative;
}

/* Mobile hero - constrain width and center content */
@media(max-width: 1099px) {
  .hero {
    padding: 3rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-copy {
    text-align: center;
  }
  .hero h1 {
    max-width: 100% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero-body {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-meta-text {
    max-width: 100% !important;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-pill {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    padding-top: 0 !important;
    margin: 0 auto;
  }
  .hero-visual img {
    width: 100% !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: 450px !important;
    margin: 0 auto;
  }
}

@media(min-width: 1100px) {
  .hero { padding: 6rem 0; }
  .hero-grid {
    grid-template-columns: 550px 450px;
    align-items: start;
    gap: 4rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero h1 { font-size: 3.2rem; }
}

/* --- QUOTE BLOCKS --- */
.quote-block {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
  color: var(--sv-navy);
  position: relative;
}

/* --- CARDS --- */
.card, .diff-card, .question-card {
  background: var(--sv-sand);
  padding: 2rem 2.5rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 26, 41, 0.08);
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card {
  background: var(--sv-sand);
  padding: 2rem 2.5rem 2.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;  /* Transparent border by default for equal sizing */
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Cards on sand backgrounds use cream instead */
.bg-sand .card,
.bg-sand .diff-card,
.bg-sand .question-card,
.bg-sand .service-card {
  background: var(--sv-cream);
}

.card h3,
.card h4,
.diff-card h3,
.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.question-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem !important;
}

/* Card h4 specific styling - override global h4 */
.sv-wrapper .card h4 {
  font-family: var(--font-heading) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--sv-navy) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
}

.card p:last-child {
  margin-bottom: 0;
}

.card::after, .diff-card::after, .question-card::after, .service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.012;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: var(--radius-md);
}

.card:hover, .diff-card:hover, .question-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 6px rgba(10,26,47,0.08),
    0 15px 30px rgba(10,26,47,0.06);
}

/* Navy card variant - stays navy in light mode, adapts in dark mode */
.navy-card {
  background: var(--sv-navy) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* Navy card text - bright readable white on navy in light mode */
.navy-card p {
  color: rgba(255, 255, 255, 0.98) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navy card italic/em text - use gold for better readability in light mode */
.navy-card p em,
.navy-card p[style*="italic"] {
  color: var(--sv-gold) !important;
}

/* Navy card quote text - gold color for readability */
.navy-card .navy-card-quote {
  color: var(--sv-gold) !important;
}

[data-theme="dark"] .navy-card {
  background: var(--sv-surface-dark) !important;
  border-color: var(--sv-border) !important;
}

/* Override to standard text in dark mode */
[data-theme="dark"] .navy-card p {
  color: var(--sv-text-primary) !important;
  text-shadow: none;
}

/* Navy card text - light/readable on navy in light mode, standard text in dark mode */
.navy-card-text {
  color: #D4C9BD !important;
  opacity: 0.95 !important;
}

[data-theme="dark"] .navy-card-text {
  color: var(--sv-text-primary) !important;
  opacity: 1 !important;
}

/* --- GRIDS --- */
.diff-grid {
  display: grid;
  gap: 3rem;
}

@media(min-width: 800px) {
  .diff-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Process Grid - 4-step process
   Mobile: 1 column stacked, centered
   768px+: 2x2 grid, constrained width */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 auto 3rem;
  max-width: 500px;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 700px;
  }
}

.service-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}

@media(min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 3rem auto 0;
    gap: 2.5rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 4px 6px rgba(10,26,47,0.08),
    0 20px 40px rgba(10,26,47,0.08);
}

/* Service/pricing card badges - rounded pill style for better contrast */
.service-label {
  font-size: 0.8125rem; /* 13px base - mobile override increases this */
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  display: inline-block;
  letter-spacing: 0.05em;
  align-self: center; /* Center badge in flex containers, prevent full-width stretch */
}

/* Default badge: navy background */
.service-label {
  background: var(--sv-navy);
  color: var(--sv-cream);
}

/* Gold badge variant for featured/premium options */
.service-label-gold {
  background: var(--sv-gold);
  color: var(--sv-navy);
}

.service-price {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--sv-gold);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.service-card .sv-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.service-card h3,
.service-card p,
.service-card ul {
  position: relative;
  z-index: 1;
}

.question-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--sv-navy);
  border-bottom: 1px solid var(--sv-sand);
  padding-bottom: 0.5rem;
}

.question-card ul {
  font-size: var(--text-base);
  padding-left: 1.2rem;
  color: var(--sv-navy);
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0.85;
}

.question-card ul li::marker {
  color: var(--sv-gold);
  font-weight: bold;
}

/* --- FAQ --- */
details.faq-item {
  background: var(--sv-surface-white);
  border-bottom: 1px solid var(--sv-border);
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(10,26,47,0.03);
  position: relative;
}

details.faq-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.01;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: var(--radius-sm);
}

details.faq-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sv-navy);
  position: relative;
  z-index: 1;
  font-size: var(--text-lg);
  font-family: var(--font-serif);
  line-height: 1.4;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary:hover {
  color: var(--sv-gold);
  cursor: pointer;
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sv-gold);
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  content: '−';
  transform: scale(1.1);
}

details.faq-item[open] div {
  padding-bottom: 1rem;
  color: var(--sv-charcoal);
  position: relative;
  z-index: 1;
}

/* --- SKEPTIC STORY ACCORDION (Navy Background) --- */
details.skeptic-story {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(214, 168, 88, 0.3);
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

details.skeptic-story summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--sv-gold);
  font-size: var(--text-base);
  transition: background 0.2s ease;
}

details.skeptic-story summary::-webkit-details-marker { display: none; }

details.skeptic-story summary:hover {
  background: rgba(214, 168, 88, 0.1);
}

details.skeptic-story summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sv-gold);
  transition: transform 0.2s ease;
}

details.skeptic-story[open] summary::after {
  content: '−';
}

details.skeptic-story[open] summary {
  border-bottom: 1px solid rgba(214, 168, 88, 0.2);
}

.skeptic-story-content {
  padding: 1.5rem;
}

.skeptic-story-content p {
  color: var(--sv-cream);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.skeptic-story-content p:last-child {
  margin-bottom: 0;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
  padding: 0 0 1.5rem 0;
  font-size: 0.875rem;
  color: var(--sv-navy);
}

.breadcrumbs a {
  color: var(--sv-navy);
  text-decoration: none;
  transition: color 0.2s;
  opacity: 0.7;
}

.breadcrumbs a:hover {
  color: var(--sv-gold);
  opacity: 1;
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: var(--sv-navy);
  opacity: 0.5;
}

/* Hero breadcrumbs - for use on dark hero backgrounds (light text in both modes) */
.breadcrumbs.hero-breadcrumbs,
.hero .breadcrumbs.hero-breadcrumbs,
.hero-section .breadcrumbs.hero-breadcrumbs {
  padding: 1.5rem 0 0 0;
  color: #E8DDD0 !important;
}

.breadcrumbs.hero-breadcrumbs a,
.hero .breadcrumbs.hero-breadcrumbs a,
.hero-section .breadcrumbs.hero-breadcrumbs a {
  color: #E8DDD0 !important;
  opacity: 0.85;
}

.breadcrumbs.hero-breadcrumbs a:hover,
.hero .breadcrumbs.hero-breadcrumbs a:hover,
.hero-section .breadcrumbs.hero-breadcrumbs a:hover {
  color: var(--sv-gold) !important;
  opacity: 1;
}

.breadcrumbs.hero-breadcrumbs span,
.hero .breadcrumbs.hero-breadcrumbs span,
.hero-section .breadcrumbs.hero-breadcrumbs span {
  color: #E8DDD0 !important;
  opacity: 0.6;
}

/* Last breadcrumb item (current page) should be full opacity */
.breadcrumbs.hero-breadcrumbs > .sv-container > span:last-child,
.breadcrumbs.hero-breadcrumbs > span:last-child {
  opacity: 1;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--sv-charcoal);
  color: var(--sv-slate);
  padding: 4rem 0 2rem;
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

/* Mobile footer - center everything */
@media(max-width: 767px) {
  .footer-col {
    text-align: center;
    flex: 1 !important; /* Override inline flex: 2 on first column */
    max-width: 100%;
  }

  .footer-col h4 {
    text-align: center;
  }

  .footer-col ul {
    text-align: center;
  }

  /* Ensure the tagline paragraphs are centered and constrained */
  .footer-col p {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 0 1rem; /* Add padding to prevent edge touching on very small screens */
  }
}

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

.footer-grid .footer-col:first-child .brand-group {
  justify-content: flex-start;
}

.site-footer .brand-icon {
  width: 48px;
  height: 48px;
}

.footer-col h4 {
  color: var(--sv-cream);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--font-logo);
}

.footer-col p {
  color: #C5D1DC;  /* Light blue-grey for readability - 7.8:1 ratio */
  line-height: 1.7;
  font-size: var(--text-sm);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: #C5D1DC;  /* Light blue-grey for maximum contrast on dark footer - 7.8:1 ratio */
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #E5C175;  /* Bright gold on hover - 8.5:1 ratio */
  text-decoration: none;
}

.newsletter-signup {
  background: rgba(255,255,255,0.03);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

.newsletter-signup h4 {
  color: var(--sv-gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.newsletter-signup p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.newsletter-signup .coming-soon {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--sv-slate);
  margin-bottom: 0;
}

.footer-legal {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

.footer-legal p {
  margin-bottom: 0.75rem;
  font-style: italic;
  color: var(--sv-gold-light);
  font-size: 0.95rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.footer-legal-links a {
  color: #C5D1DC;  /* Light blue-grey for readability - 7.8:1 ratio */
}

.footer-legal-links a:hover {
  color: #E5C175;  /* Bright gold on hover */
}

.footer-copyright {
  font-size: 0.8125rem; /* 13px base - mobile override increases this */
  color: #C5D1DC;  /* Readable light text instead of barely visible */
}

.footer-meta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #C5D1DC;  /* Light text for readability */
  font-size: 0.85rem;
}

.footer-meta small {
  color: #C5D1DC;  /* Match parent for consistency */
}

/* Trust Badges / Payment Security Section */
.trust-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badges .trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badges .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #C5D1DC;
  font-size: 0.85rem;
}

.trust-badges .trust-item .fa-lock {
  color: var(--sv-gold);
}

.trust-badges .trust-item .stripe-logo {
  height: 2.75rem;
  width: auto;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.payment-cards {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* SVG card icons - natural rectangle shape with subtle border */
.payment-cards img {
  height: 36px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

@media (max-width: 600px) {
  .trust-badges .trust-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.footer-cta-text {
  font-size: 1.1rem;
  color: #C5D1DC !important;  /* Light readable text */
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
}

/* --- ADDITIONAL COMPONENTS --- */
.process-step {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--sv-border);
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--sv-gold);
  margin-bottom: 1rem;
  line-height: 1.2;
}


.cta-card {
  background: linear-gradient(135deg, var(--sv-navy) 0%, var(--sv-charcoal) 100%);
  color: var(--sv-cream);
  padding: 3rem 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

@media(max-width: 768px) {
  .cta-card {
    padding: 3rem 2rem;
  }
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 30% 30%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(214,168,88,0.1), transparent);
  background-size: 400px 400px, 300px 300px;
  opacity: 0.3;
  pointer-events: none;
}

.cta-card h2 {
  color: var(--sv-cream);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: var(--text-3xl);
}

.cta-card p {
  color: var(--sv-cream) !important;
  position: relative;
  z-index: 1;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card p[style*="font-size"] {
  font-weight: 400;
  line-height: 1.7;
}

.cta-card p a {
  color: var(--sv-gold-light) !important;
}

.cta-card p strong {
  color: var(--sv-cream) !important;
}

.cta-card .sv-btn,
.cta-card > div {
  position: relative;
  z-index: 1;
}


.bio-layout {
  display: grid;
  gap: 3rem;
}

@media(min-width: 900px) {
  .bio-layout { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
  /* Ensure bio-image-ph maintains square aspect ratio on desktop grid */
  .bio-layout .bio-image-ph {
    aspect-ratio: 1/1;
    max-width: 100%;
  }
}

.bio-image-ph {
  width: 100%;
}

/* Add vertical offset for grid-2 layouts to visually center with text */
.grid-2 .bio-image-ph {
  margin-top: 6rem;
}

/* Personal Warmth Section - About Page */
.personal-warmth-right {
  margin-top: 3rem; /* Align with text on desktop */
}

/* Image within personal-warmth-right should not get the 6rem margin */
.personal-warmth-right .bio-image-ph {
  margin-top: 2rem !important; /* Clean spacing between card and image */
}

/* Mobile overrides moved to after Grid Systems section to ensure proper cascade */

.bio-image-ph img {
  border: 2px solid var(--sv-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* Simple caption below image */
.image-caption {
  font-size: var(--text-sm);
  color: var(--sv-navy);
  opacity: 0.6;
  font-style: italic;
  text-align: center;
  margin-top: 0.625rem !important;
  margin-bottom: 0;
  display: block;
}

/* Apply gold border to all content images (excluding brand/icons) */
section img[src*="images/learn/"],
section img[src*="images/lifestyle/"],
section img[src*="images/educational/"],
section img[src*="images/testimonials/"],
section img[src*="images/trust-signals/"],
section img[src*="images/team/"],
section img[src*="images/process/"] {
  border: 2px solid var(--sv-gold) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.highlight-box {
  background: rgba(255,255,255,0.5);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0 2rem 0;
  box-shadow: 0 2px 8px rgba(10,26,47,0.03);
}

.highlight-box p {
  margin-bottom: 0;
}

.who-grid {
  display: grid;
  gap: 2rem;
}

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

.who-col h3 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--sv-border);
  padding-bottom: 0.5rem;
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

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

/* Utility Classes */
.bridge-section {
  border-bottom: 1px solid var(--sv-border);
}

/* === ADDITIONAL STYLES FOR COMPATIBILITY === */

/* Apply base styles to body (not just .sv-wrapper) */
body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--sv-charcoal);
  background-color: var(--sv-cream);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

/* Enhanced Typography with clamp() */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--sv-gold); }

strong { font-weight: 600; color: var(--sv-navy); }
em { font-style: italic; }

/* Section Styling */
section { padding: 5rem 0; position: relative; }

@media(max-width: 1023px) {
  section { padding: 3rem 0; }
}

/* Texture Overlay */
.texture-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Grid Systems - Mobile First */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 1.5rem; /* Smaller default gap for mobile */
  position: relative;
  z-index: 1;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 1.5rem; /* Smaller default gap for mobile */
  position: relative;
  z-index: 1;
}

/* Tablet breakpoint - 2 columns for better spacing */
@media(min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* Desktop breakpoint */
@media(min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
  .grid-2-top { align-items: flex-start; }
  .grid-2-sidebar { grid-template-columns: 2fr 1fr; align-items: start; }

  /* Add vertical spacing between cards within columns on desktop */
  /* Only apply to wrapper divs that contain .card children */
  .grid-2 > div:has(.card) {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Large desktop - grid-3 becomes 3 columns */
@media(min-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* Mobile Responsive Overrides - Must come after grid definitions */
@media(max-width: 1023px) {
  /* Remove desktop alignment margin on mobile */
  .personal-warmth-right {
    margin-top: 0 !important;
  }

  /* Keep natural spacing for image on mobile */
  .personal-warmth-right .bio-image-ph {
    margin-top: 2rem !important;
  }

  .grid-2 .bio-image-ph {
    margin-top: 0 !important;
  }

  /* Remove inline margin-top on grid-2 children when stacked */
  .grid-2 > div[style*="margin-top"] {
    margin-top: 0 !important;
  }

  /* Also remove margin from nested divs containing bio-image-ph */
  .grid-2 div[style*="margin-top"] .bio-image-ph {
    margin-top: 0 !important;
  }

  /* Remove margin from wrapper divs around images */
  .grid-2 > div > div[style*="margin-top"] {
    margin-top: 0 !important;
  }

  /* Directly target the specific structure on About page */
  .bg-cream .grid-2 > div:nth-child(2) {
    margin-top: 0 !important;
  }

  .bg-cream .grid-2 > div:nth-child(2) > div {
    margin-top: 0 !important;
  }

  /* Add extra bottom padding to Personal Warmth section on mobile to prevent overlap */
  .bg-cream.texture-overlay {
    padding-bottom: 4rem !important;
  }

  /* Reduce grid-3 gap on mobile */
  .grid-3 {
    gap: 1.5rem !important;
  }

  /* CRITICAL: Override problematic multi-column inline grids to stack on mobile */
  /* Target only grids with repeat() that don't have auto-fit */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce gap on auto-fit grids (homepage "How It Works" section) */
  [style*="repeat(auto-fit"][style*="gap: 3rem"] {
    gap: 2rem !important;
  }

  /* Reduce card padding on mobile for better content width */
  .card, .diff-card, .question-card, .service-card {
    padding: 1.5rem !important;
  }

  /* Make grid columns display as flex column on mobile to properly stack cards */
  /* Only apply to wrapper divs that contain .card children, not to cards themselves or content divs */
  .grid-2 > div:has(.card),
  .grid-3 > div:has(.card) {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Remove all card margins - let flex gap handle spacing */
  .grid-2 .card,
  .grid-3 .card {
    margin-bottom: 0 !important;
  }

  /* Reduce grid gap since cards handle their own spacing */
  .grid-2,
  .grid-3 {
    gap: 1.5rem !important;
  }
}

/* Timeline Grid - Mobile First */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media(min-width: 600px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Hide timeline connection line by default (mobile) */
.timeline-line {
  display: none !important;
}

@media(min-width: 900px) {
  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  /* Show timeline line only on desktop 4-column layout */
  .timeline-line {
    display: block !important;
  }
}

/* Extra small devices - phones */
@media(max-width: 480px) {
  /* Further reduce section padding on phones */
  section {
    padding: 2rem 0 !important;
  }

  /* Tighter card padding on small phones */
  .card, .diff-card, .question-card, .service-card {
    padding: 1.25rem !important;
  }

  /* Reduce grid gaps further on phones */
  .grid-2, .grid-3 {
    gap: 1.5rem !important;
  }

  /* Reduce timeline gap on phones */
  .timeline-grid {
    gap: 1.5rem !important;
  }

  /* Reduce check-list padding for better text flow */
  ul.check-list li {
    padding-left: 1.25rem !important;
  }

  /* Reduce excessive gaps on phones - only target 2rem+ */
  [style*="gap: 2rem"],
  [style*="gap: 3rem"],
  [style*="gap: 4rem"] {
    gap: 1rem !important;
  }

  /* Further reduce gap on auto-fit grids on phones */
  [style*="repeat(auto-fit"] {
    gap: 1.5rem !important;
  }
}

/* Photo Placeholder */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f5f1eb 0%, #e8e2d8 100%);
  border: 2px dashed var(--sv-slate);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: var(--sv-navy);
  font-style: normal;
  font-family: var(--font-mono), 'Courier New', monospace;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* Visual Placeholder */
.visual-placeholder {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #f5f1eb 0%, #e8e2d8 100%);
  border: 2px dashed var(--sv-slate);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: var(--sv-navy);
  font-style: normal;
  font-family: var(--font-mono), 'Courier New', monospace;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* Section Background Classes with Spacing */
.section-white {
  background: rgba(250, 246, 239, 0.4);
  padding: 6rem 0;
}

.section-cream {
  background: var(--sv-cream);
  padding: 6rem 0;
}

.section-sand {
  background: var(--sv-sand);
  padding: 6rem 0;
}

@media(max-width: 768px) {
  .section-white,
  .section-cream,
  .section-sand {
    padding: 4rem 0;
  }
}

.section-navy {
  background: var(--sv-navy);
  color: var(--sv-cream);
  padding: 6rem 0;
}

.section-navy h2 {
  color: var(--sv-cream) !important;
  font-weight: 700;
}

.section-navy h3 {
  color: var(--sv-cream) !important;
  font-weight: 700;
}

.section-navy h4 {
  color: var(--sv-gold);
  font-weight: 600;
}

.section-navy p,
.section-navy ul,
.section-navy li {
  color: var(--sv-cream) !important;
}

.section-navy strong {
  color: var(--sv-gold-light);
  font-weight: 600;
}

.section-navy em {
  color: var(--sv-cream);
}

.section-navy .eyebrow {
  color: var(--sv-gold);
}

@media(max-width: 768px) {
  .section-navy {
    padding: 4rem 0;
  }
}

/* Lists */
ul.check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
ul.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
ul.check-list li::before {
  content: '✓';
  color: var(--sv-gold);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Simple bullet list - for descriptions, not deliverables */
ul.bullet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
ul.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
ul.bullet-list li::before {
  content: '•';
  color: var(--sv-gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Fix text color in navy sections - already handled above, keeping for specificity */
.bg-navy ul,
.bg-navy ul li {
  color: var(--sv-cream);
}

ul.star-list { list-style: none; padding: 0; }
ul.star-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; }
ul.star-list li::before {
  content: '✦';
  color: var(--sv-gold);
  position: absolute;
  left: 0;
  top: 0.45em;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
}

ul.arrow-list { list-style: none; padding: 0; }
ul.arrow-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; }
ul.arrow-list li::before {
  content: '→';
  color: var(--sv-gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Package Grid & Cards */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.package-card {
  background: rgba(250, 246, 239, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid var(--sv-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card.package-card--featured {
  border: 2px solid var(--sv-gold);
}

.package-card h3 {
  color: var(--sv-navy);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sv-gold);
  margin-bottom: 0.5rem;
  text-align: center;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sv-gold);
  text-align: center;
  display: block;
}

.package-card p {
  margin-bottom: 1rem;
}

.package-card ul {
  list-style: none;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  text-align: left;
}

.package-card ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  color: var(--sv-slate);
}

.package-card ul li::before {
  content: '•';
  color: var(--sv-gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.package-card .sv-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Reading Cards (similar to package cards but for readings page) */
.reading-card {
  background: rgba(250, 246, 239, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--sv-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.reading-card h3 {
  color: var(--sv-navy);
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}

.reading-card .card-intro {
  color: var(--sv-slate);
  margin-bottom: 1.5rem;
  text-align: center;
}

.reading-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.reading-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--sv-slate);
}

.reading-card ul li::before {
  content: '✓';
  color: var(--sv-gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.reading-card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sv-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.reading-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sv-gold);
  display: block;
}

.reading-card-footer .sv-btn {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  text-align: center;
}

ul.bullet-list { list-style: disc; padding-left: 1.5rem; }
ul.bullet-list li { margin-bottom: 0.5rem; }

/* Insight Grid & Cards - for "What You'll Understand" section */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.insight-card {
  background: rgba(250, 246, 239, 0.6);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem 2rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--sv-border);
  box-shadow: 0 2px 4px rgba(10,26,47,0.04);
}

.insight-card h3 {
  color: var(--sv-navy);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.insight-card p {
  color: var(--sv-slate);
  margin: 0;
}

/* Orientation Grid & Cards - for "What Drives Them" section */
.orientation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media(max-width: 768px) {
  .orientation-grid {
    grid-template-columns: 1fr;
  }
}

.orientation-card {
  background: rgba(250, 246, 239, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem 2rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(10,26,47,0.06);
  display: flex;
  flex-direction: column;
}

.orientation-card h4 {
  color: var(--sv-navy);
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: normal;
  text-transform: none;
}

.orientation-card p {
  color: var(--sv-slate);
  margin-bottom: 1rem;
}

.orientation-card p:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.orientation-card strong {
  margin-top: 0 !important;
  display: inline !important;
}

/* Sidebar Box - for relationship page sidebars */
.sidebar-box {
  background: rgba(255,255,255,0.5);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--sv-border);
}

.sidebar-box h4 {
  color: var(--sv-navy);
  margin-top: 0;
  margin-bottom: 1rem;
}

.sidebar-box p {
  color: var(--sv-slate);
  margin-bottom: 1rem;
}

.sidebar-box p:last-child {
  margin-bottom: 0;
}

/* Fix sidebar box contrast when in navy sections */
.section-navy .sidebar-box {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(214,168,88,0.3);
}

.section-navy .sidebar-box h4 {
  color: var(--sv-gold);
}

.section-navy .sidebar-box p {
  color: var(--sv-cream);
}


/* Mobile optimization */
@media(max-width: 1023px) {
  /* Reduce spacing on mobile */
  details .grid-3 {
    margin-top: 1rem !important;
    gap: 1.5rem !important;
  }
  details summary {
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  /* About page image grids - stack on mobile and constrain size */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Constrain standalone bio-image-ph on mobile */
  .bio-image-ph {
    max-width: 300px !important;
    margin: 0 auto !important;
    aspect-ratio: 1/1 !important;
  }
  .bio-image-ph img,
  div[style*="max-width: 450px"] img,
  div[style*="max-width: 600px"] img,
  img[style*="max-width: 600px"] {
    max-width: 300px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Constrain wrapper widths on mobile */
  div[style*="max-width: 450px"],
  div[style*="max-width: 600px"] {
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Override mobile constraint for bio-layout at tablet+ (900px-1023px overlap) */
@media(min-width: 900px) and (max-width: 1023px) {
  .bio-layout .bio-image-ph {
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 1/1 !important;
  }
}


/* Logic Block */
.logic-block {
  display: inline-block;
  background: var(--sv-navy);
  color: var(--sv-gold);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 0 0.3rem;
}

/* Lead text */
.lead {
  font-size: 1.25rem;
  color: var(--sv-slate);  /* Use slate for general lead text */
  margin-bottom: 1.5rem;
}

/* Lead text in hero sections needs cream color */
.hero .lead {
  color: var(--sv-cream) !important;
}

/* Callout Box */
.callout-box {
  background: rgba(214,168,88,0.08);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
}

/* Checklist Box */
.checklist-box {
  background: var(--sv-surface-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(10,26,47,0.05);
  border: 1px solid var(--sv-border);
}

/* Bio Image Wrapper */
.bio-image-wrapper {
  position: relative;
}

/* Contact Box */
.contact-box, .contact-info-box {
  background: var(--sv-surface-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--sv-border);
  box-shadow: 0 2px 8px rgba(10,26,47,0.05);
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
}

.contact-box h2,
.contact-info-box h2,
.contact-info-box h3 {
  margin-top: 0;
  padding-top: 0;
}

.response-box {
  text-align: center !important;
  margin-top: 2rem;
}

.response-box p {
  margin-bottom: 0;
}

/* Content Wrapper */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Category Navigation */
.category-nav {
  margin-bottom: 1.5rem;
}

.category-nav h2 {
  margin-bottom: 1rem;
}

.category-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
}

.category-nav a, .category-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--sv-surface-white);
  border: 1px solid var(--sv-border);
  transition: all 0.2s ease;
}

.category-nav a:hover, .category-links a:hover {
  background: var(--sv-navy);
  color: var(--sv-cream);
  text-decoration: none;
}

/* Clarity Grid/Box */
.clarity-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.clarity-box {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sv-border);
}

.clarity-box h3 {
  margin-top: 0;
  text-align: center;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--sv-navy);
  color: var(--sv-cream);
  text-align: center;
}

.cta-section h2,
.cta-section p {
  color: var(--sv-cream);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--sv-gold);
  color: var(--sv-navy);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Card Intro */
.card-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sv-border);
}

/* Dynamic List */
.dynamic-list {
  list-style: none;
  padding: 0;
}

.dynamic-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--sv-surface-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sv-border);
  color: var(--sv-slate);
}

.dynamic-item strong {
  color: var(--sv-navy);
  display: block;
  margin-top: 0 !important;
  margin-bottom: 0.25rem;
}

/* Hero copy adjustments */
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-visual {
  padding-top: calc(4rem + 10px);
}

/* Ensure consistent sizing across all hero images */
.hero-visual img {
  display: block !important;
  width: 450px !important;
  height: 450px !important;
  min-width: 450px !important;
  min-height: 450px !important;
  max-width: 450px !important;
  max-height: 450px !important;
  object-fit: cover !important;
  border: 2px solid var(--sv-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
}

/* Responsive hero images - comprehensive breakpoints */

/* Tablet landscape / small desktop (901px - 1099px) */
@media(min-width: 901px) and (max-width: 1099px) {
  .hero-visual img {
    width: 380px !important;
    height: 380px !important;
    min-width: 380px !important;
    min-height: 380px !important;
    max-width: 380px !important;
    max-height: 380px !important;
  }
}

/* Tablet portrait (601px - 900px) */
@media(min-width: 601px) and (max-width: 900px) {
  .hero-visual img {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: 320px !important;
    max-height: 320px !important;
    margin: 0 auto !important;
  }

  /* Override inline grid styles to stack on tablet */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile (600px and below) */
@media(max-width: 600px) {
  .hero-visual img {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: 260px !important;
    max-height: 260px !important;
    margin: 0 auto !important;
    object-fit: cover !important;
    object-position: top center !important;
  }

  /* Override inline grid styles to stack on mobile */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure hero h1 uses cream color */
.hero h1 {
  color: var(--sv-cream);
}

/* Contact Email */
.contact-email {
  font-size: 1.1rem;
  color: var(--sv-gold);
  font-weight: 600;
}

/* Cross List - for exclusions / "not for you if" */
ul.cross-list { list-style: none; padding: 0; margin: 0; }
ul.cross-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
ul.cross-list li:last-child { margin-bottom: 0; }
ul.cross-list li::before {
  content: '✕';
  color: var(--sv-slate);
  opacity: 0.6;
  position: absolute;
  left: 0;
  font-weight: bold;
}
/* Cross List - on dark backgrounds (e.g., bg-navy) */
.bg-navy ul.cross-list li::before {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
/* Cross List - Dark Mode */
[data-theme="dark"] ul.cross-list li::before {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* FAQ Page Specific Styles */
.faq-category {
  margin: 0 0 3rem 0;
}

.faq-category:first-of-type {
  margin-top: 0;
}

.faq-category h2 {
  border-bottom: 2px solid var(--sv-gold);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.hero-section {
  background: linear-gradient(135deg, var(--sv-navy) 0%, var(--sv-charcoal) 100%);
  color: var(--sv-cream);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--sv-cream);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: var(--sv-cream) !important;
  max-width: 750px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--sv-slate);
  margin: 0 auto 2rem auto !important;
  text-align: center !important;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sv-navy);
}

/* Hero Content */
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}


/* Duplicate removed - header styles are at line 273 */

/* Additional footer section styles */
.footer-section {
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--sv-cream);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-logo);
}

.footer-section a {
  display: block;
  color: var(--sv-slate);
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--sv-gold);
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 3rem 0;
}


/* FAQ Details Accordion - Match mini FAQ style */
details.faq-item,
.faq-category details {
  background: var(--sv-surface-white);
  border-bottom: 1px solid var(--sv-border);
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(10,26,47,0.03);
  position: relative;
}

details.faq-item summary,
.faq-category details summary {
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sv-navy);
  position: relative;
  z-index: 1;
  font-size: var(--text-lg);
  font-family: var(--font-serif);
  line-height: 1.4;
}

details.faq-item summary::-webkit-details-marker,
.faq-category details summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary:hover,
.faq-category details summary:hover {
  color: var(--sv-gold);
}

details.faq-item summary::after,
.faq-category details summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sv-gold);
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after,
.faq-category details[open] summary::after {
  content: '−';
  transform: scale(1.1);
}

details.faq-item[open] div,
.faq-category details[open] div {
  padding-bottom: 1rem;
  color: var(--sv-charcoal);
  position: relative;
  z-index: 1;
}

/* FAQ answer styling */
.faq-category details div p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.faq-category details div p:last-child {
  margin-bottom: 0;
}


/* === READABILITY & CONVERSION ENHANCEMENTS === */

/* Lead Paragraphs */
.lead,
p.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--sv-slate);
  margin-bottom: 2.5rem;
}

/* Intro Text */
.intro-text {
  font-size: var(--text-base);
  max-width: 700px;
  margin: 0 auto 3rem auto !important;
  color: var(--sv-slate);
  text-align: center !important;
}

/* Pull Quotes */
.pull-quote {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
  color: var(--sv-navy);
  padding-left: 2rem;
  margin: 3rem 0;
  max-width: 650px;
}

/* Callout Box */
.callout {
  background: linear-gradient(135deg, rgba(214,168,88,0.08) 0%, rgba(214,168,88,0.03) 100%);
  padding: 2rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Grid gaps are now defined in the main Grid Systems section above */

/* Button Group Spacing */
.hero-buttons,
.cta-card > div {
  margin-top: 2.5rem;
}

/* Accessibility: Skip to Content */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--sv-gold);
  color: var(--sv-navy);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 10002;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
  opacity: 1;
  transform: translateY(0);
}

/* Link Focus States */
a:focus {
  outline: 2px solid var(--sv-gold);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--sv-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

/* Improved Contrast for Better Readability */
.sv-wrapper p,
.sv-wrapper li {
  color: #3a4a57;
}

/* First Paragraph Emphasis (optional utility) */
.first-emphasis p:first-of-type::first-line {
  font-weight: 500;
}

/* Navy background: fix list and quote spacing */
.bg-navy ul,
.section-navy ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.bg-navy ul li,
.section-navy ul li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.bg-navy ul li:last-child,
.section-navy ul li:last-child {
  margin-bottom: 0;
}

.bg-navy ul li:first-child,
.section-navy ul li:first-child {
  margin-top: 0;
}

.bg-navy > p strong,
.section-navy > p strong,
.bg-navy > div > p strong,
.section-navy > div > p strong {
  color: var(--sv-gold-light);
  font-weight: 600;
}

.bg-navy > strong,
.section-navy > strong {
  margin-top: 1.25rem;
  margin-bottom: 0;
  display: inline-block;
  color: var(--sv-gold-light);
  font-weight: 600;
}

/* Quote boxes and inline divs in navy sections - reduce excess spacing */
.bg-navy > div[style*="margin-top"],
.section-navy > div[style*="margin-top"],
.bg-navy div[style*="margin-top"],
.section-navy div[style*="margin-top"] {
  margin-top: 1rem !important;
}

/* Naming note box - needs its own margin control */
.naming-note {
  margin-top: 1.25rem !important;
}

.bg-navy div[style*="display: inline-block"],
.section-navy div[style*="display: inline-block"] {
  display: block !important;
  margin-top: 1rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 800px !important;
  padding: 1.5rem 3rem !important;
}

/* Package cards - reduce top spacing on headings */
.package-card h3 {
  margin-top: 0;
  padding-top: 0;
}

/* Section centering utilities */
.text-center-content {
  text-align: center;
}

.text-center-content > * {
  margin-left: auto;
  margin-right: auto;
}

/* Contact grid spacing improvements */
.contact-grid {
  gap: 2rem;
}

.contact-info-box h3 {
  margin-top: 0;
  padding-top: 0;
}

/* Fix inline-styled sections with small fonts */
div[style*="font-size:1.3rem"] h3,
div[style*="font-size:1.1rem"] h4,
h3[style*="font-size:1.3rem"],
h4[style*="font-size:1.1rem"] {
  font-size: var(--text-xl) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

div[style*="font-size:0.95rem"],
p[style*="font-size:0.95rem"] {
  font-size: var(--text-base) !important;
  line-height: 1.7 !important;
}

div[style*="font-size:1.15rem"] p,
p[style*="font-size:1.15rem"] {
  font-size: var(--text-lg) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

/* Testimonials */
.testimonial {
  font-family: var(--font-sans) !important;
  font-size: var(--text-base) !important;
  font-style: normal !important;
  line-height: 1.7;
  color: var(--sv-navy);
  font-weight: 400;
}

.testimonial cite {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 500;
  color: var(--sv-slate);
}


/* What Couples Say section */
.section-sand h2.text-center + p {
  font-size: var(--text-base) !important;
}

/* Ensure all navy/dark background text uses proper weights */
.bg-navy,
.section-navy,
.cta-card,
.hero-section {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-navy p,
.section-navy p,
.cta-card p {
  font-weight: 400;
}

/* Override any remaining thin fonts in navy sections */
.bg-navy *[style*="font-weight: 300"],
.section-navy *[style*="font-weight: 300"] {
  font-weight: 400 !important;
}

/* ===== HOMEPAGE SPECIFIC FIXES ===== */

/* Life Sections Grid
   Mobile: 2x2 grid (4 boxes)
   768px+: 3 boxes in row, note box full-width below */
.life-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .life-sections-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* Note box: full width on desktop, below the 3 content boxes */
.life-section-box--note {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .life-section-box--note {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0.5rem auto 0;
    text-align: left;
  }

  .life-section-box--note p {
    text-align: left;
  }
}

/* Life Section Boxes */
.life-section-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 1.25rem 1rem !important;
  width: 100%;
  background: #F5F0E8 !important;
  border-radius: 8px !important;
}

@media (min-width: 768px) {
  .life-section-box {
    align-items: flex-start !important;
    padding: 1.5rem 1.75rem 1.25rem 1.75rem !important;
  }
}

.life-section-box h4 {
  text-align: center !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  color: var(--sv-navy);
}

@media (min-width: 768px) {
  .life-section-box h4 {
    text-align: left !important;
    font-size: 1.35rem !important;
  }
}

.life-section-box ul {
  text-align: left !important;
  font-size: 0.9rem !important;
  line-height: 1.6;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

@media (min-width: 768px) {
  .life-section-box ul {
    font-size: 1rem !important;
  }
}

.life-section-box ul li {
  text-align: left !important;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .life-section-box ul li {
    text-align: left !important;
  }
}

/* Dark variant for learn.html (navy background) */
.life-section-box--dark {
  background: rgba(255, 255, 255, 0.05) !important;
}
.life-section-box--dark h4 {
  color: var(--sv-cream) !important;
}
.life-section-box--dark ul,
.life-section-box--dark ul li {
  color: #cbd5e1 !important;
}

/* Dark mode toggle - life section boxes */
[data-theme="dark"] .life-section-box,
[data-theme="dark"] .life-sections-grid .life-section-box {
  background: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .life-section-box h4,
[data-theme="dark"] .life-sections-grid .life-section-box h4 {
  color: #E8DDD0 !important;
}
[data-theme="dark"] .life-section-box ul,
[data-theme="dark"] .life-section-box ul li,
[data-theme="dark"] .life-sections-grid .life-section-box ul,
[data-theme="dark"] .life-sections-grid .life-section-box ul li {
  color: #cbd5e1 !important;
}

/* Comparison Grid (Western vs Vedic) */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media(min-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Timing & Vedic Side-by-Side Grid */
.timing-vedic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media(min-width: 768px) {
  .timing-vedic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Dark mode - subtle borders */
[data-theme="dark"] .comparison-grid > div,
[data-theme="dark"] .timing-vedic-grid > div {
  border-color: rgba(232, 221, 208, 0.15) !important;
}

/* "Another way to think about it" - terrain section */
div[style*="background: var(--sv-sand)"]:not(.life-section-box):not(.naming-note):not(.timing-vedic-grid > div):not(.testimonial-box) {
  padding: 1.5rem 2rem 2rem !important;
  text-align: center !important;
}

/* Testimonial boxes - left-aligned content in sand-colored boxes */
.testimonial-box {
  text-align: left !important;
}
.testimonial-box h4,
.testimonial-box p {
  text-align: left !important;
}

/* Explainer boxes - stacked content boxes */
.explainer-box {
  background: var(--sv-sand);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 26, 41, 0.1);
  text-align: left !important;
}
.explainer-box h3 {
  font-size: var(--text-xl);
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--sv-navy);
  text-align: left !important;
}
.explainer-box p {
  color: var(--sv-slate);
  margin-bottom: 1rem;
  text-align: left !important;
}
.explainer-box p:last-child {
  margin-bottom: 0;
}
.explainer-box p.highlight {
  color: var(--sv-navy);
}
.explainer-box p.quote {
  font-style: italic;
}

[data-theme="dark"] .explainer-box {
  border-color: rgba(232, 221, 208, 0.15);
}
[data-theme="dark"] .explainer-box h3 {
  color: #E8DDD0;
}
[data-theme="dark"] .explainer-box p {
  color: #cbd5e1;
}
[data-theme="dark"] .explainer-box p.highlight {
  color: #E8DDD0;
}

/* Naming note callout - left aligned */
.naming-note {
  text-align: left !important;
}
.naming-note p {
  text-align: left !important;
}

div[style*="background: var(--sv-sand)"] h3[style*="font-size: var(--text-xl)"] {
  font-size: var(--text-xl) !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  text-align: center !important;
}

div[style*="background: var(--sv-sand)"]:not(.naming-note):not(.testimonial-box) p,
div[style*="background: #f9f9f9"] p {
  font-size: var(--text-base) !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

div[style*="background: var(--sv-sand)"] p[style*="font-weight: 600"] {
  font-size: var(--text-lg) !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* "What You'll Receive" section */
div[style*="background: #f9f9f9"] {
  padding: 2rem !important;
  margin-top: 3rem !important;
}

div[style*="background: #f9f9f9"] h3[style*="font-size: var(--text-xl)"] {
  font-size: var(--text-xl) !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
}

/* Quotes in sand-colored boxes */
div[style*="background: var(--sv-sand)"] em {
  font-family: var(--font-sans) !important;
  font-size: var(--text-base) !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Inline em tags (for book titles, emphasis within text) - keep normal */
em {
  font-style: italic;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}

/* Only standalone paragraph quotes should be sans-serif, not italic */
p > em:only-child,
div > em:only-child,
.quote-block em,
blockquote em {
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-weight: 400;
  color: var(--sv-navy) !important;
  font-size: var(--text-base) !important;
  line-height: 1.7 !important;
}

/* Text-center divs with standalone quotes */
.text-center > em:only-child,
div.text-center > em:only-child {
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-size: var(--text-base) !important;
  color: var(--sv-navy) !important;
}

/* Quotes in sand boxes should be navy colored for contrast */
div[style*="background: var(--sv-sand)"] em {
  color: var(--sv-navy) !important;
}

/* Navy section standalone quotes - must override global em styles */
.bg-navy p > em:only-child,
.bg-navy div > em:only-child,
.section-navy p > em:only-child,
.section-navy div > em:only-child,
.cta-card p > em:only-child {
  color: var(--sv-gold-light) !important;
  font-size: var(--text-base) !important;
  font-family: var(--font-sans) !important;
  font-style: normal !important;
}

/* "What People Seek Clarity On" - center the intro text */
#questions p.text-center {
  font-size: var(--text-lg) !important;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* "Work with Ritesh" - center and improve */
.section-spacing h2.text-center + p.text-center {
  font-size: var(--text-lg) !important;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Timing section - tighten spacing and optimize colors */
.bg-navy .sv-container[style*="max-width: 700px"] {
  max-width: 850px !important;
}

.bg-navy .sv-container[style*="max-width: 700px"] h2,
.bg-navy .sv-container[style*="max-width: 700px"] .eyebrow,
.bg-navy .sv-container[style*="max-width: 700px"] .lead,
.bg-navy .sv-container[style*="max-width: 700px"] ul,
.bg-navy .sv-container[style*="max-width: 700px"] > p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.bg-navy .lead {
  margin-bottom: 1rem !important;
}

.bg-navy ul[style*="display: inline-block"] {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.bg-navy ul[style*="display: inline-block"] li {
  color: var(--sv-gold-light) !important;
}

.bg-navy ul[style*="display: inline-block"] + p {
  margin-top: 0.5rem !important;
}

.bg-navy ul[style*="display: inline-block"] + p strong {
  color: var(--sv-cream) !important;
  font-weight: 600;
}

/* "This Work Resonates" heading */
h2.text-center[style*="margin-bottom: 3rem"] {
  margin-bottom: 2.5rem !important;
}

/* "This is for you" and "This isn't for you" boxes */
.who-grid {
  align-items: stretch;
}

.who-col h3 {
  font-size: var(--text-xl) !important;
  margin-bottom: 0 !important;
}

.who-col ul {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

.who-col ul li {
  font-size: var(--text-base) !important;
  line-height: 1.7 !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.who-col ul li:first-child {
  margin-top: 0 !important;
}

.who-col ul li strong {
  font-weight: 600;
  margin-top: 0 !important;
  display: inline !important;
}

/* Fix the "Note" box padding */
.who-col p[style*="background: rgba(214,168,88,0.15)"] {
  padding: 0.5rem 1rem !important;
  margin-top: 0.5rem !important;
  font-size: var(--text-base) !important;
  line-height: 1.7 !important;
}

.who-col p[style*="background: rgba(214,168,88,0.15)"] strong {
  font-weight: 600;
  margin-top: 0 !important;
  display: inline !important;
}

/* Center the "Methodology" eyebrow in diff-grid section */
.diff-grid .eyebrow {
  text-align: center;
  display: block;
}

.diff-grid h2 {
  text-align: center;
}

/* Add spacing between heading and diff-grid content */
.sv-container > h2.text-center + .diff-grid {
  margin-top: 3rem;
}

/* Advanced Topics - Term Items (Collapsible Details) */
details.term-item {
  background: var(--sv-surface-white);
  border-bottom: 1px solid var(--sv-border);
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(10,26,47,0.03);
  position: relative;
}

details.term-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.01;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: var(--radius-sm);
}

details.term-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sv-navy);
  position: relative;
  z-index: 1;
  font-size: var(--text-lg);
  font-family: var(--font-serif);
  line-height: 1.4;
}

details.term-item summary::-webkit-details-marker {
  display: none;
}

details.term-item summary:hover {
  color: var(--sv-gold);
}

details.term-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sv-gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

details.term-item[open] summary::after {
  content: '−';
  transform: scale(1.1);
}

details.term-item[open] div {
  padding-bottom: 1rem;
  color: var(--sv-charcoal);
  position: relative;
  z-index: 1;
}

details.term-item div p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

details.term-item div p:last-child {
  margin-bottom: 0;
}

/* ===== MOBILE NAVIGATION ===== */

/* Header Top - contains branding and hamburger */
.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: transform 0.3s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle:hover {
  transform: translateY(-50%) scale(1.05);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--sv-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--sv-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation when open */
.mobile-menu-toggle.active {
  transform: translateY(-50%);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation - Reset mobile styles */
@media (min-width: 1151px) {
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    transition: none;
  }

  .header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    transition: none;
    width: 100%;
  }

  .header-branding {
    transition: none;
  }

  .brand-group {
    flex-direction: row;
    transition: none;
  }

  /* Nav is now outside header, so sticky works properly */
  .main-nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    background: #F5EFE4;
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sv-border);
    box-shadow: 0 2px 8px rgba(10,26,47,0.03);
    overflow-y: visible;
    transition: none;
  }

  [data-theme="dark"] .main-nav {
    background: #241A12;
    border-bottom-color: rgba(232, 221, 208, 0.15);
  }

  .main-nav ul {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }

  .main-nav li {
    width: auto;
    border-bottom: none;
  }

  .main-nav a {
    display: inline;
    padding: 0;
    padding-bottom: 4px;
    font-size: 1rem;
  }

  .main-nav::before {
    display: none;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 1150px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-container {
    display: block;
  }

  .header-branding {
    margin-bottom: 1rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--sv-surface-white);
    box-shadow: -4px 0 20px rgba(10, 26, 47, 0.15);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 5rem;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid var(--sv-border);
  }

  .main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background-color: rgba(214, 168, 88, 0.08);
    color: var(--sv-navy);
  }

  .main-nav a.active::after {
    display: none;
  }

  /* Overlay when menu is open */
  .main-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 26, 47, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
  }

  .main-nav.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* Prevent body scroll when mobile menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Dark mode mobile nav overrides */
  [data-theme="dark"] .main-nav a:hover,
  [data-theme="dark"] .main-nav a.active {
    background-color: transparent;
  }
}

/* Desktop - full horizontal navigation */
/* These styles are already defined in the main header section above */

/* ===== DARK MODE TOGGLE ===== */

.theme-toggle {
  background: rgba(250, 246, 239, 0.7);
  border: 2px solid var(--sv-border);
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  transition: background-color 0.2s ease;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sv-navy);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.theme-toggle:hover {
  background: var(--sv-cream);
}

.theme-toggle:focus {
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--sv-navy);
  outline-offset: 2px;
}

.theme-toggle:active {
  background: var(--sv-cream);
}

/* Icon visibility based on theme */
.theme-icon {
  flex-shrink: 0;
}

.theme-icon-light {
  display: block;
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: block;
}

/* Dark mode button style - keep consistent appearance */
[data-theme="dark"] .theme-toggle {
  color: #E8DDD0;
  background: var(--sv-surface-white);
  border-color: var(--sv-border);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--sv-cream);
  color: #E8DDD0;
}

/* Position theme toggle - inside nav container (sticks with nav) */
.theme-toggle-nav {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);  /* Vertically centered with nav items */
  z-index: 100;
}

/* Mobile - move to header area */
@media (max-width: 1150px) {
  .theme-toggle-nav {
    position: fixed;
    top: 1rem;
    right: 60px; /* Space for hamburger */
    transform: none;
    z-index: 1001;
    margin-left: 0;
  }
}

/* Legacy fallback for old header position */
.theme-toggle-header {
  position: absolute;
  right: 60px; /* Space for hamburger on mobile */
  top: 1rem;
  z-index: 100;
}

/* On desktop - positioned in top-right corner, fixed to stay visible when scrolling */
@media (min-width: 1151px) {
  .theme-toggle-header {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1001;
  }
}

/* ===== PREPARATION PAGE TABS ===== */

.prep-tabs-container {
  margin: 0;
}

.prep-tabs {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.prep-tab {
  background: var(--sv-surface-white);
  border: 2px solid var(--sv-border);
  padding: 1.5rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sv-slate);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(10, 26, 47, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
  flex: 1;
}

.prep-tab-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.prep-tab-text {
  display: block;
  line-height: 1.3;
}

.prep-tab:hover {
  color: var(--sv-navy);
  border-color: var(--sv-gold);
  background: var(--sv-cream);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(10, 26, 47, 0.1);
}

.prep-tab.active {
  color: var(--sv-navy);
  background: var(--sv-gold);
  border-color: var(--sv-gold);
  box-shadow: 0 6px 20px rgba(214, 168, 88, 0.35);
  transform: translateY(-2px);
}

.prep-tab:focus-visible {
  outline: 3px solid var(--sv-gold);
  outline-offset: 2px;
}

.prep-tab-content {
  animation: fadeIn 0.3s ease-in;
}

.prep-tab-content[hidden] {
  display: none;
}

.prep-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode Overrides for Tabs */
[data-theme="dark"] .prep-tab {
  background: var(--sv-surface-white);
  border-color: rgba(232, 221, 208, 0.15);
  color: #C5D1DC;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .prep-tab:hover {
  color: #E8DDD0;
  background: var(--sv-sand);
  border-color: var(--sv-gold);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .prep-tab.active {
  color: #1C1410;
  background: var(--sv-gold);
  border-color: var(--sv-gold);
  box-shadow: 0 4px 12px rgba(221, 183, 112, 0.4);
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
  .prep-tabs {
    flex-direction: column;
    gap: 1rem;
  }

  .prep-tab {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    min-width: auto;
  }

  .prep-tab-icon {
    font-size: 1.75rem;
  }

  .prep-tab.active {
    background: var(--sv-gold);
  }

  .prep-tab:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .prep-tab {
    font-size: 0.95rem;
    padding: 1.15rem 1.25rem;
  }

  .prep-tab-icon {
    font-size: 1.5rem;
  }
}

/* ========================================
   READABILITY ENHANCEMENTS - WCAG AAA
   ======================================== */

/* Improved color variables for better contrast */
:root {
  /* Enhanced text colors for WCAG AAA compliance */
  --sv-text-primary: #0A1A2F;        /* Navy - for headings (15:1 on cream) */
  --sv-text-body: #2C3E50;           /* Dark blue-grey - for body text (10.5:1 on cream) */
  --sv-text-secondary: #4A5F73;      /* Medium grey-blue - for secondary text (7.2:1 on cream) */
  --sv-text-muted: #5A6F85;          /* Muted grey-blue - for de-emphasized text (5.8:1 on cream - still AAA for large text) */
}

[data-theme="dark"] {
  /* Dark mode enhanced text colors for WCAG AAA compliance */
  --sv-text-primary: #E8DDD0;        /* Light warm cream - for headings (10.5:1 on dark brown) */
  --sv-text-body: #D4C9BD;           /* Softer warm - for body text (7.2:1) */
  --sv-text-secondary: #C8BDB1;      /* Muted warm - for secondary text (6.1:1) */
  --sv-text-muted: #B8ADA1;          /* More muted warm - for de-emphasized text (5.5:1) */
}

/* Fix inline color: var(--sv-navy) on headings in light sections in dark mode */
[data-theme="dark"] .bg-cream h3[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-cream h4[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-cream p[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-sand h3[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-sand h4[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-sand p[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-white h3[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-white h4[style*="color: var(--sv-navy)"],
[data-theme="dark"] .bg-white p[style*="color: var(--sv-navy)"] {
  color: #E8DDD0 !important;
}

/* Fix inline color: var(--sv-slate) in light sections in dark mode */
[data-theme="dark"] .bg-cream p[style*="color: var(--sv-slate)"],
[data-theme="dark"] .bg-cream li[style*="color: var(--sv-slate)"],
[data-theme="dark"] .bg-sand p[style*="color: var(--sv-slate)"],
[data-theme="dark"] .bg-sand li[style*="color: var(--sv-slate)"],
[data-theme="dark"] .bg-white p[style*="color: var(--sv-slate)"],
[data-theme="dark"] .bg-white li[style*="color: var(--sv-slate)"] {
  color: #D4C9BD !important;
}

/* Fix boxes with inline background: var(--sv-sand) in dark mode (e.g., "2-3 Days of Study" boxes) */
/* First set all p tags in sand boxes to a default */
[data-theme="dark"] div[style*="background: var(--sv-sand)"] p {
  color: #D4C9BD !important;
}

/* Then override with more specific colors */
[data-theme="dark"] div[style*="background: var(--sv-sand)"] p[style*="font-weight: 600"],
[data-theme="dark"] div[style*="background: var(--sv-sand)"] p[style*="color: var(--sv-navy)"] {
  color: #E8DDD0 !important;
}

[data-theme="dark"] div[style*="background: var(--sv-sand)"] p[style*="color: var(--sv-slate)"] {
  color: #B8ADA1 !important;
}

/* Fix table in "Which Reading Is For Me?" section */
/* The problem: --sv-navy is used for BOTH thead background AND td text color */
/* In dark mode, --sv-navy becomes light (#E8DDD0), causing light header bg and dark cell text */
/* We need to override to make header dark and text light */

[data-theme="dark"] .bg-sand table[style*="background: var(--sv-cream)"] {
  background: #1F1710 !important; /* Dark brown table background */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important; /* Darker shadow */
}

/* Force header row and cells to be dark brown */
[data-theme="dark"] .bg-sand table thead,
[data-theme="dark"] .bg-sand table thead[style*="background: var(--sv-navy)"],
[data-theme="dark"] .bg-sand table tr[style*="background: var(--sv-navy)"] {
  background: #2D2318 !important; /* Warm dark brown header */
}

[data-theme="dark"] .bg-sand table th,
[data-theme="dark"] .bg-sand table th[style*="background: var(--sv-navy)"] {
  background: #2D2318 !important; /* Warm dark brown header cells */
}

[data-theme="dark"] .bg-sand table th[style*="color: var(--sv-cream)"] {
  color: #E8DDD0 !important; /* Light cream for header text */
}

/* Force cell text to be light on dark background */
/* Target ALL elements in table cells, with and without inline styles */
[data-theme="dark"] .bg-sand table tbody td {
  color: #E8DDD0 !important; /* Light cream for all cell content */
}

[data-theme="dark"] .bg-sand table tbody td[style*="color"] {
  color: #E8DDD0 !important; /* Override any inline color */
}

[data-theme="dark"] .bg-sand table tbody strong {
  color: #E8DDD0 !important; /* Light cream for bold text */
}

[data-theme="dark"] .bg-sand table tbody p {
  color: #C8BDB1 !important; /* Muted for paragraphs (descriptions) */
}

[data-theme="dark"] .bg-sand table tbody a {
  color: #DDB770 !important; /* Gold links */
}

[data-theme="dark"] .bg-sand table tr[style*="border-bottom"] {
  border-bottom-color: rgba(232, 221, 208, 0.15) !important; /* Subtle borders */
}

/* About Ritesh subheading - ensuring readability */
.about-ritesh-subheading {
  font-size: 0.95rem;
  color: var(--sv-text-secondary);
  font-weight: 500;
}

[data-theme="dark"] .about-ritesh-subheading {
  color: var(--sv-text-secondary);
}

/* Improve body text color for better readability */
.sv-wrapper {
  color: var(--sv-text-body);
}

/* Ensure all paragraph text meets AAA standards */
.sv-wrapper p {
  color: var(--sv-text-body);
}

/* Secondary/supporting text that can be slightly lighter but still accessible */
.sv-wrapper .supporting-text,
.sv-wrapper .meta-text {
  color: var(--sv-text-secondary);
  font-size: 0.9rem;
}

/* Service card supporting text */
.service-card p[style*="font-size: 0.85rem"] {
  color: var(--sv-text-secondary) !important;
}

[data-theme="dark"] .service-card p[style*="font-size: 0.85rem"] {
  color: var(--sv-text-secondary) !important;
}

/* Testimonial text - ensure italic text is still readable */
[style*="font-style: italic"] {
  color: var(--sv-text-body) !important;
}

[data-theme="dark"] [style*="font-style: italic"] {
  color: var(--sv-text-body) !important;
}

/* Remove problematic opacity from text elements */
/* These override inline styles that reduce readability */
p[style*="opacity"] {
  opacity: 1 !important;
  color: var(--sv-text-secondary) !important;
}

[data-theme="dark"] p[style*="opacity"] {
  opacity: 1 !important;
  color: var(--sv-text-secondary) !important;
}

/* Navy background sections - ensure text has proper contrast */
.bg-navy p,
.bg-navy li,
.bg-navy em {
  color: #E8DDD0 !important;  /* 10.5:1 contrast - comfortable for reading */
}

[data-theme="dark"] .bg-navy p,
[data-theme="dark"] .bg-navy li,
[data-theme="dark"] .bg-navy em {
  color: #E8DDD0 !important;
}

/* Footer text readability */
.site-footer p,
.site-footer li {
  color: #D4C9BD !important;  /* Comfortable readability on dark background - 7.2:1 */
  opacity: 1 !important;
}

/* Small text needs higher contrast to remain readable */
[style*="font-size: 0.85rem"],
[style*="font-size: 0.9rem"],
[style*="font-size: 0.95rem"] {
  color: var(--sv-text-secondary) !important;
}

[data-theme="dark"] [style*="font-size: 0.85rem"],
[data-theme="dark"] [style*="font-size: 0.9rem"],
[data-theme="dark"] [style*="font-size: 0.95rem"] {
  color: var(--sv-text-secondary) !important;
}

/* Lead text (larger intro paragraphs) */
.lead {
  color: var(--sv-text-body);
  font-size: var(--text-lg);
  line-height: 1.7;
}

[data-theme="dark"] .lead {
  color: var(--sv-text-body);
}

/* Strong text maintains proper contrast */
.sv-wrapper strong {
  color: var(--sv-text-primary);
  font-weight: 600;
}

[data-theme="dark"] .sv-wrapper strong {
  color: var(--sv-text-primary);
}

/* Hero body text */
.hero-body {
  color: var(--sv-cream);  /* Match hero text for better readability */
  line-height: 1.8;
}

[data-theme="dark"] .hero-body {
  color: #D4C9BD;  /* Comfortable readability in dark mode - 7.2:1 */
}

/* Hero meta text */
.hero-meta-text {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .hero-meta-text {
  color: #E8DDD0 !important;
}

/* Hero headings always readable */
.hero h1 {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .hero h1 {
  color: #E8DDD0 !important;
}

/* Hero lead text */
.hero .lead {
  color: var(--sv-cream) !important;
}

[data-theme="dark"] .hero .lead {
  color: #D4C9BD !important;  /* Softer in dark mode for comfort */
}

/* Remove opacity from who-col section */
.who-col {
  opacity: 1 !important;
}

.who-col p,
.who-col li {
  color: #D4C9BD !important;
}

/* Ensure FAQ text is readable */
.faq-item p {
  color: var(--sv-text-body);
}

[data-theme="dark"] .faq-item p {
  color: var(--sv-text-body);
}

/* CTA card text on dark background */
.cta-card p {
  color: #D4C9BD !important;
}

.cta-card h2 {
  color: #E8DDD0 !important;
}

/* Image captions and metadata text */
img + p[style*="font-style: italic"],
[style*="font-size: var(--text-sm)"][style*="font-style: italic"] {
  color: var(--sv-text-secondary) !important;
}

[data-theme="dark"] img + p[style*="font-style: italic"],
[data-theme="dark"] [style*="font-size: var(--text-sm)"][style*="font-style: italic"] {
  color: var(--sv-text-secondary) !important;
}

/* Links maintain proper color and contrast (but not buttons) */
.sv-wrapper a:not(.sv-btn):not(.sv-btn-primary):not(.sv-btn-secondary):not(.sv-btn-outline) {
  color: var(--sv-navy);
}

[data-theme="dark"] .sv-wrapper a:not(.sv-btn):not(.sv-btn-primary):not(.sv-btn-secondary):not(.sv-btn-outline) {
  color: var(--sv-gold);
}

/* Ensure colored text on colored backgrounds maintains contrast */
[style*="color: var(--sv-navy)"][style*="opacity"] {
  opacity: 1 !important;
  color: var(--sv-text-body) !important;
}

[data-theme="dark"] [style*="color: var(--sv-navy)"][style*="opacity"] {
  opacity: 1 !important;
  color: var(--sv-text-body) !important;
}

/* Footer text and links - ensure high contrast on dark background */
.site-footer a,
.footer-col a,
.footer-meta a,
.footer-legal-links a {
  opacity: 1 !important;
  color: #C5D1DC !important;  /* Light blue-grey - 7.8:1 contrast on dark footer */
}

.site-footer a:hover,
.footer-col a:hover,
.footer-meta a:hover,
.footer-legal-links a:hover {
  color: #E5C175 !important;  /* Bright gold on hover */
}

.footer-meta,
.footer-meta small,
.footer-copyright {
  color: #C5D1DC !important;
}

/* Card text within colored sections */
.card p {
  color: var(--sv-text-body);
}

[data-theme="dark"] .card p {
  color: var(--sv-text-body);
}

/* Ensure all small text has sufficient weight and contrast */
small {
  color: var(--sv-text-secondary);
}

[data-theme="dark"] small {
  color: var(--sv-text-secondary);
}

/* List items maintain readability */
.sv-wrapper li {
  color: var(--sv-text-body);
}

[data-theme="dark"] .sv-wrapper li {
  color: var(--sv-text-body);
}

/* ========================================
   BUTTON READABILITY OVERRIDES
   ======================================== */

/* Ensure primary buttons always have dark text on gold background */
/* Maximum specificity to override any other rules */
a.sv-btn.sv-btn-primary,
a.sv-btn-primary,
.sv-btn.sv-btn-primary,
.sv-btn-primary,
.sv-btn-primary:link,
.sv-btn-primary:visited,
.sv-btn-primary:hover,
.sv-btn-primary:active,
.sv-btn-primary:focus {
  color: #0A1A2F !important;  /* Dark navy on gold - 8.5:1 ratio */
  font-weight: 600 !important;
}

[data-theme="dark"] a.sv-btn.sv-btn-primary,
[data-theme="dark"] a.sv-btn-primary,
[data-theme="dark"] .sv-btn.sv-btn-primary,
[data-theme="dark"] .sv-btn-primary,
[data-theme="dark"] .sv-btn-primary:link,
[data-theme="dark"] .sv-btn-primary:visited,
[data-theme="dark"] .sv-btn-primary:hover,
[data-theme="dark"] .sv-btn-primary:active,
[data-theme="dark"] .sv-btn-primary:focus {
  color: #0A1A2F !important;  /* Dark navy on gold - 8.5:1 ratio */
  font-weight: 600 !important;
}

/* Secondary buttons maintain good contrast */
[data-theme="dark"] .sv-btn-secondary {
  color: #E8DDD0 !important;  /* Light text on dark background */
}

/* Outline buttons */
[data-theme="dark"] .sv-btn-outline {
  color: #E8DDD0 !important;
  border-color: #E8DDD0 !important;
}

[data-theme="dark"] .sv-btn-outline:hover {
  background-color: #E8DDD0 !important;
  color: #1C1410 !important;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Hide content on mobile, show on desktop */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }

  .show-mobile {
    display: block;
  }
}

/* Dark mode styles for mobile reading cards */
[data-theme="dark"] .show-mobile div[style*="background: #EBE3D5"] {
  background: #1F1710 !important;
}

[data-theme="dark"] .show-mobile div[style*="background: var(--sv-navy)"] {
  background: #2D2318 !important;
}

[data-theme="dark"] .show-mobile strong[style*="color: var(--sv-navy)"] {
  color: #E8DDD0 !important;
}

[data-theme="dark"] .show-mobile span[style*="color: var(--sv-navy)"] {
  color: #E8DDD0 !important;
}

/* ============================================================================
   STANDARDIZED UTILITY CLASSES
   Added to reduce inline styles and ensure consistency across pages
   ============================================================================ */

/* Gold Subtle Background - for highlighted info boxes */
/* Use this instead of inline rgba(214, 168, 88, 0.08) */
.bg-gold-subtle {
  background: rgba(214, 168, 88, 0.08);
}

/* Feature Box - for highlighted content areas (FAQ quick answers, contact info, etc.) */
.feature-box {
  background: var(--sv-cream);
  border: 2px solid var(--sv-gold);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 12px rgba(10, 26, 47, 0.06);
}

.feature-box h3,
.feature-box h4 {
  margin-top: 0;
  color: var(--sv-navy);
}

/* Feature Box on dark backgrounds */
.bg-navy .feature-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--sv-gold);
}

/* Callout Box - for tips, notes, and secondary highlights */
.callout-box {
  background: var(--sv-sand);
  border-left: 4px solid var(--sv-gold);
  border-radius: var(--radius-sm);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.callout-box h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--sv-navy);
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Step Circle - for numbered process steps */
.step-circle {
  background: var(--sv-gold);
  color: var(--sv-navy);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

/* Step Number - smaller inline version for card layouts */
.step-number {
  background: var(--sv-gold);
  color: #0F1A29;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Step Circle/Number - Dark Mode */
[data-theme="dark"] .step-circle,
[data-theme="dark"] .step-number {
  background: var(--sv-gold);
  color: #120D08;
}

@media (max-width: 480px) {
  .step-circle {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* Text utilities for consistent opacity/muted text */
.text-muted {
  opacity: 0.8;
}

.text-muted-light {
  opacity: 0.75;
}

/* Image utilities */
.img-rounded {
  border-radius: var(--radius-md);
}

.img-rounded-sm {
  border-radius: var(--radius-sm);
}

/* Flex card - ensures cards stretch to fill grid height with bottom-aligned CTAs */
.card-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-flex .card-content {
  flex-grow: 1;
}

.card-flex .card-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Duration/meta labels */
.meta-label {
  color: var(--sv-gold);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

/* Timeline blocks for step-by-step content */
.timeline-block {
  background: var(--sv-cream);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--sv-gold);
}

.timeline-block h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--sv-navy);
}

/* Example blocks for good/bad examples */
.example-block {
  background: var(--sv-cream);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.example-block p {
  margin: 0;
}

.example-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Checklist box - for action items */
.checklist-box {
  background: var(--sv-surface-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.checklist-box h4 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--sv-navy);
}

/* Dark mode for new utility classes */
[data-theme="dark"] .feature-box {
  background: rgba(35, 28, 20, 0.8);
  border-color: var(--sv-gold);
}

[data-theme="dark"] .callout-box {
  background: rgba(35, 28, 20, 0.6);
}

[data-theme="dark"] .timeline-block {
  background: rgba(35, 28, 20, 0.6);
}

[data-theme="dark"] .example-block {
  background: rgba(35, 28, 20, 0.6);
}

[data-theme="dark"] .checklist-box {
  background: rgba(35, 28, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   MOBILE RESPONSIVENESS FIXES - January 2026 Audit
   Consolidated fixes for issues identified across multiple audits
   ============================================================================ */

/* -----------------------------------------------------------------------------
   FIX #1: Prevent horizontal overflow on mobile (HIGH)
   Re-enable overflow-x hidden specifically for mobile to prevent drift
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
}

/* -----------------------------------------------------------------------------
   FIX #2: Hero image responsive sizing (HIGH)
   Original had fixed 450px width that broke on small screens
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .hero-visual img {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    max-height: none !important;
  }
}

@media (max-width: 400px) {
  .hero-visual img {
    max-width: 220px !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #3: Package grid single column on small screens (HIGH)
   minmax(300px, 1fr) exceeds 320px screen width
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .package-grid {
    grid-template-columns: 1fr !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #4: Force single column for inline grids on small screens (HIGH)
   Inline styles with minmax(220-250px) can overflow on 320px screens
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  [style*="repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  [style*="minmax(2"][style*="1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #5: iOS input zoom prevention (MEDIUM)
   Font sizes below 16px cause iOS to zoom on focus
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #6: Theme toggle position - prevent overlap with hamburger (MEDIUM)

   Layout analysis:
   - Hamburger is position:absolute right:0 inside .header-top
   - .header-container has padding: 0 1rem (16px) on mobile
   - So hamburger is 16px from viewport edge
   - Hamburger is now 44px wide (touch target fix)
   - Theme toggle is position:fixed from viewport edge

   To prevent overlap:
   - Theme toggle right = 16px (container padding) + 44px (hamburger) + 12px (gap) = 72px
   ----------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .theme-toggle-nav {
    right: 72px !important;
  }

  .theme-toggle-header {
    right: 72px !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #7: Footer link touch targets (MEDIUM)
   Links were too close together for comfortable tapping
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .footer-col li {
    margin-bottom: 0.875rem;
  }

  .footer-col a {
    display: inline-block;
    padding: 0.35rem 0;
    min-height: 44px;
    line-height: 1.6;
  }
}

/* -----------------------------------------------------------------------------
   FIX #8: Extend table responsiveness to tablet (MEDIUM)
   Tables were cramped between 481-768px
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  table {
    font-size: 1rem; /* 16px - iOS minimum to prevent zoom */
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table th,
  table td {
    padding: 0.625rem 0.75rem !important;
    white-space: normal !important; /* Allow text wrapping */
  }

  /* Ensure table container allows horizontal scroll */
  .table-wrapper,
  div:has(> table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Improve table text readability on small phones */
@media (max-width: 480px) {
  table {
    font-size: 1rem; /* 16px - iOS minimum to prevent zoom */
  }

  table th,
  table td {
    padding: 0.5rem !important;
  }

  table td p {
    font-size: 0.9375rem; /* 15px for descriptions - near iOS threshold */
    line-height: 1.5;
  }

  table td strong {
    font-size: 1rem; /* 16px - match table base */
  }
}

/* -----------------------------------------------------------------------------
   FIX #9: Safe area insets for CTA ribbon (LOW)
   Prevents overlap with home indicator on notched iPhones
   ----------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-cta-ribbon {
    padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
  }
}

/* -----------------------------------------------------------------------------
   FIX #10: Touch target improvements (LOW)
   Ensure hamburger and theme toggle meet 44x44px minimum
   ----------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }
}

/* -----------------------------------------------------------------------------
   FIX #11: Small font size improvements (LOW)
   Increase readability of small text elements
   iOS requires 16px minimum to prevent auto-zoom on focus
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .service-label {
    font-size: 0.875rem; /* 14px - acceptable for labels, uppercase helps readability */
    padding: 0.5rem 1rem; /* Increased padding for better touch target */
    min-height: 32px; /* Ensure reasonable touch area */
  }

  .footer-copyright,
  .footer-meta,
  .footer-meta small {
    font-size: 1rem; /* 16px - iOS safe */
  }
}

/* -----------------------------------------------------------------------------
   FIX #12: CTA card padding reduction (LOW)
   Reduce padding on very small screens to prevent text cramping
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .cta-card {
    padding: 2rem 1.5rem !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #13: Category links touch targets (LOW)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .category-nav a,
  .category-links a {
    padding: 0.625rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* -----------------------------------------------------------------------------
   FIX #14: Dark mode mobile card contrast (MEDIUM)
   Ensure cards have proper contrast in dark mode on mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  [data-theme="dark"] .card,
  [data-theme="dark"] .service-card,
  [data-theme="dark"] .reading-card,
  [data-theme="dark"] .package-card {
    background: #1F1710 !important;
    border-color: rgba(232, 221, 208, 0.15) !important;
  }

  [data-theme="dark"] .card p,
  [data-theme="dark"] .service-card p,
  [data-theme="dark"] .reading-card p,
  [data-theme="dark"] .package-card p {
    color: #D4C9BD !important;
  }

  [data-theme="dark"] .card h3,
  [data-theme="dark"] .card h4,
  [data-theme="dark"] .service-card h3,
  [data-theme="dark"] .reading-card h3,
  [data-theme="dark"] .package-card h3 {
    color: #E8DDD0 !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #15: Testimonial layout on very small screens
   Stack testimonial image and text vertically
   ----------------------------------------------------------------------------- */
@media (max-width: 400px) {
  div[style*="display: flex"][style*="gap: 1.5rem"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  div[style*="display: flex"][style*="gap: 1.5rem"] > div {
    text-align: center !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #16: Inline 2-column grids to single column on mobile
   Inline styles like grid-template-columns: 1fr 1fr don't collapse
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Also handle gap: 4rem which is too large on mobile */
  [style*="gap: 4rem"] {
    gap: 2rem !important;
  }

  [style*="gap: 3rem"] {
    gap: 1.5rem !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #17: Inline min-width causing overflow on small screens
   min-width: 250px exceeds content width on 320px viewports
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  [style*="min-width: 250px"] {
    min-width: 100% !important;
  }

  [style*="min-width: 200px"] {
    min-width: 100% !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #18: Reduce inline padding on mobile
   Inline padding: 3rem is too large on small screens
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  [style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }

  [style*="padding: 4rem"] {
    padding: 2rem !important;
  }

  /* Booking placeholder box */
  [style*="min-height: 500px"] {
    min-height: 350px !important;
  }
}

/* -----------------------------------------------------------------------------
   FIX #19: Ensure max-width constraints work on mobile
   Large max-width values like 800px, 900px, 1000px should be 100% on mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  [style*="max-width: 800px"],
  [style*="max-width: 900px"],
  [style*="max-width: 1000px"] {
    max-width: 100% !important;
  }
}

/* -----------------------------------------------------------------------------
   END OF MOBILE RESPONSIVENESS FIXES
   ----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   PROCESS STEPS - 2x2 grid that stacks on mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* -----------------------------------------------------------------------------
   TESTIMONIALS - Consistent styling across all screen sizes
   ----------------------------------------------------------------------------- */
#testimonials .card {
  background: var(--sv-sand) !important;
}

@media (max-width: 600px) {
  #testimonials .card {
    padding: 1.75rem !important;
    font-size: 1.05rem;
  }

  #testimonials .card p {
    line-height: 1.7;
  }
}

/* -----------------------------------------------------------------------------
   FOOTER - More compact on mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .site-footer {
    padding: 2.5rem 0 1.5rem !important;
  }

  .footer-grid {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .footer-col h4 {
    margin-bottom: 0.5rem !important;
    font-size: 0.85rem !important;
  }

  .footer-col ul {
    margin-bottom: 0 !important;
  }

  .footer-col li {
    margin-bottom: 0.25rem !important;
  }
}

/* -----------------------------------------------------------------------------
   FAQ - Keep text size consistent at all screen sizes
   Override the generic "details summary { font-size: 1rem }" rule at 1023px
   ----------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  details.faq-item summary,
  .faq-category details summary {
    font-size: var(--text-lg) !important;
    padding: 1rem 0 !important;
  }

  details.faq-item div p,
  .faq-category details div p {
    font-size: var(--text-base) !important;
  }
}

/* -----------------------------------------------------------------------------
   Responsive line breaks - show on desktop, hide on mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  br.desktop-only {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   Hero text - consistent width and sizing for h1, .lead, and .hero-body
   ----------------------------------------------------------------------------- */
.hero .lead,
.hero p.lead {
  font-size: var(--text-lg) !important;
}

.hero-body {
  font-size: var(--text-base) !important;
  max-width: 500px;
}

/* On tablet/mobile (single column), center the constrained text */
@media (max-width: 1099px) {
  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .hero-body {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

