/* ========================================
   Modern Design System - AlterBase Inspired
   ======================================== */

/* ========== CSS Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== Design Tokens ========== */
:root {
  /* Colors - Deep Forest Dark Mode */
  --color-bg: #0f1e19;
  --color-bg-elevated: #1a2e26;
  --color-bg-subtle: #253d33;

  /* Forest Green Palette */
  --color-forest-darkest: #0a1510;
  --color-forest-dark: #1a3a2e;
  --color-forest: #3e7461;
  --color-forest-light: #5a9178;
  --color-forest-lightest: #8fbc9f;

  /* Text Colors - Light on Dark */
  --color-text-primary: #e8f4ed;
  --color-text-secondary: #c4d9d0;
  --color-text-tertiary: #9db8a8;

  /* Accent Colors - Warm Earth Tones */
  --color-accent: #d9a388;
  --color-accent-hover: #e6b89d;
  --color-accent-light: #f0cdb8;

  /* Golden Brown Highlight */
  --color-gold: #c9a668;
  --color-gold-bright: #e0bc7a;
  --color-gold-dim: #b89854;

  /* Borders */
  --color-border: #2d4a3d;
  --color-border-hover: #3e5f4f;

  /* Semantic Colors */
  --color-success: #5a9178;
  --color-warning: #d4a373;
  --color-error: #d9a388;
  --color-info: #8fbc9f;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Crimson Pro', 'Georgia', serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  --font-size-7xl: 4.5rem;    /* 72px */

  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: var(--space-4);
  --border-radius-sm: 0.375rem;  /* 6px */
  --border-radius-md: 0.5rem;    /* 8px */
  --border-radius-lg: 0.75rem;   /* 12px */
  --border-radius-xl: 1rem;      /* 16px */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

  /* Transitions - deliberate, not rushed */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-contemplative: 800ms ease;
}

/* ========== Base Styles ========== */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
}

/* Emphasis and italic accent styles */
em, i, .emphasis {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-gold);
}

strong em, em strong {
  font-family: var(--font-accent);
  font-weight: 600;
  font-style: italic;
  color: var(--color-gold-bright);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

a {
  color: var(--color-forest-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-forest-lightest);
}

/* Modern underline for content links */
.content-body a,
.card p a,
article a:not(.cta-button):not(.card-link) {
  text-decoration: underline;
  text-decoration-color: var(--color-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.content-body a:hover,
.card p a:hover,
article a:not(.cta-button):not(.card-link):hover {
  text-decoration-color: var(--color-forest-lightest);
}

/* Focus-visible styling for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--border-radius-sm);
}

/* Remove default focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-gold);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ========== Images ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth fade-in for lazy-loaded images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* ========== Layout Utilities ========== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    --container-padding: var(--space-8);
  }
}

/* ========== Header & Navigation ========== */
.site-header {
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(15, 30, 25, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-logo:hover {
  color: var(--color-forest-lightest);
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

.logo-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  .logo-image {
    width: 36px;
    height: 36px;
  }
}

.main-nav {
  display: none;
  gap: var(--space-6);
}

.main-nav a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* ========== Buttons ========== */
.cta-button,
.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-gold);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.cta-button:hover,
.footer-button:hover {
  background: var(--color-gold-bright);
  color: var(--color-bg);
}

.cta-button:active,
.footer-button:active {
  background: var(--color-gold-dim);
}

.button-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.button-secondary:hover {
  border-color: var(--color-text-tertiary);
  background: transparent;
}

/* ========== Main Content Area ========== */
main {
  min-height: calc(100vh - 200px);
  padding: var(--space-12) 0;
}

/* ========== Hero Section ========== */
.hero {
  padding: var(--space-16) 0 var(--space-20) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

/* Hero with background image */
.hero--with-image {
  position: relative;
  padding: 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 30, 25, 0.4) 0%,
    rgba(15, 30, 25, 0.7) 50%,
    rgba(15, 30, 25, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-20) 0;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-accent);
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-6);
  line-height: 1.15;
  color: var(--color-text-primary);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

.hero p {
  font-family: var(--font-accent);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
}

@media (min-width: 768px) {
  .hero--with-image {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: var(--font-size-5xl);
  }

  .hero p {
    font-size: var(--font-size-xl);
  }
}

@media (min-width: 1024px) {
  .hero--with-image {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: var(--font-size-6xl);
  }
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-12) 0;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Cards ========== */
.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

/* Card with image */
.card--with-image {
  padding: 0;
  overflow: hidden;
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--with-image:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

a.card,
a .card {
  transition: border-color var(--transition-fast);
}

a.card:hover,
a:hover .card {
  border-color: var(--color-gold-dim);
}

.card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  flex-grow: 1;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.card-link {
  color: var(--color-gold);
  font-size: var(--font-size-sm);
  margin-top: auto;
}

a.card:hover .card-link,
a:hover .card-link {
  color: var(--color-gold-bright);
}

/* ========== Home Page Sections ========== */
/* Ma (間) - The conscious use of space. Not emptiness as absence, but presence. */
.home-section {
  margin: var(--space-20) 0;
}

.home-section--narrow {
  max-width: 650px;
}

.home-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.home-section p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Crisis section on homepage */
.crisis-section {
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
}

.crisis-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.crisis-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.crisis-contact strong {
  color: var(--color-text-primary);
}

.crisis-contact span {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

@media (min-width: 640px) {
  .crisis-contacts {
    flex-direction: row;
    gap: var(--space-8);
  }

  .crisis-contact {
    flex: 1;
  }
}

/* ========== Content Pages ========== */

/* Content hero image */
.content-hero {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.content-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .content-hero {
    max-height: 340px;
  }

  .content-hero img {
    height: 340px;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb-sep {
  margin: 0 var(--space-2);
  opacity: 0.5;
}

.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--container-padding);
}

.content-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.content-header h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

.content-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

.content-body {
  font-size: var(--font-size-lg);
  line-height: 1.9;
}

.content-body h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.content-body h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.content-body ul,
.content-body ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.content-body li {
  margin-bottom: var(--space-2);
}

.content-body blockquote {
  border-left: 3px solid var(--color-gold-dim);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

.content-body blockquote p {
  margin-bottom: 0;
}

.content-body code {
  background: var(--color-bg);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius-sm);
  font-size: 0.9em;
  font-family: 'Monaco', 'Courier New', monospace;
}

.content-body pre {
  background: var(--color-bg);
  padding: var(--space-4);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.content-body pre code {
  background: none;
  padding: 0;
}

/* ========== Legal/Policy Pages ========== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6) var(--container-padding);
}

.legal-page .page-header {
  text-align: center;
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.legal-page .page-header h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.legal-page .subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.legal-page .last-updated {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

.legal-page .legal-content {
  line-height: 1.7;
}

.legal-page .legal-content p {
  margin-bottom: var(--space-4);
}

.legal-page .legal-content h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.legal-page .legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-page .legal-content h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
}

.legal-page .legal-content h4 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.legal-page .legal-content ul {
  margin: var(--space-3) 0 var(--space-4);
  padding-left: var(--space-6);
}

.legal-page .legal-content li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.legal-page .legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page .legal-content a:hover {
  color: var(--color-accent-hover);
}

/* Alert boxes for legal pages */
.legal-page .alert-box {
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid var(--color-warning);
  border-radius: var(--border-radius-md);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.legal-page .alert-box h2,
.legal-page .alert-box h3 {
  margin: 0 0 var(--space-2);
  padding: 0;
  border: none;
  color: var(--color-warning);
  font-size: var(--font-size-lg);
}

.legal-page .alert-box p {
  margin-bottom: 0;
}

.legal-page .alert-box ul {
  margin-bottom: 0;
}

/* Info variant for alert boxes (green/forest) */
.legal-page .alert-box--info {
  background: rgba(94, 145, 120, 0.12);
  border-color: var(--color-forest);
}

.legal-page .alert-box--info h2,
.legal-page .alert-box--info h3 {
  color: var(--color-forest);
}

.legal-page .note-box {
  background: rgba(94, 145, 120, 0.12);
  border: 1px solid var(--color-forest);
  border-radius: var(--border-radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
}

.legal-page .note-box p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .legal-page {
    padding: var(--space-4) var(--container-padding);
  }

  .legal-page .page-header h1 {
    font-size: var(--font-size-2xl);
  }

  .legal-page .legal-content h2 {
    font-size: var(--font-size-lg);
  }
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-about h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

.footer-about p {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

.footer-links h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-cta h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.footer-cta p {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-button {
  width: 100%;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}

.footer-bottom .disclaimer {
  font-size: var(--font-size-xs);
}

/* ========== Warning/Alert Boxes ========== */
.alert {
  padding: var(--space-4);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-6);
  border-left: 4px solid;
  background: var(--color-bg-elevated);
}

.alert-warning {
  border-color: var(--color-warning);
  background: rgba(212, 163, 115, 0.1);
}

.alert-error {
  border-color: var(--color-error);
  background: rgba(217, 163, 136, 0.1);
}

.alert-info {
  border-color: var(--color-info);
  background: rgba(90, 145, 120, 0.1);
}

.alert-success {
  border-color: var(--color-success);
  background: rgba(90, 145, 120, 0.1);
}

/* ========== Mobile Navigation ========== */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--color-bg-subtle);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle span:nth-child(1) {
  margin-bottom: 6px;
}

.mobile-menu-toggle span:nth-child(3) {
  margin-top: 6px;
}

/* Animated hamburger to X */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 30, 25, 0.98);
  backdrop-filter: blur(10px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: var(--font-size-2xl);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: var(--space-2) var(--space-4);
}

.mobile-nav a:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

.mobile-nav .cta-button {
  display: inline-flex;
  margin-top: var(--space-4);
}

/* ========== Responsive Design ========== */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }

  .cta-button:not(.mobile-nav .cta-button) {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: var(--space-12) 0;
  }

  .content-page {
    padding: var(--space-6) var(--container-padding);
  }

  /* Better touch targets */
  .footer-links a {
    padding: var(--space-2) 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}
