/* ============================================================
   BrunchChef.com — Design System & Global Styles
   A refined, design-forward culinary platform
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Color Palette — warm, inviting, refined */
  --color-cream:        #FFF8F0;
  --color-warm-white:   #FFFDF9;
  --color-champagne:    #F7E7CE;
  --color-gold:         #C8A951;
  --color-gold-dark:    #A68A3E;
  --color-terracotta:   #C97D60;
  --color-terracotta-dark: #A8624A;
  --color-sage:         #8FAE8B;
  --color-sage-dark:    #6E8D6A;
  --color-olive:        #6B7F3B;
  --color-charcoal:     #2C2C2C;
  --color-graphite:     #4A4A4A;
  --color-warm-gray:    #8A8580;
  --color-light-gray:   #E8E4E0;
  --color-blush:        #F2D4C9;
  --color-peach:        #FDDCB5;
  --color-lavender:     #D4C5E2;
  --color-sky:          #B5D8E8;
  --color-white:        #FFFFFF;
  --color-overlay:      rgba(44, 44, 44, 0.6);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  /* Font Sizes — fluid typography */
  --text-xs:   clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm:   clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl:  clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
  --text-4xl:  clamp(2.2rem, 1.6rem + 3vw, 3.5rem);
  --text-5xl:  clamp(2.8rem, 2rem + 4vw, 4.5rem);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width:     1280px;
  --max-width-sm:  800px;
  --max-width-xs:  640px;
  --gutter:        clamp(1rem, 3vw, 2rem);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 30px rgba(200, 169, 81, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-terracotta-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-charcoal);
  font-weight: 700;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-lg); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-md);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--sm {
  max-width: var(--max-width-sm);
}

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

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-terracotta { color: var(--color-terracotta); }
.text-sage { color: var(--color-sage-dark); }

.accent-font {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-warm-gray);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-champagne));
  margin: var(--space-xl) auto;
  border: none;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-sm);
  z-index: 10000;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--color-white);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 228, 224, 0.5);
  transition: all var(--transition-base);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  text-decoration: none;
}

.logo:hover { color: var(--color-charcoal); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-terracotta));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-graphite);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-charcoal);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
  color: var(--color-white) !important;
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color-white) !important;
}

.nav-cta::after { display: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-charcoal);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
@media (max-width: 968px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-warm-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-2xl) var(--gutter);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
  }

  .nav-links a {
    font-size: var(--text-lg);
    padding: var(--space-sm) 0;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-lg);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(72px + var(--space-3xl)) var(--gutter) var(--space-3xl);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.85) 0%,
    rgba(255, 248, 240, 0.7) 40%,
    rgba(255, 248, 240, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  display: block;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-2xl);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--border-radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(201, 125, 96, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 125, 96, 0.4);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-charcoal);
  border: 2px solid var(--color-light-gray);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-terracotta);
  border: 2px solid var(--color-terracotta);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(200, 169, 81, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 81, 0.4);
  color: var(--color-white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
}

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

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

.section--charcoal {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.section--charcoal h2,
.section--charcoal h3,
.section--charcoal h4 {
  color: var(--color-cream);
}

.section--charcoal .section-subtitle {
  color: var(--color-warm-gray);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* ============================================================
   CARD SYSTEM
   ============================================================ */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}

.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 6px 14px;
  background: var(--color-white);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-charcoal);
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: var(--space-lg);
}

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

.card-body p {
  color: var(--color-warm-gray);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-gray);
  font-size: var(--text-xs);
  color: var(--color-warm-gray);
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-cream);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-graphite);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

/* Feature Card (larger, horizontal) */
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.feature-card .card-image {
  aspect-ratio: auto;
  min-height: 300px;
}

.feature-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
}

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

  .feature-card .card-image {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }
}

/* ============================================================
   PILLAR SHOWCASE (Homepage section)
   ============================================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.pillar-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition-base);
}

.pillar-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-6px);
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.pillar-icon--recipes   { background: var(--color-peach); }
.pillar-icon--vibes     { background: var(--color-lavender); }
.pillar-icon--events    { background: var(--color-champagne); }
.pillar-icon--drinks    { background: var(--color-sky); }
.pillar-icon--atlas     { background: var(--color-blush); }
.pillar-icon--longtail  { background: var(--color-sage); color: var(--color-white); }

.pillar-card h3 {
  font-size: var(--text-lg);
}

.pillar-card p {
  font-size: var(--text-sm);
  color: var(--color-warm-gray);
}

/* ============================================================
   VIBE ENGINE (Interactive tool)
   ============================================================ */
.vibe-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.vibe-option {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border: 3px solid transparent;
  transition: all var(--transition-base);
}

.vibe-option:hover,
.vibe-option.active {
  border-color: var(--color-gold);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.vibe-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vibe-option-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.vibe-result {
  display: none;
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.5s ease;
}

.vibe-result.visible {
  display: block;
}

/* ============================================================
   EVENT BUILDER (Form)
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 81, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%234A4A4A'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.form-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  user-select: none;
}

.form-chip:hover {
  border-color: var(--color-gold);
}

.form-chip.selected {
  background: var(--color-champagne);
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  font-weight: 600;
}

.form-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ============================================================
   FAQ / ACCORDION (AEO)
   ============================================================ */
.faq-list {
  max-width: var(--max-width-sm);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-light-gray);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-charcoal);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-terracotta);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  margin-left: var(--space-md);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  color: var(--color-graphite);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: var(--space-md) 0;
  margin-top: 72px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-warm-gray);
}

.breadcrumb-list li::after {
  content: '/';
  margin-left: var(--space-xs);
  color: var(--color-light-gray);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--color-warm-gray);
}

.breadcrumb-list a:hover {
  color: var(--color-terracotta);
}

/* ============================================================
   PAGE HERO (Interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

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

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

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 44, 44, 0.3) 0%,
    rgba(44, 44, 44, 0.6) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 700px;
}

.page-hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero-content p {
  font-size: var(--text-lg);
  opacity: 0.9;
  line-height: 1.6;
}

/* ============================================================
   RECIPE / CONTENT LAYOUT
   ============================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 968px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
}

.content-main article {
  max-width: none;
}

.content-main h2 {
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-light-gray);
}

.content-main h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
}

.sidebar-widget h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-champagne);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-links a {
  font-size: var(--text-sm);
  color: var(--color-graphite);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-links a:hover {
  color: var(--color-terracotta);
}

/* ============================================================
   RECIPE CARD (Detailed)
   ============================================================ */
.recipe-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  align-items: center;
}

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

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

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

.recipe-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
  margin-bottom: var(--space-xl);
}

.recipe-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recipe-info-item span:first-child {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-warm-gray);
}

.recipe-info-item span:last-child {
  font-weight: 600;
  color: var(--color-charcoal);
}

/* Instruction steps */
.recipe-steps {
  counter-reset: step;
}

.recipe-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: start;
}

.recipe-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-champagne);
  color: var(--color-gold-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

/* ============================================================
   ATLAS / MAP GRID
   ============================================================ */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.atlas-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  transition: all var(--transition-base);
}

.atlas-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.atlas-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.atlas-card:hover img {
  transform: scale(1.1);
}

.atlas-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--color-white);
}

.atlas-card-overlay h3 {
  color: var(--color-white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.atlas-card-overlay p {
  font-size: var(--text-sm);
  opacity: 0.85;
  margin-bottom: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-warm-gray);
}

/* ============================================================
   NEWSLETTER / CTA SECTION
   ============================================================ */
.newsletter-section {
  text-align: center;
  padding: var(--space-4xl) var(--gutter);
  background: linear-gradient(135deg, var(--color-champagne), var(--color-cream));
  border-radius: var(--border-radius-lg);
  margin: var(--space-3xl) auto;
  max-width: var(--max-width);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: var(--space-xl) auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--border-radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--color-white);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-warm-gray);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

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

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

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 320px;
  color: var(--color-warm-gray);
}

.footer-brand .logo {
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.footer-col h4 {
  color: var(--color-cream);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--color-warm-gray);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-champagne);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-gray);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TABLE OF CONTENTS (Article sidebar)
   ============================================================ */
.toc {
  background: var(--color-cream);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.toc h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.toc ol {
  list-style: decimal;
  padding-left: var(--space-lg);
}

.toc li {
  margin-bottom: var(--space-sm);
}

.toc a {
  font-size: var(--text-sm);
  color: var(--color-graphite);
}

.toc a:hover {
  color: var(--color-terracotta);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .nav-cta,
  .hero-ctas,
  .newsletter-section {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
