/* =====================================================
   ECOVIA FARMS LLP — Showcase Website
   Design System / Stylesheet
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --green-900: #0c2e14;
  --green-800: #123d1c;
  --green-700: #1b5e20;
  --green-600: #2e7d32;
  --green-500: #43a047;
  --green-400: #66bb6a;
  --accent:    #7cbf3f;
  --bg:        #ffffff;
  --bg-soft:   #f4f8f1;
  --bg-mint:   #eef5ea;
  --text:      #1f2a24;
  --muted:     #5f6b62;
  --line:      #e2e8dd;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(18, 61, 28, 0.08);
  --shadow-lg: 0 18px 50px rgba(18, 61, 28, 0.14);
  --maxw:      1200px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* `clip` (not `hidden`) — it stops stray horizontal scroll without turning
   <html> into a scroll container, which would break the sticky header. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--green-900); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.green { color: var(--green-600); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.78rem; font-weight: 600; color: var(--green-600); margin-bottom: 10px;
}
.divider {
  width: 60px; height: 3px; background: var(--green-500);
  border-radius: 3px; margin: 14px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-outline:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--green-700); }
.btn-white:hover { background: var(--bg-soft); transform: translateY(-2px); }
/* Secondary action inside a green band, where btn-outline's dark text vanishes */
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: #fff; color: var(--green-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--green-700); }

/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
  background: var(--green-900); color: #dfeeda; font-size: 0.8rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; gap: 16px; flex-wrap: wrap;
}
.topbar-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info .sep { color: rgba(255,255,255,.25); }
/* Real tricolour flag — Windows renders the 🇮🇳 emoji as the letters "IN" */
.flag-in { display: inline-flex; align-items: center; }
.flag-in svg {
  width: 19px; height: 13px; display: block;
  border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0,0,0,.2);
}
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { opacity: .85; transition: opacity .2s, transform .2s; }
.topbar-social a:hover { opacity: 1; transform: translateY(-1px); }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }

/* =====================================================
   HEADER / NAV
   ===================================================== */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 18px rgba(0,0,0,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text .name {
  font-weight: 800; font-size: 1.25rem; color: var(--green-700); letter-spacing: .5px; line-height: 1;
}
.brand-text .name span { color: var(--green-500); }
.brand-text .tag { font-size: 0.62rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text); position: relative; padding: 4px 0;
  transition: color .2s;
  /* Seven items now, two of them multi-word — without this the row breaks
     labels like "Products & Services" across two lines. */
  white-space: nowrap;
}
/* The "Contact Us 📞" button sits right beside the row on wide screens, so the
   duplicate text link is dead weight there. It is hidden by default and put
   back inside the burger-menu breakpoint below — driving both off the SAME
   query, because a min-width/max-width pair leaves a fractional-pixel hole
   (a 1180.5px viewport matches neither) where the row overflows. */
.nav-links a[href="contact.html"] { display: none; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--green-600); transition: width .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--green-700); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

/* Never let the row squeeze the CTA — it used to slide under the nav links */
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--green-800); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,40,18,.9) 0%, rgba(15,55,25,.72) 45%, rgba(20,70,30,.35) 100%);
}
.hero-inner { padding: 96px 0 110px; max-width: 640px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 20px; }
.hero h1 span { color: var(--green-400); }
.hero p { font-size: 1.1rem; color: #e9f3e5; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Feature strip ---------- */
.feature-strip { background: #fff; border-bottom: 1px solid var(--line); }
.feature-strip .container {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding-top: 26px; padding-bottom: 26px;
}
.feature-item { text-align: center; padding: 6px 8px; border-right: 1px solid var(--line); }
.feature-item:last-child { border-right: none; }
.feature-item .ico {
  width: 42px; height: 42px; margin: 0 auto 10px; color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .ico svg { width: 30px; height: 30px; }
.feature-item h4 { font-size: 0.82rem; color: var(--text); font-weight: 600; line-height: 1.3; }

/* =====================================================
   ABOUT (home)
   ===================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid.reverse { direction: rtl; }
.about-grid.reverse > * { direction: ltr; }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 18px; }
.about-text h2 span { color: var(--green-600); }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-media {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   SOLUTIONS / SERVICE CARDS
   ===================================================== */
.solutions-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.solution-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 14px; text-align: center; transition: .28s var(--ease); cursor: default;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-400); }
.solution-card .ico {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 14px;
  background: var(--bg-mint); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.solution-card .ico svg { width: 30px; height: 30px; }
.solution-card h4 { font-size: 0.92rem; color: var(--text); }

/* =====================================================
   VALUE / VISION CARDS (about page)
   ===================================================== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: .28s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .ico {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--bg-mint); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.value-card .ico svg { width: 30px; height: 30px; }
.value-card h4 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { color: var(--muted); font-size: 0.92rem; }
.value-card ul {
  text-align: center;
  margin-top: 6px;
  list-style: none;
  padding: 0;
  display: inline-block;
}
.value-card ul li {
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  margin-bottom: 6px;
  text-align: center;
}
.value-card ul li::before {
  content: '✓ ';
  color: var(--green-500);
  font-weight: 700;
  margin-right: 4px;
}

/* Last row can be short — centre it instead of stretching the cards.
   Card widths come from the .team-card rules further down. */
.team-grid:last-of-type {
  justify-content: center;
}

/* =====================================================
   HIGHLIGHTS SLIDER — Testimonials / Collaborations /
   Certifications (one slider, three tabs)
   ===================================================== */
/* Latest Events sits straight under the hero, so a soft tint keeps it
   separate from the white feature strip below it. */
.ev-section { background: var(--bg-soft); }

/* =====================================================
   OUR IMPACT IN NUMBERS — light panel, 5 counters
   (the dark .stats band is the inner-page variant)
   ===================================================== */
.impact-section { background: var(--bg); }

.impact-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 38px;
  box-shadow: var(--shadow);
}

.impact-panel h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-bottom: 30px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.impact-item { text-align: center; padding: 0 6px; }

.impact-item .ico {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--bg-mint);
  color: var(--green-600);
  display: grid;
  place-items: center;
}
.impact-item .ico svg { width: 24px; height: 24px; }

.impact-item .num {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.1;
}
.impact-item .num span { color: var(--green-600); }

.impact-item .label {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 6px;
}

@media (max-width: 992px) {
  .impact-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}
@media (max-width: 560px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-panel { padding: 26px 18px 30px; }
}

/* What Farmers Say About Us — same slider as Latest Events */
.fs-section { background: var(--bg-soft); }

.hl-section {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(124, 191, 63, 0.10), transparent 60%),
    radial-gradient(900px 400px at 85% 100%, rgba(46, 125, 50, 0.09), transparent 60%),
    var(--bg);
}

/* ---- Tabs ---- */
.hl-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -24px 0 36px;
}
.hl-tab {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.hl-tab:hover {
  border-color: var(--green-400);
  background: var(--bg-mint);
}
.hl-tab.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
}

/* ---- Slider shell ---- */
.hl-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hl-viewport {
  flex: 1;
  overflow: hidden;
  padding: 6px 4px 10px;
}
.hl-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

/* ---- Arrows ---- */
.hl-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.25s var(--ease);
}
.hl-nav svg { width: 20px; height: 20px; }
.hl-nav:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  transform: scale(1.06);
}
.hl-nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  background: var(--white);
  color: var(--green-700);
  border-color: var(--line);
}

/* ---- Cards ---- */
.hl-card {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}
.hl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}
.hl-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-mint);
}
.hl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.hl-card:hover .hl-media img { transform: scale(1.06); }

/* Testimonial photos come in any orientation. Show each one WHOLE (contain,
   never crops the face) inside a fixed box, and fill the leftover space with a
   blurred, zoomed copy of the same photo so no card ever looks empty. The box
   uses aspect-ratio, so it scales cleanly at every breakpoint.
   A real <img class="hl-backdrop"> carries the blur — a CSS var url() would
   resolve against the stylesheet's /css/ folder and 404. */
#farmers-say .hl-media { aspect-ratio: 4 / 5; background: var(--bg-mint); }
#farmers-say .hl-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.85);
  transform: scale(1.2);
}
#farmers-say .hl-media img:not(.hl-backdrop) {
  position: relative;
  z-index: 1;
  object-fit: contain;
}
/* keep the hover zoom subtle so the contained image never clips */
#farmers-say .hl-card:hover .hl-media img:not(.hl-backdrop) { transform: scale(1.03); }
#farmers-say .hl-card:hover .hl-backdrop { transform: scale(1.2); }

.hl-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 61, 28, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hl-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hl-body h4 { font-size: 1.02rem; margin-bottom: 4px; }
.hl-body .role {
  display: block;
  color: var(--green-600);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.hl-body p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

/* Speaker's name + village, shown above the quote */
.hl-person {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hl-person strong {
  display: block;
  color: var(--green-900);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.hl-person span {
  display: block;
  margin-top: 2px;
  color: var(--green-600);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Quote styling for the testimonials set */
.hl-card.is-quote .hl-body p {
  position: relative;
  padding-left: 22px;
  font-style: italic;
}
.hl-card.is-quote .hl-body p::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--green-400);
  font-style: normal;
}

/* ---- Dots ---- */
.hl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
.hl-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.hl-dot:hover { background: var(--green-400); }
.hl-dot.active { width: 26px; background: var(--green-600); }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .hl-card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
}
@media (max-width: 640px) {
  .hl-card { flex: 0 0 100%; max-width: 100%; }
  .hl-track { gap: 16px; }
  .hl-tabs { margin-top: -14px; }
  .hl-tab { padding: 8px 16px; font-size: 0.82rem; }

  /* Float the arrows over the card instead of letting them eat its width —
     on a 375px screen they would otherwise take a quarter of the row. */
  .hl-slider { gap: 0; position: relative; }
  .hl-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
  }
  .hl-nav:hover { transform: translateY(-50%) scale(1.06); }
  .hl-prev { left: 2px; }
  .hl-next { right: 2px; }
}

/* =====================================================
   SIGNAGE OVERLAY (factory board look on photos)
   ===================================================== */
.media-signage {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  background: var(--green-800); color: #fff; padding: 10px 20px; border-radius: 8px;
  text-align: center; box-shadow: var(--shadow-lg); border: 2px solid rgba(255,255,255,.2);
  font-weight: 700; font-size: 0.92rem; letter-spacing: .5px; line-height: 1.3;
}
.media-signage small { display: block; font-weight: 500; font-size: 0.62rem; opacity: .85; letter-spacing: .3px; margin-top: 2px; }
.hero-signage {
  position: absolute; right: 7%; bottom: 22%; z-index: 2;
  background: var(--green-800); color: #fff; padding: 10px 22px; border-radius: 8px;
  text-align: center; box-shadow: var(--shadow-lg); border: 2px solid rgba(255,255,255,.2);
  font-weight: 700; font-size: 1rem; letter-spacing: .5px;
}

/* =====================================================
   BRAND CAROUSEL — "One Company. One Flagship Brand."
   ===================================================== */
.brand-carousel {
  background: linear-gradient(120deg, #fdf6e8, #f5ecd6);
  border: 1px solid #eee0bf; border-radius: 50px;
  padding: 22px 34px; display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 22px;
  align-items: center; max-width: 980px; margin: 0 auto;
}
.bc-arrow {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--green-700);
  box-shadow: var(--shadow); cursor: pointer; border: none; transition: .2s;
}
.bc-arrow:hover { background: var(--green-600); color: #fff; }
.bc-arrow svg { width: 18px; height: 18px; }
.bc-panel { display: flex; gap: 14px; align-items: center; }
.bc-panel .bc-logo {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); padding: 6px;
}
.bc-panel .bc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bc-panel h4 { font-size: 1.02rem; margin-bottom: 2px; }
.bc-panel .bc-tag { font-size: 0.72rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .5px; }
.bc-panel p { font-size: 0.82rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.bc-divider { display: none; }

/* =====================================================
   ABOUT HERO (left aligned + badges)
   ===================================================== */
.page-hero.about-hero { text-align: left; padding: 66px 0 0; }
.about-hero .kicker { font-size: 1.5rem; color: #fff; font-weight: 600; line-height: 1; }
.about-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 8px; }
.about-hero .tagline { color: var(--green-400); font-weight: 600; margin-bottom: 12px; font-size: 1.02rem; }
.about-hero p { color: #dcebd6; max-width: 560px; margin: 0; }
.about-badges-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.about-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}
.about-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-right: 1px solid var(--line);
}
.about-badge-item:last-child {
  border-right: none;
}
.about-badge-item .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-mint);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-badge-item .ico svg {
  width: 24px;
  height: 24px;
}
.about-badge-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green-900);
  font-weight: 700;
  line-height: 1.2;
}
.about-badge-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-badge-item {
    border-right: none;
  }
}

/* =====================================================
   OUR EVOLUTION — timeline
   ===================================================== */
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.timeline::before {
  content: ''; position: absolute; top: 29px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--green-400), var(--green-600)); z-index: 0;
}
.tl-item { position: relative; z-index: 1; text-align: center; padding: 0 4px; }
.tl-dot {
  width: 58px; height: 58px; border-radius: 50%; background: #fff;
  border: 2px solid var(--green-500); color: var(--green-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  transition: .28s var(--ease);
}
.tl-dot svg { width: 26px; height: 26px; }
.tl-item:hover .tl-dot { background: var(--green-600); color: #fff; transform: scale(1.08); }
.tl-item h4 { font-size: 0.9rem; margin-bottom: 6px; line-height: 1.3; }
.tl-item p { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* =====================================================
   TEAM
   ===================================================== */
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.founder-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 20px; align-items: center;
  box-shadow: var(--shadow); transition: .28s var(--ease);
}
.founder-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--green-400); }
.founder-card img {
  width: 116px; height: 116px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
}
.founder-card h4 { font-size: 1.15rem; margin-bottom: 3px; }
.founder-card .role { color: var(--green-600); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; display: block; }
.founder-card p { color: var(--muted); font-size: 0.86rem; }

/* For 4 items in a row */
.team-grid.four-col .team-card {
  flex: 0 0 calc(25% - 2rem);
  max-width: calc(25% - 2rem);
}

@media (max-width: 768px) {
  .team-grid.four-col .team-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .team-grid.four-col .team-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* =====================================================
   TEAM - Updated with smaller circular images & spacing
   ===================================================== */

/* Founder Grid */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.founder-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

.founder-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--bg-mint);
  padding: 3px;
}

.founder-card h4 {
  font-size: 1.15rem;
  margin-bottom: 3px;
}

.founder-card .role {
  color: var(--green-600);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.founder-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Team Grid - Space Between */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.team-grid .team-card {
  flex: 0 0 calc(33.333% - 2rem);
  max-width: calc(33.333% - 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  text-align: center;
}

.team-grid .team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

/* Smaller circular images */
.team-grid .team-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 1.5rem auto 0.5rem auto;
  border: 3px solid var(--bg-mint);
  padding: 3px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-grid .team-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.2);
}

.team-grid .team-card .team-body {
  padding: 0.5rem 1rem 1.5rem;
}

.team-grid .team-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--green-900);
}

.team-grid .team-card .role {
  font-size: 0.8rem;
  color: var(--green-600);
  font-weight: 500;
  display: block;
  min-height: 2.4em;
}

/* =====================================================
   BIO POPOVER — team + founder cards.
   The bio is hidden until hover and opens below the card,
   so the cards themselves stay compact.
   ===================================================== */
.team-grid .team-card,
.founder-card { position: relative; overflow: visible; }

.team-grid .team-card:hover,
.founder-card:hover { z-index: 20; }

.team-grid .team-card .team-body p,
.founder-card p {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  width: 100%;
  z-index: 5;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s var(--ease);
}

/* arrow pointing up at the card */
.team-grid .team-card .team-body p::before,
.founder-card p::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-bottom-color: var(--green-500);
}

/* .bio-open (tapped) reveals the popover on every device. */
.team-grid .team-card.bio-open .team-body p,
.founder-card.bio-open p {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Devices with a real pointer reveal the popover on hover / keyboard focus.
   Scoped to hover-capable devices so a tap on a phone doesn't leave it
   stuck open via sticky :hover — there, only .bio-open (JS) controls it. */
@media (hover: hover) {
  .team-grid .team-card:hover .team-body p,
  .team-grid .team-card:focus-within .team-body p,
  .founder-card:hover p,
  .founder-card:focus-within p {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* Touch devices have no cursor to hover with, so a tap toggles the bio
   (handled in initTeamBios). */
@media (hover: none) {
  .team-grid .team-card,
  .founder-card { cursor: pointer; }
}

/* 4 columns for management team */
.team-grid.four-col .team-card {
  flex: 0 0 calc(25% - 2rem);
  max-width: calc(25% - 2rem);
}
.founder-grid.founder-centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

.founder-grid.founder-centered .founder-card {
  max-width: 600px;
  width: 100%;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-400); }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.team-card .team-body { padding: 16px 12px 18px; }
.team-card h4 { font-size: 0.98rem; margin-bottom: 3px; }
.team-card .role { color: var(--green-600); font-size: 0.8rem; font-weight: 500; }

/* =====================================================
   PAGE HERO (inner pages) — Standardized with Home Hero
   ===================================================== */
.page-hero { position: relative; color: #fff; text-align: center; padding: 88px 0 96px; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,40,18,.92) 0%, rgba(15,55,25,.8) 50%, rgba(20,70,30,.45) 100%);
}
.page-hero .eyebrow { color: var(--accent); margin-bottom: 12px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.2; margin-bottom: 14px; }
.page-hero h1 span { color: var(--green-400); }
.page-hero p { color: #e9f3e5; font-size: 1.1rem; max-width: 680px; margin: 0 auto 18px; line-height: 1.6; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(4px);
  padding: 6px 16px; border-radius: 20px; font-size: 0.84rem; color: #dcebd6;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.breadcrumb a { color: #fff; font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* =====================================================
   PRODUCTS
   ===================================================== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow); cursor: pointer;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover img { transform: scale(1.08); }
.product-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,35,15,.85) 0%, rgba(10,35,15,.15) 55%, transparent 100%);
}
.product-card .body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.product-card .body h4 { color: #fff; font-size: 1.15rem; }
.product-card .body p { font-size: 0.85rem; color: #d8e8d2; margin-top: 2px; }
.product-card .arrow {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--green-600);
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.product-card:hover .arrow { background: var(--accent); transform: translateX(4px); }
.product-card .arrow svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Pack-shot variant (Products page grid) ----------
   The bag photos are tall studio shots on a white background, so the
   base card (4/3 crop + dark gradient + white text over the image)
   would slice the bag in half. Here the image is contained on a soft
   tint and the label sits in a solid strip underneath. */
.product-grid.pack-grid { grid-template-columns: repeat(4, 1fr); }
.pack-grid .product-card {
  aspect-ratio: auto; background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: .28s var(--ease);
}
.pack-grid .product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-400);
}
.pack-grid .product-card::after { content: none; }
.pack-grid .product-card img {
  aspect-ratio: 1/1; height: auto; object-fit: contain; padding: 16px;
  background: linear-gradient(180deg, #fbfdfa, var(--bg-mint));
}
.pack-grid .product-card:hover img { transform: scale(1.05); }
.pack-grid .product-card .body {
  position: static; padding: 15px 16px 17px; color: var(--text);
  border-top: 1px solid var(--line); flex: 1;
}
.pack-grid .product-card .body h4 { color: var(--green-900); font-size: 1.02rem; }
.pack-grid .product-card .body p { color: var(--muted); }
.pack-grid .product-card .arrow { width: 34px; height: 34px; }
.pack-grid .product-card .arrow svg { width: 16px; height: 16px; }

@media (max-width: 992px) {
  .product-grid.pack-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid.pack-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .product-grid.pack-grid { grid-template-columns: 1fr; }
  .pack-grid .product-card img { aspect-ratio: 4/3; }
}

/* ---------- AGRIVAA feed product cards ---------- */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feed-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .28s var(--ease);
  display: flex; flex-direction: column;
}
.feed-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-400); }
.feed-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.feed-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.feed-card:hover .feed-img img { transform: scale(1.07); }
.feed-badge {
  position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 30px;
  padding: 4px 14px 4px 5px; display: flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow); font-size: 0.72rem; font-weight: 700; color: var(--green-700);
  letter-spacing: .5px;
}
.feed-badge img { width: 22px; height: 22px; object-fit: contain; }
.feed-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.feed-body h4 { font-size: 1.12rem; margin-bottom: 6px; }
.feed-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; flex: 1; }
.feed-body .btn { align-self: flex-start; padding: 10px 20px; font-size: 0.88rem; }

/* ---------- AGRIVAA highlight band (home) ---------- */
.agrivaa-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  border-radius: var(--radius); padding: 40px; color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
}
.agrivaa-band .band-logo {
  width: 110px; height: 110px; background: #fff; border-radius: 18px; padding: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.agrivaa-band .band-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.agrivaa-band h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.agrivaa-band h3 span { color: #d7f0c4; }
.agrivaa-band p { color: #dcefd3; margin-bottom: 14px; }
.agrivaa-chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.agrivaa-chips span,
.agrivaa-chips .chip-link {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 30px; font-size: 0.82rem; font-weight: 500;
}
/* "More Feed" chip is a link through to the full product list */
.agrivaa-chips .chip-link {
  font-weight: 600;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.agrivaa-chips .chip-link:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.55);
}

/* ---------- Custom solution / AGRIVAA banner ---------- */
.custom-banner {
  background: var(--bg-mint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.agrivaa-brand-logo { height: 84px; width: auto; margin-bottom: 14px; }
.custom-banner h3 { font-size: 1.5rem; margin-bottom: 8px; }
.custom-banner p { color: var(--muted); margin-bottom: 18px; }
.agrivaa-bags { display: flex; gap: 14px; }
.agrivaa-bag {
  width: 110px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow);
  background: #fff; text-align: center;
}
.agrivaa-bag img { width: 100%; height: 90px; object-fit: cover; }
.agrivaa-bag span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--green-700); padding: 8px 4px; }

/* =====================================================
   INFRASTRUCTURE
   ===================================================== */
.infra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.infra-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .28s var(--ease);
}
.infra-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.infra-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.infra-card .body { padding: 18px; text-align: center; }
.infra-card .ico { color: var(--green-600); margin-bottom: 8px; }
.infra-card .ico svg { width: 26px; height: 26px; margin: 0 auto; }
.infra-card h4 { font-size: 0.98rem; }

/* ---------- Stats ---------- */
.stats { background: var(--green-800); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { padding: 20px; }
.stat-item .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; }
.stat-item .num span { color: var(--green-400); }
.stat-item .label { color: #c8ddc2; font-size: 0.95rem; margin-top: 4px; }
.stats-grid .stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,.14); }

/* =====================================================
   GALLERY
   ===================================================== */
.gallery-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 22px; border-radius: 30px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: .25s;
}
.filter-btn:hover { border-color: var(--green-500); color: var(--green-700); }
.filter-btn.active { background: var(--green-600); color: #fff; border-color: var(--green-600); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
  position: absolute; inset: 0; background: rgba(12,46,20,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: .3s;
  font-weight: 600; font-size: 0.9rem; text-align: center; padding: 10px;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item.hide { display: none; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 8px; }
.contact-info > p { color: var(--muted); margin-bottom: 26px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-line .ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--bg-mint);
  color: var(--green-600); display: flex; align-items: center; justify-content: center;
}
.contact-line .ico svg { width: 20px; height: 20px; }
.contact-line .meta span { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.contact-line .meta strong { color: var(--text); font-weight: 600; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg-soft);
  transition: .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(67,160,71,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; margin-top: 12px; }
.form-note.ok { color: var(--green-600); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 46px; }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* =====================================================
   OUR BRANDS (see BRAND CAROUSEL block below for the card styling)
   ===================================================== */

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner { background: var(--green-800); border-radius: var(--radius); padding: 44px; color: #fff; }
.cta-banner .container-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.cta-banner p { color: #cfe3c8; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--green-900); color: #c4d6bd; padding-top: 56px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr 1fr; gap: 30px; padding-bottom: 40px;
}
.footer .brand-text .name { color: #fff; }
.footer .brand-text .tag { color: #9ab68f; }
.footer-about p { margin: 16px 0; font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.footer-social a:hover { background: var(--green-600); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 0.9rem; transition: .2s; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--green-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 0.85rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  /* Collapse nav to hamburger on tablet-width to avoid cramped wrapping */
  /* Drop straight below the header (top:100% of the sticky header), so the
     topbar above never leaves the menu covering half the header row. */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 10px 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .35s var(--ease); z-index: -1;
    max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }

  .feature-strip .container { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature-item:nth-child(3) { border-right: none; }
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
  .agrivaa-band { grid-template-columns: auto 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }
  /* .team-grid is a flex row — size the cards, not grid columns */
  .team-grid .team-card,
  .team-grid.four-col .team-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
  .hero-badges { gap: 22px; }
  .brand-carousel { grid-template-columns: 1fr; border-radius: var(--radius); text-align: center; }
  .bc-arrow { display: none; }
  .bc-panel { flex-direction: column; text-align: center; }
  .hero-signage { display: none; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* The full seven-item row needs ~1180px once the brand block and the CTA
   button have taken their share. Below that it collapses into the burger
   menu rather than wrapping onto a second line. */
@media (max-width: 1180px) {
  /* Drop straight below the header (top:100% of the sticky header), so the
     topbar above never leaves the menu covering half the header row. */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 10px 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .35s var(--ease); z-index: -1;
    max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .nav-links a::after { display: none; }
  /* In the menu there is no CTA button alongside, so Contact Us belongs back */
  .nav-links a[href="contact.html"] { display: block; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-cta .btn { display: none; }
  .about-grid, .about-grid.reverse { grid-template-columns: 1fr; direction: ltr; gap: 30px; }
  .about-media { order: -1; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .feed-grid { grid-template-columns: 1fr; }
  .agrivaa-band {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 30px 22px;
  }
  /* justify-items:center sizes items to their content, so without this the
     chips row and the button push past the band instead of wrapping. */
  .agrivaa-band > * { max-width: 100%; min-width: 0; }
  .agrivaa-band h3 { font-size: 1.35rem; }
  .agrivaa-chips { justify-content: center; }
  /* Long CTA label would overflow with the base white-space:nowrap —
     let it wrap and centre inside the band on narrow screens. */
  .agrivaa-band .btn {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
  .custom-banner { grid-template-columns: 1fr; }
  .agrivaa-bags { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-card { flex-direction: column; text-align: center; }
  .topbar-info { font-size: 0.72rem; }
  .cta-banner .container-inner { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 560px) {
  .team-grid { gap: 1.25rem; }
  .team-grid .team-card,
  .team-grid.four-col .team-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .feature-strip .container, .solutions-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .value-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .infra-grid, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.14); }
  .feature-item { border-right: none; }
  .topbar-info .sep, .topbar-info span:not(:first-child) { display: none; }
  .brand-text .name { font-size: 1.05rem; }
  .hero-inner { padding: 60px 0 70px; }
}

/* =====================================================
   COLLABORATIONS & CERTIFICATIONS
   ===================================================== */
/* .about-hero zeroes its bottom padding because the badge row underneath
   supplies the breathing room. This hero ends on a paragraph, so it has to
   put that padding back or the text sits on the banner's edge. */
.page-hero.collab-hero { padding: 66px 0 62px; }
.collab-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; }
.collab-hero h1 span { display: block; color: var(--green-400); }
.collab-hero .tagline {
  color: #fff; font-weight: 600; font-size: 1.05rem; margin: 16px 0 10px; max-width: 620px;
}
.collab-hero p { color: #cfe3c8; max-width: 660px; margin: 0; font-size: 0.96rem; }

/* ---- One themed row: intro on the left, partner cards on the right ---- */
.cc-row { padding: 44px 0; border-bottom: 1px solid var(--line); }
.cc-row:last-of-type { border-bottom: none; }
.cc-row .container { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.cc-intro { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.cc-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg-mint);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--green-600);
}
.cc-icon svg { width: 26px; height: 26px; }
.cc-intro h3 {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; color: var(--green-700);
}
.cc-intro p { color: var(--muted); font-size: 0.86rem; margin-top: 8px; }
.cc-cards { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- Partner / certificate card ---- */
.cc-card {
  flex: 1 1 165px; max-width: 220px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 14px; text-align: center;
  box-shadow: var(--shadow); transition: .25s var(--ease);
}
.cc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-400); }
.cc-card img { height: 62px; width: auto; max-width: 100%; margin: 0 auto 12px; object-fit: contain; }
.cc-card strong { display: block; font-size: 0.86rem; color: var(--green-900); line-height: 1.35; }
.cc-card span { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 4px; }

/* Icon disc for the text-only note card — same footprint as a logo */
.cc-badge {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(140deg, var(--green-600), var(--green-800)); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; letter-spacing: .5px;
}
.cc-badge svg { width: 28px; height: 28px; }

/* Wide text-only card (e.g. the note beside a partnership logo) */
.cc-card.is-note {
  flex: 2 1 300px; max-width: 380px; text-align: left; display: flex; gap: 14px; align-items: center;
}
.cc-card.is-note .cc-badge { margin: 0; flex-shrink: 0; }
.cc-card.is-note p { font-size: 0.84rem; color: var(--muted); }

/* Two CTAs share the band's last column */
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Trusted-by logo strip (reuses the .hl-* slider shell) ---- */
.trust-strip .hl-card {
  flex: 0 0 calc((100% - 5 * 18px) / 6); max-width: calc((100% - 5 * 18px) / 6);
  padding: 16px 10px; text-align: center; display: block;
}
.trust-strip .hl-track { gap: 18px; }
.trust-card img { height: 52px; width: auto; max-width: 100%; margin: 0 auto 8px; object-fit: contain; }
.trust-card span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); }

@media (max-width: 992px) {
  .cc-row .container { grid-template-columns: 1fr; gap: 24px; }
  .trust-strip .hl-card {
    flex: 0 0 calc((100% - 3 * 18px) / 4); max-width: calc((100% - 3 * 18px) / 4);
  }
}
@media (max-width: 640px) {
  .cc-card, .cc-card.is-note { flex: 1 1 140px; max-width: none; }
  .cc-card.is-note { flex-basis: 100%; }
  .trust-strip .hl-card {
    flex: 0 0 calc((100% - 18px) / 2); max-width: calc((100% - 18px) / 2);
  }
}

/* =====================================================
   LEGAL PAGES (Terms & Conditions / Privacy / Refund)
   ===================================================== */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 34px; }
.legal-content h2 {
  font-size: 1.25rem; margin: 40px 0 12px; padding-top: 8px; scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); margin-bottom: 14px; line-height: 1.75; }
.legal-content ul { margin: 6px 0 16px 0; }
.legal-content ul li {
  color: var(--muted); line-height: 1.7; padding-left: 22px; position: relative; margin-bottom: 8px;
}
.legal-content ul li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green-500);
}
.legal-content strong { color: var(--text); }

/* =====================================================
   CONSENT GATE (site-wide entry disclaimer)
   ===================================================== */
html.consent-pending body { visibility: hidden; }
html.consent-pending #consent-gate { visibility: visible; }

#consent-gate {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
/* Blurred farm photo behind the card (scaled up so blur has no soft edges) */
#consent-gate::before {
  content: ''; position: absolute; inset: -40px;
  background: url('../assets/home/image-1home-page.jpg') center / cover no-repeat;
  filter: blur(9px) saturate(1.05);
  transform: scale(1.06);
}
/* Green brand tint over the photo so white text/card pops */
#consent-gate::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(10,40,18,.86), rgba(20,70,32,.72));
}
.consent-card {
  position: relative; z-index: 2;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
  max-width: 480px; width: 100%; padding: 36px 32px; text-align: center;
  animation: consentIn .45s var(--ease) both;
}
@keyframes consentIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.consent-card .brand-logo { width: 78px; height: 78px; margin: 0 auto 18px; object-fit: contain; }
.consent-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.consent-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 22px; }
.consent-card p a { color: var(--green-600); font-weight: 600; text-decoration: underline; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.consent-actions .btn { flex: 1; min-width: 150px; justify-content: center; }
.btn-decline {
  background: transparent; color: var(--muted); border: 2px solid var(--line);
}
.btn-decline:hover { background: #f5f5f5; border-color: #ccc; }

.consent-denied h3 { color: var(--green-800); }
.consent-denied .lock-ico { color: var(--green-600); margin-bottom: 14px; }
.consent-denied .lock-ico svg { width: 42px; height: 42px; }
.consent-reconsider {
  margin-top: 6px; background: none; border: none; color: var(--green-600);
  font-size: 0.85rem; text-decoration: underline; cursor: pointer; font-weight: 600;
}

@media (max-width: 480px) {
  .consent-actions { flex-direction: column; }
  .consent-actions .btn { width: 100%; }
}

/* Inline Terms & Conditions Modal within Consent Gate */
.consent-card.consent-terms {
  max-width: 680px; text-align: left; padding: 28px 24px 22px; max-height: 85vh; display: flex; flex-direction: column;
}
.consent-card.consent-terms h3 {
  font-size: 1.25rem; margin-bottom: 12px; color: var(--green-900); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.terms-modal-scroll {
  flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); border-radius: var(--radius-sm);
  border: 1px solid var(--line); margin-bottom: 16px; font-size: 0.86rem; color: var(--muted); line-height: 1.65;
}
.terms-modal-scroll h4 { color: var(--green-800); font-size: 0.95rem; margin: 16px 0 6px; }
.terms-modal-scroll h4:first-child { margin-top: 0; }
.terms-modal-scroll p { margin-bottom: 8px; }
.terms-modal-scroll ul { margin: 4px 0 10px 18px; list-style: disc; }
.terms-modal-scroll ul li { margin-bottom: 4px; }
.terms-actions { display: flex; gap: 12px; justify-content: flex-end; flex-shrink: 0; }

/* =====================================================
   PRODUCTS PAGE RESTRUCTURING & GREEN THEME STYLING
   ===================================================== */

/* --- Section Spacing Adjustments (Reduced Top Spaces) --- */
.categories-overview-section {
  padding: 24px 0 16px;
  background: var(--bg-soft);
}
.products-catalog-section {
  padding: 20px 0 36px;
}
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.category-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}
.category-card:hover, .category-card.active {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.12);
  border-color: var(--green-500);
}
.category-card.active {
  background: linear-gradient(180deg, #f0f7ef 0%, #ffffff 100%);
  border-width: 2px;
}
.category-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.category-card:hover .category-icon {
  transform: scale(1.12);
}
.category-card h3 {
  font-size: 1.1rem;
  color: var(--green-950);
  margin-bottom: 4px;
  font-weight: 700;
}
.category-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 10px;
}
.cat-count {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--bg-mint);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(27, 94, 32, 0.15);
}

/* --- Category Filter Tabs Bar --- */
.category-tabs-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
}
.category-tab-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  transition: all 0.25s var(--ease);
}
.category-tab-btn:hover {
  border-color: var(--green-400);
  color: var(--green-700);
  transform: translateY(-2px);
}
.category-tab-btn.active {
  background: var(--green-600);
  color: #ffffff;
  border-color: var(--green-600);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* --- PACK-GRID PRODUCT CARDS (Clean Minimalist: Image + Title Only) --- */
.product-grid.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card, .feed-card {
  opacity: 1 !important;
  visibility: visible !important;
}
.pack-grid .product-card {
  aspect-ratio: auto !important;
  background: #ffffff !important;
  border: 1px solid #dce8d9 !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
  position: relative !important;
  cursor: pointer !important;
}
.pack-grid .product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 32px rgba(27, 94, 32, 0.12) !important;
  border-color: var(--green-500) !important;
}
.pack-grid .product-card::after {
  display: none !important;
  content: none !important;
}
.pack-grid .product-card img {
  aspect-ratio: auto !important;
  height: 220px !important;
  width: 100% !important;
  object-fit: contain !important;
  padding: 16px !important;
  background: #ffffff !important;
  transition: transform 0.35s var(--ease) !important;
}
.pack-grid .product-card:hover img {
  transform: scale(1.05) !important;
}
.product-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1b5e20;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.pack-grid .product-card .body {
  position: static !important;
  padding: 16px 18px 18px !important;
  color: var(--text) !important;
  border-top: 1px solid #f0f4ef !important;
  flex: 1 !important;
  display: block !important;
  background: #ffffff !important;
}
.pack-grid .product-card .body h4 {
  color: var(--green-950) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  text-align: left !important;
}
.pack-grid .product-card .body p,
.pack-grid .product-card .arrow {
  display: none !important;
}

/* --- SOLUTIONS OVERVIEW CARDS GRID (Matching Laptop Screenshot) --- */
.solutions-grid-overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (min-width: 1200px) {
  .solutions-grid-overlay { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .solutions-grid-overlay { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .solutions-grid-overlay { grid-template-columns: 1fr; }
}

.solution-card-overlay {
  position: relative;
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  opacity: 1 !important;
  visibility: visible !important;
}
.solution-card-overlay:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 40, 15, 0.22);
}
.solution-card-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.solution-card-overlay:hover img {
  transform: scale(1.08);
}
.solution-card-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 35, 15, 0.92) 0%, rgba(10, 35, 15, 0.35) 60%, transparent 100%);
  transition: opacity 0.3s var(--ease);
}
.solution-card-overlay .overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
}
.solution-card-overlay .overlay-content h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.solution-card-overlay .overlay-content p {
  color: #d8ebd5;
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0;
}
.solution-card-overlay .arrow-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1b5e20;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.28s var(--ease);
}
.solution-card-overlay .arrow-btn svg {
  width: 20px;
  height: 20px;
}
.solution-card-overlay:hover .arrow-btn {
  background: #2e7d32;
  transform: translateX(4px) scale(1.08);
}

/* --- Clean & Organized Specification Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 30, 15, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  animation: modalPop 0.35s var(--ease) both;
}
@keyframes modalPop {
  from { transform: scale(0.94) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 20;
  background: #f0f4ef;
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  display: grid;
  place-items: center;
}
.modal-close-btn:hover {
  background: var(--green-600);
  color: #ffffff;
}
.modal-header-banner {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 380px;
  overflow: hidden;
}
.modal-header-banner img {
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
}
.modal-body-container {
  padding: 32px 36px 36px;
}
.modal-cat-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-700);
  background: var(--bg-mint);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(27, 94, 32, 0.15);
}
.modal-main-title {
  font-size: 1.55rem;
  color: var(--green-950);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}
.modal-tagline-quote {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-600);
  font-style: italic;
  margin-bottom: 16px;
}
.modal-description-text {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
  background: #fbfdfa;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid #edf4ec;
}
.modal-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-900);
  margin-bottom: 12px;
}
.modal-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.modal-benefit-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.modal-benefit-item .check {
  color: var(--green-600);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}
.modal-specs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.modal-spec-card {
  background: #f8fbf7;
  border: 1px solid #e2eee0;
  border-radius: 12px;
  padding: 16px 20px;
}
.modal-spec-card h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-900);
  margin-bottom: 8px;
  font-weight: 700;
}
.modal-spec-card p {
  font-size: 0.88rem;
  color: var(--dark);
  margin: 0;
  line-height: 1.5;
}
.modal-action-bar {
  display: flex;
  gap: 14px;
  padding-top: 10px;
}
.modal-action-bar .btn {
  flex: 1;
  justify-content: center;
  padding: 14px 24px;
  font-size: 0.98rem;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-body-container {
    padding: 24px 20px;
  }
  .modal-specs-two-col {
    grid-template-columns: 1fr;
  }
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
  .category-tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}
/* Category Modal Styling */
.category-modal-card {
  max-width: 1040px;
}
.category-modal-card #cat-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

