/* ===================================================
   Cervera Premium — stylesheet
   =================================================== */

:root{
  --olive-950:#20260a;
  --olive-900:#2c3610;
  --olive-800:#3b481a;
  --olive-700:#4d5f12;
  --olive-500:#7a8f1a;
  --olive-400:#a3b823;
  --olive-300:#c9d400;
  --gold-600:#a8811f;
  --gold-500:#c9a227;
  --gold-400:#e0bd4a;
  --cream-50:#fdfcf6;
  --cream-100:#f7f4e8;
  --cream-200:#efe9d4;
  --ink-900:#20220f;
  --ink-700:#3c3d24;
  --ink-500:#63643f;
  --white:#ffffff;

  --font-display:'Playfair Display', Georgia, serif;
  --font-script:'Playfair Display', Georgia, serif;
  --font-body:'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-lg:28px;
  --radius-md:16px;
  --shadow-soft:0 20px 45px -20px rgba(32,38,10,0.35);
  --container:1180px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--cream-50);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3{ font-family:var(--font-display); font-weight:700; line-height:1.15; margin:0 0 .5em; color:var(--ink-900); }
p{ margin:0 0 1em; color:var(--ink-700); line-height:1.7; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--olive-900); color:var(--cream-50);
  padding:12px 18px; z-index:200; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 30px;
  border-radius:100px;
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.02em;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary{
  background:linear-gradient(135deg, var(--olive-400), var(--olive-700));
  color:var(--cream-50);
  box-shadow:0 10px 25px -10px rgba(74,95,18,0.6);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(74,95,18,0.7); }
.btn-ghost{
  background:transparent;
  border-color:rgba(253,252,246,0.55);
  color:var(--cream-50);
}
.btn-ghost:hover{ background:rgba(253,252,246,0.12); }
.btn-outline{
  background:transparent;
  border-color:var(--olive-500);
  color:var(--olive-700);
  width:100%;
}
.btn-outline:hover{ background:var(--olive-500); color:var(--white); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:transparent;
  backdrop-filter:none;
  border-bottom:1px solid transparent;
  transition:background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled{
  background:rgba(253,252,246,0.97);
  backdrop-filter:blur(10px);
  border-bottom-color:var(--cream-200);
  box-shadow:0 8px 24px -18px rgba(32,38,10,0.5);
}
.header-inner{
  display:flex; align-items:center; position:relative;
  height:78px;
}
.logo{ display:flex; align-items:center; flex-shrink:0; }
.footer-logo{ display:flex; align-items:center; }
.logo-image-wrap{ width:132px; height:60px; overflow:hidden; display:block; flex-shrink:0; }
.logo-image{
  width:100%; height:100%; object-fit:cover; object-position:center 46%;
  display:block; transition:filter .3s ease;
}
.logo-image--light{ filter:brightness(0) invert(1); }

/* Transparent header over the hero video: light logo until scrolled. */
.site-header:not(.scrolled) .logo-image{ filter:brightness(0) invert(1); }
@media (min-width:761px){
  .site-header:not(.scrolled) #gooeyNav.gooey-nav-container nav ul,
  .site-header:not(.scrolled) #gooeyNav.gooey-nav-container nav ul li{
    color:var(--cream-50);
  }
  /* GooeyNav's particle-burst layer relies on a black shape blending against an
     opaque header background (mix-blend-mode:lighten) to "disappear". With a
     transparent header over the video there's nothing to blend against, so the
     black shows through. Hide the decorative burst only in that transparent
     state — the real active-pill indicator (nav ul li.active::after) keeps
     working either way; the full particle flourish comes back once scrolled. */
  .site-header:not(.scrolled) #gooeyNav .effect.filter,
  .site-header:not(.scrolled) #gooeyNav .effect.text{
    display:none;
  }
}

.main-nav{ display:flex; align-items:center; }

.nav-cta{
  background:var(--olive-700); color:var(--cream-50);
  padding:10px 22px; border-radius:100px; font-weight:700; font-size:.95rem;
  white-space:nowrap;
  transition:background .2s ease;
}
.nav-cta:hover{ background:var(--olive-800); }

@media (min-width:761px){
  .main-nav{ flex:1; justify-content:center; }
  .nav-cta{ position:absolute; right:0; top:50%; transform:translateY(-50%); }
}

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:30px;
  background:none; border:0; cursor:pointer; padding:6px;
  margin-left:auto;
}
.nav-toggle span{ display:block; height:2px; background:var(--ink-900); border-radius:2px; transition:background .3s ease; }
.site-header:not(.scrolled) .nav-toggle span{ background:var(--cream-50); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:88vh;
  display:flex; align-items:center;
  padding:150px 0 90px;
  overflow:hidden;
  background:var(--olive-950); /* fallback shown while the video loads */
}
.hero-video{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%;
  object-fit:cover;
}
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(16,20,6,.42) 0%, rgba(16,20,6,.58) 65%, rgba(16,20,6,.7) 100%);
}

.hero-center{
  position:relative; z-index:2;
  width:100%;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}

.hero-kicker{
  margin-bottom:18px;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
}

.hero-title{
  font-size:clamp(2.3rem, 5.5vw, 4.2rem);
  line-height:1.12;
  letter-spacing:-.01em;
  color:var(--cream-50);
  max-width:820px;
  margin-bottom:.55em;
  text-shadow:0 4px 24px rgba(0,0,0,.35);
}
.hero-title .script{
  font-family:var(--font-script); font-style:italic; font-weight:500;
  color:var(--gold-400);
  text-shadow:0 2px 10px rgba(0,0,0,.25);
}
.hero-lede{
  max-width:600px; color:var(--cream-100); opacity:.92;
  font-size:1.05rem; line-height:1.75; margin-bottom:40px;
  text-shadow:0 2px 12px rgba(0,0,0,.3);
}
.hero-actions{ display:flex; gap:18px; flex-wrap:wrap; justify-content:center; }

.btn-outline-arrow{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid rgba(253,252,246,.45); border-radius:100px;
  padding:14px 28px; color:var(--cream-50); font-weight:700; font-size:.95rem;
  background:rgba(253,252,246,.06);
  backdrop-filter:blur(6px);
  transition:background .2s ease, border-color .2s ease;
}
.btn-outline-arrow:hover{ background:rgba(253,252,246,0.18); border-color:rgba(253,252,246,.7); }
.btn-outline-arrow svg{ width:6px; height:8px; }

/* ---------- About stats (moved out of the old two-column hero) ---------- */
.about-stats{
  display:flex; gap:32px; flex-wrap:wrap; margin-top:28px;
  padding-top:24px; border-top:1px solid var(--cream-200);
}
.about-stats li{ display:flex; flex-direction:column; }
.about-stats strong{ font-family:var(--font-display); font-weight:900; font-size:1.6rem; color:var(--olive-800); }
.about-stats span{ font-size:.8rem; color:var(--ink-500); }

/* ---------- Section basics ---------- */
.section{ padding:100px 0; }
.section--tint{ background:var(--cream-100); }
.section--dark{ background:linear-gradient(160deg, var(--olive-950), var(--olive-800)); color:var(--cream-50); }
.section--dark p{ color:rgba(247,244,232,0.8); }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.section-lede{ max-width:560px; margin-bottom:50px; }
.kicker{
  text-transform:uppercase; letter-spacing:.18em; font-weight:700; font-size:.78rem;
  color:var(--gold-600); margin-bottom:10px;
}
.kicker--light{ color:var(--gold-400); }
h2.light{ color:var(--cream-50); }
.link-arrow{ font-weight:700; color:var(--olive-700); display:inline-block; margin-top:6px; }
.link-arrow:hover{ text-decoration:underline; }

/* ---------- About ---------- */
.about-grid{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; align-items:center;
}
.about-art{ position:relative; display:flex; justify-content:center; }
.about-swatch{
  width:100%; aspect-ratio:4/5; max-width:420px;
  border-radius:var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(224,189,74,0.25), transparent 60%),
    linear-gradient(150deg, var(--cream-100), var(--cream-200));
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.about-photo{ width:100%; height:100%; object-fit:cover; object-position:center 38%; transform:scale(1.38); }
.about-copy p{ max-width:560px; }

/* ---------- Products ---------- */
.section--products{ padding-top:110px; padding-bottom:130px; }
.products-kicker-row{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin-bottom:10px;
}
.products-kicker-row .kicker{ margin-bottom:0; }
.products-kicker-row::before, .products-kicker-row::after{
  content:''; height:1px; width:40px; background:var(--gold-500); opacity:.5;
}

.product-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:28px; margin-top:56px;
  align-items:center;
}
.product-card{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:34px 28px;
  box-shadow:var(--shadow-soft);
  position:relative;
  display:flex; flex-direction:column;
  border:1px solid transparent;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.product-card:hover{
  transform:translateY(-10px);
  box-shadow:0 34px 55px -22px rgba(32,38,10,0.4);
  border-color:var(--cream-200);
}
.product-card:hover .product-price strong{ transform:scale(1.08); }
.product-card:hover .product-tag{ transform:translateY(-2px); }
.product-card--featured{
  background:linear-gradient(165deg, var(--olive-800), var(--olive-950));
  color:var(--cream-50);
  padding:50px 32px;
  transform:scale(1.07);
  box-shadow:0 30px 60px -18px rgba(15,20,5,0.55);
  z-index:2;
}
.product-card--featured:hover{
  transform:scale(1.07) translateY(-10px);
  box-shadow:0 40px 70px -18px rgba(15,20,5,0.65);
  border-color:transparent;
}
.product-card--featured h3, .product-card--featured .product-price{ color:var(--cream-50); }
.product-card--featured p{ color:rgba(247,244,232,0.82); }
.product-tag{
  align-self:flex-start;
  background:var(--cream-200); color:var(--ink-700);
  font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  padding:6px 14px; border-radius:100px; margin-bottom:16px;
  transition:transform .3s ease;
}
.product-tag--gold{ background:linear-gradient(120deg, var(--gold-400), var(--gold-600)); color:var(--olive-950); }
.product-features{ margin:14px 0 20px; display:flex; flex-direction:column; gap:6px; font-size:.9rem; opacity:.85; }
.product-features li::before{ content:'✶ '; color:var(--gold-500); }
.product-price{ font-family:var(--font-display); font-weight:700; font-size:1.3rem; color:var(--olive-800); margin-bottom:18px; }
.product-price strong{ display:inline-block; transition:transform .3s ease; }

/* ---------- Benefits ---------- */
.benefits-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:34px; margin-top:20px;
}
.benefit{ text-align:center; padding:10px; }
.benefit-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:64px; height:64px; border-radius:50%;
  background:var(--cream-100); color:var(--olive-700);
  margin-bottom:16px;
  transition:transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease, box-shadow .3s ease;
}
.benefit-icon svg{ width:30px; height:30px; }
.benefit:hover .benefit-icon{
  transform:scale(1.15);
  background:var(--olive-700); color:var(--cream-50);
  box-shadow:0 10px 22px -8px rgba(74,95,18,0.5);
}
.benefit h3{ font-size:1.15rem; }

/* ---------- Purity showcase ---------- */
.purity-section{ position:relative; min-height:560px; display:flex; align-items:center; }
.purity-grid{
  width:100%;
}
.purity-copy{
  /* The image is absolutely positioned (not a real grid column anymore), so
     the text is free to use nearly the full container width — just enough
     left clearance to stay clear of the bleeding photo. */
  margin-left:440px;
}
.purity-copy .kicker{ font-size:1rem; letter-spacing:.24em; }
.purity-copy h2{ font-size:clamp(2.5rem, 4.6vw, 3.7rem); line-height:1.1; margin-bottom:.45em; }
.purity-copy p{ max-width:720px; font-size:1.2rem; line-height:1.85; }
.purity-copy.reveal{
  opacity:0; transform:translateX(46px);
  transition:opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.purity-copy.reveal.is-visible{ opacity:1; transform:none; }
.purity-art{
  /* Pinned to the section's real left/top/bottom edges (the section is
     full-width, so left:0 = viewport edge) — the bottle enters from
     off-screen and the drip runs into the section below. Width is auto:
     the photo keeps its own natural aspect ratio at the section's height,
     instead of being cropped to fill an arbitrary box. */
  position:absolute; left:0; top:0; bottom:0;
  width:auto;
  overflow:hidden;
}
.purity-photo{
  width:auto; height:100%; max-width:none;
  object-fit:contain; object-position:left center;
  filter:none;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
.purity-art:hover .purity-photo{ transform:scale(1.08); }

/* ---------- Jug showcase (mirrored: photo bleeds right, text bigger + centered) ---------- */
.jug-section{ position:relative; min-height:560px; display:flex; align-items:center; }
.jug-grid{
  width:100%;
}
.jug-copy{
  /* The jug is absolutely positioned (not a real grid column anymore), so
     the text is free to use nearly the full container width — just enough
     right clearance to stay clear of the bleeding photo. */
  margin-right:440px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.jug-copy .kicker{ font-size:.9rem; }
.jug-copy h2{ font-size:clamp(2.1rem, 3.8vw, 3.1rem); }
.jug-copy p{ max-width:680px; font-size:1.15rem; line-height:1.75; }
.jug-art{
  /* Mirror of .purity-art: pinned to the section's real right/top/bottom
     edges, natural aspect ratio (no crop), jug bleeding off the right edge. */
  position:absolute; right:0; top:0; bottom:0;
  width:auto;
  overflow:hidden;
}
.jug-photo{
  width:auto; height:100%; max-width:none;
  object-fit:contain; object-position:right center;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
.jug-art:hover .jug-photo{ transform:scale(1.08); }

/* ---------- Timeline ---------- */
.timeline{
  position:relative;
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:30px; margin-top:60px;
}
.timeline::before{
  content:'';
  position:absolute; top:38px; left:12.5%; right:12.5%;
  height:2px; background:rgba(224,189,74,0.35);
}
.timeline-step{
  position:relative; text-align:center;
}
.timeline-icon{
  position:relative;
  width:76px; height:76px; margin:0 auto 20px;
  border-radius:50%;
  background:var(--olive-800);
  border:2px solid var(--gold-400);
  color:var(--gold-400);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 8px var(--olive-950);
  transition:transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease, box-shadow .3s ease;
}
.timeline-icon svg{ width:32px; height:32px; }
.timeline-step:hover .timeline-icon{
  transform:scale(1.2);
  background:var(--gold-500);
  color:var(--olive-950);
  box-shadow:0 0 0 8px var(--olive-950), 0 10px 24px -6px rgba(224,189,74,0.55);
}
.timeline-num{
  display:block; font-family:var(--font-display); font-weight:900; font-size:1.05rem; color:var(--gold-400); margin-bottom:6px;
}
.timeline-step h3{ color:var(--cream-50); font-size:1.15rem; }
.timeline-step p{ color:rgba(247,244,232,0.75); font-size:.92rem; max-width:230px; margin-left:auto; margin-right:auto; }

/* ---------- Testimonials ---------- */
.testimonial-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:28px; margin-top:20px;
}
.testimonial{
  margin:0; background:var(--white); border-radius:var(--radius-md);
  padding:30px 26px; border-left:4px solid var(--gold-500);
  box-shadow:var(--shadow-soft);
}
.testimonial p{ font-style:italic; color:var(--ink-900); }
.testimonial cite{ font-style:normal; font-weight:700; font-size:.85rem; color:var(--olive-700); }

/* ---------- Contact ---------- */
.section--contact-bg{
  background:
    linear-gradient(rgba(253,252,246,0.33), rgba(253,252,246,0.33)),
    url('../images/moncayo%20olivar.jpeg') center 60%/cover no-repeat;
}
.contact-grid{
  display:grid; justify-items:center;
}
.contact-form{
  width:100%; max-width:560px;
  background:var(--white); border-radius:var(--radius-lg);
  padding:40px; box-shadow:var(--shadow-soft);
}
.form-row{ margin-bottom:20px; display:flex; flex-direction:column; gap:8px; }
.form-row label{ font-weight:700; font-size:.9rem; }
.form-row input, .form-row textarea{
  font-family:var(--font-body); font-size:1rem;
  padding:13px 16px; border-radius:10px;
  border:1.5px solid var(--cream-200); background:var(--cream-50);
  resize:vertical; transition:border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus{
  outline:none; border-color:var(--olive-500);
  box-shadow:0 0 0 3px rgba(122,143,26,0.15);
}
.form-note{ margin:14px 0 0; font-weight:600; font-size:.9rem; min-height:1.2em; color:var(--olive-700); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--olive-950); color:var(--cream-100); padding:60px 0 30px; }
.footer-grid{
  display:grid; grid-template-columns:1.1fr 1fr 1.2fr; gap:48px;
  padding-bottom:32px; border-bottom:1px solid rgba(247,244,232,0.12);
}
.footer-brand p{ color:rgba(247,244,232,0.65); font-size:.9rem; margin-top:6px; }
.footer-nav{ display:flex; gap:20px; flex-wrap:wrap; margin-top:22px; }
.footer-nav a{ font-size:.9rem; font-weight:600; color:rgba(247,244,232,0.85); }
.footer-nav a:hover{ color:var(--gold-400); }

.footer-contact h3, .footer-map h3{
  font-family:var(--font-display); font-weight:700; font-size:1.1rem;
  color:var(--cream-50); margin-bottom:16px;
}
.footer-contact ul{ display:flex; flex-direction:column; gap:12px; }
.footer-contact li{ font-size:.9rem; color:rgba(247,244,232,0.75); line-height:1.5; }
.footer-contact a{ color:rgba(247,244,232,0.75); }
.footer-contact a:hover{ color:var(--gold-400); }

.footer-map iframe{
  width:100%; height:180px; border:0; border-radius:var(--radius-md);
  filter:grayscale(.2) contrast(1.05);
}

.footer-copy{ text-align:center; font-size:.82rem; color:rgba(247,244,232,0.55); margin:22px 0 0; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .about-art{ order:-1; }
  .purity-section{ display:block; min-height:0; }
  .purity-copy{ margin-left:0; }
  .purity-art{
    position:static; order:-1; width:100%; height:auto; aspect-ratio:4/3;
    margin-bottom:32px;
  }
  .purity-photo{ width:100%; object-fit:cover; object-position:center 45%; }
  .jug-section{ display:block; min-height:0; }
  .jug-copy{ margin-right:0; }
  .jug-art{
    position:static; order:-1; width:100%; height:auto; aspect-ratio:4/3;
    margin-bottom:32px;
  }
  .jug-photo{ width:100%; object-fit:cover; object-position:right 45%; }
  .product-grid, .benefits-grid, .testimonial-grid{ grid-template-columns:repeat(2, 1fr); }
  .timeline{ grid-template-columns:repeat(2, 1fr); row-gap:48px; }
  .timeline::before{ display:none; }
  .contact-photo{ float:none; width:110px; margin:0 0 16px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-map{ grid-column:1 / -1; }
}

@media (max-width: 760px){
  .main-nav{
    position:fixed; top:78px; left:0; right:0; height:calc(100vh - 78px);
    background:var(--cream-50);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:20px 24px; transform:translateX(100%);
    transition:transform .3s ease;
  }
  .main-nav.open{ transform:translateX(0); }
  .nav-toggle{ display:flex; }
  .nav-cta{ margin-top:20px; text-align:center; align-self:stretch; }

  .hero{ min-height:auto; padding-top:130px; padding-bottom:70px; }
  .about-stats{ gap:22px; }
  .product-grid, .benefits-grid, .testimonial-grid, .timeline{ grid-template-columns:1fr; }
  .contact-form{ padding:28px; }
  .footer-grid{ grid-template-columns:1fr; text-align:center; gap:36px; }
  .footer-nav{ justify-content:center; }
  .footer-contact ul{ align-items:center; }
}
