/* ==========================================================================
   JIDEX FOODS — Design Tokens
   Palette: red / white / light gray / soft cream (brief-locked)
   Display: Baloo 2 (rounded, snack-crunch personality)
   Body/UI: Poppins
   Signature: torn "crunch-edge" dividers + floating snack die-cuts
   ========================================================================== */

:root{
  --red:            #D6272C;
  --red-deep:        #A81E1E;
  --red-bright:      #F03A3A;
  --white:           #FFFFFF;
  --cream:           #FFF8EF;
  --gray:            #F2F0EC;
  --ink:             #241512;
  --ink-soft:        #5B4B47;
  --line:            rgba(36,21,18,0.08);

  --font-display:    'Baloo 2', system-ui, sans-serif;
  --font-body:       'Poppins', system-ui, sans-serif;

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;

  --shadow-sm: 0 4px 14px rgba(36,21,18,0.08);
  --shadow-md: 0 14px 34px rgba(36,21,18,0.12);
  --shadow-lg: 0 26px 60px rgba(36,21,18,0.18);

  --ease: cubic-bezier(.22,.9,.32,1);
  --container: 1240px;

  --bg: var(--cream);
  --surface: var(--white);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
}

[data-theme="dark"]{
  --bg: #170D0C;
  --surface: #22140F;
  --text: #FBF3EC;
  --text-soft: #CBB8AF;
  --border: rgba(255,255,255,0.08);
  --gray: #2A1B17;
  --cream: #22140F;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  transition:background .4s var(--ease), color .4s var(--ease);
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input,select,textarea{ font-family:inherit; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; margin:0; line-height:1.08; color:var(--text); }
p{ margin:0 0 1em; color:var(--text-soft); line-height:1.7; }
.muted{ color:var(--text-soft); }

::selection{ background:var(--red); color:#fff; }
:focus-visible{ outline:3px solid var(--red-bright); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 30px; border-radius:100px; font-weight:600; font-size:0.95rem;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--red-bright),var(--red-deep));
  color:#fff; box-shadow:0 10px 26px rgba(214,39,44,0.35);
}
.btn-primary:hover{ transform:translateY(-3px) scale(1.02); box-shadow:0 16px 34px rgba(214,39,44,0.45); }
.btn-outline{ border:2px solid var(--red); color:var(--red); background:transparent; }
.btn-outline:hover{ background:var(--red); color:#fff; transform:translateY(-3px); }
.btn-ghost{ color:var(--text); background:var(--gray); }
.btn-ghost:hover{ transform:translateY(-3px); box-shadow:var(--shadow-sm); }
.btn-block{ width:100%; }

.eyebrow{
  display:inline-block; font-weight:600; letter-spacing:.04em; color:var(--red);
  background:rgba(214,39,44,0.08); padding:6px 16px; border-radius:100px; font-size:0.8rem; margin-bottom:14px;
}
.eyebrow-light{ background:rgba(255,255,255,0.18); color:#fff; }

.section-head{ max-width:640px; margin:0 auto 48px; text-align:center; }
.section-head h2{ font-size:clamp(1.8rem,4vw,2.6rem); margin-bottom:12px; }

/* ---------- Reveal / fade animations ---------- */
.fade-up{ opacity:0; transform:translateY(26px); animation:fadeUp .8s var(--ease) forwards; animation-delay:var(--d,0s); }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

.reveal{ opacity:0; transform:translateY(40px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------- Loader ---------- */
.loader{
  position:fixed; inset:0; z-index:9999; background:var(--red);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.hide{ opacity:0; visibility:hidden; }
.loader p{ color:#fff; font-family:var(--font-display); font-size:1.2rem; margin:0; letter-spacing:.02em; }
.loader-bag{ animation:bagBounce 1.1s ease-in-out infinite; }
@keyframes bagBounce{ 0%,100%{ transform:translateY(0) rotate(-3deg);} 50%{ transform:translateY(-14px) rotate(3deg);} }
.crumb{ animation:crumbPop 1.4s ease-in-out infinite; }
.crumb:nth-child(2){ animation-delay:.2s; } .crumb:nth-child(3){ animation-delay:.4s; }
@keyframes crumbPop{ 0%,100%{ opacity:.3; transform:translateY(0);} 50%{ opacity:1; transform:translateY(-6px);} }

/* ---------- Header / Nav ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:900;
  background:transparent; transition:background .4s var(--ease), box-shadow .4s var(--ease), padding .3s;
}
.site-header.scrolled{ background:var(--surface); box-shadow:var(--shadow-sm); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 24px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:1.3rem; }
.logo-mark{
  width:38px; height:38px; border-radius:50%; background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0;
}
.logo-text em{ font-style:normal; color:var(--red); }
.nav-links{ display:flex; gap:28px; }
.nav-links a{ font-size:0.94rem; font-weight:500; position:relative; padding:6px 0; }
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--red); transition:width .3s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.icon-btn{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--gray); }
.icon-btn svg{ width:18px; height:18px; fill:none; stroke:var(--text); stroke-width:2; stroke-linecap:round; }
.icon-btn .moon{ display:none; }
[data-theme="dark"] .icon-btn .sun{ display:none; }
[data-theme="dark"] .icon-btn .moon{ display:block; }
.nav-cta{ padding:11px 22px; font-size:0.85rem; }
.hamburger{ display:none; flex-direction:column; gap:5px; width:32px; }
.hamburger span{ height:2.5px; background:var(--text); border-radius:2px; transition:.3s var(--ease); }
.hamburger.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

.search-overlay{
  position:fixed; inset:0; background:rgba(20,10,8,0.75); backdrop-filter:blur(6px); z-index:950;
  display:flex; flex-direction:column; align-items:center; padding-top:12vh;
  opacity:0; visibility:hidden; transition:.35s var(--ease);
}
.search-overlay.open{ opacity:1; visibility:visible; }
.search-box{
  width:min(600px,90vw); background:var(--surface); border-radius:100px; display:flex; align-items:center; gap:12px;
  padding:16px 22px; box-shadow:var(--shadow-lg);
}
.search-box svg{ width:20px; height:20px; fill:none; stroke:var(--text-soft); stroke-width:2; flex-shrink:0; }
.search-box input{ flex:1; border:none; background:none; font-size:1rem; color:var(--text); outline:none; }
.search-box button{ font-size:1.6rem; color:var(--text-soft); line-height:1; }
.search-results{ width:min(600px,90vw); margin-top:16px; display:flex; flex-direction:column; gap:8px; max-height:50vh; overflow:auto; }
.search-result-item{ background:var(--surface); border-radius:var(--radius-sm); padding:12px 18px; display:flex; justify-content:space-between; color:var(--text); }
.search-result-item span{ color:var(--text-soft); font-size:0.85rem; }

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:100vh; display:flex; align-items:center; padding:130px 0 60px; overflow:hidden; background:linear-gradient(180deg,var(--cream),var(--gray)); }
.hero-bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
}
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(214,39,44,0.55), rgba(36,21,18,0.65));
}
[data-theme="dark"] .hero-overlay{ background:linear-gradient(180deg, rgba(168,30,30,0.65), rgba(10,5,4,0.8)); }
/* text sits on top of video+overlay; brighten copy for contrast when video is present */
.hero.has-video .eyebrow{ background:rgba(255,255,255,0.16); color:#fff; }
.hero.has-video h1{ color:#fff; }
.hero.has-video .text-outline{ color:#FFD9A0; -webkit-text-stroke:1px rgba(255,255,255,0.4); }
.hero.has-video .hero-sub{ color:rgba(255,255,255,0.92); }
.hero.has-video .hero-trust strong{ color:#FFD9A0; }
.hero.has-video .hero-trust span{ color:rgba(255,255,255,0.75); }
.hero.has-video .scroll-cue span{ border-color:#fff; }
.hero.has-video .scroll-cue span::after{ background:#fff; }
.blob{ position:absolute; border-radius:50%; filter:blur(60px); opacity:.35; z-index:1; }
.blob-1{ width:520px; height:520px; background:var(--red); top:-160px; right:-160px; animation:float1 12s ease-in-out infinite; }
.blob-2{ width:380px; height:380px; background:#FFD9A0; bottom:-120px; left:-100px; animation:float2 14s ease-in-out infinite; }
@keyframes float1{ 0%,100%{ transform:translate(0,0);} 50%{ transform:translate(-40px,40px);} }
@keyframes float2{ 0%,100%{ transform:translate(0,0);} 50%{ transform:translate(30px,-30px);} }
.crumbs{ position:absolute; inset:0; }
.crumb-dot{ position:absolute; width:8px; height:8px; border-radius:50%; background:var(--red); opacity:.25; animation:drift 8s linear infinite; }

.hero-inner{ position:relative; z-index:2; display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center; }
.eyebrow.fade-up{ background:rgba(214,39,44,0.1); }
.hero h1{ font-size:clamp(2.6rem,6vw,4.4rem); margin-bottom:18px; }
.text-outline{ color:var(--red); }
.hero-sub{ font-size:1.15rem; max-width:440px; margin-bottom:28px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:36px; }
.hero-trust{ display:flex; gap:32px; }
.hero-trust div{ display:flex; flex-direction:column; }
.hero-trust strong{ font-family:var(--font-display); font-size:1.5rem; color:var(--red); }
.hero-trust span{ font-size:0.8rem; color:var(--text-soft); }

.hero-floats{ position:relative; height:460px; }
.float-card{
  position:absolute; background:rgba(255,255,255,0.55); backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.6); border-radius:var(--radius-lg); padding:16px;
  box-shadow:var(--shadow-lg); width:170px; text-align:center; animation:floaty 6s ease-in-out infinite;
}
[data-theme="dark"] .float-card{ background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.1); }
.float-card img{ border-radius:var(--radius-md); margin-bottom:10px; aspect-ratio:1; object-fit:cover; }
.float-card span{ font-weight:600; font-size:0.9rem; }
.fc-1{ top:0; left:10%; animation-delay:0s; }
.fc-2{ top:38%; right:0; width:190px; animation-delay:1.2s; }
.fc-3{ bottom:0; left:22%; animation-delay:2.4s; }
@keyframes floaty{ 0%,100%{ transform:translateY(0) rotate(-2deg);} 50%{ transform:translateY(-22px) rotate(2deg);} }

.scroll-cue{ position:absolute; bottom:28px; left:50%; transform:translateX(-50%); z-index:2; }
.scroll-cue span{ display:block; width:26px; height:42px; border:2px solid var(--red); border-radius:100px; position:relative; }
.scroll-cue span::after{ content:''; position:absolute; top:8px; left:50%; width:5px; height:5px; background:var(--red); border-radius:50%; transform:translateX(-50%); animation:scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot{ 0%{ top:8px; opacity:1;} 80%{ top:24px; opacity:0;} 100%{ top:24px; opacity:0;} }

/* ---------- Crunch divider (signature element) ---------- */
.crunch-divider{
  height:48px; width:100%;
  background-color:var(--surface);
  clip-path: polygon(0% 0%,4% 100%,8% 0%,12% 100%,16% 0%,20% 100%,24% 0%,28% 100%,32% 0%,36% 100%,40% 0%,44% 100%,48% 0%,52% 100%,56% 0%,60% 100%,64% 0%,68% 100%,72% 0%,76% 100%,80% 0%,84% 100%,88% 0%,92% 100%,96% 0%,100% 100%,100% 0%);
}
.crunch-divider.flip{ transform:scaleY(-1); }

/* ---------- About ---------- */
.about{ padding:100px 0; background:var(--surface); }
.about-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:center; }
.about-media{ position:relative; }
.about-media img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
.badge-float{
  position:absolute; bottom:-24px; right:-24px; background:var(--red); color:#fff; padding:16px 22px;
  border-radius:var(--radius-md); box-shadow:var(--shadow-lg); text-align:center;
}
.badge-float strong{ display:block; font-family:var(--font-display); font-size:1.1rem; }
.badge-float span{ font-size:0.75rem; opacity:.9; }
.about-copy h2{ font-size:clamp(1.9rem,4vw,2.6rem); margin-bottom:18px; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:32px; }
.stat{ text-align:center; padding:20px 8px; background:var(--gray); border-radius:var(--radius-md); }
.stat-num{ display:block; font-family:var(--font-display); font-size:2rem; color:var(--red); }
.stat-label{ font-size:0.78rem; color:var(--text-soft); }

/* ---------- Products ---------- */
.products{ padding:100px 0 60px; background:var(--bg); }
.product-filters, .gallery-filters, .continent-filters{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.pf-btn{ padding:10px 22px; border-radius:100px; background:var(--gray); font-weight:600; font-size:0.85rem; transition:.3s; }
.pf-btn.active,.pf-btn:hover{ background:var(--red); color:#fff; }

.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.product-card{
  background:var(--surface); border-radius:var(--radius-lg); padding:22px; text-align:center;
  box-shadow:var(--shadow-sm); transition:transform .4s var(--ease), box-shadow .4s var(--ease); position:relative;
}
.product-card:hover{ transform:translateY(-10px); box-shadow:var(--shadow-lg); }
.product-card .pc-select{ position:absolute; top:16px; left:16px; width:20px; height:20px; }
.product-card img{ width:150px; height:150px; object-fit:cover; margin:0 auto 16px; border-radius:50%; box-shadow:var(--shadow-sm); }
.product-card h3{ font-size:1.2rem; margin-bottom:6px; }
.product-card p{ font-size:0.88rem; margin-bottom:10px; }
.pc-meta{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.pc-tag{ font-size:0.7rem; background:var(--gray); padding:4px 10px; border-radius:100px; color:var(--text-soft); }
.pc-view{ font-weight:600; color:var(--red); font-size:0.85rem; }

.compare-toggle{ display:flex; justify-content:center; gap:16px; margin-top:44px; flex-wrap:wrap; }

/* Nutrition */
.nutrition{ padding:90px 0; background:var(--surface); }
.nutrition-grid{ display:grid; grid-template-columns:1.2fr 0.8fr; gap:60px; align-items:center; }
.nutri-list{ margin-top:24px; display:flex; flex-direction:column; gap:10px; }
.nutri-list li{ display:flex; justify-content:space-between; padding:12px 18px; background:var(--gray); border-radius:var(--radius-sm); }
.nutri-visual{ position:relative; display:flex; align-items:center; justify-content:center; }
.nutri-ring{ width:220px; height:220px; transform:rotate(-90deg); }
.ring-bg{ fill:none; stroke:var(--gray); stroke-width:14; }
.ring-fg{ fill:none; stroke:var(--red); stroke-width:14; stroke-linecap:round; stroke-dasharray:502; stroke-dashoffset:calc(502 - (502 * var(--pct) / 100)); transition:stroke-dashoffset 1.4s var(--ease); }
.nutri-ring-label{ position:absolute; text-align:center; font-size:0.85rem; color:var(--text-soft); }
.nutri-ring-label strong{ display:block; font-family:var(--font-display); font-size:1.6rem; color:var(--red); }

/* Why */
.why{ padding:100px 0; background:var(--bg); }
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.why-card{ background:var(--surface); padding:32px 26px; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); transition:transform .4s var(--ease), box-shadow .4s var(--ease); }
.why-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-md); }
.why-icon{ width:56px; height:56px; border-radius:16px; background:rgba(214,39,44,0.1); display:flex; align-items:center; justify-content:center; font-size:1.6rem; margin-bottom:18px; }
.why-card h3{ font-size:1.1rem; margin-bottom:8px; }
.why-card p{ font-size:0.9rem; margin:0; }

/* Certs */
.certs{ padding:60px 0; background:var(--surface); }
.cert-row{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.cert-chip{ background:var(--gray); padding:14px 26px; border-radius:100px; font-weight:600; font-size:0.85rem; }

/* Distributors */
.distributors{ padding:100px 0; background:var(--bg); }
.dist-controls{ display:flex; flex-direction:column; align-items:center; gap:18px; margin-bottom:40px; }
.dist-controls input{ width:min(460px,90vw); padding:14px 22px; border-radius:100px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:0.95rem; }
.dist-layout{ display:grid; grid-template-columns:1.3fr 1fr; gap:36px; align-items:start; }
.world-map{ background:var(--surface); border-radius:var(--radius-lg); padding:20px; box-shadow:var(--shadow-sm); }
.world-map svg{ width:100%; height:auto; }
.map-dot{ fill:var(--red); animation:pulseDot 2.4s ease-in-out infinite; cursor:pointer; }
.map-dot-ring{ fill:none; stroke:var(--red); stroke-width:2; opacity:.5; animation:pulseRing 2.4s ease-in-out infinite; }
@keyframes pulseDot{ 0%,100%{ opacity:1;} 50%{ opacity:.6;} }
@keyframes pulseRing{ 0%{ r:6; opacity:.6;} 100%{ r:18; opacity:0;} }
.dist-list{ display:flex; flex-direction:column; gap:14px; max-height:480px; overflow:auto; padding-right:6px; }
.dist-card{ background:var(--surface); border-radius:var(--radius-md); padding:18px 20px; box-shadow:var(--shadow-sm); display:flex; gap:14px; align-items:flex-start; }
.dist-flag{ font-size:1.6rem; }
.dist-card h4{ font-size:1rem; margin:0 0 4px; }
.dist-card p{ font-size:0.82rem; margin:0; }
.dist-card .dc-country{ color:var(--red); font-weight:600; }

/* Partners marquee */
.partners{ padding:40px 0 10px; background:var(--surface); text-align:center; }
.partners-label{ font-weight:600; color:var(--text-soft); }
.marquee{ overflow:hidden; background:var(--surface); padding:16px 0 50px; }
.marquee-track{ display:flex; gap:60px; width:max-content; animation:marquee 22s linear infinite; font-family:var(--font-display); font-size:1.3rem; color:var(--text-soft); opacity:.7; }
@keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* Distribute CTA */
.distribute{ position:relative; padding:110px 0; overflow:hidden; }
.distribute-bg{
  position:absolute; inset:0; background:
    linear-gradient(120deg,rgba(168,30,30,0.92),rgba(214,39,44,0.88)),
    url('https://images.unsplash.com/photo-1583258292688-d0213dc5a3a8?w=1600&q=80') center/cover;
  z-index:0;
}
.distribute-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.distribute-copy{ color:#fff; }
.distribute-copy h2{ color:#fff; font-size:clamp(1.9rem,4vw,2.6rem); margin-bottom:16px; }
.distribute-copy p{ color:rgba(255,255,255,0.9); }
.distribute-perks{ margin-top:20px; display:flex; flex-direction:column; gap:12px; }
.distribute-perks li{ display:flex; align-items:center; gap:10px; color:#fff; font-weight:500; }
.distribute-perks li::before{ content:'✓'; width:24px; height:24px; background:rgba(255,255,255,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.75rem; flex-shrink:0; }

.distribute-form{ background:var(--surface); border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-lg); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group{ margin-bottom:18px; display:flex; flex-direction:column; gap:6px; }
.form-group label{ font-size:0.82rem; font-weight:600; color:var(--text-soft); }
.form-group input,.form-group select,.form-group textarea{
  padding:13px 16px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:0.92rem; transition:border .3s;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{ border-color:var(--red); outline:none; }
.btn-spinner{ width:16px; height:16px; border:2.5px solid rgba(255,255,255,0.4); border-top-color:#fff; border-radius:50%; display:none; animation:spin .7s linear infinite; }
button.loading .btn-label{ opacity:.6; }
button.loading .btn-spinner{ display:inline-block; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.form-success{ display:none; margin-top:14px; text-align:center; color:var(--red); font-weight:600; }
.form-success.show{ display:block; }

/* Gallery */
.gallery{ padding:100px 0; background:var(--surface); }
.masonry{ columns:4 260px; column-gap:18px; }
.masonry-item{ break-inside:avoid; margin-bottom:18px; position:relative; border-radius:var(--radius-md); overflow:hidden; cursor:pointer; }
.masonry-item img{ width:100%; display:block; transition:transform .5s var(--ease); }
.masonry-item:hover img{ transform:scale(1.08); }
.masonry-caption{
  position:absolute; inset:auto 0 0 0; padding:16px; background:linear-gradient(0deg,rgba(0,0,0,0.65),transparent);
  color:#fff; opacity:0; transition:opacity .35s var(--ease); font-weight:600; font-size:0.9rem;
}
.masonry-item:hover .masonry-caption{ opacity:1; }
.lightbox{ position:fixed; inset:0; background:rgba(10,5,4,0.92); z-index:980; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.35s; }
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:82vw; max-height:82vh; border-radius:var(--radius-md); box-shadow:var(--shadow-lg); }
.lightbox-close{ position:absolute; top:26px; right:34px; font-size:2.4rem; color:#fff; line-height:1; }
.lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); font-size:1.6rem; color:#fff; background:rgba(255,255,255,0.12); width:48px; height:48px; border-radius:50%; }
.lightbox-nav.prev{ left:26px; } .lightbox-nav.next{ right:26px; }

/* Testimonials */
.testimonials{ padding:100px 0 60px; background:var(--bg); }
.testi-track-wrap{ position:relative; max-width:760px; margin:0 auto; display:flex; align-items:center; gap:20px; }
.testi-track{ overflow:hidden; flex:1; }
.testi-track-inner{ display:flex; transition:transform .6s var(--ease); }
.testi-slide{ min-width:100%; text-align:center; padding:0 20px; }
.testi-stars{ color:var(--red); font-size:1.1rem; margin-bottom:16px; letter-spacing:2px; }
.testi-slide p.testi-quote{ font-size:1.3rem; font-family:var(--font-display); color:var(--text); margin-bottom:18px; }
.testi-name{ font-weight:600; } .testi-role{ font-size:0.85rem; color:var(--text-soft); }
.testi-nav{ width:44px; height:44px; border-radius:50%; background:var(--surface); box-shadow:var(--shadow-sm); font-size:1.1rem; flex-shrink:0; }
.testi-dots{ display:flex; justify-content:center; gap:8px; margin-top:26px; }
.testi-dot{ width:8px; height:8px; border-radius:50%; background:var(--gray); transition:.3s; }
.testi-dot.active{ background:var(--red); width:22px; border-radius:100px; }

/* News */
.news{ padding:90px 0 100px; background:var(--surface); }
.news-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.news-card{ background:var(--bg); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .4s var(--ease); }
.news-card:hover{ transform:translateY(-8px); }
.news-card img{ height:150px; width:100%; object-fit:cover; }
.news-card-body{ padding:20px; }
.news-tag{ font-size:0.7rem; font-weight:700; color:var(--red); text-transform:uppercase; letter-spacing:.05em; }
.news-card h3{ font-size:1rem; margin:8px 0; }
.news-date{ font-size:0.78rem; color:var(--text-soft); }

/* FAQ */
.faq{ padding:100px 0; background:var(--bg); }
.faq-grid{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:60px; align-items:start; }
.faq-item{ background:var(--surface); border-radius:var(--radius-md); margin-bottom:14px; box-shadow:var(--shadow-sm); overflow:hidden; }
.faq-q{ width:100%; text-align:left; padding:20px 24px; display:flex; justify-content:space-between; align-items:center; font-weight:600; color:var(--text); }
.faq-q::after{ content:'+'; font-size:1.4rem; color:var(--red); transition:transform .3s var(--ease); }
.faq-item.open .faq-q::after{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-a-inner{ padding:0 24px 20px; font-size:0.92rem; }

/* Contact */
.contact{ padding:100px 0; background:var(--surface); }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.contact-item{ display:flex; gap:16px; margin-bottom:24px; }
.ci-icon{ width:48px; height:48px; background:var(--gray); border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0; }
.contact-item strong{ display:block; margin-bottom:4px; }
.contact-item p{ margin:0; font-size:0.9rem; }
.map-placeholder{ background:var(--gray); border-radius:var(--radius-lg); height:340px; display:flex; align-items:center; justify-content:center; font-weight:600; color:var(--text-soft); }

/* Footer */
.site-footer{ background:var(--ink); color:#EADFDA; padding:70px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,0.1); }
.site-footer .logo{ color:#fff; }
.footer-brand p{ color:#C9BAB4; margin:14px 0; }
.social-row{ display:flex; gap:10px; }
.social-row a{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; transition:.3s; }
.social-row a:hover{ background:var(--red); }
.footer-col h4{ color:#fff; font-size:0.95rem; margin-bottom:16px; }
.footer-col a{ display:block; color:#C9BAB4; margin-bottom:10px; font-size:0.9rem; }
.footer-col a:hover{ color:#fff; }
.newsletter form{ display:flex; gap:8px; margin-top:6px; }
.newsletter input{ flex:1; padding:11px 14px; border-radius:100px; border:none; background:rgba(255,255,255,0.08); color:#fff; font-size:0.85rem; }
.newsletter button{ width:40px; height:40px; border-radius:50%; background:var(--red); color:#fff; flex-shrink:0; }
.newsletter-success{ display:none; font-size:0.8rem; color:#FFD9A0; margin-top:8px; }
.newsletter-success.show{ display:block; }
.footer-bottom{ padding:22px 24px; text-align:center; font-size:0.82rem; color:#9A8983; }

/* Floating buttons */
.fab{ position:fixed; z-index:400; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg); transition:transform .3s var(--ease); }
.fab:hover{ transform:scale(1.08); }
.fab-whatsapp{ bottom:26px; left:26px; width:58px; height:58px; border-radius:50%; background:#25D366; }
.fab-whatsapp svg{ width:30px; height:30px; fill:#fff; stroke:#fff; }
.fab-quote{ bottom:26px; right:26px; width:76px; height:76px; border-radius:50%; background:var(--red); color:#fff; font-size:0.7rem; font-weight:700; text-align:center; line-height:1.2; }
.back-to-top{
  position:fixed; bottom:96px; right:26px; width:46px; height:46px; border-radius:50%; background:var(--surface); color:var(--red);
  box-shadow:var(--shadow-md); font-size:1.2rem; z-index:400; opacity:0; visibility:hidden; transform:translateY(10px); transition:.35s var(--ease);
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }

/* Modals */
.modal{ position:fixed; inset:0; background:rgba(10,5,4,0.6); z-index:990; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.35s; padding:20px; }
.modal.open{ opacity:1; visibility:visible; }
.modal-card{ background:var(--surface); border-radius:var(--radius-lg); padding:36px; max-width:560px; width:100%; max-height:85vh; overflow:auto; position:relative; box-shadow:var(--shadow-lg); }
.modal-close{ position:absolute; top:18px; right:20px; font-size:1.8rem; color:var(--text-soft); }
.compare-table-wrap{ overflow:auto; }
.compare-table{ width:100%; border-collapse:collapse; margin-top:16px; }
.compare-table th,.compare-table td{ padding:12px; border-bottom:1px solid var(--border); text-align:left; font-size:0.88rem; }
.compare-table th{ color:var(--red); }
.product-detail{ display:flex; gap:24px; flex-wrap:wrap; }
.product-detail img{ width:160px; height:160px; border-radius:50%; object-fit:cover; }
.product-detail-body{ flex:1; min-width:200px; }

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .news-grid{ grid-template-columns:repeat(2,1fr); }
  .dist-layout{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:880px){
  .nav-links{ position:fixed; top:0; right:-100%; height:100vh; width:min(320px,80vw); background:var(--surface); flex-direction:column; padding:110px 32px; gap:22px; transition:right .4s var(--ease); box-shadow:var(--shadow-lg); }
  .nav-links.open{ right:0; }
  .nav-cta{ display:none; }
  .hamburger{ display:flex; }
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-copy{ display:flex; flex-direction:column; align-items:center; }
  .hero-trust{ justify-content:center; }
  .hero-floats{ height:340px; margin-top:20px; }
  .about-grid,.nutrition-grid,.distribute-grid,.faq-grid,.contact-grid{ grid-template-columns:1fr; }
  .about-media{ order:-1; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .product-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .news-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .masonry{ columns:2 200px; }
}
@media (max-width:480px){
  .form-row{ grid-template-columns:1fr; }
  .masonry{ columns:1; }
  .hero-trust{ gap:20px; flex-wrap:wrap; }
}

@media (prefers-reduced-motion: reduce){
  .hero-video{ display:none; }
}
