/* ============================================================
   IGPL AgroFresh — Stylesheet
   Palette: Deep husk-green, harvest gold, rice-white, char-earth
   Type: Fraunces (display) + Work Sans (body) + JetBrains Mono (data)
   ============================================================ */

:root {
  --husk-green: #223821;
  --husk-green-light: #33512f;
  --harvest-gold: #c88a2e;
  --harvest-gold-light: #e0aa54;
  --rice-white: #f8f5ec;
  --char-earth: #24211b;
  --clay-red: #a34a35;
  --line: rgba(34, 56, 33, 0.14);
  --shadow: 0 12px 32px rgba(36, 33, 27, 0.10);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--char-earth);
  background: var(--rice-white);
  line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--husk-green);
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.text-gold { color: var(--harvest-gold) !important; }
.bg-husk { background-color: var(--husk-green) !important; }
.bg-rice { background-color: var(--rice-white) !important; }

/* ---------------- Top utility bar ---------------- */
.top-bar {
  background: var(--char-earth);
  color: #e7e2d3;
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-bar a { color: var(--harvest-gold-light); }
.top-bar a:hover { color: #fff; }

/* ---------------- Navbar ---------------- */
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--husk-green) !important;
}
.navbar-brand span { color: var(--harvest-gold); }

.navbar {
  background: #fffefb;
  border-bottom: 1px solid var(--line);
}
.navbar .nav-link {
  font-weight: 500;
  color: var(--char-earth) !important;
  margin: 0 6px;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--harvest-gold) !important;
}
.cart-icon-wrap { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px; right: -10px;
  background: var(--clay-red);
  color: #fff;
  font-size: 0.65rem;
  border-radius: 50%;
  padding: 2px 6px;
}

/* ---------------- Hero (grain-field signature) ---------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--husk-green) 0%, var(--husk-green-light) 55%, #3c5a35 100%);
  color: #f3efe2;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(200,138,46,0.07) 0px, rgba(200,138,46,0.07) 2px, transparent 2px, transparent 26px);
  pointer-events: none;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--harvest-gold-light);
  font-weight: 600;
}
.hero h1 {
  color: #fbf8ef;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
}
.hero p.lead { color: #dcd6c2; max-width: 560px; }
.hero .stat-strip {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 24px;
}
.hero .stat-strip .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--harvest-gold-light);
  font-weight: 700;
}
.hero .stat-strip .label { font-size: 0.78rem; color: #cbc4ac; text-transform: uppercase; letter-spacing: 0.06em; }

.btn-gold {
  background: var(--harvest-gold);
  border-color: var(--harvest-gold);
  color: #241d0f;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 3px;
}
.btn-gold:hover { background: var(--harvest-gold-light); color: #241d0f; }

.btn-outline-cream {
  border: 1px solid rgba(255,255,255,0.5);
  color: #f3efe2;
  padding: 10px 26px;
  border-radius: 3px;
}
.btn-outline-cream:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------------- Section headers ---------------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--clay-red);
  font-weight: 700;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.5rem; }
.section-sub { color: #5a5748; max-width: 640px; }

section { padding: 70px 0; }

/* ---------------- Category cards ---------------- */
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 22px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card .cat-icon { font-size: 2.1rem; }
.category-card h4 { font-size: 1.15rem; margin: 12px 0 6px; }
.category-card p { color: #5a5748; font-size: 0.92rem; }
.category-card .seasonal-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(200,138,46,0.14);
  color: var(--harvest-gold);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ---------------- Product cards ---------------- */
.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
}
.filter-bar .form-select, .filter-bar .form-control { border-color: var(--line); }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .product-img {
  aspect-ratio: 4/3;
  background: #eee7d6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--husk-green);
  color: #fff;
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card .body { padding: 18px; flex-grow: 1; display: flex; flex-direction: column; }
.product-card h5 { font-size: 1.05rem; margin-bottom: 4px; }
.product-card .desc { color: #5a5748; font-size: 0.86rem; flex-grow: 1; }
.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0;
}
.product-card .price { font-family: var(--font-mono); font-weight: 700; color: var(--husk-green); font-size: 1.15rem; }
.product-card .unit { font-size: 0.78rem; color: #837e6a; }
.product-card .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.product-card .actions .btn { font-size: 0.78rem; padding: 6px 10px; flex: 1; white-space: nowrap; }

.btn-cart { background: var(--husk-green); border-color: var(--husk-green); color: #fff; }
.btn-cart:hover { background: var(--husk-green-light); color: #fff; }
.btn-buy { background: var(--clay-red); border-color: var(--clay-red); color: #fff; }
.btn-buy:hover { background: #8c3c29; color: #fff; }
.btn-quote { background: transparent; border-color: var(--harvest-gold); color: var(--harvest-gold); }
.btn-quote:hover { background: var(--harvest-gold); color: #241d0f; }

/* ---------------- Why choose us ---------------- */
.feature-row .feature-icon {
  width: 46px; height: 46px;
  background: rgba(34,56,33,0.08);
  color: var(--husk-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------------- Testimonials ---------------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  height: 100%;
}
.testimonial-card .quote { font-style: italic; color: #45422f; }
.testimonial-card .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------------- Documents section ---------------- */
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  height: 100%;
}
.doc-card .doc-icon { font-size: 2rem; color: var(--clay-red); }
.doc-card h6 { margin: 10px 0 4px; }
.doc-card small { color: #837e6a; display: block; margin-bottom: 10px; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--char-earth);
  color: #cfc9b6;
  padding: 60px 0 20px;
}
footer.site-footer h6 {
  color: var(--harvest-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
footer.site-footer a { color: #cfc9b6; }
footer.site-footer a:hover { color: var(--harvest-gold-light); }
footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: #8f8a76;
}

/* ---------------- Floating WhatsApp + Chatbot ---------------- */
.float-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  border: none;
  cursor: pointer;
}
.float-btn.whatsapp { background: #25D366; }
.float-btn.chatbot { background: var(--husk-green); }

.chat-window {
  width: 320px;
  max-height: 440px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 8px;
}
.chat-window.open { display: flex; }
.chat-header {
  background: var(--husk-green);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.chat-header button { background: none; border: none; color: #fff; font-size: 1.1rem; }
.chat-body {
  padding: 12px;
  overflow-y: auto;
  flex-grow: 1;
  background: #faf8f1;
  font-size: 0.88rem;
}
.chat-msg { margin-bottom: 10px; display: flex; }
.chat-msg.bot .bubble { background: #eee7d6; color: var(--char-earth); }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.user .bubble { background: var(--husk-green); color: #fff; }
.bubble { padding: 8px 12px; border-radius: 12px; max-width: 80%; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; background: #faf8f1; }
.chat-quick-replies button {
  font-size: 0.76rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 4px 12px;
}
.chat-input-row { display: flex; border-top: 1px solid var(--line); }
.chat-input-row input { flex-grow: 1; border: none; padding: 10px 12px; font-size: 0.88rem; }
.chat-input-row button { border: none; background: var(--harvest-gold); color: #241d0f; padding: 0 16px; font-weight: 700; }
.chat-input-row input:focus { outline: none; }

/* ---------------- Quote / Enquiry Modal ---------------- */
.modal-content { border-radius: 10px; border: none; }
.modal-header { background: var(--husk-green); color: #fff; border-radius: 10px 10px 0 0; }
.modal-header .btn-close { filter: invert(1); }

/* ---------------- Cart page ---------------- */
.cart-line { border-bottom: 1px solid var(--line); padding: 16px 0; }
.cart-line img { width: 74px; height: 74px; object-fit: cover; border-radius: 6px; }
.qty-input { width: 70px; }

/* ---------------- Utility ---------------- */
.rounded-pill-btn { border-radius: 30px; }
@media (max-width: 767px) {
  section { padding: 48px 0; }
  .hero { padding: 60px 0 44px; }
}
