/* ═══════════════════════════════════════════════════════════
   AGROVEER — Global Stylesheet
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --green-900: #1a2e1a;
  --green-800: #1a4a1a;
  --green-700: #2d6a2e;
  --green-600: #3d8a3e;
  --green-500: #4a9e4b;
  --green-100: #e8f5e8;
  --green-50: #f0f7f0;
  --bg: #fafdf7;
  --text: #1a2e1a;
  --text-light: #3a5a3a;
  --text-muted: #5a7a5a;
  --text-faint: #6a8a6a;
  --border: #e8f0e8;
  --border-light: #e0ebe0;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-full: 50px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.1);
  --transition: all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--green-50); }
.section--dark { background: linear-gradient(135deg, var(--green-700), var(--green-800)); color: white; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ─── TYPOGRAPHY ─── */
.h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); font-weight: 900; line-height: 1.12; color: var(--text); }
.h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 900; line-height: 1.2; color: var(--text); }
.h3 { font-weight: 800; font-size: 18px; color: var(--text); }
.subtitle { color: var(--text-muted); font-size: 16px; margin-top: 8px; }
.text-green { color: var(--green-700); }
.text-center { text-align: center; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 15px; font-family: var(--font-body);
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); text-decoration: none; }
.btn--primary { background: var(--green-700); color: white; }
.btn--outline { background: transparent; color: var(--green-700); border: 2px solid var(--green-700); }
.btn--white { background: white; color: var(--green-700); }
.btn--glass { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.3); }

/* ─── CARDS ─── */
.card {
  background: white; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card--flat { box-shadow: none; }
.card--flush { padding: 0; overflow: hidden; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge--green { background: var(--green-100); color: var(--green-700); }
.badge--glass { background: rgba(255,255,255,.15); color: #b4e6b4; }

/* ─── TABLES ─── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--green-50); font-weight: 700; color: var(--green-700); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr:hover td { background: #f8fcf8; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-light); }

/* ─── HEADER ─── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,253,247,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px;
}
.header__logo img { height: 36px; }
.header__nav { display: flex; gap: 2px; align-items: center; }
.header__link {
  padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-light); text-decoration: none; transition: var(--transition); white-space: nowrap;
}
.header__link:hover, .header__link--active { background: var(--green-100); color: var(--green-700); text-decoration: none; }
.header__mobile { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ─── HERO ─── */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,58,26,.88), rgba(45,106,46,.72)); }
.hero__pattern { position: absolute; inset: 0; opacity: .04; background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 40px 40px; }
.hero__content { position: relative; max-width: 600px; color: white; }
.hero__title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.12; margin-bottom: 16px; }
.hero__title span { color: #90d890; }
.hero__text { font-size: 17px; line-height: 1.7; color: #c0e0c0; margin-bottom: 28px; max-width: 520px; }

/* ─── TRUST BAR ─── */
.trust-bar { background: white; border-bottom: 1px solid var(--border); padding: 16px 0; }
.trust-bar__inner { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-bar__logo { height: 34px; }
.trust-bar__text { font-size: 11px; font-weight: 700; color: #4a7a4a; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }

/* ─── STAT CARDS ─── */
.stat { text-align: center; }
.stat__icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--green-100), #d0ecd0); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.stat__number { font-family: var(--font-display); font-size: 40px; font-weight: 900; color: var(--green-700); }
.stat__label { font-weight: 700; font-size: 14px; margin-top: 4px; }

/* ─── PRODUCT CARDS ─── */
.pcard { cursor: pointer; overflow: hidden; padding: 0; text-decoration: none; color: inherit; display: block; }
.pcard:hover { text-decoration: none; }
.pcard__top { padding: 20px 20px 0; display: flex; justify-content: space-between; align-items: flex-end; min-height: 160px; }
.pcard__bottle { height: 140px; object-fit: contain; flex-shrink: 0; }
.pcard__bottom { padding: 14px 20px; }
.pcard__npk { display: flex; gap: 10px; margin-top: 8px; }
.pcard__npk-item { text-align: center; }
.pcard__npk-val { font-size: 16px; font-weight: 800; }
.pcard__npk-label { font-size: 10px; color: var(--text-faint); }

/* ─── QR SECTION ─── */
.qr-cta { position: relative; overflow: hidden; }
.qr-cta__pattern {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ─── TESTIMONIALS ─── */
.testimonial__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial__stars { display: flex; gap: 2px; margin-bottom: 8px; }
.testimonial__star { color: #C9A800; }

/* ─── NUTRIENT BAR ─── */
.nbar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.nbar__fill { height: 100%; border-radius: 4px; transition: width .8s ease; }

/* ─── BANNER ─── */
.banner { position: relative; border-radius: 20px; overflow: hidden; min-height: 220px; margin-bottom: 40px; }
.banner img { width: 100%; height: 220px; object-fit: cover; }
.banner__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,58,26,.88), rgba(45,106,46,.5)); display: flex; align-items: center; padding: 0 40px; }
.banner__text { color: white; }

/* ─── CHECK LIST ─── */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist__item { display: flex; gap: 10px; font-size: 14px; color: var(--text-light); line-height: 1.6; align-items: flex-start; }
.checklist__icon { width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* ─── PRODUCT DETAIL ─── */
.pd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.pd-bottle-wrap { border-radius: 20px; padding: 24px; display: flex; align-items: center; justify-content: center; }
.pd-bottle-wrap img { height: 280px; object-fit: contain; }
.pd-farm-img { border-radius: 16px; overflow: hidden; width: 160px; height: 220px; flex-shrink: 0; }
.pd-farm-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── FOOTER ─── */
.footer { background: var(--green-900); color: #a0c0a0; padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer__logo { height: 30px; margin-bottom: 8px; filter: brightness(0) invert(1); }
.footer__heading { color: white; font-weight: 700; margin-bottom: 12px; font-size: 14px; }
.footer__link { display: block; font-size: 13px; padding: 4px 0; color: #a0c0a0; text-decoration: none; }
.footer__link:hover { color: white; text-decoration: none; }
.footer__bottom { border-top: 1px solid #2a4a2a; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #6a9a6a; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .header__nav { display: none; }
  .header__mobile { display: block; }
  .hero { min-height: 420px; }
  .hero__content { padding: 0 8px; }
  .pd-hero { grid-template-columns: 1fr; }
  .pd-bottle-wrap img { height: 200px; }
  .banner { min-height: 160px; border-radius: 12px; }
  .banner img { height: 160px; }
  .banner__overlay { padding: 0 20px; }
  .trust-bar__inner { gap: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ─── MOBILE MENU ─── */
.mobile-menu { display: none; background: white; border-top: 1px solid var(--border); padding: 16px 20px; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); }
.faq-q__text { font-weight: 700; font-size: 16px; color: var(--text); padding-right: 16px; }
.faq-q__icon { flex-shrink: 0; transition: transform .2s; color: var(--green-700); }
.faq-q__icon.open { transform: rotate(180deg); }
.faq-a { padding: 0 0 18px; font-size: 15px; color: #4a6a4a; line-height: 1.7; display: none; }
.faq-a.open { display: block; }

/* ─── SEARCH INPUT ─── */
.search-input {
  width: 100%; max-width: 400px; padding: 12px 16px;
  border-radius: var(--radius-sm); border: 2px solid #d0e0d0;
  font-size: 15px; outline: none; font-family: var(--font-body);
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--green-700); }

/* ─── UTILITY ─── */
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }


