/* ==========================================================================
   Rai Dairy Farm — Ultra Pro Stylesheet
   ========================================================================== */

/* ---------- Theme Tokens ---------- */
:root{
  --font-heading:'Playfair Display', serif;
  --font-body:'Poppins', sans-serif;

  /* Brand */
  --brand-50:#f0f9f0;
  --brand-100:#dcf1dc;
  --brand-400:#4fa868;
  --brand-500:#2f8b4f;
  --brand-600:#1f6f4a;
  --brand-700:#155a3c;
  --gold-400:#e3b04b;
  --gold-500:#d9a441;
  --gold-600:#c08b2c;

  /* Light theme surface */
  --bg:#fbf9f4;
  --bg-alt:#f3ede0;
  --surface:#ffffff;
  --surface-2:#fbf9f4;
  --text:#20291f;
  --text-soft:#5b6558;
  --text-mute:#87907f;
  --border:#e7e1d2;
  --header-bg:rgba(251,249,244,.85);
  --card-shadow:0 10px 30px -12px rgba(31,111,74,.18);
  --hero-overlay:linear-gradient(180deg, rgba(10,25,15,.55) 0%, rgba(10,25,15,.65) 45%, rgba(10,25,15,.92) 100%);

  --radius-sm:10px;
  --radius-md:18px;
  --radius-lg:28px;
  --transition: .35s cubic-bezier(.4,0,.2,1);

  /* Combined height of topbar + floating pill header; kept in sync by js/header.js
     so the hero image can bleed up behind them instead of stopping in a hard line. */
  --overlay-height:118px;
}

[data-theme="dark"]{
  --bg:#0d1410;
  --bg-alt:#111a14;
  --surface:#141f18;
  --surface-2:#101812;
  --text:#eef2ea;
  --text-soft:#b6c2b2;
  --text-mute:#7d8a79;
  --border:#243128;
  --header-bg:rgba(13,20,16,.75);
  --card-shadow:0 10px 34px -12px rgba(0,0,0,.55);
  --hero-overlay:linear-gradient(180deg, rgba(5,12,8,.6) 0%, rgba(5,12,8,.72) 45%, rgba(5,12,8,.96) 100%);
  --brand-50:#0f2016;
  --brand-100:#16311f;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  transition:background var(--transition), color var(--transition);
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; background:none; border:none; }
input,textarea,select{ font-family:inherit; }
.container{ width:100%; max-width:1240px; margin-inline:auto; padding-inline:24px; }
.icon{ width:18px; height:18px; fill:currentColor; flex-shrink:0; }
::selection{ background:var(--brand-500); color:#fff; }

/* Scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:var(--brand-500); border-radius:10px; }

/* ---------- Utility ---------- */
.hide-sm{ display:inline-flex; }
.hide-md{ display:inline-flex; }
.text-gradient{
  background:linear-gradient(100deg, var(--gold-400), var(--brand-400));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.section{ padding:110px 0; }
.alt-bg{ background:var(--bg-alt); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.8rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand-600); margin-bottom:14px;
}
[data-theme="dark"] .eyebrow{ color:var(--brand-400); }
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--gold-500); display:inline-block; border-radius:2px; }
.eyebrow.center::before{ display:none; }
.section-title{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(1.8rem, 3.2vw, 2.7rem);
  line-height:1.2;
  color:var(--text);
  margin-bottom:18px;
}
.section-text{ color:var(--text-soft); font-size:1.02rem; max-width:600px; }
.center{ text-align:center; margin-inline:auto; }
.section-head{ text-align:center; max-width:680px; margin:0 auto 56px; }
.section-head .section-text{ margin-inline:auto; }
.grid{ display:grid; gap:28px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 26px; border-radius:999px;
  font-weight:600; font-size:.95rem;
  transition:transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space:nowrap;
}
.btn-lg{ padding:16px 32px; font-size:1rem; }
.btn-block{ width:100%; }
.btn-primary{
  background:linear-gradient(120deg, var(--brand-500), var(--brand-700));
  color:#fff;
  box-shadow:0 12px 26px -10px rgba(31,111,74,.55);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 32px -10px rgba(31,111,74,.65); }
.btn-outline{
  border:1.5px solid var(--border);
  color:var(--text);
  background:rgba(255,255,255,.04);
}
.btn-outline:hover{ border-color:var(--brand-500); color:var(--brand-600); transform:translateY(-3px); }
[data-theme="dark"] .btn-outline:hover{ color:var(--brand-400); }
.btn-white{ background:#fff; color:var(--brand-700); box-shadow:0 12px 26px -10px rgba(0,0,0,.35); }
.btn-white:hover{ transform:translateY(-3px); }
.btn-whatsapp{
  background:#25D366; color:#fff;
  padding:11px 20px; font-size:.9rem;
  box-shadow:0 10px 22px -10px rgba(37,211,102,.7);
}
.btn-whatsapp:hover{ transform:translateY(-2px); filter:brightness(1.05); }

/* ---------- Preloader ---------- */
.preloader{
  position:fixed; inset:0; z-index:9999;
  background:var(--brand-700);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .6s ease, visibility .6s ease;
}
.preloader.done{ opacity:0; visibility:hidden; }
.preloader-inner{ text-align:center; color:#fff; }
.preloader-icon{ font-size:2.6rem; display:inline-block; animation:bounce 1.1s infinite ease-in-out; }
.preloader-bar{ width:160px; height:4px; background:rgba(255,255,255,.25); border-radius:4px; margin-top:18px; overflow:hidden; }
.preloader-bar span{ display:block; width:40%; height:100%; background:var(--gold-400); border-radius:4px; animation:loadbar 1.1s infinite ease-in-out; }
@keyframes bounce{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
@keyframes loadbar{ 0%{ transform:translateX(-100%);} 100%{ transform:translateX(350%);} }

/* ---------- Topbar: scrolling marquee ---------- */
.topbar{
  position:relative; z-index:2; /* paint above the hero image, which bleeds up behind it */
  background:var(--brand-700);
  color:#eafbee;
  font-size:.82rem;
  overflow:hidden;
}
.topbar-marquee{
  padding:9px 0;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.topbar-track{
  display:flex; align-items:center; gap:44px;
  width:max-content;
  animation:topbar-scroll 22s linear infinite;
}
.topbar:hover .topbar-track{ animation-play-state:paused; }
.topbar-tag{ display:inline-flex; align-items:center; gap:8px; opacity:.92; font-weight:500; white-space:nowrap; }
.topbar-tag a{ color:inherit; transition:opacity .2s; }
.topbar-tag a:hover{ opacity:.75; }

@keyframes topbar-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(calc(-50% - 22px)); }
}

/* ---------- Header: floating pill ---------- */
:root{
  --glow-color:rgba(217,164,65,.55);
}
[data-theme="dark"]{
  --glow-color:rgba(247,225,181,.65);
}

.pill-wrap{
  position:sticky; top:0; z-index:500;
  padding:18px 24px 0;
  pointer-events:none;
}
.pill-header{
  position:relative;
  max-width:1240px; margin-inline:auto;
  background:var(--header-bg);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-radius:999px;
  box-shadow:0 16px 40px -18px rgba(0,0,0,.3), 0 2px 10px -4px rgba(0,0,0,.12);
  pointer-events:auto;
  transition:background var(--transition), box-shadow var(--transition);
}
.pill-header.scrolled{ box-shadow:0 20px 46px -16px rgba(0,0,0,.4), 0 4px 14px -4px rgba(0,0,0,.18); }

.pill-inner{
  position:relative; z-index:2;
  display:flex; align-items:center; gap:16px;
  padding:8px 10px 8px 26px;
}

/* SVG glow overlay, injected by js/header.js */
.header-glow-svg{
  position:absolute; inset:0;
  width:100%; height:100%;
  overflow:visible;
  pointer-events:none;
  z-index:1;
}
.comet{
  filter:
    drop-shadow(0 0 1.5px var(--glow-color))
    drop-shadow(0 0 4px var(--glow-color))
    drop-shadow(0 0 9px var(--glow-color));
}
/* This IS the pill's visible border now (replaces the old plain CSS border) —
   drawn from the same path as the animated comets so nothing can misalign,
   and it stays fully traced even where the comets dip near-zero at their seams. */
.header-glow-base{
  stroke:var(--gold-500);
  stroke-width:1.4;
  opacity:.55;
}
[data-theme="dark"] .header-glow-base{
  stroke:#f3d9a0;
  opacity:.5;
}

.logo{ display:flex; align-items:center; gap:12px; font-family:var(--font-heading); flex-shrink:0; }
.logo-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  font-size:1.4rem;
  border-radius:50%;
  border:2px solid var(--gold-500);
  background:var(--brand-50);
  box-shadow:0 4px 10px -4px rgba(217,164,65,.5);
  transition:border-color var(--transition), background var(--transition);
}
.logo-text{ font-size:1.32rem; font-weight:800; color:var(--text); letter-spacing:.01em; }
.logo-text em{ font-style:normal; color:var(--brand-500); }

.pill-nav{ flex:1; display:flex; justify-content:center; min-width:0; }
.nav-list{ display:flex; align-items:center; gap:30px; }
.nav-link{
  position:relative; display:inline-flex; align-items:center; gap:5px;
  font-weight:500; font-size:.95rem; color:var(--text-soft);
  padding:6px 0; transition:color .25s;
  background:none; border:none;
}
.nav-link::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:2px;
  background:linear-gradient(90deg, var(--brand-500), var(--gold-500));
  transition:width .3s ease; border-radius:2px;
}
.nav-link:hover, .nav-link.active{ color:var(--text); }
.nav-link:hover::after, .nav-link.active::after{ width:100%; }
.chevron{ width:14px; height:14px; transition:transform .25s ease; }

/* Dropdowns (Products nav item) */
.has-dropdown{ position:relative; }
.dropdown-panel{
  position:absolute; top:calc(100% + 16px); left:50%;
  min-width:230px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:16px; padding:8px;
  box-shadow:var(--card-shadow);
  display:flex; flex-direction:column; gap:2px;
  transform:translate(-50%,8px);
  opacity:0;
  transition:opacity .22s ease, transform .22s ease;
  z-index:5;
}
.dropdown-link{
  display:block; padding:10px 14px; border-radius:10px;
  font-size:.88rem; font-weight:500; color:var(--text-soft);
  transition:background .2s, color .2s;
}
.dropdown-link:hover{ background:var(--bg-alt); color:var(--brand-600); }
[data-theme="dark"] .dropdown-link:hover{ color:var(--brand-400); }

/* Desktop / mouse: open on hover (and keyboard focus) */
@media (hover:hover) and (pointer:fine){
  .dropdown-panel[hidden]{ display:flex; } /* neutralize native [hidden] so opacity can animate */
  .has-dropdown .dropdown-panel{ pointer-events:none; }
  .has-dropdown:hover .dropdown-panel,
  .has-dropdown:focus-within .dropdown-panel{
    opacity:1; transform:translate(-50%,0); pointer-events:auto;
  }
  .has-dropdown:hover .chevron,
  .has-dropdown:focus-within .chevron{ transform:rotate(180deg); }
}

/* Touch: fall back to click-to-toggle via [hidden] */
@media not all and (hover:hover){
  .dropdown-panel:not([hidden]){ opacity:1; transform:translate(-50%,0); }
  .dropdown-trigger[aria-expanded="true"] .chevron{ transform:rotate(180deg); }
}

.pill-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }

.btn-header-cta{ padding:11px 22px; font-size:.88rem; }

.theme-toggle{
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border);
  color:var(--text);
  transition:background var(--transition), transform .3s;
  flex-shrink:0;
}
.theme-toggle:hover{ transform:rotate(15deg); background:var(--bg-alt); }
.theme-toggle .moon{ display:none; }
[data-theme="dark"] .theme-toggle .sun{ display:none; }
[data-theme="dark"] .theme-toggle .moon{ display:block; }

.hamburger{ display:none; flex-direction:column; gap:5px; width:26px; flex-shrink:0; }
.hamburger span{ height:2px; background:var(--text); border-radius:2px; transition:all .3s; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  overflow:hidden;
  margin-top:calc(-1 * var(--overlay-height));
  padding:calc(var(--overlay-height) + 140px) 0 60px;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{ position:absolute; inset:0; background:var(--hero-overlay); }
.hero-blob{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.35; z-index:0; pointer-events:none; }
.blob-1{ width:340px; height:340px; background:var(--gold-500); top:8%; left:-6%; animation:float 9s ease-in-out infinite; }
.blob-2{ width:280px; height:280px; background:var(--brand-400); bottom:6%; right:-4%; animation:float 11s ease-in-out infinite reverse; }
@keyframes float{ 0%,100%{ transform:translateY(0) translateX(0);} 50%{ transform:translateY(-30px) translateX(20px);} }

.hero-content{ position:relative; z-index:2; text-align:center; color:#fff; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.3);
  backdrop-filter:blur(8px);
  padding:9px 20px; border-radius:999px;
  font-size:.85rem; font-weight:500;
  margin-bottom:24px;
}
.hero-title{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(2.2rem, 5.4vw, 4.2rem);
  line-height:1.15;
  max-width:900px; margin:0 auto 22px;
  text-shadow:0 4px 30px rgba(0,0,0,.25);
}
.hero-text{
  max-width:620px; margin:0 auto 36px;
  font-size:1.08rem; color:rgba(255,255,255,.88);
}
.hero-actions{ display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; margin-bottom:64px; }
.hero-actions .btn-outline{ border-color:rgba(255,255,255,.4); color:#fff; }
.hero-actions .btn-outline:hover{ background:#fff; color:var(--brand-700); border-color:#fff; }

.hero-stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  max-width:820px; margin:0 auto;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(14px);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.stat-card{
  padding:26px 12px; text-align:center;
  border-right:1px solid rgba(255,255,255,.18);
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:2px;
}
.stat-card:last-child{ border-right:none; }
.stat-num{ font-family:var(--font-heading); font-size:1.8rem; font-weight:800; color:var(--gold-400); }
.stat-plus{ font-size:1.3rem; font-weight:800; color:var(--gold-400); }
.stat-label{ width:100%; font-size:.78rem; color:rgba(255,255,255,.8); margin-top:2px; }

.scroll-down{
  position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(255,255,255,.5); border-radius:16px;
  z-index:2;
}
.scroll-down span{
  position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; background:#fff; border-radius:3px;
  animation:scrolldown 1.6s infinite;
}
@keyframes scrolldown{ 0%{ opacity:1; top:6px;} 100%{ opacity:0; top:22px;} }

/* ---------- Reveal Animations ---------- */
.reveal{ opacity:0; transform:translateY(36px); transition:opacity .8s ease, transform .8s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------- About ---------- */
.about-inner{ display:grid; grid-template-columns:.9fr 1fr; gap:70px; align-items:center; }
.about-media{ position:relative; }
.about-img-main{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--card-shadow); }
.about-img-main img{ aspect-ratio:4/4.6; object-fit:cover; }
.about-img-float{
  position:absolute; bottom:-30px; right:-30px; width:46%;
  border-radius:var(--radius-md); overflow:hidden; border:6px solid var(--bg);
  box-shadow:0 14px 30px -10px rgba(0,0,0,.35);
}
.about-img-float img{ aspect-ratio:1/1; object-fit:cover; }
.about-badge{
  position:absolute; top:-22px; left:-22px;
  background:var(--surface); border-radius:var(--radius-md);
  padding:16px 20px; box-shadow:var(--card-shadow);
  display:flex; flex-direction:column; text-align:center;
  border:1px solid var(--border);
}
.about-badge strong{ font-family:var(--font-heading); font-size:1.6rem; color:var(--brand-600); }
[data-theme="dark"] .about-badge strong{ color:var(--brand-400); }
.about-badge span{ font-size:.7rem; color:var(--text-mute); max-width:110px; }

.about-points{ margin:26px 0 30px; display:flex; flex-direction:column; gap:16px; }
.about-points li{ display:flex; gap:14px; align-items:flex-start; }
.point-icon{
  flex-shrink:0; width:26px; height:26px; border-radius:50%;
  background:var(--brand-100); color:var(--brand-600);
  display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700;
  margin-top:2px;
}
.about-points strong{ font-size:1rem; color:var(--text); }
.about-points p{ font-size:.88rem; color:var(--text-mute); margin-top:2px; }

/* ---------- Livestock ---------- */
.livestock-grid{ grid-template-columns:repeat(3,1fr); }
.livestock-card{
  position:relative;
  aspect-ratio:4/5;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform var(--transition), box-shadow var(--transition);
}
.livestock-card:hover{ transform:translateY(-8px); box-shadow:0 22px 44px -16px rgba(0,0,0,.4); }
.livestock-card img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .6s cubic-bezier(.4,0,.2,1);
}
.livestock-card:hover img{ transform:scale(1.09); }
.livestock-count{
  position:absolute; top:18px; right:18px; z-index:2;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.32);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.03em;
  padding:6px 14px; border-radius:999px;
}
.livestock-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,16,10,0) 38%, rgba(8,16,10,.55) 68%, rgba(6,14,8,.92) 100%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:28px 26px;
  color:#fff;
}
.livestock-overlay h3{
  font-family:var(--font-heading); font-weight:800;
  font-size:1.5rem; margin-bottom:8px;
}
.livestock-overlay p{ font-size:.9rem; color:rgba(255,255,255,.85); }

/* ---------- Products ---------- */
.products-grid{ grid-template-columns:repeat(3,1fr); }
.product-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:34px 28px;
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.product-card:focus-visible{ outline:2px solid var(--gold-500); outline-offset:3px; }
.product-card::before{
  content:""; position:absolute; inset:0; opacity:0;
  background:linear-gradient(140deg, var(--brand-50), transparent 60%);
  transition:opacity var(--transition);
}
.product-card:hover{ transform:translateY(-8px); box-shadow:var(--card-shadow); border-color:transparent; }
.product-card:hover::before{ opacity:1; }
.product-icon{
  width:64px; height:64px; border-radius:18px;
  background:linear-gradient(140deg, var(--brand-500), var(--brand-700));
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; margin-bottom:20px;
  box-shadow:0 10px 20px -8px rgba(31,111,74,.5);
  position:relative; z-index:1;
}
.product-card h3{ font-family:var(--font-heading); font-size:1.25rem; margin-bottom:10px; position:relative; z-index:1; }
.product-card p{ color:var(--text-mute); font-size:.92rem; margin-bottom:18px; position:relative; z-index:1; }
.product-link{ font-weight:600; color:var(--brand-600); font-size:.9rem; position:relative; z-index:1; transition:gap .25s; }
[data-theme="dark"] .product-link{ color:var(--brand-400); }
.product-card:hover .product-link{ color:var(--gold-500); }

/* ---------- Product Detail Modal ---------- */
.product-modal{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:24px; }
.product-modal[hidden]{ display:none; }
.product-modal-backdrop{
  position:absolute; inset:0;
  background:rgba(10,16,11,.6);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  animation:modal-fade .25s ease;
}
.product-modal-dialog{
  position:relative;
  width:100%; max-width:860px;
  max-height:90vh;
  display:grid; grid-template-columns:1fr 1fr;
  background:var(--surface);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.5);
  animation:modal-pop .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modal-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes modal-pop{ from{ opacity:0; transform:scale(.94) translateY(14px); } to{ opacity:1; transform:scale(1) translateY(0); } }

.product-modal-close{
  position:absolute; top:16px; right:16px; z-index:2;
  width:38px; height:38px; border-radius:50%;
  background:rgba(0,0,0,.35); color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s, transform .2s;
}
.product-modal-close:hover{ background:rgba(0,0,0,.55); transform:rotate(90deg); }
.product-modal-close svg{ width:18px; height:18px; }

.product-modal-media{ position:relative; min-height:240px; }
.product-modal-media img{ width:100%; height:100%; object-fit:cover; }

.product-modal-body{ padding:36px 34px; overflow-y:auto; }
.product-modal-body h3{ font-family:var(--font-heading); font-weight:800; font-size:1.6rem; margin-bottom:14px; color:var(--text); }
.product-modal-body p{ color:var(--text-soft); font-size:.95rem; line-height:1.7; margin-bottom:18px; }
.product-modal-points{ margin:0 0 26px; display:flex; flex-direction:column; gap:10px; }
.product-modal-points li{
  list-style:none; display:flex; align-items:flex-start; gap:10px;
  font-size:.88rem; color:var(--text-soft);
}
.product-modal-points li::before{
  content:"✔"; flex-shrink:0; width:20px; height:20px; border-radius:50%;
  background:var(--brand-100); color:var(--brand-600);
  display:flex; align-items:center; justify-content:center;
  font-size:.6rem; margin-top:2px;
}
[data-theme="dark"] .product-modal-points li::before{ color:var(--brand-400); }

/* ---------- Why Us ---------- */
.why-grid{ grid-template-columns:repeat(3,1fr); }
.why-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:32px 26px; text-align:left;
  transition:transform var(--transition), box-shadow var(--transition);
}
.why-card:hover{ transform:translateY(-6px); box-shadow:var(--card-shadow); }
.why-icon{
  width:52px; height:52px; border-radius:14px;
  background:var(--brand-50); color:var(--brand-600);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
[data-theme="dark"] .why-icon{ color:var(--brand-400); }
.why-icon svg{ width:26px; height:26px; }
.why-card h3{ font-size:1.08rem; margin-bottom:8px; font-family:var(--font-heading); }
.why-card p{ font-size:.9rem; color:var(--text-mute); }

/* ---------- Process ---------- */
.process-flow{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; position:relative; }
.process-flow::before{
  content:""; position:absolute; top:34px; left:12%; right:12%; height:2px;
  background:repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  z-index:0;
}
.process-step{ text-align:center; position:relative; z-index:1; }
.process-num{
  width:68px; height:68px; margin:0 auto 18px;
  border-radius:50%; background:var(--surface); border:2px solid var(--brand-500);
  color:var(--brand-600); font-family:var(--font-heading); font-weight:800; font-size:1.3rem;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--card-shadow);
}
[data-theme="dark"] .process-num{ color:var(--brand-400); }
.process-step h3{ font-size:1.05rem; margin-bottom:8px; }
.process-step p{ font-size:.87rem; color:var(--text-mute); max-width:220px; margin-inline:auto; }

/* ---------- Gallery ---------- */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:150px;
  gap:16px;
}
.gallery-item{ border-radius:var(--radius-md); overflow:hidden; position:relative; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-item:hover img{ transform:scale(1.09); }
.gallery-item.big{ grid-column:span 2; grid-row:span 2; }

/* ---------- Testimonials ---------- */
.testi-slider{ max-width:760px; margin:0 auto; }
.testi-track{ display:flex; overflow:hidden; border-radius:var(--radius-lg); }
.testi-card{
  min-width:100%; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:48px; text-align:center;
  transition:transform .5s ease;
}
.testi-quote{ font-family:var(--font-heading); font-size:3.2rem; color:var(--gold-500); line-height:0; display:block; margin-bottom:14px; }
.testi-card p{ font-size:1.08rem; color:var(--text-soft); font-style:italic; margin-bottom:26px; }
.testi-user{ display:flex; align-items:center; justify-content:center; gap:12px; }
.testi-avatar{
  width:46px; height:46px; border-radius:50%;
  background:linear-gradient(140deg, var(--brand-500), var(--gold-500));
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem;
}
.testi-user strong{ display:block; font-size:.92rem; }
.testi-user span{ font-size:.78rem; color:var(--text-mute); }
.testi-controls{ display:flex; align-items:center; justify-content:center; gap:20px; margin-top:28px; }
.testi-controls button{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border); color:var(--text);
  display:flex; align-items:center; justify-content:center; transition:background .25s, color .25s;
}
.testi-controls button svg{ width:18px; height:18px; }
.testi-controls button:hover{ background:var(--brand-500); color:#fff; border-color:var(--brand-500); }
.testi-dots{ display:flex; gap:8px; }
.testi-dots span{ width:8px; height:8px; border-radius:50%; background:var(--border); cursor:pointer; transition:all .25s; }
.testi-dots span.active{ background:var(--brand-500); width:22px; border-radius:5px; }

/* ---------- CTA ---------- */
.cta{
  background:linear-gradient(120deg, var(--brand-700), var(--brand-500));
  position:relative; overflow:hidden;
}
.cta::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 20% 30%, rgba(255,255,255,.12), transparent 40%),
             radial-gradient(circle at 80% 70%, rgba(255,255,255,.1), transparent 40%);
}
.cta-inner{ position:relative; padding:80px 24px; text-align:center; color:#fff; }
.cta-inner h2{ font-family:var(--font-heading); font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:800; margin-bottom:14px; }
.cta-inner p{ color:rgba(255,255,255,.88); margin-bottom:30px; font-size:1.05rem; }

/* ---------- Contact ---------- */
.contact-inner{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.contact-cards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:30px; }
.contact-card{
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:18px; transition:transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover{ transform:translateY(-4px); box-shadow:var(--card-shadow); }
.contact-icon{
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  background:var(--brand-50); color:var(--brand-600);
  display:flex; align-items:center; justify-content:center;
}
[data-theme="dark"] .contact-icon{ color:var(--brand-400); }
.contact-icon svg{ width:22px; height:22px; }
.contact-card strong{ display:block; font-size:.88rem; }
.contact-card span{ font-size:.8rem; color:var(--text-mute); }

.contact-form{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:40px; box-shadow:var(--card-shadow);
}
.contact-form h3{ font-family:var(--font-heading); font-size:1.4rem; margin-bottom:22px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:.82rem; font-weight:600; margin-bottom:7px; color:var(--text-soft); }
.form-group input, .form-group select, .form-group textarea{
  width:100%; padding:13px 16px; border-radius:10px;
  border:1px solid var(--border); background:var(--surface-2); color:var(--text);
  font-size:.92rem; transition:border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none; border-color:var(--brand-500); box-shadow:0 0 0 3px var(--brand-100);
}
.form-note{ margin-top:14px; font-size:.82rem; color:var(--brand-600); min-height:1em; }
[data-theme="dark"] .form-note{ color:var(--brand-400); }

/* ---------- Legal pages (Privacy Policy / Terms & Conditions) ---------- */
.legal-hero{
  position:relative;
  margin-top:calc(-1 * var(--overlay-height));
  padding:calc(var(--overlay-height) + 110px) 0 60px;
  background:linear-gradient(150deg, var(--brand-700), var(--brand-500));
  overflow:hidden;
}
.legal-hero .eyebrow{ color:rgba(255,255,255,.85); }
.legal-hero .eyebrow::before{ background:var(--gold-400); }
.legal-hero .section-title{ color:#fff; margin-bottom:8px; }
.legal-hero .section-text{ color:rgba(255,255,255,.82); }
.breadcrumb{ margin-top:22px; display:flex; align-items:center; gap:8px; font-size:.85rem; color:rgba(255,255,255,.7); }
.breadcrumb a{ color:#fff; transition:color .2s; }
.breadcrumb a:hover{ color:var(--gold-400); }

.legal-container{ max-width:820px; }
.legal-content h2{
  font-family:var(--font-heading); font-weight:700;
  font-size:1.35rem; color:var(--text);
  margin:34px 0 14px;
}
.legal-content h2:first-of-type{ margin-top:0; }
.legal-content p{ color:var(--text-soft); margin-bottom:16px; line-height:1.75; }
.legal-content ul{ margin:0 0 16px; padding-left:22px; color:var(--text-soft); }
.legal-content li{ list-style:disc; margin-bottom:8px; line-height:1.7; }
.legal-content a{ color:var(--brand-600); font-weight:600; }
[data-theme="dark"] .legal-content a{ color:var(--brand-400); }

/* ---------- Footer ---------- */
.footer{ background:var(--brand-700); color:#dcecdd; margin-top:0; }
.footer-top{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:40px; padding:80px 24px 50px; }
.footer .logo-text{ color:#fff; }
.footer .logo-text em{ color:var(--gold-400); }
.footer-about p{ margin:16px 0 20px; font-size:.9rem; color:#c6dcc7; max-width:280px; }
.footer-social{ display:flex; gap:12px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; transition:background .25s, transform .25s;
}
.footer-social svg{ width:17px; height:17px; }
.footer-social a:hover{ background:var(--gold-500); border-color:var(--gold-500); transform:translateY(-3px); }
.footer-col h4{ font-family:var(--font-heading); color:#fff; font-size:1.05rem; margin-bottom:20px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:.88rem; color:#c6dcc7; transition:color .25s, padding-left .25s; }
.footer-col a:hover{ color:var(--gold-400); padding-left:4px; }
.footer-contact li{ font-size:.85rem; color:#c6dcc7; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.14); }
.footer-bottom-inner{ display:flex; align-items:center; justify-content:space-between; padding:22px 24px; font-size:.8rem; color:#a9c4ab; flex-wrap:wrap; gap:10px; }
.footer-legal{ display:flex; align-items:center; gap:10px; }
.footer-legal a{ color:#a9c4ab; transition:color .2s; }
.footer-legal a:hover{ color:var(--gold-400); }
.footer-legal-dot{ opacity:.6; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float{
  position:fixed; bottom:26px; right:26px; z-index:400;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px -8px rgba(37,211,102,.7);
  transition:transform .3s;
}
.whatsapp-float svg{ width:30px; height:30px; }
.whatsapp-float:hover{ transform:scale(1.08); }
.whatsapp-ping{
  position:absolute; inset:0; border-radius:50%; background:#25D366;
  animation:ping 2s infinite; z-index:-1;
}
@keyframes ping{ 0%{ transform:scale(1); opacity:.6;} 100%{ transform:scale(1.9); opacity:0;} }

/* ---------- Back To Top ---------- */
.back-to-top{
  position:fixed; bottom:26px; left:26px; z-index:400;
  width:48px; height:48px; border-radius:50%;
  background:var(--surface); color:var(--brand-600); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--card-shadow);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .3s, transform .3s, visibility .3s;
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top svg{ width:20px; height:20px; }
[data-theme="dark"] .back-to-top{ color:var(--brand-400); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1100px){
  .products-grid, .why-grid, .livestock-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .gallery-item.big{ grid-column:span 2; grid-row:span 1; }
  .contact-inner{ grid-template-columns:1fr; }
}

@media (max-width:960px){
  .about-inner{ grid-template-columns:1fr; gap:80px 0; }
  .about-media{ margin-bottom:20px; max-width:420px; margin-inline:auto; }
  .footer-top{ grid-template-columns:1fr 1fr; }
}

@media (max-width:860px){
  .hide-sm{ display:none !important; }
  .pill-nav{
    position:fixed; top:0; right:-100%; height:100vh; width:min(78%,320px);
    background:var(--surface); z-index:600; padding:100px 30px 30px;
    transition:right .4s ease; box-shadow:-10px 0 40px rgba(0,0,0,.2);
  }
  .pill-nav.open{ right:0; }
  .nav-list{ flex-direction:column; align-items:flex-start; gap:22px; width:100%; }
  .has-dropdown{ width:100%; }
  .pill-nav .dropdown-trigger{ width:100%; justify-content:space-between; }
  .pill-nav .dropdown-panel{
    position:static; min-width:0; opacity:1; transform:none;
    box-shadow:none; border:none; background:transparent; padding:0 0 0 14px;
    max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  .pill-nav .dropdown-panel:not([hidden]){ max-height:300px; padding-top:8px; }
  .hamburger{ display:flex; }
  .hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2){ opacity:0; }
  .hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  .hero-stats{ grid-template-columns:repeat(2,1fr); }
  .stat-card{ border-bottom:1px solid rgba(255,255,255,.18); }
  .process-flow{ grid-template-columns:repeat(2,1fr); gap:50px 26px; }
  .process-flow::before{ display:none; }
  .product-modal-dialog{ grid-template-columns:1fr; max-height:88vh; overflow-y:auto; }
  .product-modal-media{ min-height:200px; }
  .product-modal-body{ overflow-y:visible; padding:28px 24px; }
}

@media (max-width:640px){
  .hide-md{ display:none !important; }
  .section{ padding:80px 0; }
  .products-grid, .why-grid, .livestock-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); grid-auto-rows:130px; }
  .gallery-item.big{ grid-column:span 2; }
  .form-row, .contact-cards{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; padding:60px 24px 40px; }
  .testi-card{ padding:32px 22px; }
  .whatsapp-float{ width:52px; height:52px; bottom:18px; right:18px; }
  .back-to-top{ width:42px; height:42px; bottom:18px; left:18px; }
  .topbar-tag{ font-size:.76rem; }
}
