/* ============================================================
   BEAUJOLAIS — Complete Design System
   Typography: Cormorant Garamond (display) + Jost (body)
   Palette: Warm garnet/burgundy, granite stone, amber accents
   ============================================================ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root,
[data-theme="light"] {
  /* Beaujolais Palette — Light */
  --color-bg: #f5ede4;
  --color-surface: #faf4ef;
  --color-surface-offset: #ede0d5;
  --color-surface-deep: #e5d2c2;
  --color-text: #1a0f0a;
  --color-text-muted: #6b4c3b;
  --color-text-faint: #a07860;
  --color-text-inverse: #f5ede4;
  --color-primary: #8b1a2e;
  --color-primary-hover: #6d1422;
  --color-primary-active: #4f0e18;
  --color-accent: #c4703a;
  --color-accent-hover: #a85c2e;
  --color-gold: #b8973a;
  --color-gold-light: #d4b86a;
  --color-divider: #d4b8a8;
  --color-border: #c8a898;

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

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

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,15,10,0.08);
  --shadow-md: 0 4px 16px rgba(26,15,10,0.10);
  --shadow-lg: 0 12px 40px rgba(26,15,10,0.14);
  --shadow-xl: 0 24px 64px rgba(26,15,10,0.18);

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

  /* Header height */
  --header-h: 64px;

  /* Vintage colors */
  --rating-exceptional: #b8973a;
  --rating-excellent: #437a22;
  --rating-verygood: #006494;
  --rating-good: #7a7974;
  --rating-difficult: #a12c2c;
}

[data-theme="dark"] {
  --color-bg: #120a07;
  --color-surface: #1a0f0a;
  --color-surface-offset: #1f1410;
  --color-surface-deep: #251810;
  --color-text: #f0e4d8;
  --color-text-muted: #a08070;
  --color-text-faint: #70503c;
  --color-text-inverse: #120a07;
  --color-primary: #d4364e;
  --color-primary-hover: #e85068;
  --color-primary-active: #f06c82;
  --color-accent: #d4843a;
  --color-accent-hover: #e0964e;
  --color-gold: #d4a83a;
  --color-gold-light: #e8c060;
  --color-divider: #2a1a14;
  --color-border: #3a2418;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
  --rating-exceptional: #d4a83a;
  --rating-excellent: #6daa45;
  --rating-verygood: #5591c7;
  --rating-good: #797876;
  --rating-difficult: #dd6974;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #120a07;
    --color-surface: #1a0f0a;
    --color-surface-offset: #1f1410;
    --color-surface-deep: #251810;
    --color-text: #f0e4d8;
    --color-text-muted: #a08070;
    --color-text-faint: #70503c;
    --color-text-inverse: #120a07;
    --color-primary: #d4364e;
    --color-primary-hover: #e85068;
    --color-primary-active: #f06c82;
    --color-accent: #d4843a;
    --color-accent-hover: #e0964e;
    --color-gold: #d4a83a;
    --color-gold-light: #e8c060;
    --color-divider: #2a1a14;
    --color-border: #3a2418;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
  }
}

/* ─── BASE RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

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

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

::selection {
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
  color: var(--color-text);
}

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

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-hover); }

/* ─── HEADER & NAV ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  box-shadow: var(--shadow-md);
}

.header-inner {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

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

.site-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav-link.active {
  color: var(--color-primary);
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-divider);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    flex-direction: column;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-2);
    z-index: 99;
  }

  .site-nav.open { display: flex; }
  .nav-link { width: 100%; padding: var(--space-3) var(--space-4); }
  .mobile-menu-btn { display: flex; }
  .site-header { padding: 0 var(--space-4); }
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/72/Beaujolais_Wine_country.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 10, 7, 0.55) 0%,
    rgba(18, 10, 7, 0.40) 40%,
    rgba(18, 10, 7, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--space-4);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  font-style: italic;
  color: #f5ede4;
  line-height: 0.9;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 237, 228, 0.85);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

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

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: #f5ede4;
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 237, 228, 0.65);
  display: block;
  margin-top: var(--space-1);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(245, 237, 228, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(245, 237, 228, 0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 640px) {
  .hero-stat-divider { display: none; }
  .hero-stats { gap: var(--space-6); }
}

/* ─── SECTION LAYOUT ─────────────────────────────────────────── */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  padding-inline: var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: var(--content-default);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--color-primary);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-12);
  max-width: 60ch;
}

/* ─── OVERVIEW SECTION ───────────────────────────────────────── */
.overview {
  background: var(--color-surface);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.overview-text { }

.overview-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.overview-map-wrapper {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
}

.overview-map-wrapper svg {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  filter: drop-shadow(var(--shadow-lg));
}

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

.feature-card {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.feature-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-map-wrapper { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ─── TERROIR SECTION ────────────────────────────────────────── */
.terroir {
  background: var(--color-bg);
}

.terroir-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  margin-bottom: var(--space-16);
}

.terroir-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-4);
}

.terroir-img-main {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.terroir-img-sub {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.terroir-img-main img,
.terroir-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.terroir-img-main:hover img,
.terroir-img-sub:hover img {
  transform: scale(1.03);
}

.terroir-content { }

.terroir-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.gamay-facts {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-8);
}

.gamay-facts h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.gamay-fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gamay-fact-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: none;
}

.gamay-fact-list li::before {
  content: '◆';
  color: var(--color-gold);
  font-size: 0.6em;
  margin-top: 0.4em;
  flex-shrink: 0;
}

.geology-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-12);
}

.geology-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.geology-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.geology-card.granite::before { background: #e8a0a0; }
.geology-card.schist::before { background: #708090; }
.geology-card.volcanic::before { background: #6b4c8b; }

.geology-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.geology-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .terroir-layout { grid-template-columns: 1fr; }
  .geology-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .geology-cards { grid-template-columns: 1fr; }
}

/* ─── CRU SECTION ────────────────────────────────────────────── */
.crus {
  background: var(--color-surface);
}

.cru-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}

.cru-tabs-wrapper::-webkit-scrollbar { display: none; }

.cru-tabs {
  display: flex;
  gap: 0;
  min-width: max-content;
  list-style: none;
  padding: 0;
}

.cru-tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.cru-tab:hover { color: var(--color-text); }

.cru-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.cru-panel {
  display: none;
}

.cru-panel.active {
  display: block;
}

.cru-panel-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.cru-map-col { }

.cru-svg-map {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
}

.cru-soil-box {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.cru-soil-box h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.cru-soil-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.cru-info-col { }

.cru-header {
  margin-bottom: var(--space-6);
}

.cru-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.cru-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.cru-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.cru-character {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.lieux-dits-section h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.lieux-dits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lieux-dits-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: none;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.lieux-dits-list li::before {
  content: '◆';
  color: var(--color-gold);
  font-size: 0.55em;
  margin-top: 0.45em;
  flex-shrink: 0;
}

/* Producer Cards */
.producers-section {
  margin-top: var(--space-8);
}

.producer-category {
  margin-bottom: var(--space-10);
}

.producer-category-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.producer-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.producer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.producer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.producer-card-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.producer-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  max-width: none;
}

.producer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.producer-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
}

@media (max-width: 900px) {
  .cru-panel-layout { grid-template-columns: 1fr; }
}

/* ─── NATURAL WINE SECTION ───────────────────────────────────── */
.natural-wine {
  background: var(--color-bg);
}

.natural-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  margin-bottom: var(--space-16);
}

.natural-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.natural-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
}

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

/* Timeline */
.timeline {
  margin: var(--space-12) 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 39px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--color-divider);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  padding-top: 4px;
}

.timeline-year::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: var(--space-2);
  position: relative;
  z-index: 1;
}

.timeline-body h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.timeline-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Fermentation Methods */
.fermentation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.ferm-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.ferm-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.ferm-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.ferm-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 36ch;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .natural-layout { grid-template-columns: 1fr; }
  .natural-image { position: static; aspect-ratio: 16 / 9; }
  .fermentation-cards { grid-template-columns: 1fr; }
}

/* ─── VINTAGE CHART SECTION ──────────────────────────────────── */
.vintages {
  background: var(--color-surface);
}

.vintage-controls {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.vintage-toggle-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  cursor: pointer;
  transition: all var(--transition);
}

.vintage-toggle-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.vintage-chart-view {
  display: none;
}

.vintage-chart-view.active {
  display: block;
}

/* Bar Chart */
.vintage-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.vintage-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
}

.vintage-bar-year {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

.vintage-bar-track {
  height: 32px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.vintage-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.vintage-bar-fill::after {
  content: attr(data-score) '★';
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.vintage-bar-fill.rating-exceptional { background: var(--rating-exceptional); }
.vintage-bar-fill.rating-excellent { background: var(--rating-excellent); }
.vintage-bar-fill.rating-verygood { background: var(--rating-verygood); }
.vintage-bar-fill.rating-good { background: var(--rating-good); }
.vintage-bar-fill.rating-difficult { background: var(--rating-difficult); }

.vintage-bar-rating {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* Vintage Tooltip */
.vintage-tooltip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  display: none;
  animation: fadeIn 0.2s ease;
}

.vintage-tooltip.visible { display: block; }

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

.vintage-tooltip-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.vintage-tooltip-rating {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  color: white;
}

.vintage-tooltip-rating.rating-exceptional { background: var(--rating-exceptional); }
.vintage-tooltip-rating.rating-excellent { background: var(--rating-excellent); }
.vintage-tooltip-rating.rating-verygood { background: var(--rating-verygood); }
.vintage-tooltip-rating.rating-good { background: var(--rating-good); }
.vintage-tooltip-rating.rating-difficult { background: var(--rating-difficult); }

.vintage-tooltip-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: none;
}

.vintage-tooltip-crus {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

/* Vintage Legend */
.vintage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.vintage-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.vintage-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Full Table */
.vintage-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.vintage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.vintage-table th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-border);
}

.vintage-table td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  vertical-align: top;
}

.vintage-table tr:last-child td { border-bottom: none; }

.vintage-table tr:hover td {
  background: var(--color-surface-offset);
}

.vintage-table .col-year {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.vintage-table .col-rating { white-space: nowrap; }

.rating-pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  color: white;
}

.rating-pill.rating-exceptional { background: var(--rating-exceptional); }
.rating-pill.rating-excellent { background: var(--rating-excellent); }
.rating-pill.rating-verygood { background: var(--rating-verygood); }
.rating-pill.rating-good { background: var(--rating-good); }
.rating-pill.rating-difficult { background: var(--rating-difficult); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface-deep, #251810);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}

.footer-brand {}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 36ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--color-text); }

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

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
}

.footer-credits {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: right;
  line-height: 1.7;
  max-width: 50ch;
}

.footer-credits a {
  color: var(--color-text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-credits { text-align: left; }
}

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

/* ─── SCROLL REVEAL ANIMATIONS ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.divider-line {
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-12) 0;
}

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  color: white;
}

/* ─── REGION MAP SVG STYLES ──────────────────────────────────── */
.region-map-svg {
  font-family: var(--font-body);
}

/* ─── CRU STARS / STATUS INDICATORS ─────────────────────────── */
.status-superstar { color: #b8973a; }
.status-gem { color: #5591c7; }
.status-upcoming { color: #437a22; }
