/* =====================================================
   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); }
.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: 30px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text); position: relative; padding: 4px 0;
  transition: color .2s;
}
.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%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.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: left; margin-top: 6px; }
.value-card ul li {
  color: var(--muted); font-size: 0.9rem; padding-left: 22px; position: relative; margin-bottom: 8px;
}
.value-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green-500); font-weight: 700;
}

/* 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; }
.hero-badges {
  display: flex; gap: 34px; flex-wrap: wrap; margin-top: 26px; padding-bottom: 4px;
}
.hero-badge { display: flex; gap: 11px; align-items: center; }
.hero-badge .ico { color: var(--green-400); flex-shrink: 0; }
.hero-badge .ico svg { width: 26px; height: 26px; }
.hero-badge strong { display: block; font-size: 0.9rem; color: #fff; line-height: 1.2; }
.hero-badge span { font-size: 0.75rem; color: #b9d3b0; }

/* =====================================================
   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)
   ===================================================== */
.page-hero { position: relative; color: #fff; text-align: center; padding: 70px 0; 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(rgba(10,40,18,.86), rgba(15,55,25,.8));
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: #dcebd6; margin-top: 10px; }
.breadcrumb { margin-top: 14px; font-size: 0.88rem; color: #cfe3c8; }
.breadcrumb a:hover { color: #fff; }

/* =====================================================
   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; }

/* ---------- 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; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  /* 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; }
  .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; }
}

/* =====================================================
   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%; }
}
