/* ========================================
   APOGENIO — v4 Design System
   Dark Luxe SaaS × Wine Heritage
   Modern AI meets timeless tradition
   ======================================== */

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.03); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes border-dance {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

:root {
  --radius-card: 12px;
  --radius-card-sm: 8px;
  --radius-card-lg: 16px;
  /* Wine */
  --wine: #9b2c3d;
  --wine-dark: #6b1d2a;
  --wine-deeper: #3d1018;
  --wine-light: #f8eef0;
  --wine-glow: rgba(155, 44, 61, 0.3);
  --wine-glow-strong: rgba(155, 44, 61, 0.5);

  /* Amber */
  --amber: #d4943a;
  --amber-light: #faf3e8;
  --gold: #e2b04a;

  /* Neutrals */
  --cream: #f7f5f2;
  --cream-dark: #efeae5;
  --warm-white: #fdfcfb;
  --text: #1a1612;
  --text-light: #5c544a;
  --text-muted: #8a8279;
  --border: #e6e1db;

  /* Dark mode surfaces */
  --dark: #1e1b18;
  --dark-surface: #242120;
  --dark-alt: #2a2724;
  --dark-card: #2e2b28;
  --dark-card-hover: #363330;
  --dark-border: #3e3a36;
  --dark-text: #f5f0ea;
  --dark-text-muted: #b5ada5;

  /* Typo */
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

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

  /* Radius */
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px;
  --radius-xl: 16px; --radius-2xl: 20px; --radius-3xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-wine: 0 4px 24px rgba(155,44,61,0.2);
  --shadow-wine-lg: 0 8px 32px rgba(155,44,61,0.3);
  --shadow-dark: 0 8px 32px rgba(0,0,0,0.4);

  /* Widths */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-blog: 720px;

  /* Ease */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

/* Prevent horizontal overflow on all major containers */
.hero, .hero__bg, section, main, header, footer, .container { max-width: 100%; overflow-x: clip; }

/* Mobile hard guard: no child can push past viewport */
@media (max-width: 900px) {
  html, body { overflow-x: clip !important; }
  body > *:not(.float-cta) { max-width: 100vw; overflow-x: clip; }
  img, svg, video, iframe, picture { max-width: 100% !important; height: auto; }
  table { max-width: 100%; display: block; overflow-x: auto; }
  pre, code { max-width: 100%; overflow-x: auto; word-break: break-word; }
  .comparison-table, .comparison-table-wrapper { max-width: 100%; }
  .hero__bg-orb, .hero__bg-orb--wine, .hero__bg-orb--amber, .hero__bg-orb--subtle { max-width: 80vw; max-height: 80vw; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--amber); }
ul, ol { list-style: none; }
::selection { background: var(--wine); color: #fff; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

.text-gradient {
  background: linear-gradient(135deg, var(--wine), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container--narrow { max-width: var(--max-width-narrow); }
.container--blog { max-width: var(--max-width-blog); }

.section { padding: var(--space-6xl) 0; position: relative; }

/* Section themes */
.section--dark {
  background: var(--dark);
  color: var(--dark-text);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.85); }

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

.section--surface {
  background: var(--dark-surface);
  color: var(--dark-text);
}
.section--surface h2, .section--surface h3 { color: #fff; }
.section--surface p { color: rgba(255,255,255,0.85); }

.section__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}
.section__header p {
  max-width: 500px;
  margin: var(--space-lg) auto 0;
  font-size: 1.125rem;
}

/* Overline label */
.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.688rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: var(--space-lg);
}
.overline::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--amber);
}

/* === GRIDS === */
.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   SITE BREADCRUMB — unified component
   (padding-top clears 72px fixed site-header)
   ======================================== */
.site-breadcrumb {
  background: #14100e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: calc(72px + 0.85rem) 0 0.85rem;
}
.site-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0 1.5rem;
  margin: 0 auto;
  max-width: 1180px;
  font-size: 0.88rem;
}
.site-breadcrumb a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-breadcrumb a:hover {
  color: #e8a0a8;
  text-decoration: underline;
}
.site-breadcrumb li {
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
}
.site-breadcrumb li[aria-hidden="true"] {
  color: rgba(255,255,255,0.35);
  font-size: 0.95em;
  padding: 0 0.15rem;
}
.site-breadcrumb li[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

/* Mobile accessibility: ensure tappable elements meet WCAG 2.5.5 (>=44x44).
   Covers common dense UI: chip/tag/pill filters, footer links, pagination
   buttons. Desktop styles are untouched. */
@media (max-width: 768px) {
  .tag, .chip, .pill,
  .filter-btn, .pagination button, .pagination a,
  .site-footer a, footer a,
  .author-articles-list a,
  .appellation-chip, .feature-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  /* Nav menu links already full-width, just ensure hit area */
  .nav__links.open a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Hero action buttons were already large enough, but force consistency */
  .btn--small {
    min-height: 44px;
  }
}

/* Light-theme site-breadcrumb for content pages (wine-fiche + listing).
   Overrides the default dark band so the breadcrumb blends with the
   cream page background instead of stacking as a dark stripe above
   the hero image / product grid. */
body[data-page-type="wine-fiche"] .site-breadcrumb,
body[data-page-type="listing"] .site-breadcrumb {
  background: transparent;
  border-bottom: none;
  padding: calc(72px + 8px) 0 4px;
}
body[data-page-type="wine-fiche"] .site-breadcrumb a,
body[data-page-type="listing"] .site-breadcrumb a {
  color: #8a8279;
}
body[data-page-type="wine-fiche"] .site-breadcrumb a:hover,
body[data-page-type="listing"] .site-breadcrumb a:hover {
  color: #9b2c3d;
  text-decoration: none;
}
body[data-page-type="wine-fiche"] .site-breadcrumb li,
body[data-page-type="listing"] .site-breadcrumb li,
body[data-page-type="wine-fiche"] .site-breadcrumb li[aria-current="page"],
body[data-page-type="listing"] .site-breadcrumb li[aria-current="page"] {
  color: #1a1612;
}
body[data-page-type="wine-fiche"] .site-breadcrumb li[aria-hidden="true"],
body[data-page-type="listing"] .site-breadcrumb li[aria-hidden="true"] {
  color: #c0b9b0;
}

/* Mobile tightening: reduce vertical padding and font size so the
   breadcrumb doesn't eat half the viewport above the fold. */
@media (max-width: 640px) {
  body[data-page-type="wine-fiche"] .site-breadcrumb,
  body[data-page-type="listing"] .site-breadcrumb,
  body[data-page-type="vertical"] .site-breadcrumb {
    padding: calc(72px + 4px) 0 2px;
  }
  body[data-page-type="wine-fiche"] .site-breadcrumb ol,
  body[data-page-type="listing"] .site-breadcrumb ol,
  body[data-page-type="vertical"] .site-breadcrumb ol {
    padding: 0 16px;
    font-size: 0.8rem;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  body[data-page-type="wine-fiche"] .site-breadcrumb li[aria-hidden="true"],
  body[data-page-type="listing"] .site-breadcrumb li[aria-hidden="true"],
  body[data-page-type="vertical"] .site-breadcrumb li[aria-hidden="true"] {
    padding: 0 0.1rem;
  }
  /* Hide the current page name on mobile: it wraps visually into a bold second
     line that looks like a duplicate breadcrumb / extra title. The H1 below
     already tells the user where they are. */
  body[data-page-type="wine-fiche"] .site-breadcrumb li[aria-current="page"],
  body[data-page-type="listing"] .site-breadcrumb li[aria-current="page"],
  body[data-page-type="vertical"] .site-breadcrumb li[aria-current="page"] {
    display: none;
  }
  /* Also hide the separator that was sitting just before that current item
     (penultimate li[aria-hidden]) — uses :has() which is supported in all
     evergreen browsers (Chrome 105+, Safari 15.4+, Firefox 121+). Fallback
     is harmless: just a dangling '›' at the end. */
  body[data-page-type="wine-fiche"] .site-breadcrumb li[aria-hidden="true"]:has(+ li[aria-current="page"]),
  body[data-page-type="listing"] .site-breadcrumb li[aria-hidden="true"]:has(+ li[aria-current="page"]),
  body[data-page-type="vertical"] .site-breadcrumb li[aria-hidden="true"]:has(+ li[aria-current="page"]) {
    display: none;
  }
}

/* Add light-theme + vertical page-type so vertical hub pages (appellations,
   cepages, millesimes) can share the same site-breadcrumb styling once we
   move their breadcrumb to the top of the body. */
body[data-page-type="vertical"] .site-breadcrumb {
  background: transparent;
  border-bottom: none;
  padding: calc(72px + 8px) 0 4px;
}
body[data-page-type="vertical"] .site-breadcrumb a {
  color: #8a8279;
}
body[data-page-type="vertical"] .site-breadcrumb a:hover {
  color: #9b2c3d;
  text-decoration: none;
}
body[data-page-type="vertical"] .site-breadcrumb li,
body[data-page-type="vertical"] .site-breadcrumb li[aria-current="page"] {
  color: #1a1612;
}
body[data-page-type="vertical"] .site-breadcrumb li[aria-hidden="true"] {
  color: #c0b9b0;
}

/* ========================================
   HEADER — glass dark
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #121010;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav__logo:hover .nav__logo-text { color: rgba(255,255,255,0.85); }

.nav__logo-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.3s var(--ease);
}
.nav__logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.563rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav__links a {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  font-size: 0.813rem;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: #fff; }

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.nav__dropdown-trigger svg {
  transition: transform 0.3s var(--ease);
}
.nav__dropdown:hover .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 18, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.3s var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 100;
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav__dropdown-menu a:hover {
  background: rgba(155,44,61,0.12);
  color: #fff;
}
.nav__dropdown-menu a::after { display: none; }

.nav__cta { display: inline-flex; align-items: center; gap: var(--space-sm); }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Logo */
.nav__logo img {
  transition: opacity 0.3s var(--ease);
}
.nav__logo:hover img { opacity: 0.8; }

/* Footer logo */
.footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.footer__logo-wrap:hover { opacity: 0.85; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.813rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.03em;
}

.btn--wine {
  background: var(--wine);
  color: #fff;
  box-shadow: var(--shadow-wine), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn--wine:hover {
  background: #b33449;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-wine-lg), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--amber {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--dark);
  font-weight: 800;
}
.btn--amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,148,58,0.3);
  color: var(--dark);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline-light:hover {
  border-color: var(--wine);
  color: var(--wine);
  background: var(--wine-light);
}

.btn--white {
  background: #fff;
  color: var(--wine);
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--wine-dark);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
}
.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.688rem;
}

/* ========================================
   HERO — Dark, cinematic, immersive
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding: 6rem 0;
}
.hero--with-bg {
  background: url('/images/hero-cave.png') center/cover no-repeat;
}
.hero--with-bg .hero__bg {
  background: linear-gradient(180deg,
    rgba(12,10,9,0.55) 0%,
    rgba(12,10,9,0.45) 40%,
    rgba(12,10,9,0.65) 100%
  );
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated gradient mesh background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}
.hero__bg-orb--wine {
  width: 600px; height: 600px;
  top: -10%; right: -5%;
  background: radial-gradient(circle, rgba(155,44,61,0.25) 0%, transparent 70%);
  animation-duration: 22s;
}
.hero__bg-orb--amber {
  width: 500px; height: 500px;
  bottom: -15%; left: -5%;
  background: radial-gradient(circle, rgba(212,148,58,0.15) 0%, transparent 70%);
  animation-duration: 28s;
  animation-direction: reverse;
}
.hero__bg-orb--subtle {
  width: 400px; height: 400px;
  top: 40%; left: 30%;
  background: radial-gradient(circle, rgba(155,44,61,0.08) 0%, transparent 70%);
  animation-duration: 35s;
}

/* Grid pattern overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Radial fade on grid */
.hero__grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--dark) 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(155,44,61,0.15);
  border: 1px solid rgba(155,44,61,0.25);
  color: #e8a0a8;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(8px);
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 8px var(--wine-glow-strong);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  position: relative;
  color: transparent;
  background: linear-gradient(135deg, #e8a0a8, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.188rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

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

/* Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  margin-top: var(--space-5xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--dark-border);
  position: relative;
  z-index: 2;
}
.hero__stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__stat-label {
  font-size: 0.688rem;
  color: var(--dark-text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Hero variant for sub pages (shorter, with bg image support) */
.hero--short {
  min-height: auto;
  padding: 10rem 0 var(--space-4xl);
  background-size: cover !important;
  background-position: center !important;
}

/* ========================================
   CARDS — Glass dark
   ======================================== */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(155,44,61,0.3);
  background: var(--dark-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(155,44,61,0.1);
}

/* Shine effect on hover */
.card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(155,44,61,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* Feature cards */
.feature-card {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
}
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}
.feature-card__icon svg {
  width: 22px; height: 22px;
}
.feature-card__icon--wine {
  background: rgba(155,44,61,0.12);
  border: 1px solid rgba(155,44,61,0.2);
}
.feature-card__icon--amber {
  background: rgba(212,148,58,0.1);
  border: 1px solid rgba(212,148,58,0.2);
}
.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.188rem;
  color: #fff;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}
.feature-card__text {
  color: var(--dark-text-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.75;
}

/* ========================================
   SPLIT SECTION — Asymmetric layout
   ======================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__content { max-width: 480px; }
.split__content h2 { color: #fff; margin-bottom: var(--space-lg); }
.split__content p { color: var(--dark-text-muted); font-size: 1.063rem; }

.split__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing feature box */
.glow-box {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.glow-box::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(155,44,61,0.3), transparent, rgba(212,148,58,0.2));
  z-index: -1;
}
.glow-box__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.glow-box__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.glow-box__item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.glow-box__item-text {
  font-size: 0.875rem;
  color: var(--dark-text);
}
.glow-box__item-text strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ========================================
   WINE CARDS — premium dark (redesigned)
   ======================================== */
.wine-card {
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wine-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Placeholder gradient by color */
.wine-card__visual {
  position: relative;
  overflow: hidden;
}
.wine-card__placeholder {
  width: 100%; height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.wine-card__placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--dark-card));
  pointer-events: none;
}
.wine-card__placeholder--rouge {
  background: linear-gradient(160deg, #1a0810 0%, #3d1520 40%, #5c2230 70%, #4a1a24 100%);
}
.wine-card__placeholder--blanc {
  background: linear-gradient(160deg, #2a2518 0%, #4a3f2a 40%, #5c5040 70%, #3d3525 100%);
}
.wine-card__placeholder--rose {
  background: linear-gradient(160deg, #1f1018 0%, #3a1e2a 40%, #4a2d38 70%, #2d1820 100%);
}
.wine-card__svg {
  opacity: 0.12;
  color: #fff;
  width: 56px; height: 56px;
}

/* Badges on card */
.wine-badge {
  position: absolute;
  top: var(--space-sm); right: var(--space-sm);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 2;
}
.wine-badge--promo {
  background: #dc2626;
  color: #fff;
}
.wine-badge--promo-expired {
  background: #e9e6e1;
  color: #6b5e4e;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.688rem;
}

/* Stats bar on /vins/ and /vins/{region}/ — colors work on both dark and light themes */
.vins-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: var(--space-lg);
}
.vins-stats__cell {
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}
.vins-stats__cell--promo {
  background: rgba(155, 44, 61, 0.08);
}
.vins-stats__num {
  font-size: 24px;
  font-weight: 800;
  color: #1a1612;
  font-family: var(--font-display);
}
.vins-stats__num--amber { color: #a66d1c; }
.vins-stats__num--wine  { color: #9b2c3d; }
.vins-stats__label {
  font-size: 12px;
  color: #6b6560;
  margin-top: 4px;
}
.wine-badge--reward {
  position: static;
  display: inline-block;
  margin-top: var(--space-sm);
  background: rgba(212,148,58,0.12);
  color: var(--amber);
  font-size: 0.563rem;
  border: 1px solid rgba(212,148,58,0.2);
}

.wine-card__body {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wine-card__name {
  font-family: var(--font-serif);
  font-size: 1.063rem;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  font-weight: 500;
}
.wine-card__domain {
  color: var(--dark-text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}
.wine-card__region {
  color: var(--dark-text-muted);
  font-size: 0.75rem;
  margin-bottom: var(--space-md);
}
.wine-card__footer {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}
.wine-card__prices {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}
.wine-card__price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.wine-card__price--promo {
  color: #ef4444;
}
.wine-card__price--original {
  font-size: 0.813rem;
  color: var(--dark-text-muted);
  text-decoration: line-through;
  font-weight: 400;
}
.wine-card__apogee {
  font-size: 0.75rem;
  color: var(--dark-text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Legacy compat */
.wine-card__color {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.563rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}
.wine-card__color--rouge { background: rgba(155,44,61,0.15); color: #e8a0a8; }
.wine-card__color--blanc { background: rgba(212,148,58,0.12); color: var(--amber); }
.wine-card__color--rose { background: rgba(180,100,120,0.12); color: #d4a0b0; }
.wine-card__meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.688rem;
  color: var(--dark-text-muted);
  margin-bottom: var(--space-md);
}
.wine-card__scores { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.score-badge {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.563rem;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: var(--dark-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ========================================
   WINE LISTING TOOLBAR
   ======================================== */
.wine-listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.wine-listing-count {
  font-size: 0.875rem;
  color: var(--dark-text-muted);
}
.wine-listing-count strong {
  color: #fff;
  font-weight: 700;
}

/* ========================================
   WINE SEARCH
   ======================================== */
.wine-search {
  flex: 1;
  max-width: 360px;
}
.wine-search__input {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.813rem;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.wine-search__input::placeholder {
  color: var(--dark-text-muted);
}
.wine-search__input:focus {
  border-color: var(--wine);
  background: rgba(255,255,255,0.06);
}

/* Region select dropdown */
.wine-region-select {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dark-text-muted);
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7570' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.wine-region-select:hover, .wine-region-select:focus {
  border-color: var(--wine);
  color: #fff;
}
.wine-region-select option {
  background: var(--dark-card);
  color: var(--dark-text);
}

/* Pagination dots */
.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--dark-text-muted);
  font-size: 1rem;
}

/* ========================================
   BLOG CARDS
   ======================================== */
.blog-card {
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { color: inherit; }

.blog-card__image {
  width: 100%; height: 280px;
  object-fit: cover;
}

.blog-card__body { padding: var(--space-xl); }

.blog-card__category {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.563rem;
  font-weight: 800;
  background: rgba(155,44,61,0.12);
  color: #e8a0a8;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  font-weight: 500;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--dark-text-muted);
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.75;
}

.blog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.688rem;
  color: var(--dark-text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--dark-border);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-card {
  text-align: center;
  padding: var(--space-2xl);
  padding-top: var(--space-3xl);
  position: relative;
  overflow: visible;
}
.pricing-card--featured {
  border-color: var(--wine);
  box-shadow: var(--shadow-wine), 0 0 0 1px var(--wine);
  background: linear-gradient(180deg, var(--dark-card), rgba(155,44,61,0.05));
}
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--wine), #b33449);
  color: #fff;
  padding: 0.3rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.563rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pricing-card__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.pricing-card__price {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.pricing-card__price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark-text-muted);
}
.pricing-card__features { text-align: left; margin: var(--space-xl) 0; }
.pricing-card__features li {
  padding: 0.65rem 0;
  font-size: 0.875rem;
  color: var(--dark-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--dark-border);
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li::before {
  content: "✓";
  color: var(--amber);
  font-weight: 800;
  font-size: 0.75rem;
}

/* ========================================
   CTA BANNER — gradient border
   ======================================== */
.cta-banner {
  position: relative;
  padding: var(--space-4xl) var(--space-2xl);
  border-radius: var(--radius-3xl);
  text-align: center;
  background: var(--dark-surface);
  overflow: hidden;
}
.cta-banner--image {
  background-size: cover;
  background-position: center;
}
/* Image CTA overlay — real div, not pseudo */
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,10,9,0.65);
  border-radius: inherit;
  z-index: 0;
}
.cta-banner--image > *:not(.cta-overlay) {
  position: relative;
  z-index: 1;
}
.cta-banner--image p {
  color: #fff !important;
  opacity: 0.85;
}
.cta-banner--image h2 {
  color: #fff !important;
}
/* Hide default decorative pseudo-elements on image CTAs */
.cta-banner--image::before,
.cta-banner--image::after {
  display: none;
}
/* Animated gradient border */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--wine), transparent 40%, transparent 60%, var(--amber));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* Glow orb */
.cta-banner::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,44,61,0.15) 0%, transparent 70%);
  filter: blur(40px);
}
.cta-banner h2 { color: #fff; position: relative; z-index: 1; }
.cta-banner p {
  color: var(--dark-text-muted);
  font-size: 1.063rem;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.cta-banner .btn { position: relative; z-index: 1; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--dark);
  color: var(--dark-text-muted);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--dark-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
.footer__grid--6 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0 var(--space-2xl);
}
@media (max-width: 1100px) {
  .footer__grid--6 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__grid--6 { grid-template-columns: 1fr; }
}
.footer__grid--5 {
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr;
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
}
.footer__desc {
  font-size: 0.813rem;
  line-height: 1.8;
  color: var(--dark-text-muted);
}
.footer__title {
  font-size: 0.625rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
  color: var(--dark-text-muted);
  font-size: 0.813rem;
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.688rem;
  color: rgba(255,255,255,0.2);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 0.688rem;
  color: var(--dark-text-muted);
  letter-spacing: 0.02em;
  background: var(--dark);
}
.breadcrumb a { color: var(--dark-text-muted); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.3; }
.breadcrumb__sep { margin: 0 0.3rem; opacity: 0.4; }

/* ========================================
   ARTICLE — Light mode for readability
   ======================================== */
.article-hero {
  padding: 7rem 0 var(--space-2xl);
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.article-hero--with-image {
  padding: 0;
}
.article-hero__image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.article-hero__overlay {
  background: var(--dark);
  padding: 2.5rem 0 var(--space-2xl);
  margin-top: 0;
  position: relative;
  z-index: 1;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,44,61,0.1) 0%, transparent 70%);
  filter: blur(40px);
}
.article-hero h1 {
  color: #fff;
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1.15;
  margin-top: 0.75rem;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--dark-text-muted);
  font-weight: 600;
}
.article-hero__meta-divider {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--dark-text-muted);
}

/* Article body — LIGHT for readability */
.article-body {
  background: var(--cream);
  padding: var(--space-4xl) 0;
}

.article-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text);
}
.article-content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
  color: var(--text);
  position: relative;
  padding-left: var(--space-lg);
}
.article-content h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0.15em;
  width: 4px; height: 0.85em;
  background: linear-gradient(180deg, var(--wine), var(--amber));
  border-radius: 4px;
}
.article-content h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.375rem;
  color: var(--text);
}
.article-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}
.article-content strong { color: var(--text); font-weight: 700; }
.article-content em { color: var(--wine); }

.article-content ul, .article-content ol {
  margin-bottom: var(--space-lg);
  padding-left: 0;
}
.article-content li {
  margin-bottom: 0.6rem;
  color: var(--text-light);
  padding-left: var(--space-xl);
  position: relative;
  line-height: 1.75;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0.3rem; top: 0.65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--wine);
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--wine);
}

.article-content blockquote {
  border-left: 3px solid var(--wine);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  margin: var(--space-2xl) 0;
  background: var(--wine-light);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  position: relative;
}
.article-content blockquote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--wine);
  opacity: 0.1;
  position: absolute;
  top: -0.1em; left: 0.2em;
  line-height: 1;
}
.article-content blockquote p {
  color: var(--text);
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.063rem;
}

/* Info boxes (light context) */
.info-box {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}
.info-box--wine {
  background: var(--wine-light);
  border-color: #e8d0d4;
}
.info-box__title {
  font-family: var(--font-serif);
  font-size: 0.938rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text);
  font-weight: 600;
}

/* Table of contents */
.toc {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.toc::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--wine), var(--amber));
}
.toc__title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text);
}
.toc ol { counter-reset: toc-counter; padding-left: 0; }
.toc li {
  counter-increment: toc-counter;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(30, 15%, 94%);
}
.toc li:last-child { border-bottom: none; }
.toc li::before {
  content: counter(toc-counter) ".";
  color: var(--wine);
  font-weight: 700;
  margin-right: var(--space-sm);
  font-size: 0.75rem;
  font-family: var(--font-serif);
}
.toc a { color: var(--text-light); font-size: 0.813rem; font-weight: 500; }
.toc a:hover { color: var(--wine); }

/* Article CTA (light bg) */
.article-cta {
  background: var(--dark);
  border-radius: var(--radius-3xl);
  padding: var(--space-3xl);
  text-align: center;
  margin-top: var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,44,61,0.15) 0%, transparent 70%);
}
.article-cta h2 { color: #fff; font-size: 1.75rem; margin-bottom: var(--space-md); position: relative; z-index: 1; }
.article-cta p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-xl); max-width: 380px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.article-cta .btn { position: relative; z-index: 1; }

/* Related articles (light bg) */
.related { margin-top: var(--space-3xl); }
.related h3 { color: var(--text); margin-bottom: var(--space-lg); }
.related .card { background: var(--warm-white); border-color: var(--border); }
.related .card:hover { background: #fff; border-color: var(--wine); box-shadow: var(--shadow-md); }
.related .blog-card__category { background: var(--wine-light); color: var(--wine); }
.related .blog-card__title { color: var(--text); }
.related .blog-card__footer { color: var(--text-muted); border-color: var(--border); }

/* ========================================
   WINE DETAIL PAGE (redesigned)
   ======================================== */
.wine-hero {
  padding: 7rem 0 var(--space-2xl);
  background: var(--dark);
}
.wine-hero__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
.wine-hero__visual {
  position: relative;
}
.wine-hero__visual .wine-card__placeholder {
  height: 360px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-dark);
}
.wine-hero__visual .wine-card__placeholder svg {
  opacity: 0.1;
  color: #fff;
}
.wine-hero__visual .wine-badge {
  top: var(--space-md);
  right: var(--space-md);
}
.wine-hero__image {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-dark);
}
.wine-hero__info h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.wine-hero__domain {
  font-size: 1.063rem;
  color: var(--dark-text-muted);
  margin-bottom: var(--space-lg);
}
.wine-hero__tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--dark-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--rouge {
  background: rgba(155,44,61,0.15);
  border-color: rgba(155,44,61,0.25);
  color: #e8a0a8;
}
.tag--blanc {
  background: rgba(212,148,58,0.12);
  border-color: rgba(212,148,58,0.2);
  color: var(--amber);
}
.tag--rose {
  background: rgba(180,100,120,0.12);
  border-color: rgba(180,100,120,0.2);
  color: #d4a0b0;
}

/* Price block on detail page */
.wine-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.wine-price-block__current {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.wine-price-block__original {
  font-size: 1.125rem;
  color: var(--dark-text-muted);
  text-decoration: line-through;
}

/* Merchant offer */
.merchant-offers {
  margin-top: var(--space-md);
}
.merchant-offer {
  display: inline-flex;
  font-size: 0.938rem;
}

/* Section titles */
.wine-section-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

/* Characteristics grid */
.wine-charac {
  margin-bottom: var(--space-3xl);
}
.wine-charac__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.wine-charac__item {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}
.wine-charac__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--dark-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.wine-charac__value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* Tasting notes */
.wine-tasting {
  margin-bottom: var(--space-3xl);
}
.wine-tasting__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.wine-tasting__item {
  background: rgba(155,44,61,0.06);
  border: 1px solid rgba(155,44,61,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.wine-tasting__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  color: #e8a0a8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.wine-tasting__text {
  font-size: 0.875rem;
  color: var(--dark-text);
  line-height: 1.6;
  margin: 0;
}

/* Food pairing */
.wine-pairing {
  margin-bottom: var(--space-3xl);
}
.wine-pairing__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.wine-pairing__tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(212,148,58,0.08);
  border: 1px solid rgba(212,148,58,0.15);
  color: var(--amber);
  font-size: 0.813rem;
  font-weight: 600;
}

/* Apogee bar */
.wine-apogee {
  margin-bottom: var(--space-3xl);
}
.wine-apogee__bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.wine-apogee__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--amber));
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}
.wine-apogee__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--dark-text-muted);
}
.wine-apogee__year {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #e8a0a8;
  font-size: 1rem;
}

/* Reward */
.wine-reward {
  margin-bottom: var(--space-3xl);
}
.wine-reward__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(212,148,58,0.08);
  border: 1px solid rgba(212,148,58,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-xl);
  color: var(--amber);
  font-size: 0.875rem;
  font-weight: 600;
}
.wine-reward__badge svg {
  color: var(--amber);
  flex-shrink: 0;
}

/* SEO content on wine pages */
.wine-seo-content {
  color: var(--dark-text);
}
.wine-seo-content h2 {
  color: #fff !important;
  font-family: var(--font-serif);
}
.wine-seo-content h3 {
  color: #fff !important;
}
.wine-seo-content p {
  color: var(--dark-text);
}
.wine-seo-content a {
  color: var(--amber);
}
.wine-seo-content a:hover {
  color: #fff;
}

/* Legacy compat */
.wine-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.wine-detail-item__label {
  font-size: 0.563rem; font-weight: 800;
  color: var(--dark-text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.wine-detail-item__value { font-size: 1rem; font-weight: 600; color: #fff; }

.apogee-badge {
  display: inline-flex; align-items: center; gap: var(--space-md);
  background: rgba(155,44,61,0.1);
  border: 1px solid rgba(155,44,61,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-lg) 0;
}
.apogee-badge__year {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 600;
  color: #e8a0a8;
  line-height: 1;
}
.apogee-badge__label {
  font-size: 0.625rem;
  color: var(--dark-text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}

/* ========================================
   FILTERS & PAGINATION
   ======================================== */
.filters {
  display: flex; gap: var(--space-sm); flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dark-text-muted);
  font-family: var(--font-body);
  font-size: 0.688rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.pagination {
  display: flex; justify-content: center;
  gap: var(--space-sm); margin-top: var(--space-2xl);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--border);
  color: var(--dark-text-muted);
  transition: all 0.3s var(--ease);
}
.pagination a:hover, .pagination .active {
  background: var(--wine); color: #fff; border-color: var(--wine);
}

/* Server-side pagination (listing.php) */
.pagination--server { flex-wrap: wrap; padding: 0 16px; }
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  border: 1px solid rgba(0,0,0,0.1);
  color: #1a1612;
  text-decoration: none;
  background: #fff;
  transition: all 0.2s ease;
}
.pagination__btn:hover { background: #9b2c3d; color: #fff; border-color: #9b2c3d; }
.pagination__btn--current { background: #9b2c3d; color: #fff; border-color: #9b2c3d; cursor: default; }
.pagination__btn--prev, .pagination__btn--next { padding: 0 16px; }
.pagination__dots { padding: 0 8px; color: #8a8279; display: inline-flex; align-items: center; }

/* ========================================
   IMAGE BREAK — Full width visual dividers
   ======================================== */
.image-break {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
}
.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-break--parallax img {
  height: 130%;
  object-position: center 30%;
}
.image-break__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--dark) 0%,
    transparent 20%,
    transparent 80%,
    var(--dark) 100%
  );
  pointer-events: none;
}
.image-break__overlay--surface {
  background: linear-gradient(180deg,
    var(--dark-surface) 0%,
    transparent 20%,
    transparent 80%,
    var(--dark-surface) 100%
  );
}

/* Quote banner over image */
.image-break__quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  z-index: 1;
}
.image-break__quote blockquote {
  max-width: 600px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.image-break__quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  margin-top: var(--space-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}
.fade-up-delay-1 { animation-delay: 0.12s; }
.fade-up-delay-2 { animation-delay: 0.24s; }
.fade-up-delay-3 { animation-delay: 0.4s; }
.fade-up-delay-4 { animation-delay: 0.55s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* ========================================
   PHONE MOCKUP
   ======================================== */
.phone-mockup {
  width: 280px;
  margin: 0 auto;
  position: relative;
}
.phone-mockup__frame {
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(155,44,61,0.1);
  position: relative;
  overflow: hidden;
}
.phone-mockup__notch {
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-mockup__screen {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.phone-mockup__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Glow behind phone */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -20%;
  width: 140%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(155,44,61,0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* Screenshots tabs section */
.screenshots-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}
.screenshots-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dark-text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.screenshots-tab:hover,
.screenshots-tab.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.screenshots-panel {
  display: none;
  text-align: center;
}
.screenshots-panel.active {
  display: block;
}
.screenshots-panel__desc {
  font-size: 0.938rem;
  color: var(--dark-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Multi-phone display */
.phones-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-xl);
}
.phones-row .phone-mockup {
  width: 220px;
}
.phones-row .phone-mockup:nth-child(2) {
  transform: translateY(-20px);
}

/* ========================================
   SOCIAL PROOF (Hero)
   ======================================== */
.hero__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  font-size: 0.813rem;
  color: var(--dark-text-muted);
  font-weight: 500;
  position: relative;
  z-index: 2;
}
.hero__stars {
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* French badge */
.hero__french-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.25rem;
  margin-top: var(--space-md);
  position: relative;
  z-index: 2;
}
.hero__french-badge img {
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.hero__french-badge span {
  font-size: 0.81rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
}

/* Store badges — official */
.hero__stores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 2;
}
.store-badge-official {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s var(--ease);
  opacity: 0.85;
  height: 44px;
}
.store-badge-official:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.store-badge-official img,
.store-badge-official svg {
  display: block;
  width: 135px;
  height: 44px;
  object-fit: contain;
}


/* ========================================
   AWARDS ROW
   ======================================== */
.awards-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.award-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: var(--space-md) var(--space-lg);
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s var(--ease);
  min-width: 110px;
  min-height: 70px;
}
.award-badge:hover {
  border-color: rgba(196, 162, 101, 0.3);
  background: rgba(196, 162, 101, 0.05);
}
.award-badge__initials {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #c4a265;
  line-height: 1;
  letter-spacing: -0.02em;
}
.award-badge__name {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.3;
}

/* ========================================
   STEP CARDS (How it works)
   ======================================== */
.step-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}
.step-card__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, rgba(155,44,61,0.15), transparent);
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  border: 1px solid rgba(155,44,61,0.2);
}
.step-card__time {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: var(--space-md);
}
.step-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}
.step-card__text {
  font-size: 0.813rem;
  color: var(--dark-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================================
   TESTIMONIAL CARDS
   ======================================== */
.testimonial-card {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.testimonial-card__stars {
  color: var(--amber);
  font-size: 0.875rem;
  letter-spacing: 3px;
}
.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: 1.063rem;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.7;
  margin-bottom: 0;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--dark-border);
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), rgba(155,44,61,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.688rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}
.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--dark-text-muted);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-text-muted);
}
.comparison-table th {
  font-size: 0.688rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  padding-bottom: var(--space-lg);
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--dark-text);
}
.comparison-table__highlight {
  background: rgba(155,44,61,0.06);
  color: #fff !important;
  font-weight: 700 !important;
  position: relative;
}
.comparison-table thead .comparison-table__highlight {
  color: var(--amber) !important;
  font-size: 0.75rem !important;
}
.comparison-table tbody .comparison-table__highlight {
  color: var(--amber) !important;
}
.comparison-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--dark-text-muted);
  margin-top: var(--space-lg);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.faq-item[open] {
  border-color: rgba(155,44,61,0.3);
  background: var(--dark-card-hover);
}
.faq-item__question {
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.938rem;
  color: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color 0.3s var(--ease);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--dark-text-muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-item__question::after {
  content: '−';
  color: var(--amber);
}
.faq-item__question:hover { color: var(--amber); }
.faq-item__answer {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.875rem;
  color: var(--dark-text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Global media-safe rules */
img, svg, video, picture, iframe {
  max-width: 100%;
  height: auto;
}
.article-content img,
.article-content svg,
.article-content video,
.article-content iframe { max-width: 100%; height: auto; }

/* Long word/URL break in article body */
.article-content p,
.article-content li,
.article-content a,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-content pre,
.article-content code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Article tables: scroll horizontally on mobile instead of overflowing */
.article-content table {
  display: table;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* References block bounded */
.references,
.references ol,
.references li,
.references a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid--5 { grid-template-columns: 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .split--reverse { direction: ltr; }
  h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
  h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
  .section { padding: var(--space-5xl) 0; }
}

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

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(12,10,9,0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--dark-border);
    gap: var(--space-md);
    align-items: stretch;
  }
  .nav__links.open a { font-size: 0.95rem; padding: 0.35rem 0; }

  /* Show CTAs inside the mobile menu (hidden when closed). */
  .nav__cta { display: none; }
  .nav__links.open .nav__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.open .nav__cta .btn { width: 100%; justify-content: center; }

  .hero { min-height: auto; padding: 7rem 0 var(--space-3xl); text-align: center; }
  .hero h1 { font-size: clamp(2.25rem, 8vw, 3.25rem); }
  .hero__subtitle { font-size: 1rem; padding: 0 var(--space-sm); }
  .hero__stats { flex-direction: column; gap: var(--space-lg); align-items: center; margin-top: var(--space-3xl); }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero__actions .btn { width: 100%; }
  .hero__social-proof { flex-wrap: wrap; justify-content: center; text-align: center; font-size: 0.75rem; }
  .hero__stores { flex-wrap: wrap; gap: var(--space-sm); }
  .store-badge-official img,
  .store-badge-official svg { width: 120px; height: 38px; }

  /* Footer: force single column on all variants at ≤768 */
  .footer__grid,
  .footer__grid--5,
  .footer__grid--6 { grid-template-columns: 1fr !important; gap: var(--space-xl); }
  .site-footer { padding: var(--space-3xl) 0 var(--space-lg); }

  /* Dropdown on mobile: always open, inline */
  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-md);
    min-width: auto;
  }
  .nav__dropdown-trigger svg { display: none; }
  .footer__bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

  .wine-hero__layout { grid-template-columns: 1fr; }
  .wine-hero__visual { max-width: 280px; margin: 0 auto; }
  .wine-hero__visual .wine-card__placeholder { height: 260px; }
  .wine-hero__image { max-width: 200px; margin: 0 auto; }
  .wine-details-grid { grid-template-columns: 1fr; }
  .wine-charac__grid { grid-template-columns: repeat(2, 1fr); }
  .wine-tasting__grid { grid-template-columns: 1fr; }
  .wine-listing-toolbar { flex-direction: column; align-items: stretch; }
  .wine-search { max-width: 100%; }

  .section { padding: var(--space-4xl) 0; }
  .section__header { margin-bottom: var(--space-2xl); }

  .awards-row { gap: var(--space-sm); }
  .award-badge { min-width: 80px; padding: var(--space-sm) var(--space-md); font-size: 1rem; }

  /* Comparison table + article tables: scrollable */
  .comparison-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table { font-size: 0.75rem; min-width: 520px; }
  .comparison-table th, .comparison-table td { padding: var(--space-sm) var(--space-md); white-space: nowrap; }

  .steps-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Article typography tuned down */
  .article-hero { padding: 6rem 0 var(--space-xl); }
  .article-hero__image { height: 220px; }
  .article-hero h1 { font-size: 1.875rem; line-height: 1.2; }
  .article-body { padding: var(--space-2xl) 0; }
  .article-content { font-size: 1rem; line-height: 1.75; }
  .article-content h2 { font-size: 1.5rem !important; margin-top: 2rem !important; }
  .article-content h3 { font-size: 1.15rem !important; }
  .article-content blockquote { font-size: 1.125rem; padding-left: 1.25rem !important; margin: 1.75rem 0 !important; }
  .article-content ol > li { padding-left: 2rem; }

  /* TOC, info boxes, references: trimmed padding */
  .toc { padding: 1.25rem 1.25rem; margin: 1.5rem 0; }
  .toc ol > li { padding-left: 1.75rem; }
  .info-box { padding: 1.25rem !important; margin: 1.5rem 0 !important; }
  .references { padding: 1.25rem 1.25rem; margin: 2rem 0 1rem; }
  .references ol { padding-left: 1.1rem; }
  .author-box { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .author-box__avatar { width: 52px; height: 52px; font-size: 1.25rem; }

  /* CTA within article */
  .article-cta { padding: 2rem 1.25rem !important; margin: 2rem 0 !important; }
  .article-cta h2 { font-size: 1.375rem !important; }

  /* Expert quote */
  .expert-quote { padding: 1.5rem 1.25rem; margin: 1.75rem 0; }
  .article-content .expert-quote__text,
  .expert-quote__text { font-size: 1.063rem !important; }

  /* PAA */
  .paa__title { padding: 1rem 1.25rem; font-size: 1.125rem; }
  .paa summary { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
  .paa details > div { padding: 0 1.25rem 0.85rem; }

  /* Internal links */
  .internal-links { padding: 1.5rem 1.25rem; }
  .internal-links__grid { grid-template-columns: 1fr; gap: 0.75rem; }

  /* CTA banner */
  .cta-banner { padding: var(--space-2xl) var(--space-lg); border-radius: var(--radius-2xl); }
  .cta-banner h2 { font-size: 1.75rem; }
  .cta-banner p { font-size: 0.95rem; }

  /* Feature cards / Pricing */
  .feature-card { padding: var(--space-xl); }
  .pricing-card { padding: var(--space-xl); padding-top: var(--space-2xl); }
  .pricing-card__price { font-size: 2.75rem; }

  /* Testimonial */
  .testimonial-card { padding: var(--space-xl); gap: var(--space-md); }

  /* FAQ */
  .faq-item__question { padding: var(--space-md) var(--space-lg); font-size: 0.875rem; }
  .faq-item__answer { padding: 0 var(--space-lg) var(--space-md); font-size: 0.813rem; }

  /* Filters */
  .filters { gap: 0.35rem; }
  .filter-btn { padding: 0.35rem 0.75rem; font-size: 0.625rem; }

  /* Breadcrumb wrap */
  .breadcrumb { font-size: 0.688rem; line-height: 1.5; }

  /* Phone mockups */
  .phone-mockup { width: 240px; max-width: 85%; }
  .phones-row { flex-wrap: wrap; gap: var(--space-md); }
  .phones-row .phone-mockup { width: 180px; }
  .phones-row .phone-mockup:nth-child(2) { transform: none; }

  /* Image break shorter */
  .image-break { height: 240px; }

  /* Blog card image */
  .blog-card__image { height: 200px; }

  /* Hero short (sub pages) */
  .hero--short { padding: 7rem 0 var(--space-2xl); }

  /* Split hero feature: stack */
  .hero__split-layout--feature { grid-template-columns: 1fr; text-align: center; gap: var(--space-xl); padding: 0 var(--space-md); }
  .hero__split-layout { padding: 0 var(--space-md); gap: var(--space-xl); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero { padding: 6rem 0 var(--space-2xl); }
  .hero h1 { font-size: 2rem; }
  .hero__subtitle { font-size: 0.938rem; }
  .hero__stat-number { font-size: 2rem; }
  .hero__phone-frame { width: 200px; }
  .hero__badge { font-size: 0.625rem; padding: 0.35rem 0.75rem 0.35rem 0.5rem; margin-bottom: var(--space-lg); }

  .steps-grid { grid-template-columns: 1fr !important; }
  .awards-row { justify-content: center; }
  .award-badge { min-width: 70px; min-height: 60px; padding: 0.5rem 0.75rem; }
  .award-badge__initials { font-size: 1.125rem; }
  .award-badge__name { font-size: 0.45rem; }
  .award-badge small { display: none; }

  h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h3 { font-size: 1.15rem; }

  .btn { padding: 0.65rem 1.25rem; font-size: 0.75rem; }
  .btn--large { padding: 0.85rem 1.5rem; font-size: 0.813rem; }

  /* Store badges always side by side but smaller */
  .hero__stores { gap: 0.5rem; }
  .store-badge-official { height: 38px; }
  .store-badge-official img,
  .store-badge-official svg { width: 108px; height: 34px; }

  /* Article */
  .article-hero__image { height: 180px; }
  .article-hero h1 { font-size: 1.5rem; }
  .article-content { font-size: 0.95rem; }
  .article-content h2 { font-size: 1.25rem !important; }
  .article-content h3 { font-size: 1.05rem !important; }
  .article-content blockquote { font-size: 1rem; }
  .article-content ul li,
  .article-content ol li { padding-left: 1.5rem; }

  .section { padding: var(--space-3xl) 0; }
  .section__header { margin-bottom: var(--space-xl); }

  /* Toc / info-box tighter */
  .toc, .info-box, .references, .paa, .internal-links, .author-box {
    padding: 1rem !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* Image break shorter */
  .image-break { height: 200px; }
  .image-break__quote blockquote { font-size: 1.125rem; }

  /* Wine hero image small */
  .wine-hero__image { max-width: 160px; }

  /* CTA banner */
  .cta-banner { padding: var(--space-xl) var(--space-md); }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: 0.875rem; }

  /* Comparison table narrower */
  .comparison-table { min-width: 440px; }

  /* Pricing */
  .pricing-card__price { font-size: 2.25rem; }

  /* Reduce container margin for full-bleed feel */
  .article-body .container--blog { padding: 0 var(--space-md); }
}

/* Mini mobile — guard against tiny devices (<360px) */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.75rem; }
  .article-hero h1 { font-size: 1.3rem; }
  .store-badge-official img,
  .store-badge-official svg { width: 95px; height: 30px; }
}

/* Feature cards with background image */
.feature-card--image {
  position: relative;
  padding: 0;
  min-height: 340px;
  overflow: hidden;
}
.feature-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.feature-card--image:hover .feature-card__image {
  transform: scale(1.08);
}
.feature-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.95) 0%,
    rgba(10, 8, 6, 0.7) 45%,
    rgba(10, 8, 6, 0.25) 100%
  );
  transition: background 0.4s var(--ease);
}
.feature-card--image:hover .feature-card__overlay {
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.9) 0%,
    rgba(10, 8, 6, 0.55) 45%,
    rgba(10, 8, 6, 0.15) 100%
  );
}
.feature-card__content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.feature-card--image .feature-card__icon {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.feature-card--image .feature-card__title {
  font-size: 1.35rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.feature-card--image .feature-card__text {
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Hero split layout with phone mockup */
.hero--split {
  text-align: left;
}
.hero__split-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.hero__content--left {
  max-width: none;
  margin: 0;
  padding: 0;
}
.hero__content--left .hero__actions {
  justify-content: flex-start;
}
.hero__content--left .hero__social-proof {
  justify-content: flex-start;
}
.hero__content--left .hero__stores {
  justify-content: flex-start;
}
.hero__content--left .hero__stats {
  justify-content: flex-start;
}

/* Phone mockup */
.hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__phone-frame {
  position: relative;
  width: 300px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.08),
    0 0 0 10px rgba(155,44,61,0.15),
    0 25px 80px rgba(0,0,0,0.5),
    0 0 120px rgba(155,44,61,0.1);
  animation: phone-float 6s ease-in-out infinite;
}
.hero__phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .hero__split-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content--left .hero__actions,
  .hero__content--left .hero__social-proof,
  .hero__content--left .hero__stores,
  .hero__content--left .hero__stats {
    justify-content: center;
  }
  .hero__phone {
    order: -1;
  }
  .hero__phone-frame {
    width: 240px;
  }
}
@media (max-width: 600px) {
  .hero__phone-frame {
    width: 200px;
  }
}

/* Hero split for feature pages */
.hero--split-feature {
  text-align: left;
  min-height: auto;
  padding: 8rem 0 4rem;
}
.hero__split-layout--feature {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.hero--split-feature .hero__content--left .hero__actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .hero__split-layout--feature {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero--split-feature .hero__content--left .hero__actions {
    justify-content: center;
  }
  .hero__split-layout--feature .hero__phone {
    order: -1;
  }
  .hero__split-layout--feature .hero__phone-frame {
    width: 220px;
  }
}

/* Breadcrumb over hero image: higher contrast */
.article-hero__overlay .breadcrumb {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.article-hero__overlay .breadcrumb a {
  color: rgba(255,255,255,0.7);
}
.article-hero__overlay .breadcrumb a:hover {
  color: var(--amber);
}
.article-hero__overlay .breadcrumb span {
  opacity: 0.55;
}

/* Category badge visible over hero image */
.article-hero__overlay .blog-card__category {
  display: inline-block;
  color: var(--amber);
  background: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ======== Article content polish ======== */
/* Tables: wrap with .table-scroll (auto-injected by generate-article.cjs). Inner <table> keeps native layout so columns align. */
.article-content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-xl) 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(26,22,18,0.06);
  border: 1px solid rgba(26,22,18,0.08);
  background: #fff;
}
.article-content .table-scroll table {
  width: auto !important;
  min-width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.938rem;
  background: transparent;
  box-shadow: none;
  border: 0;
}
/* Legacy (no wrapper): fall back to scrollable block — columns may not align perfectly but content is reachable */
.article-content > table {
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: var(--space-xl) 0 !important;
  font-size: 0.938rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(26,22,18,0.06);
  border: 1px solid rgba(26,22,18,0.08);
}
.article-content table thead tr {
  background: linear-gradient(180deg, #f8f5f0 0%, #efeae5 100%) !important;
}
.article-content table thead th {
  text-align: left !important;
  padding: 0.9rem 1rem !important;
  font-weight: 700 !important;
  font-size: 0.813rem !important;
  color: var(--text) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--amber) !important;
}
.article-content table tbody td {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid rgba(26,22,18,0.06);
  color: var(--text);
}
.article-content table tbody tr:last-child td { border-bottom: none; }
.article-content table tbody tr:nth-child(even) { background: rgba(247,245,242,0.5); }
.article-content table tbody tr:hover { background: rgba(212,148,58,0.06); }

/* Info box polished */
.info-box {
  background: #fff !important;
  border: 1px solid rgba(26,22,18,0.08) !important;
  border-left: 4px solid var(--amber) !important;
  border-radius: 10px !important;
  padding: 1.5rem 1.75rem !important;
  margin: 2rem 0 !important;
  box-shadow: 0 2px 12px rgba(26,22,18,0.04);
}
.info-box__title {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 0.5rem !important;
}
.info-box p, .info-box ul li {
  color: var(--text) !important;
  font-size: 0.938rem;
  line-height: 1.7;
}
.info-box--wine {
  border-left-color: var(--wine, #9b2c3d) !important;
  background: linear-gradient(180deg, #fdf8f5 0%, #fff 100%) !important;
}

/* Blockquote */
.article-content blockquote {
  background: transparent !important;
  border-left: 3px solid var(--amber) !important;
  padding: 0.5rem 0 0.5rem 2rem !important;
  margin: 2.5rem 0 !important;
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--text);
}
.article-content blockquote p { margin: 0; }

/* Lists */
.article-content ul li, .article-content ol li {
  margin-bottom: 0.5rem;
}
.article-content ul li::marker { color: var(--amber); }
.article-content ol { counter-reset: item; list-style: none; padding-left: 0; }
.article-content ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.85rem;
}
.article-content ol > li::before {
  content: counter(item);
  position: absolute; left: 0; top: -2px;
  width: 1.75rem; height: 1.75rem;
  background: var(--amber);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.813rem; font-weight: 700;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* H2/H3 tuning */
.article-content h2 {
  font-size: 1.875rem !important;
  line-height: 1.25 !important;
  margin-top: 3rem !important;
  margin-bottom: 1.25rem !important;
  padding-left: 0 !important;
  border-left: none !important;
  position: relative;
  padding-top: 1rem;
}
.article-content h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
}
.article-content h3 {
  font-size: 1.25rem !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  color: var(--text);
}

/* CTA banner */
.article-cta {
  margin: 3rem 0 !important;
  padding: 3rem 2rem !important;
  border-radius: 14px !important;
  text-align: center;
}
.article-cta h2 {
  color: #fff !important;
  margin: 0 0 0.75rem !important;
  font-size: 1.75rem !important;
}
.article-cta h2::before { display: none !important; }
.article-cta p {
  color: rgba(255,255,255,0.85) !important;
  margin: 0 auto 1.5rem !important;
  font-size: 1rem;
  max-width: 520px !important;
}

/* TOC refinement */
.toc {
  background: #fff;
  border: 1px solid rgba(26,22,18,0.08);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.toc__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.toc ol { margin: 0; padding: 0; }
.toc ol > li { padding-left: 2rem; }
.toc ol > li::before { width: 1.4rem; height: 1.4rem; font-size: 0.7rem; }
.toc ol li a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px dotted transparent;
}
.toc ol li a:hover { border-bottom-color: var(--amber); color: var(--amber); }


/* ======== Authority & E-E-A-T ======== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #faf3e8 0%, #f4ebdb 100%);
  border: 1px solid rgba(212,148,58,0.25);
  color: #7a5420;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 1rem 0 2rem;
}
.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.expert-quote {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(26,22,18,0.08);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  box-shadow: 0 4px 20px rgba(26,22,18,0.05);
  position: relative;
}
.expert-quote::before {
  content: "\201C";
  position: absolute;
  top: -20px; left: 20px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 5rem;
  color: var(--amber);
  line-height: 1;
}
.article-content .expert-quote__text,
.expert-quote__text {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1.25rem !important;
  line-height: 1.55 !important;
  color: #1a1612 !important;
  font-style: italic !important;
  margin: 0 0 1rem !important;
}
.expert-quote__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.expert-quote__author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber) 0%, #b37420 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.expert-quote__author-name { font-weight: 700; color: var(--text); }
.expert-quote__author-role { color: var(--text-light); font-size: 0.813rem; }

.cite-inline {
  font-size: 0.7em;
  vertical-align: super;
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
  padding: 0 2px;
}
.cite-inline:hover { color: #b37420; text-decoration: underline; }

.references {
  background: #fdfbf7;
  border: 1px solid rgba(26,22,18,0.08);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 3rem 0 1.5rem;
  font-size: 0.875rem;
}
.references__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.references ol { list-style: decimal; padding-left: 1.5rem; }
.references ol > li {
  padding-left: 0;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
.references ol > li::before { display: none; }
.references a { color: var(--amber); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.references a:hover { color: #b37420; }

.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(26,22,18,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 12px rgba(26,22,18,0.04);
}
.author-box__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine, #9b2c3d) 0%, var(--amber) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.5rem;
  flex-shrink: 0;
  font-family: 'Fraunces', Georgia, serif;
}
.author-box__body { flex: 1; }
.author-box__name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.author-box__role {
  font-size: 0.813rem;
  color: var(--amber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.author-box__bio {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}


/* ======== v2 polish : sticky TOC, progress bar, PAA, internal links ======== */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--wine, #9b2c3d));
  z-index: 1000;
  width: 0;
  transition: width 0.1s linear;
}

/* TOC static (sticky full-width was buggy) */

.paa {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(26,22,18,0.08);
  margin: 2.5rem 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,22,18,0.04);
}
.paa__title {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(26,22,18,0.06);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.paa details {
  border-bottom: 1px solid rgba(26,22,18,0.06);
}
.paa details:last-child { border-bottom: none; }
.paa summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.15s;
}
.paa summary::-webkit-details-marker { display: none; }
.paa summary::after {
  content: "+";
  color: var(--amber);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.2s;
}
.paa details[open] summary::after { content: "−"; }
.paa summary:hover { background: rgba(212,148,58,0.04); }
.paa details > div {
  padding: 0 1.5rem 1rem;
  color: var(--text-light);
  font-size: 0.938rem;
  line-height: 1.7;
}

.internal-links {
  background: linear-gradient(180deg, #fdfbf7 0%, #faf5ed 100%);
  border-radius: 14px;
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid rgba(212,148,58,0.2);
}
.internal-links__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.internal-links__subtitle {
  color: var(--text-light);
  font-size: 0.938rem;
  margin: 0 0 1.5rem;
}
.internal-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.internal-links__card {
  display: block;
  background: #fff;
  border: 1px solid rgba(26,22,18,0.08);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.internal-links__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,22,18,0.08);
  border-color: var(--amber);
}
.internal-links__kind {
  font-size: 0.688rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.internal-links__label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}
.internal-links__arrow {
  color: var(--amber);
  margin-top: 0.75rem;
  font-size: 0.813rem;
  font-weight: 600;
}

abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
  color: var(--text);
}

/* ======== Bottom blocks bounding ======== */
.references, .author-box, .internal-links { max-width: 100%; box-sizing: border-box; }


/* ======== Feature-card illustrations ======== */
.feature-card__illustration {
  width: 100%;
  aspect-ratio: 200 / 120;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,148,58,0.06) 0%, rgba(155,44,61,0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.feature-card__illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}
.feature-card:hover .feature-card__illustration {
  transform: translateY(-2px) scale(1.015);
}

/* Regional SEO block on /vins/{region}/ — readable on both themes */
.region-section__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: #1a1612;
}
.region-top-rated {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: var(--space-lg);
}
.region-top-card {
  display: block;
  padding: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.region-top-card:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(155, 44, 61, 0.3);
}
.region-top-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 4px;
}
.region-top-card__reward {
  font-size: 12px;
  color: #6b6560;
}
.region-top-card__rating {
  font-size: 13px;
  color: #a66d1c;
  margin-top: 6px;
  font-weight: 600;
}
.region-price-ranges {
  color: #4a4640;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 14px;
}
.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.region-chip {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  font-size: 13px;
  color: #4a4640;
  font-weight: 500;
}
.region-chip--link {
  background: rgba(155, 44, 61, 0.1);
  border-color: rgba(155, 44, 61, 0.22);
  color: #9b2c3d;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.region-chip--link:hover {
  background: rgba(155, 44, 61, 0.18);
}

/* Thumbnail for region-top-card */
.region-top-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.region-top-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.region-top-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}
.region-top-card__placeholder--rouge { color: #9b2c3d; }
.region-top-card__placeholder--blanc { color: #c9a227; }
.region-top-card__placeholder--rose  { color: #d48a94; }

/* Blog article sign-off */
.article-signoff {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #6b6560;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}
.article-signoff strong {
  font-style: normal;
  color: #1a1612;
}
.article-signoff a {
  color: #9b2c3d;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.article-signoff a:hover { text-decoration: underline; }


.footer__grid--7 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}
@media (max-width: 900px) {
  .footer__grid--7 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__grid--7 { grid-template-columns: 1fr; }
}


/* AUDIT — mobile readability on wine grids */
@media (max-width: 540px) {
  .wine-card__name { font-size: 0.875rem !important; line-height: 1.3; }
  .wine-card__region, .wine-card__domain { font-size: 0.75rem !important; }
  .wine-card__price { font-size: 1rem !important; font-weight: 700; }
  .wine-card__apogee { font-size: 0.7rem !important; }
  .vert-stats__num { font-size: 1.25rem !important; }
  .vert-stats__label { font-size: 0.7rem !important; }
  .vert-stats__cell { padding: 0.75rem !important; }
}
