/* ---------- Tokens (from the real Yarumo brand: dark near-black, warm cream, gold, olive) ---------- */
:root{
  --cream: #FAF8F3;
  --paper: #F1ECE1;
  --ink: #201C18;
  --ink-soft: #55504A;
  --dark: #1D1D1B;
  --dark-text: #F1EBDD;
  --gold: #D6CB9E;
  --olive: #716A56;
  --olive-text: #EFECEC;
  --line: rgba(32,28,24,.14);
  --line-on-dark: rgba(241,235,221,.2);
  --max: 1120px;
  --radius-media: 6px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1{ font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.01em; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3{ font-size: 1.2rem; }
h4{ font-size: 1.05rem; margin-bottom: .3em; }
p{ margin: 0 0 1em; color: var(--ink-soft); }

a{ color: inherit; }
img{ display: block; max-width: 100%; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow{ max-width: 760px; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--dark); color: var(--dark-text);
  padding: .6em 1em; z-index: 1000;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- Utility bar ---------- */
.utility-bar{
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Buttons (sharp corners, 1px border — matches the real theme) ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.6em;
  border-radius: 0;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .15s ease, background-color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active{ opacity: .85; }
.btn svg{ width: 1.1em; height: 1.1em; flex: none; }

.btn-dark{ background: var(--dark); color: var(--gold); border-color: var(--dark); }
.btn-dark:hover{ background: #000; }

.btn-gold{ background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover{ background: #c7bb85; }

.btn-outline{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--cream); }

.btn-small{ padding: .55em 1.2em; font-size: .82rem; }
.btn-large{ padding: 1em 2.2em; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: var(--dark-text);
  border-bottom: 1px solid var(--line-on-dark);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 12px;
  padding-bottom: 12px;
}
.wordmark{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  text-decoration: none;
  flex: none;
}
.wordmark img{ height: 40px; width: auto; }
.wordmark.small{ gap: .5em; }
.wordmark.small img{ height: 28px; }
.wordmark.small span{ font-family: 'Noto Sans', sans-serif; font-weight: 700; color: var(--dark-text); }

.site-nav{
  display: flex;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.site-nav a{
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  color: var(--dark-text);
  opacity: .85;
}
.site-nav a:hover{ opacity: 1; }
.site-nav a.active{ opacity: 1; color: var(--gold); }

.header-actions{ display: flex; align-items: center; gap: 1rem; flex: none; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--dark-text); display: block; }

/* ---------- Page banner (full-bleed photo used at the top of every page) ---------- */
.page-banner{ line-height: 0; background: var(--paper); }
.page-banner img{
  width: 100%;
  height: clamp(220px, 38vw, 420px);
  object-fit: cover;
  display: block;
}
.page-intro{ padding: 48px 0 8px; }

/* ---------- Hero (home) ---------- */
.hero{ background: var(--cream); }
.hero-copy{ padding: 40px 0 16px; }
.hero-lead{ font-size: 1.05rem; max-width: 46ch; }
.hero-actions{ display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5em; }

/* ---------- Media (real photography, replaces the old placeholder boxes) ---------- */
.media{
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4-3{ aspect-ratio: 4 / 3; }
.ratio-1-1{ aspect-ratio: 1 / 1; }
.ratio-4-5{ aspect-ratio: 4 / 5; }
.ratio-3-4{ aspect-ratio: 3 / 4; }

.pillar-photo{ margin-bottom: 1.1rem; }
.producer-photo{ margin-bottom: 1.25rem; }

/* ---------- Pillars band ---------- */
.pillars-band{ background: var(--olive); color: var(--olive-text); padding: 48px 0; }
.pillars-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pillars-band h3{ color: var(--olive-text); font-size: 1.05rem; }
.pillars-band p{ color: rgba(239,236,236,.85); margin: 0; font-size: .93rem; }

/* ---------- Sections ---------- */
.section{ padding: 72px 0; }
.section.no-top{ padding-top: 0; }
.section-alt{ background: var(--paper); }
.section-head{ max-width: 680px; margin-bottom: 2.5rem; }
.section-lead{ font-size: 1.02rem; }
.sub-heading{ margin-top: 2em; }
.sub-heading.first{ margin-top: 0; }
.mission{ text-align: center; }
.mission .section-lead{ margin-left: auto; margin-right: auto; }

/* ---------- Products ---------- */
.product-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.product-card{
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .media{ border: none; border-radius: 0; }
.product-card .card-link{ position: absolute; inset: 0; z-index: 1; }
.product-body{ padding: 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.producer{ font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--olive); margin: 0 0 .2em; }
.product-card h3{ margin: 0 0 .5em; }
.product-desc{ font-size: .95rem; }
.tasting-notes{ font-size: .9rem; }
.tasting-notes strong{ color: var(--ink); }

.spec-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5em 1em;
  margin: .5em 0 1em;
  padding-top: .9em;
  border-top: 1px dashed var(--line);
}
.spec-list div{ display: flex; flex-direction: column; }
.spec-list dt{ font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.spec-list dd{ margin: 0; font-size: .9rem; font-weight: 500; }

.product-foot{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.price{ font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 1.05rem; }
.teaser-more{ margin-top: 2rem; text-align: center; }

.variant-picker{
  margin-top: .9em;
  padding-top: .9em;
  border-top: 1px dashed var(--line);
}
.variant-group{ margin-bottom: .9em; }
.variant-label{
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: .4em;
}
.variant-options{ display: flex; flex-wrap: wrap; gap: .5em; }
.variant-option{
  font: inherit;
  font-size: .85rem;
  padding: .45em .9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.variant-option:hover{ border-color: var(--ink-soft); }
.variant-option.is-selected{
  background: var(--dark);
  border-color: var(--dark);
  color: var(--dark-text);
}
.variant-picker .product-foot{ margin-top: 0; }

/* ---------- Split layout ---------- */
.split{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Value list (Sobre Yarumo) ---------- */
.pillars-list{ list-style: none; margin: 1.5em 0; padding: 0; display: grid; gap: 1em; }
.pillars-list li{ padding-left: 1.4em; position: relative; color: var(--ink-soft); }
.pillars-list li::before{
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px;
  background: var(--olive);
}
.pillars-list strong{ color: var(--ink); }

/* ---------- Producer spotlight ---------- */
.eyebrow-plain{
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--olive);
  margin: 0 0 .4em;
}
.certifications{ font-size: .9rem; }

/* ---------- Journey (Trazabilidad) ---------- */
.journey{ list-style: none; margin: 1.5em 0 2.5em; padding: 0; display: grid; gap: 1.75rem; }
.journey li{ display: flex; gap: 1.25rem; }
.journey-num{
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: .95rem;
}
.journey h4{ margin-bottom: .25em; }
.journey p{ margin: 0; font-size: .95rem; }

.guide-list{ display: grid; gap: 1em; margin: 1.5em 0 2rem; }
.guide-list dt{ font-weight: 700; font-family: 'Noto Sans', sans-serif; font-size: .95rem; }
.guide-list dd{ margin: .2em 0 0; font-size: .92rem; }

.quote-block{
  border-left: 3px solid var(--olive);
  padding-left: 1.25rem;
  margin: 1.5em 0 1.5em;
}
.quote-block p{
  font-style: italic;
  color: var(--ink);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- CTA / Contacto ---------- */
.section-cta{
  background: var(--dark);
  color: var(--dark-text);
  text-align: center;
  padding: 80px 0;
}
.section-cta h2{ color: var(--dark-text); }
.section-cta p{ color: rgba(241,235,221,.75); max-width: 46ch; margin: 0 auto 1.75em; }
.cta-inner{ display: flex; flex-direction: column; align-items: center; }

/* ---------- Footer ---------- */
.site-footer{ padding: 28px 0; background: var(--dark); color: var(--dark-text); }
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p{ margin: 0; font-size: .85rem; color: rgba(241,235,221,.7); }

.footer-contact{ display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.footer-social{
  display: inline-flex;
  color: rgba(241,235,221,.7);
  line-height: 0;
}
.footer-social:hover{ color: var(--dark-text); }
.footer-social svg{ width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .site-nav{
    position: fixed;
    inset: 65px 0 auto 0;
    background: var(--dark);
    border-bottom: 1px solid var(--line-on-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .site-nav.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a{ padding: .7em 0; width: 100%; border-bottom: 1px solid var(--line-on-dark); }
  .nav-toggle{ display: flex; }
  .header-actions .btn-small{ display: none; }

  .pillars-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .split .media{ max-width: 420px; margin: 0 auto; }
}

@media (max-width: 520px){
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ text-align: center; }
  .spec-list{ grid-template-columns: 1fr 1fr; }
  .product-foot{ flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-inner{ flex-direction: column; text-align: center; }
}
