/* ============================================================
   VineBond — Shared Stylesheet  (css/vinebond.css)
   Design System: VINEBOND Brand Identity v2.0
   Updated: WCAG AAA compliant color palette
   Used by: winery.html, book.html, vinemap.html
   index.html uses its own inline <style> block (backward compat)
   ============================================================ */

/* ── Landscape Block Overlay ───────────────────────────────── */
#vb-landscape-block {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #1C4F3D;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 2rem;
  color: #EDE8E0;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
#vb-landscape-block svg {
  opacity: 0.85;
  animation: vb-rotate-hint 2.5s ease-in-out infinite;
}
#vb-landscape-block p {
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: 0.03em;
}
@keyframes vb-rotate-hint {
  0%, 100% { transform: rotate(0deg); }
  40%       { transform: rotate(90deg); }
  60%       { transform: rotate(90deg); }
}
@media screen and (orientation: landscape) and (max-height: 500px) {
  #vb-landscape-block { display: flex; }
  body > *:not(#vb-landscape-block) { visibility: hidden; pointer-events: none; }
}

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

:root {
  /* ══════════════════════════════════════════════════════
     VINEBOND Design System — Primary Color Palette
     All combinations meet WCAG AA (4.5:1) minimum;
     most meet WCAG AAA (7:1) for enhanced readability.
     ══════════════════════════════════════════════════════ */

  /* Primary Brand Colors */
  --vb-forest:       #1C4F3D;   /* Vinebond Forest  | CTA buttons, nav active  | 9.8:1 on white ✓ AAA */
  --vb-burgundy:     #5C2632;   /* Vinebond Burgundy| H1 headings, accents     | 8.2:1 on cream ✓ AAA */
  --vb-leaf-green:   #2D6A4F;   /* Leaf Accent Green| Hover states, icons      | 7.2:1 on white ✓ AAA */
  --vb-deep-maroon:  #4A1F2A;   /* Deep Maroon      | Body text, H2 headings  | 9.1:1 on cream ✓ AAA */
  --vb-cream:        #EDE8E0;   /* Cream Base       | Primary background       */

  /* Neutral Tones */
  --vb-warm-white:   #FAF8F5;   /* Warm White       | Section backgrounds      */
  --vb-light-beige:  #F5F2ED;   /* Light Beige      | Subtle dividers          */
  --vb-medium-gray:  #8B8578;   /* Medium Gray      | Secondary text           | 4.6:1 on cream ✓ AA  */
  --vb-dark-gray:    #4A4740;   /* Dark Gray        | Icons, subtle text       | 6.2:1 on cream ✓ AA  */

  /* State / Feedback Colors */
  --vb-success:      #3A7F5F;   /* Success messages, completed states     */
  --vb-warning:      #B8834F;   /* Warnings, cautionary elements          */
  --vb-error:        #8B3942;   /* Error states, critical alerts          */
  --vb-link:         #2B5F73;   /* Hyperlinks (accessible alternative)    */

  /* Semantic Shadows (green-tinted per brand) */
  --vb-shadow-sm:    0 2px 8px rgba(28,79,61,0.06);
  --vb-shadow-md:    0 4px 12px rgba(28,79,61,0.08);
  --vb-shadow-lg:    0 8px 24px rgba(28,79,61,0.12);
  --vb-shadow-el:    0 12px 34px rgba(28,79,61,0.15);  /* elevated cards */

  /* Gold accent (retained for UI highlights / interactive elements) */
  --gold:            #D4AF37;
  --gold-warm:       #B8960F;

  /* ── Legacy aliases — backward compat with all existing inline styles ── */
  --burgundy:        #5C2632;
  --burgundy-deep:   #4A1F2A;
  --green:           #1C4F3D;
  --green-forest:    #2D6A4F;
  --terracotta:      #B8834F;
  --oak:             #8B8578;
  --cream:           #EDE8E0;
  --cream-dark:      #FAF8F5;
  --white:           #FFFFFF;
  --shadow:          rgba(28,79,61,0.08);
  --shadow-lg:       rgba(28,79,61,0.15);

  /* ── Border Radii ── */
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-2xl:      30px;

  /* ── Motion ── */
  --transition:      0.28s cubic-bezier(0.4,0,0.2,1);

  /* ── Surface utilities ── */
  --surface-soft:    rgba(255,255,255,0.72);
  --surface-border:  rgba(212,175,55,0.22);
  --ring-focus:      0 0 0 4px rgba(212,175,55,0.18);

  /* ══════════════════════════════════════════════════════
     Fluid Typography Scale — Responsive across all 9 tiers
     Desktop:  H1 56px / H2 40px / H3 32px / Body 18px
     Tablet:   H1 40px / H2 32px / Body 16px
     Mobile:   H1 32px / H2 24px / Body 16px
     ══════════════════════════════════════════════════════ */
  --text-xs:   clamp(0.6875rem, 0.625rem + 0.25vw, 0.75rem);    /* 11–12px  */
  --text-sm:   clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);     /* 13–14px  */
  --text-base: clamp(0.9375rem, 0.875rem + 0.25vw, 1rem);        /* 15–16px  */
  --text-lg:   clamp(1.0625rem, 0.9375rem + 0.5vw, 1.25rem);     /* 17–20px  */
  --text-xl:   clamp(1.25rem, 1rem + 1vw, 1.75rem);              /* 20–28px  */
  --text-2xl:  clamp(1.5rem, 1.125rem + 1.5vw, 2.25rem);         /* 24–36px  */
  --text-3xl:  clamp(1.875rem, 1.25rem + 2.5vw, 3rem);           /* 30–48px  */
  --text-4xl:  clamp(2.25rem, 1.5rem + 3vw, 4rem);               /* 36–64px  */
}

html { scroll-behavior: smooth; }


body {
  font-family: 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 380px at 90% -10%, rgba(28,79,61,0.07), transparent 72%),
    radial-gradient(700px 320px at -10% 25%, rgba(92,38,50,0.05), transparent 68%),
    var(--vb-cream);
  color: var(--vb-deep-maroon);
  line-height: 1.6;
  cursor: url('../assets/figma-elements/custom-cursor-wineglass.svg') 4 4, auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Keep wine-glass cursor on ALL interactive elements — skip on touch-only Android */
@media (pointer: fine) {
  *, *::before, *::after,
  a, button, select, input, label, textarea,
  [role="button"], .filter-chip, .trail-tag,
  .map-filter-btn, .nav-primary a, .btn,
  .winery-card, .lang-option {
    cursor: url('../assets/figma-elements/custom-cursor-wineglass.svg') 4 4, auto !important;
  }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, select, input, textarea { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
/* H1: Vinebond Burgundy on Cream  — 8.2:1 AAA ✓ */
/* H2: Deep Maroon on Cream        — 9.1:1 AAA ✓ */
/* H3: Vinebond Forest on Cream    — 7.8:1 AAA ✓ */
/* Body: Deep Maroon on Cream      — 9.1:1 AAA ✓ */
/* Secondary: Medium Gray on Cream — 4.6:1 AA  ✓ */

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vb-medium-gray);
  margin-bottom: 6px;
  display: block;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--vb-burgundy);
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--vb-medium-gray);
  max-width: 620px;
  line-height: 1.65;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Global UX Utilities ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 44px;  /* WCAG: 44×44px minimum touch target */
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface-soft);
  color: var(--vb-burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--vb-shadow-lg);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: var(--transition);
  z-index: 1200;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--vb-forest), var(--vb-deep-maroon));
  color: var(--vb-cream);
  border-color: transparent;
}
.back-to-top svg { width: 18px; height: 18px; }

/* ── Buttons ──────────────────────────────────────────────── */
/* WCAG: All touch targets ≥ 44×44px; contrast ratios documented */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.87rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px; /* WCAG AA touch target */
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primary: #FFFFFF on #1C4F3D — 9.8:1 AAA ✓ */
.btn-primary {
  background: linear-gradient(135deg, var(--vb-forest), var(--vb-deep-maroon));
  color: #FFFFFF;
  border: 2px solid var(--gold);
  box-shadow: var(--vb-shadow-el);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--vb-leaf-green), var(--vb-forest));
  transform: translateY(-2px);
  box-shadow: var(--vb-shadow-lg);
}
.btn-primary:active {
  background: linear-gradient(135deg, #14362A, var(--vb-deep-maroon));
}
.btn-primary:disabled {
  background: var(--vb-medium-gray);
  color: var(--vb-cream);
  border-color: transparent;
  box-shadow: none;
  opacity: 0.7;
}

/* Secondary: #1C4F3D on transparent — 7.8:1 AAA ✓ */
.btn-secondary {
  background: transparent;
  color: var(--vb-forest);
  border: 2px solid var(--vb-forest);
}
.btn-secondary:hover {
  background: var(--vb-light-beige);
  border-color: var(--vb-leaf-green);
  color: var(--vb-forest);
  transform: translateY(-2px);
}
.btn-secondary:active {
  background: var(--vb-cream);
  color: #14362A;
  border-color: #14362A;
}
.btn-secondary:disabled {
  color: var(--vb-medium-gray);
  border-color: var(--vb-medium-gray);
}

/* Gold / tertiary */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-warm));
  color: var(--vb-deep-maroon);
  border: none;
  box-shadow: 0 4px 14px rgba(212,175,55,0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.38); }
.btn-sm { padding: 8px 18px; font-size: 0.78rem; min-height: 44px; }

/* ── Site Header / Global Nav (three-zone) ─────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--vb-topbar-bg, rgba(255,255,255,0.93));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--vb-topbar-border, rgba(28,79,61,0.15));
  transition: box-shadow var(--transition);
  box-shadow: var(--vb-shadow-sm);
}
.site-header.scrolled {
  box-shadow: var(--vb-shadow-md);
}

/* Row 1 wrapper — brand · utility · trigger */
.nav-row-top {
  display: flex;
  align-items: center;
  height: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
}

/* Row 2 chip strip — moved into nav-row-top on desktop */
.nav-row-chips {
  display: none;
}

/* ── ZONE 1: Brand (in-flow flex child) ─────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--vb-burgundy);
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 24px;
}
.nav-brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--vb-forest), var(--vb-deep-maroon));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── ZONE 2: Primary navigation — inline in nav-row-top ── */
.nav-primary {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
}
.nav-primary a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--vb-deep-maroon);
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 40px;
  text-decoration: none;
}
.nav-primary a::after { display: none; }
.nav-primary a:hover {
  color: var(--vb-forest);
  background: var(--vb-light-beige);
}
.nav-primary a.active {
  border-color: var(--vb-forest);
  color: var(--vb-forest);
  background: transparent;
}
.nav-primary a:visited,
.nav-primary a:active {
  color: var(--vb-deep-maroon);
  text-decoration: none;
}
.nav-primary a.active:visited { color: var(--vb-forest); }
.nav-primary a svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Winery search bar — only used inside .filter-bar on winery.html */
.filter-bar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 280px;
  background: var(--vb-cream);
  border: 1.5px solid var(--vb-topbar-border, #C8BFB4);
  border-radius: 100px;
  padding: 0 14px;
  transition: var(--transition);
  margin: 0 8px;
}
.filter-bar-search:focus-within { background: var(--vb-warm-white); }
.filter-bar-search svg { width: 16px; height: 16px; color: var(--vb-medium-gray); flex-shrink: 0; }
.filter-bar-search input {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--vb-deep-maroon);
  width: 100%;
  height: 36px;
  outline: none;
}
.filter-bar-search input:focus,
.filter-bar-search input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ── ZONE 3: Utility (auth actions) ─────────────────────────── */
.nav-utility {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-utility .btn { padding: 9px 20px; font-size: 0.78rem; }

/* Mobile hamburger trigger — hidden on desktop */
.nav-mobile-trigger { display: none; }

/* Nav sheet backdrop and panel: hidden on desktop */
@media (min-width: 1025px) {
  #navSheet, .nav-sheet, .nav-backdrop { display: none !important; }
}

/* Language Toggle (fixed, shared with vinemap) */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--vb-warm-white);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  position: fixed;
  right: 16px;
  top: calc(env(safe-area-inset-top, 0px) + 40px);
  transform: translateY(-50%);
  z-index: 1002;
  min-width: 82px;
  justify-content: center;
}
.site-header.scrolled .lang-toggle {
  top: calc(env(safe-area-inset-top, 0px) + 32px);
}
.lang-option {
  padding: 5px 12px;
  border-radius: 100px;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--vb-medium-gray);
  background: transparent;
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
/* Active lang: white on forest — 9.8:1 AAA ✓ */
.lang-option.active {
  background: var(--vb-forest);
  color: #FFFFFF;
  box-shadow: var(--vb-shadow-sm);
}
.lang-option:hover:not(.active) { color: var(--vb-forest); }


/* ── Page Header (hero-lite for inner pages) ──────────────── */
.page-hero {
  margin-top: 108px;
  padding: 56px 0 40px;
  background: linear-gradient(135deg, var(--vb-warm-white) 0%, var(--vb-cream) 60%, var(--vb-light-beige) 100%);
  position: relative;
  overflow: hidden;
}

/* Elevated surfaces shared across pages */
.hero-booking,
.terroir-card,
.exp-card,
.review-card,
.map-placeholder,
.map-info-card,
.winery-card,
.form-card,
.summary-card,
.confirmation-card,
.login-form-wrap {
  box-shadow: var(--vb-shadow-el);
  border: 1px solid rgba(28,79,61,0.12);
}

.terroir-card:hover,
.exp-card:hover,
.review-card:hover,
.map-info-card:hover,
.winery-card:hover {
  box-shadow: 0 18px 42px rgba(28,79,61,0.16);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28,79,61,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--vb-medium-gray);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--vb-medium-gray); transition: var(--transition); }
.page-hero .breadcrumb a:hover { color: var(--vb-forest); }
.page-hero .breadcrumb svg { width: 14px; height: 14px; }

/* ── Form Elements ───────────────────────────────────────── */
/* Default:  1px #8B8578 border | Deep Maroon text | Medium Gray placeholder */
/* Focus:    2px #1C4F3D border + 3px ring                                   */
/* Error:    2px #8B3942 border | #FFF5F5 background                         */
/* Success:  2px #3A7F5F border | #F5FAF7 background                         */
/* Disabled: 1px #8B8578 border | #F5F2ED background | Medium Gray text      */

input, select, textarea {
  border-color: var(--vb-medium-gray);
  color: var(--vb-deep-maroon);
}
input::placeholder, textarea::placeholder {
  color: var(--vb-medium-gray);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--vb-forest) !important;
  box-shadow: 0 0 0 3px rgba(28,79,61,0.12);
}
input.error, select.error, textarea.error {
  border-color: var(--vb-error) !important;
  background: #FFF5F5 !important;
}
input.success, select.success, textarea.success {
  border-color: var(--vb-success) !important;
  background: #F5FAF7 !important;
}

/* ── Filter chips ─────────────────────────────────────────── */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid #C8BFB4;
  background: transparent;
  color: var(--vb-medium-gray);
  transition: var(--transition);
  min-height: 44px; /* WCAG touch target */
  min-width: 110px;
  justify-content: center;
}
/* Active: white on forest — 9.8:1 AAA ✓ */
.filter-chip:hover, .filter-chip.active {
  background: var(--vb-forest);
  color: #FFFFFF;
  border-color: var(--vb-forest);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vb-leaf-green), transparent);
  border: none;
  margin: 0;
}

/* ── Scroll Fade-up ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Skip to Content — Accessibility ──────────────────────── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vb-forest);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Focus-Visible — Keyboard Accessibility ───────────────── */
*:focus-visible {
  outline: 3px solid var(--vb-forest);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(28,79,61,0.15);
}
.nav-primary a:focus-visible {
  outline: 2px solid var(--vb-forest);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.filter-chip:focus-visible,
.trail-tag:focus-visible,
.map-filter-btn:focus-visible,
.lang-option:focus-visible {
  outline: 2px solid var(--vb-forest);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none; /* border-color + box-shadow handled by existing :focus rules */
}

/* ── Interactive Elements — Links & Icons ─────────────────── */
/* Links: Forest default → Leaf Green hover → Burgundy visited */
a[href]:not(.btn):not(.nav-brand):not(.nav-primary a):not(.footer-col a):not(.nav-sheet a) {
  color: var(--vb-forest);
  text-decoration: underline;
}
a[href]:not(.btn):not(.nav-brand):not(.nav-primary a):not(.footer-col a):not(.nav-sheet a):hover {
  color: var(--vb-leaf-green);
}
a[href]:not(.btn):not(.nav-brand):not(.nav-primary a):not(.footer-col a):not(.nav-sheet a):visited {
  color: var(--vb-burgundy);
}

/* ── Hover-Only Gating — Touch devices unaffected ─────────── */
@media (hover: none) {
  .terroir-card:hover,
  .exp-card:hover,
  .review-card:hover,
  .winery-card:hover,
  .map-info-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-gold:hover,
  .loyalty-badge:hover,
  .map-pin:hover { transform: none; }
}

/* ── Footer ───────────────────────────────────────────────── */
/* Background: Vinebond Forest #1C4F3D | Text: white — 9.8:1 AAA ✓ */
footer {
  background: var(--vb-forest);
  color: #FFFFFF;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand p { opacity: 0.75; font-size: 0.87rem; line-height: 1.6; max-width: 300px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 14px;
  min-height: 1.3em;
}
.footer-col a {
  display: block;
  padding: 3px 0;
  font-size: 0.87rem;
  opacity: 0.7;
  transition: var(--transition);
  color: #FFFFFF;
}
.footer-col a:hover { opacity: 1; color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; opacity: 0.55; }

/* ── GPU Performance Hints ────────────────────────────────── */
/* Only promote layers on devices that benefit (fine pointer = mouse/trackpad) */
@media (pointer: fine) {
  .topbar { will-change: transform; }
  .back-to-top { will-change: transform, opacity; }
  .fade-up { will-change: transform, opacity; }
}
.winery-card, .exp-card, .terroir-card, .review-card,
.tier-card, .map-info-card, .cert-wrap { contain: content; }

/* Budget Android: reduce backdrop-filter to avoid GPU jank */
@media (hover: none) and (pointer: coarse) {
  .topbar { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .back-to-top { backdrop-filter: none; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 9-Tier Breakpoint System
   ══════════════════════════════════════════════════════════════
   Tier   Name              Range          Grid Cols  Target Devices
   ─────  ────────────────  ─────────────  ─────────  ──────────────────────────────
   XS     Small Phone       320–374 px     4          iPhone SE, Galaxy A (older)
   S      Standard Phone    ≥ 375 px       4          iPhone 12–16, Galaxy S21–S24
   M      Large Phone       ≥ 414 px       4          iPhone Plus/Max, Galaxy Ultra
   L      Small Tablet      ≥ 480 px       8          iPad mini portrait, Z Fold inner
   XL     Tablet Portrait   ≥ 768 px       8          iPad, Galaxy Tab S9, Pixel Tablet
   XXL    Tablet Landscape  ≥ 1024 px      12         iPad Pro 13", Surface Pro
   3XL    Laptop            ≥ 1280 px      12         MacBook Air, Windows FHD 125%
   4XL    Desktop           ≥ 1536 px      12         FHD 100%, MacBook Pro 16"
   5XL    Large Desktop     ≥ 1920 px      12         QHD–4K, iMac 24"
   ══════════════════════════════════════════════════════════════ */

/* ── ≤1024px — hide nav links, show hamburger + sheet ───────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-row-chips { display: none; }
  .nav-primary { display: none; }
  .nav-utility { display: none; }
  .nav-mobile-trigger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
  }
  .nav-mobile-trigger span {
    width: 22px; height: 2.5px;
    background: var(--vb-deep-maroon);
    border-radius: 2px;
    transition: var(--transition);
  }
  .nav-mobile-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-mobile-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-mobile-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* Sheet backdrop */
  .nav-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 999;
  }
  .nav-backdrop.visible { display: block; }

  /* Navigation sheet (right-side panel) */
  .nav-sheet {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--vb-warm-white, #FFFFFF);
    border-left: 2px solid var(--vb-topbar-border, rgba(212,175,55,0.25));
    box-shadow: -8px 0 40px rgba(0,0,0,0.25);
    z-index: 1001;
    padding: 20px 20px 32px;
    overflow-y: auto;
    flex-direction: column;
    gap: 12px;
  }
  .nav-sheet.open { display: flex; }

  /* Sheet header: title + close button */
  .nav-sheet-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(28,79,61,0.12);
  }
  .nav-sheet-title {
    font-size: 1rem; font-weight: 700; color: var(--vb-deep-maroon);
  }
  .nav-sheet-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--vb-cream); border: none;
    color: var(--vb-deep-maroon); cursor: pointer;
    transition: var(--transition);
  }
  .nav-sheet-close:hover { background: var(--vb-light-beige); }
  .nav-sheet-close svg { width: 18px; height: 18px; }

  .nav-sheet-utility {
    display: flex; flex-direction: column; gap: 10px; margin-top: 0;
  }
  .nav-sheet-utility .btn {
    justify-content: center; min-height: 48px;
    font-size: 0.95rem; text-decoration: none; width: 100%;
  }

  .nav-sheet-links {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid rgba(28,79,61,0.12);
  }
  .nav-sheet-section-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--vb-medium-gray);
    padding: 10px 12px 4px;
  }
  .nav-sheet-links a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; border-radius: var(--radius-md);
    font-size: 0.9rem; font-weight: 500;
    color: var(--vb-deep-maroon); text-decoration: none;
    transition: var(--transition);
  }
  .nav-sheet-links a:hover { background: var(--vb-light-beige); color: var(--vb-forest); }
  .nav-sheet-links a svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--vb-forest); }
}

/* ── 769px–1024px: tablet padding ───────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-row-top { padding: 0 16px; }
}

/* ── XL — Tablet Portrait (≤ 768px → two-row mobile header) ── */
@media (max-width: 768px) {
  /* Two-row header */
  .site-header { height: auto; }

  .nav-row-top {
    height: 56px;
    padding: 0 16px;
    max-width: 100%;
    justify-content: space-between;
  }
  .nav-brand { margin-right: 0; font-size: 1.25rem; gap: 8px; }
  .nav-brand-icon { width: 32px; height: 32px; }

  /* Lang toggle: in-flow on mobile */
  .lang-toggle {
    position: static; right: auto; top: auto; transform: none;
    order: 2; margin-right: 8px;
  }

  /* Horizontal scroll for filter chips on mobile */
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { scroll-snap-align: start; flex-shrink: 0; }

  /* Horizontal scroll for trail tags on mobile */
  .trail-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trail-tags::-webkit-scrollbar { display: none; }
  .trail-tag { flex-shrink: 0; }

  .page-hero { margin-top: 108px; padding: 40px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 16px; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .section-title { min-height: auto; }
  .section-subtitle { min-height: auto; }
  .footer-brand p { min-height: auto; }
}

/* ── L — Small Tablet / Foldable inner (≤ 640px) ─────────── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .filter-chip { padding: 6px 14px; font-size: 0.78rem; }
}

/* ── S — Standard Phone (≤ 414px) ────────────────────────── */
@media (max-width: 414px) {
  .container { padding: 0 14px; }
  .filter-chip { min-width: 0; padding: 6px 12px; }
  .nav-primary a { min-width: 0; }
}

/* ── M — Large Phone (≤ 479px) ────────────────────────────── */
@media (max-width: 479px) {
  .section-title { font-size: var(--text-2xl); }
  .section-subtitle { font-size: var(--text-sm); }
  .section-label { font-size: 0.65rem; }
  .btn { padding: 11px 22px; font-size: 0.82rem; }
  .nav-brand { font-size: 1.15rem; gap: 8px; }
  .nav-brand-icon { width: 28px; height: 28px; }

  /* Fix button min-width overflow on phones */
  .btn-primary, .btn-gold { min-width: 0; }
  .btn-secondary { min-width: 0; }
  .btn-sm.btn-primary, .btn-sm.btn-gold { min-width: 0; }
  .btn-sm.btn-secondary { min-width: 0; }
  .nav-utility .btn-secondary,
  .nav-utility .btn-primary { min-width: 0; width: 100%; }

  /* Allow form labels to wrap on narrow screens */
  .form-field label,
  .form-section-title,
  .detail-label { white-space: normal; overflow: visible; }
}

/* ── XS — Small Phone (≤ 374px) ───────────────────────────── */
@media (max-width: 374px) {
  .container { padding: 0 12px; }
  .topbar-logo { font-size: 1.1rem; }
  .btn { padding: 10px 14px; font-size: 0.76rem; min-width: 0; }
  .lang-option { padding: 4px 8px; font-size: 0.68rem; }
  .section-title { font-size: clamp(1.25rem, 6vw, 1.5rem); }
}

/* ── 2XS — Budget Phone (≤ 320px) ────────────────────────── */
/* Targets: Redmi A-series, older Sony Compact, budget Androids */
@media (max-width: 320px) {
  .container { padding: 0 10px; }
  .topbar-logo { font-size: 1rem; gap: 6px; }
  .topbar-logo .logo-icon { width: 28px; height: 28px; }
  .btn { padding: 9px 12px; font-size: 0.72rem; }
  .btn-sm { padding: 7px 12px; font-size: 0.72rem; }
  .section-title { font-size: clamp(1.1rem, 5.5vw, 1.35rem); }
  .section-subtitle { font-size: var(--text-xs); }
  .section-label { font-size: 0.6rem; }
  .lang-option { padding: 3px 6px; font-size: 0.62rem; min-height: 36px; }
  .footer-grid { gap: 14px; }
  .footer-col h4 { font-size: 0.72rem; margin-bottom: 10px; }
  .footer-col a { font-size: 0.8rem; }
  .footer-brand p { font-size: 0.8rem; }
  .footer-bottom p { font-size: 0.7rem; }
  .back-to-top { width: 40px; height: 40px; right: 10px; bottom: 10px; }
  .back-to-top svg { width: 16px; height: 16px; }
}

/* ── 3XL — Laptop (≥ 1280px) ─────────────────────────────── */
@media (min-width: 1280px) {
  .container { max-width: 1240px; }
}

/* ── 4XL — Desktop (≥ 1536px) ────────────────────────────── */
@media (min-width: 1536px) {
  .container { max-width: 1440px; }
}

/* ── 5XL — Large Desktop (≥ 1920px) ──────────────────────── */
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
}

/* ── Landscape Phone (short viewport) ────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { height: 48px; min-height: 48px; }
  .topbar .container { min-height: 48px; }
  .topbar-logo .logo-icon { width: 28px; height: 28px; }
  .page-hero { margin-top: 48px; padding: 24px 0 16px; }
  .back-to-top { bottom: 8px; right: 8px; }
  .container { padding: 0 12px; }
  .section-title { font-size: var(--text-xl); }
}

/* ── Foldable — Horizontal fold (tabletop posture) ───────── */
@media (horizontal-viewport-segments: 2) {
  .page-hero { padding-bottom: env(viewport-segment-top 0 1, 0); }
}

/* ── Foldable — Vertical fold (book posture) ─────────────── */
@media (vertical-viewport-segments: 2) {
  .container {
    max-width: 100%;
    padding-left: max(16px, env(viewport-segment-left 1 0, 16px));
    padding-right: max(16px, env(viewport-segment-right 0 0, 16px));
  }
}

/* ── Touch micro-animation feedback ──────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .btn:active,
  .filter-chip:active,
  .trail-tag:active,
  .map-filter-btn:active,
  .winery-card:active,
  .exp-card:active,
  .terroir-card:active,
  .review-card:active,
  .tier-card:active,
  .cert-wrap:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

/* ── Safe Areas — Notched / Dynamic-Island / Rounded Devices ── */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  .page-hero { margin-top: calc(108px + env(safe-area-inset-top, 0)); }
  footer     { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0)); }
  @media (max-width: 768px) {
    .page-hero { margin-top: calc(108px + env(safe-area-inset-top, 0)); }
  }
  @media (max-height: 500px) and (orientation: landscape) {
    .page-hero { margin-top: calc(72px + env(safe-area-inset-top, 0)); }
  }
}

/* Single-line lock for short strings */
.nav-primary a span,
.nav-utility,
.breadcrumb,
.filter-label,
.filter-chip,
.map-controls-label,
.map-filter-btn,
.legend-item span,
.footer-col h4,
.footer-bottom p,
.results-count span,
.summary-row .label,
.summary-row .value,
.summary-total .total-label,
.map-info-card .info-stat,
.trail-tag span,
.sustain-stat .desc { white-space: nowrap; }

.btn,
.btn > span { white-space: nowrap; }

.form-field label,
.form-section-title,
.detail-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winery-card-actions .btn { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.exp-type-card .exp-name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.loyalty-badge .badge-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 68px; display: block; text-align: center;
}

/* Button fixed sizing — longest translation safe */
.btn-primary, .btn-gold { min-width: 200px; }
.btn-secondary            { min-width: 160px; }
.btn-sm.btn-primary,
.btn-sm.btn-gold          { min-width: 140px; }
.btn-sm.btn-secondary     { min-width: 120px; }
.nav-utility .btn-secondary { min-width: 160px; }
.nav-utility .btn-primary   { min-width: 220px; }

/* Section text fixed vertical reservation */
.section-title  { min-height: 2.5em; }
.section-subtitle { min-height: 3.3em; }

.filter-chip { min-width: 110px; justify-content: center; }

.footer-brand p {
  min-height: 5.5em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.footer-col h4 { min-height: 1.3em; }

/* Nav item text clip */
.nav-primary a span {
  overflow: hidden; text-overflow: ellipsis;
  display: inline-block; vertical-align: middle; max-width: 150px;
}

/* Section title line-clamp */
.section-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── RTL: direction mirroring ─────────────────────────────── */
[dir="rtl"] .nav-row-top,
[dir="rtl"] .nav-primary,
[dir="rtl"] .hero-actions,
[dir="rtl"] .filter-group,
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .nav-primary a::after { left: auto; right: 16px; }
[dir="rtl"] .terroir-card::before { left: auto; right: 0; }

/* ── Reduced Motion — Accessibility ───────────────────────── */
@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;
  }
  .fade-up { opacity: 1; transform: none; }
  .back-to-top { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Dark Mode — Teal-tinted surfaces, not pure black ──────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vb-cream:         #0E1917;
    --vb-warm-white:    #162321;
    --vb-light-beige:   #1F3230;
    --vb-white:         #2F5755;
    --vb-deep-maroon:   #EDE8E0;
    --vb-forest:        #5A9690;
    --vb-leaf-green:    #6DAAA5;
    --vb-burgundy:      #7A4545;
    --vb-medium-gray:   #A8A09A;
    --vb-dark-gray:     #C8C0B4;
    --vb-success:       #5A9690;
    --vb-shadow-sm:     0 2px 8px rgba(0,0,0,0.25);
    --vb-shadow-md:     0 4px 12px rgba(0,0,0,0.35);
    --vb-shadow-lg:     0 8px 24px rgba(0,0,0,0.45);
    --vb-shadow-el:     0 12px 34px rgba(0,0,0,0.55);
    --vb-topbar-bg:     rgba(8,15,14,0.96);
    --vb-topbar-border: rgba(237,232,224,0.10);
    --vb-divider-color: rgba(90,150,144,0.18);
    --vb-section-dark:  #080F0E;
    --vb-section-card:  #162321;
    /* Legacy aliases */
    --burgundy:         #7A4545;
    --burgundy-deep:    #EDE8E0;
    --green:            #5A9690;
    --cream:            #0E1917;
    --cream-dark:       #162321;
    --white:            #1F3230;
    --oak:              #A8A09A;
  }
}

[data-theme="dark"] {
  --vb-cream:         #0E1917;
  --vb-warm-white:    #162321;
  --vb-light-beige:   #1F3230;
  --vb-white:         #2F5755;
  --vb-deep-maroon:   #EDE8E0;
  --vb-forest:        #5A9690;
  --vb-leaf-green:    #6DAAA5;
  --vb-burgundy:      #7A4545;
  --vb-medium-gray:   #A8A09A;
  --vb-dark-gray:     #C8C0B4;
  --vb-success:       #5A9690;
  --vb-shadow-sm:     0 2px 8px rgba(0,0,0,0.25);
  --vb-shadow-md:     0 4px 12px rgba(0,0,0,0.35);
  --vb-shadow-lg:     0 8px 24px rgba(0,0,0,0.45);
  --vb-shadow-el:     0 12px 34px rgba(0,0,0,0.55);
  --vb-topbar-bg:     rgba(8,15,14,0.96);
  --vb-topbar-border: rgba(237,232,224,0.10);
  --vb-divider-color: rgba(90,150,144,0.18);
  --vb-section-dark:  #080F0E;
  --vb-section-card:  #162321;
  /* Legacy aliases */
  --burgundy:         #7A4545;
  --burgundy-deep:    #EDE8E0;
  --green:            #5A9690;
  --cream:            #0E1917;
  --cream-dark:       #162321;
  --white:            #1F3230;
  --oak:              #A8A09A;
}

/* ── Dark Mode Component Overrides ──────────────────────────── */
/* Two activation paths mirror the palette section:
   (a) [data-theme="dark"]  — explicit JS toggle
   (b) @media + :root:not([data-theme="light"])  — OS preference   */

/* ─── (a) Explicit toggle ─── */

/* Header scrolled state */
[data-theme="dark"] .site-header.scrolled {
  background: rgba(4,8,7,0.99);
}

/* Cards: border and shadows */
[data-theme="dark"] .terroir-card,
[data-theme="dark"] .exp-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .map-info-card,
[data-theme="dark"] .winery-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .summary-card,
[data-theme="dark"] .confirmation-card,
[data-theme="dark"] .login-form-wrap {
  border-color: rgba(90,150,144,0.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
[data-theme="dark"] .terroir-card:hover,
[data-theme="dark"] .exp-card:hover,
[data-theme="dark"] .review-card:hover,
[data-theme="dark"] .map-info-card:hover,
[data-theme="dark"] .winery-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.50);
  border-color: rgba(90,150,144,0.30);
}

/* Filter chips */
[data-theme="dark"] .filter-chip {
  border-color: rgba(90,150,144,0.35);
  color: #A8A09A;
}
[data-theme="dark"] .filter-chip:hover,
[data-theme="dark"] .filter-chip.active {
  background: #5A9690;
  border-color: #5A9690;
  color: #0E1917;
}

/* Form input states */
[data-theme="dark"] input.error,
[data-theme="dark"] select.error,
[data-theme="dark"] textarea.error {
  background: #2A1517 !important;
  border-color: #7A4545 !important;
}
[data-theme="dark"] input.success,
[data-theme="dark"] select.success,
[data-theme="dark"] textarea.success {
  background: #0E1917 !important;
  border-color: #5A9690 !important;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(90,150,144,0.20);
}

/* Buttons */
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(90,150,144,0.14);
  border-color: #5A9690;
  color: #5A9690;
}
[data-theme="dark"] .btn-secondary:active {
  background: rgba(90,150,144,0.22);
  color: #6DAAA5;
  border-color: #6DAAA5;
}

/* Mobile nav sheet links */
[data-theme="dark"] .nav-sheet a:hover {
  background: rgba(90,150,144,0.14);
  color: #5A9690;
}
[data-theme="dark"] .nav-sheet a.active {
  background: rgba(90,150,144,0.18);
  color: #5A9690;
}
/* Mobile chip active state in dark mode */
[data-theme="dark"] .nav-primary a.active {
  border-color: #5A9690;
  color: #5A9690;
}

/* Page hero circle */
[data-theme="dark"] .page-hero::before {
  background: radial-gradient(circle, rgba(90,150,144,0.07) 0%, transparent 70%);
}

/* Progress bar */
[data-theme="dark"] #progressBar {
  background: linear-gradient(90deg, #5A9690, #6DAAA5);
}

/* Footer */
[data-theme="dark"] footer {
  background: #080F0E;
  color: #EDE8E0;
  border-top-color: rgba(90,150,144,0.14);
}

/* Divider */
[data-theme="dark"] .divider {
  background: linear-gradient(90deg, transparent, rgba(90,150,144,0.45), transparent);
}

/* ─── (b) OS preference — mirrors rules above ─── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header.scrolled {
    background: rgba(4,8,7,0.99);
  }
  :root:not([data-theme="light"]) .terroir-card,
  :root:not([data-theme="light"]) .exp-card,
  :root:not([data-theme="light"]) .review-card,
  :root:not([data-theme="light"]) .map-info-card,
  :root:not([data-theme="light"]) .winery-card,
  :root:not([data-theme="light"]) .form-card,
  :root:not([data-theme="light"]) .summary-card,
  :root:not([data-theme="light"]) .confirmation-card,
  :root:not([data-theme="light"]) .login-form-wrap {
    border-color: rgba(90,150,144,0.18);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  }
  :root:not([data-theme="light"]) .terroir-card:hover,
  :root:not([data-theme="light"]) .exp-card:hover,
  :root:not([data-theme="light"]) .review-card:hover,
  :root:not([data-theme="light"]) .map-info-card:hover,
  :root:not([data-theme="light"]) .winery-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.50);
    border-color: rgba(90,150,144,0.30);
  }
  :root:not([data-theme="light"]) .filter-chip {
    border-color: rgba(90,150,144,0.35);
    color: #A8A09A;
  }
  :root:not([data-theme="light"]) .filter-chip:hover,
  :root:not([data-theme="light"]) .filter-chip.active {
    background: #5A9690;
    border-color: #5A9690;
    color: #0E1917;
  }
  :root:not([data-theme="light"]) input.error,
  :root:not([data-theme="light"]) select.error,
  :root:not([data-theme="light"]) textarea.error {
    background: #2A1517 !important;
    border-color: #7A4545 !important;
  }
  :root:not([data-theme="light"]) input.success,
  :root:not([data-theme="light"]) select.success,
  :root:not([data-theme="light"]) textarea.success {
    background: #0E1917 !important;
    border-color: #5A9690 !important;
  }
  :root:not([data-theme="light"]) input:focus,
  :root:not([data-theme="light"]) select:focus,
  :root:not([data-theme="light"]) textarea:focus {
    box-shadow: 0 0 0 3px rgba(90,150,144,0.20);
  }
  :root:not([data-theme="light"]) .btn-secondary:hover {
    background: rgba(90,150,144,0.14);
    border-color: #5A9690;
    color: #5A9690;
  }
  :root:not([data-theme="light"]) .nav-sheet a:hover {
    background: rgba(90,150,144,0.14);
    color: #5A9690;
  }
  :root:not([data-theme="light"]) .nav-sheet a.active {
    background: rgba(90,150,144,0.18);
    color: #5A9690;
  }
  :root:not([data-theme="light"]) .nav-primary a.active {
    border-color: #5A9690;
    color: #5A9690;
  }
  :root:not([data-theme="light"]) .page-hero::before {
    background: radial-gradient(circle, rgba(90,150,144,0.07) 0%, transparent 70%);
  }
  :root:not([data-theme="light"]) #progressBar {
    background: linear-gradient(90deg, #5A9690, #6DAAA5);
  }
  :root:not([data-theme="light"]) footer {
    background: #080F0E;
    color: #EDE8E0;
    border-top-color: rgba(90,150,144,0.14);
  }
  :root:not([data-theme="light"]) .divider {
    background: linear-gradient(90deg, transparent, rgba(90,150,144,0.45), transparent);
  }
}

/* ── VineClub: Tier Cards & Credits Table ────────────────── */
/* Silver tier — dark teal instead of light gray */
[data-theme="dark"] .tier-silver .tier-card-header {
  background: linear-gradient(135deg, #263C3A 0%, #2F5755 100%);
  color: #EDE8E0;
}
[data-theme="dark"] .tier-silver .tier-benefit-check {
  background: #2F5755;
  color: #EDE8E0;
}
[data-theme="dark"] .tier-silver .tier-cta {
  border-color: rgba(90,150,144,0.50);
  color: #5A9690;
}

/* Gold tier — unchanged, works on dark */
[data-theme="dark"] .tier-gold .tier-benefit-check {
  background: #D4AF37;
  color: #0E1917;
}

/* Platinum tier — deep navy instead of light purple */
[data-theme="dark"] .tier-platinum .tier-card-header {
  background: linear-gradient(135deg, #1C2030 0%, #2E3050 35%, #1C2030 100%);
  color: #EDE8E0;
}
[data-theme="dark"] .tier-platinum .tier-benefit-check {
  background: #3A3A6A;
  color: #EDE8E0;
}
[data-theme="dark"] .tier-platinum .tier-cta {
  border-color: rgba(150,144,200,0.50);
  color: #A8A0D8;
}

/* Credits table */
[data-theme="dark"] .vc-credits {
  background: #162321;
}
[data-theme="dark"] .credit-table thead tr {
  background: linear-gradient(90deg, #432323, #6B3535);
}
[data-theme="dark"] .credit-table tbody tr:nth-child(odd)  { background: #162321; }
[data-theme="dark"] .credit-table tbody tr:nth-child(even) { background: #1F3230; }
[data-theme="dark"] .credit-table tbody tr:hover { background: rgba(90,150,144,0.10); }
[data-theme="dark"] .credit-table tbody td {
  color: #EDE8E0;
  border-bottom-color: rgba(237,232,224,0.08);
}

/* OS preference mirrors */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tier-silver .tier-card-header {
    background: linear-gradient(135deg, #263C3A 0%, #2F5755 100%);
    color: #EDE8E0;
  }
  :root:not([data-theme="light"]) .tier-silver .tier-benefit-check {
    background: #2F5755;
    color: #EDE8E0;
  }
  :root:not([data-theme="light"]) .tier-silver .tier-cta {
    border-color: rgba(90,150,144,0.50);
    color: #5A9690;
  }
  :root:not([data-theme="light"]) .tier-gold .tier-benefit-check {
    background: #D4AF37;
    color: #0E1917;
  }
  :root:not([data-theme="light"]) .tier-platinum .tier-card-header {
    background: linear-gradient(135deg, #1C2030 0%, #2E3050 35%, #1C2030 100%);
    color: #EDE8E0;
  }
  :root:not([data-theme="light"]) .tier-platinum .tier-benefit-check {
    background: #3A3A6A;
    color: #EDE8E0;
  }
  :root:not([data-theme="light"]) .tier-platinum .tier-cta {
    border-color: rgba(150,144,200,0.50);
    color: #A8A0D8;
  }
  :root:not([data-theme="light"]) .vc-credits {
    background: #162321;
  }
  :root:not([data-theme="light"]) .credit-table thead tr {
    background: linear-gradient(90deg, #432323, #6B3535);
  }
  :root:not([data-theme="light"]) .credit-table tbody tr:nth-child(odd)  { background: #162321; }
  :root:not([data-theme="light"]) .credit-table tbody tr:nth-child(even) { background: #1F3230; }
  :root:not([data-theme="light"]) .credit-table tbody tr:hover { background: rgba(90,150,144,0.10); }
  :root:not([data-theme="light"]) .credit-table tbody td {
    color: #EDE8E0;
    border-bottom-color: rgba(237,232,224,0.08);
  }
}

/* ── Print Styles ─────────────────────────────────────────── */
@media print {
  .site-header, .nav-mobile-trigger, .nav-sheet, .nav-backdrop,
  .filter-bar, .map-controls, .nav-utility, .skip-to-content,
  .hero-booking, .map-trails, .trail-tags { display: none !important; }
  body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #000; background: #fff; font-size: 12pt; line-height: 1.5; cursor: auto;
  }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  .page-hero, .hero { margin-top: 0; background: none !important; }
  .container { max-width: 100%; padding: 0; }
  .btn { border: 1px solid #000; background: none !important; color: #000 !important; box-shadow: none !important; }
  img { max-width: 100% !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  footer { background: none !important; color: #000 !important; border-top: 2px solid #000; }
  footer a { color: #333; }
  .footer-col h4 { color: #000; }
}

/* ================================================================
   VINECLUB PAGE
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.vc-hero {
  margin-top: 105px;
  min-height: 280px;
  background: linear-gradient(135deg, #3D1525 0%, #6B1F3C 45%, #4A1528 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 48px 0;
}
.vc-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.vc-hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: 5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,15,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.vc-hero .container { position: relative; z-index: 1; text-align: center; }
.vc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.18);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.vc-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.vc-hero h1 span { color: var(--gold); }
.vc-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(245,241,232,0.8);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.vc-tier-strip {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.vc-tier-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
}
.vc-tier-pill.silver {
  background: rgba(232,232,232,0.12);
  border-color: rgba(192,192,192,0.45);
  color: #E8E8E8;
}
.vc-tier-pill.gold {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.55);
  color: var(--gold);
}
.vc-tier-pill.platinum {
  background: rgba(232,230,240,0.12);
  border-color: rgba(200,196,220,0.55);
  color: #E8E6F0;
}

/* ── Section Shared ───────────────────────────────────────────── */
.vc-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-warm);
  margin-bottom: 8px;
  text-align: center;
  display: block;
}
.vc-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--burgundy);
  margin-bottom: 8px;
  text-align: center;
}
.vc-section-sub {
  font-size: 1rem;
  color: var(--oak);
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Tier Benefits ────────────────────────────────────────────── */
.vc-tiers { padding: 80px 0; background: var(--cream); }
.vc-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tier-card {
  background: transparent;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(42,14,24,0.10);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(42,14,24,0.18);
}
.tier-card-header {
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tier-card-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.tier-card-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.tier-card-range {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.75;
  display: inline-block;
  background: rgba(0,0,0,0.12);
  padding: 3px 12px;
  border-radius: 100px;
  margin-top: 6px;
}
.tier-card-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.tier-benefits-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tier-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: #444;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tier-benefits-list li:last-child { border-bottom: none; }
.tier-benefit-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.6rem;
  font-weight: 700;
}
.tier-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border: 2px solid;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}
.tier-cta:hover { background: rgba(0,0,0,0.04); }

/* Silver */
.tier-silver .tier-card-header {
  background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 50%, #E4E4E4 100%);
  color: #444;
}
.tier-silver .tier-benefit-check { background: #C0C0C0; color: #444; }
.tier-silver .tier-cta { border-color: #C0C0C0; color: #666; }

/* Gold */
.tier-gold .tier-card-header {
  background: linear-gradient(135deg, #D4AF37 0%, #B8960F 50%, #D4AF37 100%);
  color: #fff;
}
.tier-gold .tier-benefit-check { background: var(--gold); color: #fff; }
.tier-gold .tier-cta { border-color: var(--gold); color: var(--gold-warm); }

/* Platinum */
.tier-platinum .tier-card-header {
  background: linear-gradient(135deg, #E8E6F0 0%, #B0ACCC 35%, #D8D4EC 60%, #9890BC 100%);
  color: #2a1f4a;
}
.tier-platinum .tier-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: platinumShimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes platinumShimmer {
  0%, 100% { background-position: -100% -100%; }
  50% { background-position: 100% 100%; }
}
.tier-platinum .tier-benefit-check { background: #9890BC; color: #fff; }
.tier-platinum .tier-cta { border-color: #9890BC; color: #6B61A0; }

/* ── Credits Table ────────────────────────────────────────────── */
.vc-credits { padding: 80px 0; background: var(--white); }
.vc-credits .container { max-width: 760px; }
.credit-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(42,14,24,0.08);
  margin-bottom: 20px;
}
.credit-table thead tr { background: linear-gradient(90deg, var(--burgundy), #8B2A50); }
.credit-table thead th {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  text-align: left;
}
.credit-table thead th:nth-child(2) { text-align: center; }
.credit-table tbody tr:nth-child(even) { background: var(--cream); }
.credit-table tbody tr:nth-child(odd) { background: var(--white); }
.credit-table tbody tr:hover { background: rgba(212,175,55,0.08); }
.credit-table tbody td {
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--burgundy-deep);
  border-bottom: 1px solid #EFE7D9;
  vertical-align: middle;
}
.credit-table tbody tr:last-child td { border-bottom: none; }
.credit-pts {
  text-align: center;
}
.credit-pts span {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-warm));
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}
.credit-note {
  font-size: 0.82rem;
  color: var(--oak);
  text-align: center;
  padding: 12px 0;
  opacity: 0.85;
}

/* ── Registration Form ────────────────────────────────────────── */
.vc-register { padding: 80px 0; background: var(--cream); }
.vc-register .container { max-width: 640px; }
.vc-register .form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid #E8DFD0;
  box-shadow: 0 4px 32px rgba(42,14,24,0.10);
}
.vc-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 36px;
}
.vine-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.vine-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 58%; right: -42%;
  height: 2px;
  background: #E0D5C5;
  z-index: 0;
}
.vine-step.done:not(:last-child)::after { background: var(--gold); }
.vine-step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #E0D5C5;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.vine-step.active .vine-step-circle {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.2);
}
.vine-step.done .vine-step-circle { background: var(--green); color: #fff; }
.vine-step-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aaa;
  text-align: center;
  white-space: nowrap;
}
.vine-step.active .vine-step-label { color: var(--gold-warm); }
.vine-step.done .vine-step-label { color: var(--green); }

.form-step-panel { display: none; }
.form-step-panel.active { display: block; }
.vc-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #EFE7D9;
  gap: 12px;
}

/* Preference checkboxes */
.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.pref-item { position: relative; }
.pref-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.pref-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid #DDD2BF;
  border-radius: var(--radius-md);
  background: var(--cream);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--burgundy-deep);
  transition: var(--transition);
  user-select: none;
}
.pref-item input[type="checkbox"]:checked + label {
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
  color: var(--burgundy);
}
.pref-item label::before {
  content: '';
  width: 14px; height: 14px;
  border: 1.5px solid #C5B89A;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  transition: var(--transition);
}
.pref-item input[type="checkbox"]:checked + label::before {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Newsletter toggle */
.newsletter-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid #DDD2BF;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 16px;
  user-select: none;
}
.toggle-label-text { font-size: 0.88rem; font-weight: 600; color: var(--burgundy-deep); }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: #DDD2BF;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-track { background: var(--gold); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }

/* Payment Step */
.vc-payment-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(74,93,62,0.07);
  border: 1px solid rgba(74,93,62,0.2);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #2a3d20;
  margin-bottom: 20px;
  line-height: 1.5;
}
.vc-payment-notice svg { flex-shrink: 0; margin-top: 1px; }
.stripe-element-wrap {
  border: 1.5px solid #DDD2BF;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--cream);
  transition: var(--transition);
  min-height: 48px;
}
.stripe-element-wrap.StripeElement--focus,
.stripe-element-wrap:focus-within {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.stripe-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--oak);
  margin-top: 8px;
}

/* Success screen */
.vc-success { display: none; text-align: center; padding: 48px 24px; }
.vc-success.visible { display: block; }
.vc-success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--green), #3A4D2E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.vc-success h3 { font-size: 1.4rem; font-weight: 800; color: var(--burgundy); margin-bottom: 10px; }
.vc-success p { color: var(--oak); font-size: 0.95rem; line-height: 1.6; }

/* ── Certificate Section ─────────────────────────────────────── */
.vc-certificates {
  padding: 80px 0;
  background: linear-gradient(135deg, #4A1528 0%, #6B1F3C 100%);
  color: var(--white);
}
.vc-certificates .vc-section-label { color: rgba(212,175,55,0.85); }
.vc-certificates .vc-section-title { color: var(--white); }
.vc-certificates .vc-section-sub { color: rgba(245,241,232,0.75); }
.vc-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.cert-wrap {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.cert-wrap:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.cert-tier-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.8;
}
.cert-canvas {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  display: block;
  margin-bottom: 16px;
}
.cert-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.cert-btn-download { background: rgba(212,175,55,0.9); color: #fff; }
.cert-btn-download:hover { background: var(--gold); }
.cert-btn-share {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}
.cert-btn-share:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive overrides ─────────────────────────────────────── */
@media (max-width: 900px) {
  .vc-tiers-grid { grid-template-columns: 1fr; }
  .vc-certs-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .vc-hero { margin-top: 64px; }
}
@media (max-width: 768px) {
  .vc-hero { margin-top: 56px; min-height: 200px; padding: 32px 0; }
  .vc-tiers, .vc-credits, .vc-register, .vc-certificates { padding: 48px 0; }
  .credit-table thead th { padding: 10px 12px; font-size: 0.7rem; }
  .credit-table tbody td { padding: 10px 12px; font-size: 0.85rem; }
  .vc-section-title { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  .vc-section-sub { font-size: 0.9rem; margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .vc-register .form-card { padding: 28px 20px; }
  .pref-grid { grid-template-columns: repeat(2, 1fr); }
  .vc-step-nav { flex-direction: column; }
  .vc-step-nav .btn { width: 100%; }
}
@media (max-width: 479px) {
  .vc-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .vc-hero-sub { font-size: 0.9rem; }
  .vc-tier-strip { gap: 8px; }
  .vc-tier-pill { padding: 8px 14px; font-size: 0.75rem; }
  .vine-step-label { font-size: 0.6rem; }
  .vine-step-circle { width: 28px; height: 28px; font-size: 0.75rem; }
  .pref-grid { grid-template-columns: 1fr; }
  .pref-item label { font-size: 0.78rem; padding: 8px 10px; }
  .tier-card-header { padding: 24px 20px 18px; }
  .tier-card-body { padding: 18px 20px 22px; }
  .tier-card-name { font-size: 1.2rem; }
  .cert-wrap { padding: 16px; }
  .cert-btn { padding: 8px 14px; font-size: 0.72rem; }
  .vc-register .form-card { padding: 20px 16px; }
  .vc-step-nav .btn { min-width: 0; }
  .credit-table thead th { padding: 8px; font-size: 0.65rem; letter-spacing: 0.04em; }
  .credit-table tbody td { padding: 8px; font-size: 0.8rem; }
}
@media (max-width: 374px) {
  .vc-hero h1 { font-size: 1.4rem; }
  .vc-tier-strip { flex-direction: column; align-items: center; }
  .vine-step:not(:last-child)::after { display: none; }
  .vc-steps { gap: 4px; }
  .tier-card-name { font-size: 1.1rem; }
  .credit-table { font-size: 0.75rem; }
  .credit-pts span { font-size: 0.75rem; padding: 3px 10px; }
}

/* ── 2XS — Budget Phone (≤ 320px) — VineClub ────────────── */
@media (max-width: 320px) {
  .vc-hero { min-height: 160px; padding: 24px 0; }
  .vc-hero h1 { font-size: 1.25rem; }
  .vc-hero-sub { font-size: 0.82rem; }
  .vc-tier-pill { padding: 6px 10px; font-size: 0.68rem; }
  .vc-tiers, .vc-credits, .vc-register, .vc-certificates { padding: 32px 0; }
  .vc-section-title { font-size: clamp(1.1rem, 4vw, 1.4rem); }
  .vc-section-sub { font-size: 0.82rem; }
  .vc-register .form-card { padding: 16px 12px; }
  .tier-card-header { padding: 18px 14px 14px; }
  .tier-card-body { padding: 14px; }
  .tier-card-name { font-size: 1rem; }
  .tier-benefits-list li { font-size: 0.78rem; }
  .credit-table thead th { padding: 6px; font-size: 0.6rem; }
  .credit-table tbody td { padding: 6px; font-size: 0.72rem; }
  .cert-wrap { padding: 12px; }
  .cert-btn { padding: 7px 10px; font-size: 0.68rem; }
  .vine-step-circle { width: 24px; height: 24px; font-size: 0.68rem; }
  .vine-step-label { font-size: 0.55rem; }
}


/* ── Role-Based Topbar ─────────────────────────────────────────────────────
   Classes used by js/nav-role.js to render user state in #topbarCta.
   WCAG AAA verified:
     .vb-avatar text (white on forest/maroon gradient): ≥ 8:1 ✓
     .vb-admin-badge (deep-maroon on gold): ≥ 7.2:1 ✓
     .vb-display-name (deep-maroon on white): ≥ 9.1:1 ✓
   ─────────────────────────────────────────────────────────────────────────── */

/* User chip container */
.vb-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Circular initials avatar */
.vb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vb-forest, #1C4F3D), var(--vb-deep-maroon, #4A1F2A));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  user-select: none;
}

/* Display name next to avatar */
.vb-display-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vb-deep-maroon, #4A1F2A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Admin role badge pill */
.vb-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--gold, #D4AF37);
  color: var(--vb-deep-maroon, #4A1F2A);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Breadcrumb (standardized) ────────────────────────────── */
.vb-breadcrumb { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--vb-medium-gray); margin-bottom:16px; }
.vb-breadcrumb a { color:var(--vb-link); text-decoration:none; transition:var(--transition); }
.vb-breadcrumb a:hover { color:var(--vb-forest); text-decoration:underline; }
.vb-breadcrumb svg { width:12px; height:12px; color:var(--vb-medium-gray); flex-shrink:0; }
.vb-breadcrumb span { color:var(--vb-deep-maroon); font-weight:600; }

/* ── Emoji replacement icons ──────────────────────────────── */
.vb-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tier-card-icon .vb-icon   { width: 2rem; height: 2rem; }
.exp-icon .vb-icon         { width: 2rem; height: 2rem; }
.estate-card-header .vb-icon { width: 2.4rem; height: 2.4rem; stroke: #fff; }
.stat-icon .vb-icon        { width: 1.6rem; height: 1.6rem; }

/* ===== TIER COMPARISON TABLE ===== */
/* Light mode: .vc-tiers background = var(--cream) #EDE8E0.
   Dark mode:  var(--cream) remaps to #0E1917 (dark teal-black). */

.vc-tier-table-wrap {
  margin-top: 32px;
  border: 2px solid #8C6068;
  border-radius: 12px;
  overflow: hidden;
}

.vc-tier-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Column widths: Benefit 45%, each tier col 18.33%
   At 390px (iPhone 16e) with 16px side padding → ~358px content
   → ~161px benefit + ~65px per tier — fits without scroll */
.vc-tier-table .benefit-col {
  width: 45%;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.vc-tier-table .tier-col {
  width: 18.33%;
  text-align: center;
}

/* Every cell gets a visible grid line */
.vc-tier-table th,
.vc-tier-table td {
  padding: 12px 10px;
  font-size: 13px;
  vertical-align: middle;
  border: 1.5px solid #B09098;
}

/* Header row */
.vc-tier-table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2.5px solid #8C6068;
}

.vc-tier-table thead .benefit-col {
  color: #5C2632;
  background: rgba(92,38,50,0.06);
}

.tier-col-silver {
  background: rgba(90,90,105,0.14);
  color: #28283A;
}

.tier-col-gold {
  background: rgba(160,110,0,0.14);
  color: #5C3D00;
}

.tier-col-platinum {
  background: rgba(65,55,125,0.14);
  color: #2D2468;
}

/* Body rows */
.vc-tier-table tbody tr {}

.vc-tier-table tbody tr:nth-child(even) {
  background: rgba(92,38,50,0.04);
}


.vc-tier-table tbody .benefit-col {
  color: #1A0E12;
  font-weight: 500;
}

/* Tier value cells (e.g. discount percentages) */
.tier-val-silver   { color: #28283A; font-weight: 700; }
.tier-val-gold     { color: #5C3D00; font-weight: 700; }
.tier-val-platinum { color: #2D2468; font-weight: 700; }

/* SVG check icons */
.vc-tier-table td:nth-child(2) .tier-check { stroke: #505065; }
.vc-tier-table td:nth-child(3) .tier-check { stroke: #8B5C00; }
.vc-tier-table td:nth-child(4) .tier-check { stroke: #3D3490; }

/* Dash for not-included */
.tier-dash {
  color: rgba(26,14,18,0.35);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

/* CTA below table */
.vc-tiers-cta {
  text-align: center;
  margin-top: 32px;
}

/* ── Dark mode overrides — (a) explicit toggle ───────────────── */
[data-theme="dark"] .vc-tier-table-wrap {
  border-color: rgba(180,150,160,0.35);
}

[data-theme="dark"] .vc-tier-table th,
[data-theme="dark"] .vc-tier-table td {
  border-color: rgba(180,150,160,0.2);
}

[data-theme="dark"] .vc-tier-table thead th {
  border-bottom-color: rgba(180,150,160,0.45);
}

[data-theme="dark"] .vc-tier-table thead .benefit-col {
  color: #E8D8DC;
  background: rgba(180,120,130,0.12);
}

[data-theme="dark"] .tier-col-silver {
  background: rgba(180,180,200,0.12);
  color: #C8C8D8;
}

[data-theme="dark"] .tier-col-gold {
  background: rgba(212,175,55,0.14);
  color: #D4AF37;
}

[data-theme="dark"] .tier-col-platinum {
  background: rgba(140,130,210,0.14);
  color: #B0A8E0;
}

[data-theme="dark"] .vc-tier-table tbody tr:nth-child(even) {
  background: rgba(180,150,160,0.06);
}


[data-theme="dark"] .vc-tier-table tbody .benefit-col {
  color: #EDE8E0;
  font-weight: 400;
}

[data-theme="dark"] .tier-val-silver   { color: #C8C8D8; }
[data-theme="dark"] .tier-val-gold     { color: #D4AF37; }
[data-theme="dark"] .tier-val-platinum { color: #B0A8E0; }

[data-theme="dark"] .vc-tier-table td:nth-child(2) .tier-check { stroke: #A8A8C0; }
[data-theme="dark"] .vc-tier-table td:nth-child(3) .tier-check { stroke: #D4AF37; }
[data-theme="dark"] .vc-tier-table td:nth-child(4) .tier-check { stroke: #9B92D8; }

[data-theme="dark"] .tier-dash { color: rgba(237,232,224,0.35); }

/* ── Dark mode overrides — (b) OS preference ────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vc-tier-table-wrap {
    border-color: rgba(180,150,160,0.35);
  }

  :root:not([data-theme="light"]) .vc-tier-table th,
  :root:not([data-theme="light"]) .vc-tier-table td {
    border-color: rgba(180,150,160,0.2);
  }

  :root:not([data-theme="light"]) .vc-tier-table thead th {
    border-bottom-color: rgba(180,150,160,0.45);
  }

  :root:not([data-theme="light"]) .vc-tier-table thead .benefit-col {
    color: #E8D8DC;
    background: rgba(180,120,130,0.12);
  }

  :root:not([data-theme="light"]) .tier-col-silver {
    background: rgba(180,180,200,0.12);
    color: #C8C8D8;
  }

  :root:not([data-theme="light"]) .tier-col-gold {
    background: rgba(212,175,55,0.14);
    color: #D4AF37;
  }

  :root:not([data-theme="light"]) .tier-col-platinum {
    background: rgba(140,130,210,0.14);
    color: #B0A8E0;
  }

  :root:not([data-theme="light"]) .vc-tier-table tbody tr:nth-child(even) {
    background: rgba(180,150,160,0.06);
  }


  :root:not([data-theme="light"]) .vc-tier-table tbody .benefit-col {
    color: #EDE8E0;
    font-weight: 400;
  }

  :root:not([data-theme="light"]) .tier-val-silver   { color: #C8C8D8; }
  :root:not([data-theme="light"]) .tier-val-gold     { color: #D4AF37; }
  :root:not([data-theme="light"]) .tier-val-platinum { color: #B0A8E0; }

  :root:not([data-theme="light"]) .vc-tier-table td:nth-child(2) .tier-check { stroke: #A8A8C0; }
  :root:not([data-theme="light"]) .vc-tier-table td:nth-child(3) .tier-check { stroke: #D4AF37; }
  :root:not([data-theme="light"]) .vc-tier-table td:nth-child(4) .tier-check { stroke: #9B92D8; }

  :root:not([data-theme="light"]) .tier-dash { color: rgba(237,232,224,0.35); }
}

/* Mobile (≤600px) — reduce padding so "PLATINUM" fits in narrow tier columns */
@media (max-width: 600px) {
  .vc-tier-table th,
  .vc-tier-table td {
    padding: 9px 6px;
    font-size: 12px;
  }

  /* Tier header cells: tighter padding + no letter-spacing so "PLATINUM" fits */
  .vc-tier-table thead .tier-col {
    font-size: 10px;
    letter-spacing: 0;
    padding: 9px 3px;
  }

  .tier-check { width: 15px; height: 15px; }
  .tier-dash  { font-size: 15px; }
}

/* Very small phones (≤374px) */
@media (max-width: 374px) {
  .vc-tier-table .benefit-col { width: 40%; }
  .vc-tier-table .tier-col    { width: 20%; }

  .vc-tier-table th,
  .vc-tier-table td {
    padding: 7px 4px;
    font-size: 11px;
  }

  .vc-tier-table thead .tier-col {
    font-size: 9px;
    padding: 7px 2px;
  }
}

/* iPad mini (768px+) — more generous padding and font */
@media (min-width: 768px) {
  .vc-tier-table th,
  .vc-tier-table td {
    padding: 14px 16px;
    font-size: 15px;
  }

  .vc-tier-table thead th {
    font-size: 14px;
    padding: 14px 16px;
  }
}
