/* ============================================
   ORO VERDE COFFEE — Brand System
   Crafted by nature. Perfected by technology.
   ============================================ */

/* --- Brand Tokens (from brandbook) --- */
:root {
  /* Primary palette */
  --color-gold: #DCA02F;            /* Pantone Gold Coast — logo only */
  --color-gold-soft: #A38D5C;       /* Secondary gold */
  --color-cream: #E3DAC3;           /* Pantone 9162 C — body/text bg */
  --color-cream-light: #F2EBDA;
  --color-cream-dark: #D6CCB1;

  /* Greens — sustainability, origin */
  --color-emerald: #005846;         /* Pantone 7729 — primary green */
  --color-forest: #0F4835;          /* Pantone 3308 — deep forest */
  --color-sage: #747C63;            /* Pantone 5753 — natural sage */

  /* Earth tones */
  --color-cacao: #653025;           /* Pantone 483 — coffee bean dark */
  --color-terracotta: #9D4D23;      /* Pantone 7587 — toasted earth */

  /* Neutrals */
  --color-ink: #1A1F1B;             /* Near-black with green undertone */
  --color-charcoal: #2D332E;
  --color-mist: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'IvyMode', Georgia, serif;
  --font-body: 'Inter', 'Avenir Next', 'Avenir', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 880px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 200ms;
  --t-base: 350ms;
  --t-slow: 600ms;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-gold);
  margin: 0 0 var(--space-sm) 0;
}
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-md) 0;
  color: var(--color-forest);
}
h1, .h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  line-height: 1.05;
}
h2, .h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}
h3, .h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: 0;
}
h4 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
p { margin: 0 0 var(--space-sm) 0; }
.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--color-charcoal);
}
strong { font-weight: 600; color: var(--color-forest); }
em { font-style: italic; }

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
section { padding: var(--space-3xl) 0; }
section.compact { padding: var(--space-2xl) 0; }

/* --- Buttons — slimmer, more refined, luxury hospitality feel --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 1.55rem;       /* tighter vertical, slightly tighter horizontal */
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;          /* wider tracking = more elegant */
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background-color 500ms var(--ease),
              color 500ms var(--ease),
              border-color 500ms var(--ease),
              transform 500ms var(--ease),
              box-shadow 500ms var(--ease);
  border: 1px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--color-forest);
  color: var(--color-cream);
}
.btn-primary:hover {
  background: var(--color-emerald);
  box-shadow: 0 14px 40px -18px rgba(15, 72, 53, 0.45);
}
/* Less saturated, slightly darker gold — closer to "antique gold leaf" than mustard.
   Subtle vertical gradient gives the surface a hint of dimension without looking shiny. */
.btn-gold {
  background:
    linear-gradient(180deg, #D2A146 0%, #C4942F 100%);
  color: var(--color-forest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 0 rgba(99, 65, 16, 0.15);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #DBAE5A 0%, #CC9E3D 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 36px -18px rgba(196, 148, 47, 0.55);
}
.btn-outline {
  border-color: var(--color-forest);
  color: var(--color-forest);
}
.btn-outline:hover {
  background: var(--color-forest);
  color: var(--color-cream);
}
.btn-ghost-light {
  border-color: rgba(227, 218, 195, 0.45);
  color: var(--color-cream);
  background: rgba(15, 72, 53, 0.10);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover {
  background: rgba(227, 218, 195, 0.95);
  color: var(--color-forest);
  border-color: rgba(227, 218, 195, 0.95);
}
.btn .arrow { transition: transform 500ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Header — generous breathing room; soft tinted glass when scrolled --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.75rem 0;              /* more vertical breathing room */
  transition: padding 400ms var(--ease),
              background-color 400ms var(--ease),
              backdrop-filter 400ms var(--ease);
  background: transparent;
}
.site-header.scrolled {
  /* Translucent forest tint + blur instead of solid bar — keeps the logo from
     sitting in a hard dark rectangle */
  background: linear-gradient(180deg, rgba(15, 72, 53, 0.78) 0%, rgba(15, 72, 53, 0.62) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 0.9rem 0;
  /* No hard line — fade out with a soft shadow */
  box-shadow: 0 12px 32px -22px rgba(15, 72, 53, 0.6);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg);
}
/* Brand logo — uses the official stacked emblem (bean + wordmark in a single image) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: opacity var(--t-fast) var(--ease);
}
.brand-logo:hover { opacity: 0.85; }
.brand-logo img {
  height: 92px;                    /* enlarged for hero presence */
  width: auto;
  display: block;
  /* Stronger, slightly tighter drop-shadow lifts the cream strokes confidently
     against any frame of the drone footage — including bright canopy areas. */
  filter:
    drop-shadow(0 1px 2px rgba(15, 72, 53, 0.55))
    drop-shadow(0 4px 24px rgba(15, 72, 53, 0.45));
}
/* Compact when header is scrolled */
.site-header.scrolled .brand-logo img { height: 68px; }

/* Footer uses a larger version */
.footer-brand .brand-logo img { height: 120px; filter: none; }

/* Legacy typeset wordmark — kept as a fallback if the real logo image isn't loaded */
.brand-logo .wordmark { display: none; }
.primary-nav {
  display: flex; align-items: center; gap: 2.4rem;   /* wider, more luxe spacing */
}
.primary-nav a {
  font-size: 0.72rem;                  /* slightly smaller */
  letter-spacing: 0.28em;              /* much wider tracking */
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-cream);
  opacity: 0.78;
  position: relative;
  padding: 0.4rem 0;
  transition: opacity 350ms var(--ease), color 350ms var(--ease);
}
.primary-nav a:hover { opacity: 1; color: var(--color-gold); }
.primary-nav a.active::after {
  content: '';
  position: absolute; left: 50%; bottom: -8px;
  width: 16px; height: 1px;
  background: var(--color-gold);
  transform: translateX(-50%);
}
.primary-nav a.active { opacity: 1; }
.lang-switch {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  border: 1px solid rgba(220, 160, 47, 0.5);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-left: 0.4rem;
}
.lang-switch:hover { background: var(--color-gold); color: var(--color-forest); border-color: var(--color-gold); }

.nav-toggle { display: none; color: var(--color-cream); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-cream);
  overflow: hidden;
  padding: var(--space-3xl) 0 var(--space-2xl);
}
/* Hero video layer — sits below overlays, fills the full hero section,
   and uses the poster image as fallback when video is unsupported or
   still loading. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Subtle slow drift gives even a static frame more life if autoplay is
     blocked; respects reduced-motion preference. */
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero { background-image: url('assets/img/hero-canopy-poster.jpg'); background-size: cover; background-position: center; }
}
/* Don't load the video at all on small screens — saves bandwidth and battery.
   Falls back to the poster image set as background. */
@media (max-width: 780px) {
  .hero-video { display: none; }
  .hero { background-image: url('assets/img/hero-canopy-poster.jpg'); background-size: cover; background-position: center; }
}

.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  /* Asymmetric overlay sits on TOP of the video. Strong forest-green stage on
     the left where text lives; gradually clears toward the right so the
     mountains and canopy stay visible. */
  background:
    linear-gradient(95deg,
      rgba(11, 51, 38, 0.94) 0%,
      rgba(12, 58, 43, 0.82) 30%,
      rgba(15, 72, 53, 0.52) 55%,
      rgba(15, 72, 53, 0.24) 78%,
      rgba(15, 72, 53, 0.36) 100%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  /* Soft vertical fade for the top nav area + a quiet warm vignette.
     The left-anchored radial deepens the stage directly behind the text. */
  background:
    radial-gradient(ellipse 70% 90% at 22% 52%, rgba(11, 51, 38, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15, 72, 53, 0.45) 0%, transparent 20%, transparent 78%, rgba(15, 72, 53, 0.50) 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  /* Anchor content to the left third — matches the asymmetric overlay */
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
}
.hero .container > * { grid-column: 1; }
/* Hero-scoped color overrides: brighter cream + champagne gold read cleaner
   over the drone footage. Brandbook colors (warm cream / antique gold) still
   rule the rest of the site for printable surfaces. */
.hero {
  --hero-cream: #F4ECD8;            /* brighter, less yellow than #E3DAC3 */
  --hero-champagne: #D9B47A;        /* softer, less orange than #DCA02F */
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #EBC988;                    /* brighter gold than champagne */
  font-weight: 500;
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 2px rgba(8, 40, 30, 0.55), 0 1px 14px rgba(8, 40, 30, 0.5);
}
.hero-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--hero-champagne);
}
.hero h1 {
  max-width: 620px;
  color: var(--hero-cream);
  margin-bottom: var(--space-lg);
  /* Larger and heavier — needs presence against the photo */
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
  /* Layered shadow: a tight dark edge for legibility + a soft glow to ground
     the type against any frame of the moving footage. */
  text-shadow: 0 1px 3px rgba(8, 40, 30, 0.55), 0 2px 36px rgba(8, 40, 30, 0.7);
}
.hero h1 .accent { color: var(--hero-champagne); font-style: italic; }
.hero .lead {
  max-width: 460px;                 /* tighter measure for elegance */
  color: rgba(250, 247, 236, 1);    /* near-white cream for max legibility */
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 400;                 /* was 300 — slightly heavier reads cleaner over video */
  font-size: 1.08rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 2px rgba(8, 40, 30, 0.6), 0 1px 20px rgba(8, 40, 30, 0.65);
}
/* Farm-data panel labels follow the champagne tone */
.hero .hero-meta { border-left-color: rgba(235, 201, 136, 0.6); }
.hero .hero-meta-label { color: #EBC988; }
.hero .hero-meta-value { color: #FBF7EC; }
.hero .hero-meta-value--display span { color: rgba(251, 247, 236, 0.85); }
/* Hero-only gold button: champagne gradient instead of antique brand gold,
   so the CTA feels integrated with the rest of the hero palette. */
.hero .btn-gold {
  background: linear-gradient(180deg, #E3C28E 0%, #D9B47A 100%);
}
.hero .btn-gold:hover {
  background: linear-gradient(180deg, #ECCD9F 0%, #E3C28E 100%);
}
@media (max-width: 780px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Farm-data panel — anchored to the right edge using the same horizontal
   gutter as the page container, so it reads as part of a coherent grid
   rather than as a decorative corner element. */
.hero-meta {
  position: absolute;
  right: max(var(--space-md), calc((100vw - var(--container-max)) / 2 + var(--space-md)));
  bottom: var(--space-2xl);
  z-index: 2;
  display: grid;
  gap: 1.4rem;
  padding-left: 1.4rem;
  min-width: 200px;
  /* Soft left rule visually ties the rows together */
  border-left: 1px solid rgba(235, 201, 136, 0.6);
  /* Shadow on the whole panel keeps it legible over the bright right side */
  text-shadow: 0 1px 2px rgba(8, 40, 30, 0.55), 0 1px 14px rgba(8, 40, 30, 0.5);
}
.hero-meta-row { display: grid; gap: 0.3rem; }
.hero-meta-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
}
.hero-meta-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: rgba(244, 237, 218, 0.95);
  line-height: 1.2;
}
/* Display-size value for the elevation as the visual anchor */
.hero-meta-value--display {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-meta-value--display span {
  font-size: 0.95rem;
  margin-left: 0.15em;
  color: rgba(244, 237, 218, 0.65);
  letter-spacing: 0.05em;
}
@media (max-width: 980px) {
  .hero-meta { display: none; }
}
.scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(227, 218, 195, 0.6);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  margin: 8px auto 0;
}

/* --- Backgrounds & sections --- */
.bg-cream { background: var(--color-cream-light); color: var(--color-ink); }
.bg-cream-warm { background: var(--color-cream); color: var(--color-ink); }
.bg-forest { background: var(--color-forest); color: var(--color-cream); }
.bg-emerald { background: var(--color-emerald); color: var(--color-cream); }
.bg-ink { background: var(--color-ink); color: var(--color-cream); }
.bg-cacao { background: var(--color-cacao); color: var(--color-cream); }
.bg-forest h1, .bg-forest h2, .bg-forest h3,
.bg-emerald h1, .bg-emerald h2, .bg-emerald h3,
.bg-ink h1, .bg-ink h2, .bg-ink h3,
.bg-cacao h1, .bg-cacao h2, .bg-cacao h3 { color: var(--color-cream); }
.bg-forest strong, .bg-emerald strong, .bg-ink strong { color: var(--color-gold); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-xl); }
.section-header.left { text-align: left; margin-left: 0; }

/* Decorative gold rule */
.rule-gold {
  width: 48px; height: 1px;
  background: var(--color-gold);
  margin: 0 auto var(--space-lg);
}
.section-header.left .rule-gold { margin-left: 0; }

/* --- Two-column split --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-sage) center/cover no-repeat;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 72, 53, 0.35), transparent 50%);
  pointer-events: none;
}
.split-media .caption {
  position: absolute;
  left: var(--space-md); bottom: var(--space-md);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-cream);
  background: rgba(15, 72, 53, 0.85);
  padding: 0.5rem 0.85rem;
  backdrop-filter: blur(6px);
}

/* --- Product cards — editorial wine-list style --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;                              /* hairline divider grid */
  background: rgba(15, 72, 53, 0.15);
  border: 1px solid rgba(15, 72, 53, 0.15);
}
.product-card {
  background: var(--color-cream);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  display: flex; flex-direction: column;
  position: relative;
  transition: background-color var(--t-base) var(--ease);
}
.product-card:hover { background: var(--color-cream-light); }
/* Each card opens with a small champagne process badge anchored top-left */
.product-card .badge {
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(220, 160, 47, 0.45);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
}
/* Lot number — small champagne number, like a vintage marker */
.product-card .lot {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  font-weight: 400;
  margin-bottom: 0.6rem;
}
/* Display name — large serif */
.product-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2.6vw, 2.8rem);
  line-height: 1.05;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
/* Italic process descriptor */
.product-card .process {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-sage);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}
/* Thin gold rule separating headline from body */
.product-card .rule {
  width: 32px; height: 1px;
  background: var(--color-gold-soft);
  margin: 0 0 var(--space-md) 0;
}
.product-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-charcoal);
  margin: 0;
}
/* Tasting notes — small caps spec line above descriptive copy */
.product-card .notes {
  margin-top: var(--space-md);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage);
  font-weight: 500;
  line-height: 1.6;
}
.product-card .cta-row {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex; justify-content: flex-start; align-items: center;
}
.product-card .link-more {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-forest);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(15, 72, 53, 0.25);
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.product-card .link-more:hover { color: var(--color-gold); border-bottom-color: var(--color-gold); }

/* --- Cupping notes / Spec table --- */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: rgba(15, 72, 53, 0.15);
  border: 1px solid rgba(15, 72, 53, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.spec {
  background: var(--color-cream-light);
  padding: var(--space-md);
}
.spec-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.5rem;
}
.spec-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-forest);
  line-height: 1.15;
}

/* --- Process steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-lg) 0 0;
  border-top: 1px solid rgba(220, 160, 47, 0.4);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: var(--space-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}
.step h4 {
  margin-top: var(--space-lg);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.bg-cream .step::before { color: var(--color-terracotta); }
.bg-cream .step h4 { color: var(--color-forest); }
.bg-cream .step { border-top-color: rgba(101, 48, 37, 0.25); }
.step p { font-size: 0.95rem; opacity: 0.85; }

/* --- Tech / IoT feature grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.feature {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(220, 160, 47, 0.2);
  border-radius: var(--radius-md);
}
.feature .icon {
  width: 44px; height: 44px;
  margin-bottom: var(--space-md);
  color: var(--color-gold);
}
.feature h4 {
  text-transform: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}

/* --- Metric strip --- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(220, 160, 47, 0.25);
  border: 1px solid rgba(220, 160, 47, 0.25);
}
.metric {
  background: var(--color-forest);
  padding: var(--space-lg);
  text-align: center;
}
.metric .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.metric .label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(227, 218, 195, 0.8);
}

/* --- Banner CTA --- */
.cta-banner {
  background:
    linear-gradient(110deg, rgba(15, 72, 53, 0.92) 0%, rgba(0, 88, 70, 0.80) 100%),
    url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/nuestro-compromiso-sostenible.webp') center/cover no-repeat;
  background-color: var(--color-forest);
  color: var(--color-cream);
  padding: var(--space-3xl) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-cream); max-width: 760px; margin: 0 auto var(--space-md); }
.cta-banner p { max-width: 600px; margin: 0 auto var(--space-lg); opacity: 0.85; }

/* --- Pull quote --- */
.pullquote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.pullquote .mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-gold);
  line-height: 0.5;
  margin-bottom: var(--space-md);
  display: block;
}
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.35;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}
.pullquote cite {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-style: normal;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-2xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand .brand-logo { color: var(--color-cream); margin-bottom: var(--space-md); }
.footer-brand p {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(227, 218, 195, 0.65);
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(227, 218, 195, 0.7);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(227, 218, 195, 0.12);
  padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem;
  color: rgba(227, 218, 195, 0.5);
  letter-spacing: 0.08em;
}
.newsletter-form {
  display: flex; gap: 0.5rem;
  margin-top: var(--space-sm);
}
.newsletter-form input {
  flex: 1; min-width: 0;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid rgba(227, 218, 195, 0.25);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(227, 218, 195, 0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--color-gold); }
.newsletter-form button {
  padding: 0.8rem 1.1rem;
  background: var(--color-gold);
  color: var(--color-forest);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.newsletter-form button:hover { background: var(--color-cream); }

/* --- Contact form --- */
.contact-form {
  display: grid; gap: var(--space-md);
  max-width: 640px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.contact-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--color-cream);
  border: 1px solid rgba(15, 72, 53, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(220, 160, 47, 0.15);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* --- Origin / location strip --- */
.origin-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(220, 160, 47, 0.3);
  border: 1px solid rgba(220, 160, 47, 0.3);
}
.origin-strip > div {
  background: var(--color-cream);
  padding: var(--space-lg);
}
.origin-strip .label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.5rem;
}
.origin-strip .value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-forest);
  line-height: 1.1;
}

/* --- Page hero — matches homepage sophistication --- */
.page-hero {
  --hero-cream: #F4ECD8;
  --hero-champagne: #D9B47A;
  position: relative;
  color: var(--hero-cream);
  background-color: var(--color-forest);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: calc(var(--space-3xl) + 2rem) 0 var(--space-2xl);
  min-height: 64vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Per-page hero image (single source of truth, no overlay in this rule) */
.page-hero.bg-cherries { background-image: url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/2.-Recolecta-respectuosa_efecto.webp'); }
.page-hero.bg-farm     { background-image: url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/1.sembrado_efeccto.webp'); }
.page-hero.bg-tech     { background-image: url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/tu-eleccion-cuenta.webp'); }
.page-hero.bg-team     { background-image: url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/equipo-viva-planet.webp'); }
.page-hero.bg-bio      { background-image: url('https://goldenhatcoffee.com/wp-content/uploads/2024/06/osito-01.webp'); }
.page-hero.bg-drone-canopy  { background-image: url('assets/img/hero-canopy-poster.jpg'); }
.page-hero.bg-drone-shade   { background-image: url('assets/img/drone-shade-coffee.jpg'); }
.page-hero.bg-drone-pattern { background-image: url('assets/img/drone-farm-pattern.jpg'); }
.page-hero.bg-drone-wide    { background-image: url('assets/img/drone-canopy-wide.jpg'); }
.page-hero.bg-sensor        { background-image: url('assets/img/sensor-pole.jpg'), url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/nuestro-compromiso-sostenible.webp'); }
/* Subpage path variants — /coffees/* needs ../ prefix */
.coffees .page-hero.bg-cherries { background-image: url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/2.-Recolecta-respectuosa_efecto.webp'); }
.coffees .page-hero.bg-drone-canopy  { background-image: url('../assets/img/hero-canopy-poster.jpg'); }
.coffees .page-hero.bg-drone-shade   { background-image: url('../assets/img/drone-shade-coffee.jpg'); }
.coffees .page-hero.bg-drone-pattern { background-image: url('../assets/img/drone-farm-pattern.jpg'); }
.coffees .page-hero.bg-drone-wide    { background-image: url('../assets/img/drone-canopy-wide.jpg'); }
.coffees .page-hero.bg-sensor        { background-image: url('../assets/img/sensor-pole.jpg'), url('https://goldenhatcoffee.com/wp-content/uploads/2024/02/nuestro-compromiso-sostenible.webp'); }

/* Asymmetric overlay — same recipe as homepage hero */
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg,
    rgba(15, 72, 53, 0.82) 0%,
    rgba(15, 72, 53, 0.62) 30%,
    rgba(15, 72, 53, 0.32) 55%,
    rgba(15, 72, 53, 0.18) 75%,
    rgba(15, 72, 53, 0.28) 100%);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 72, 53, 0.40) 0%, transparent 18%, transparent 82%, rgba(15, 72, 53, 0.40) 100%),
    radial-gradient(ellipse 55% 70% at 88% 50%, rgba(101, 48, 37, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 660px) 1fr;
}
.page-hero .container > * { grid-column: 1; }
.page-hero .container > .page-hero-aside { grid-column: 2; align-self: end; justify-self: end; }

.page-hero .eyebrow {
  color: var(--hero-champagne);
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: var(--space-md);
}
.page-hero .eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--hero-champagne);
}
.page-hero h1 {
  color: var(--hero-cream);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  max-width: 620px;
  text-shadow: 0 2px 36px rgba(15, 72, 53, 0.55);
}
.page-hero h1 .accent { color: var(--hero-champagne); font-style: italic; }
.page-hero p {
  max-width: 520px;
  color: rgba(248, 244, 230, 0.95);
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 1px 20px rgba(15, 72, 53, 0.5);
}
.page-hero.tall { min-height: 78vh; }

/* Optional farm-data side panel for data-rich inner pages */
.page-hero-aside {
  display: grid;
  gap: 1.2rem;
  padding-left: 1.4rem;
  min-width: 220px;
  border-left: 1px solid rgba(217, 180, 122, 0.45);
  opacity: 0.85;
}
.page-hero-aside .label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hero-champagne);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.page-hero-aside .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--hero-cream);
  line-height: 1.2;
}
.page-hero-aside .value--display {
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.page-hero-aside .value--display span {
  font-size: 0.9rem;
  color: rgba(244, 236, 216, 0.7);
  margin-left: 0.15em;
  letter-spacing: 0.05em;
}
@media (max-width: 980px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .container > .page-hero-aside { display: none; }
  .page-hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
}

/* --- Editorial list (sustainability steps) --- */
.editorial-list {
  display: grid; gap: var(--space-xl);
}
.editorial-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(15, 72, 53, 0.12);
  align-items: start;
}
.editorial-row:last-child { border-bottom: none; padding-bottom: 0; }
.editorial-row .step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
}
.editorial-row h3 { font-size: 1.6rem; margin-bottom: 0; }
.editorial-row p { margin-top: 0.5rem; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: var(--space-xl); }
  .split.reverse > :first-child { order: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .origin-strip { grid-template-columns: 1fr 1fr; }
  .editorial-row { grid-template-columns: 1fr; gap: var(--space-sm); }
  .editorial-row .step-num { font-size: 2rem; }
  .hero-meta { display: none; }
  section { padding: var(--space-2xl) 0; }
}
@media (max-width: 680px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-forest);
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(227, 218, 195, 0.3);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 8rem 0 var(--space-2xl); }
}

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
