/* ============================================
   FARMZONE - Main Stylesheet
   Aesthetic: Dark luxury, African warmth, premium livestock brand
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Brand constants ─────────────────────────────── */
:root {
  --green:        #1e6b35;
  --green-mid:    #2a8a48;
  --green-light:  #e8f5ec;
  --green-bright: #3db862;
  --gold:         #c8960c;
  --gold-light:   #f0b429;
  --gold-bg:      #fef9e7;
  --red:          #C0392B;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

/* ── LIGHT MODE (default) ────────────────────────── */
:root, body {
  --bg:        #ffffff;
  --bg-alt:    #f4f9f5;
  --bg-card:   #ffffff;
  --bg-card2:  #f4f9f5;
  --bg-card3:  #e8f5ec;
  --border:    rgba(30,107,53,0.14);
  --border-md: rgba(30,107,53,0.25);
  --text:      #0f2318;
  --text-2:    #3a5c42;
  --text-3:    #6b8f73;
  --shadow:    0 4px 24px rgba(30,107,53,0.10);
  --shadow-lg: 0 12px 48px rgba(30,107,53,0.14);
  /* legacy aliases */
  --black:     #0f2318;
  --dark:      #f4f9f5;
  --dark-2:    #ffffff;
  --dark-3:    #e8f5ec;
  --cream:     #0f2318;
  --white:     #ffffff;
  --grey:      #6b8f73;
  --grey-light:#b8d4bf;
  --earth:     #1e6b35;
  --earth-light:#2a8a48;
  --earth-dark: #155228;
}

/* ── DARK MODE ───────────────────────────────────── */
body.dark-mode {
  --bg:        #060d08;
  --bg-alt:    #0d1a10;
  --bg-card:   #142018;
  --bg-card2:  #1b2b1f;
  --bg-card3:  #223328;
  --border:    rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.14);
  --text:      #ffffff;
  --text-2:    rgba(255,255,255,0.72);
  --text-3:    #7a9e83;
  --shadow:    0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  /* legacy aliases */
  --black:     #060d08;
  --dark:      #0d1a10;
  --dark-2:    #142018;
  --dark-3:    #1b2b1f;
  --cream:     #ffffff;
  --white:     #ffffff;
  --grey:      #7a9e83;
  --grey-light:#b8d4bf;
  --earth:     #2a6b3f;
  --earth-light:#3a8f56;
  --earth-dark: #1a4a2a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: 'Outfit', sans-serif; transition: var(--transition); }
input, select, textarea { font-family: 'Outfit', sans-serif; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  transition: var(--transition);
  background: var(--green);
  box-shadow: 0 2px 16px rgba(30,107,53,0.18);
}
/* Dark mode: deeper green navbar */
body.dark-mode .navbar { background: #155228; box-shadow: 0 2px 16px rgba(0,0,0,0.4); }
/* Scrolled state — keep green, just add a little more shadow */
.navbar.scrolled {
  background: var(--green);
  box-shadow: 0 4px 24px rgba(30,107,53,0.25);
}
body.dark-mode .navbar.scrolled { background: #155228 !important; }

/* ── Navbar three-section layout ─────────────────── */
.nav-logo { flex-shrink: 0; }
.nav-logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-fallback {
  display: none; font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 1px;
}

/* Centre: search */
.nav-search-wrap {
  width: 100%; max-width: 480px;
  margin: 0 auto; position: relative;
}
.nav-search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 50px; padding: 8px 16px;
  transition: var(--transition);
}
.nav-search-box:focus-within {
  background: rgba(255,255,255,0.22);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.15);
}
.nav-search-icon { font-size: 14px; opacity: 0.8; flex-shrink: 0; }
.nav-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 13px; font-family: 'Outfit', sans-serif;
  min-width: 0;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.55); }
.nav-search-clear {
  background: rgba(255,255,255,0.2); border: none; border-radius: 50%;
  width: 18px; height: 18px; color: #fff; font-size: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Autocomplete dropdown */
.nav-autocomplete {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  border: 1.5px solid var(--border-md);
  overflow: hidden; z-index: 2000; max-height: 420px; overflow-y: auto;
}
body.dark-mode .nav-autocomplete { background: var(--bg-card); border-color: var(--border-md); }
.nav-ac-group-label {
  padding: 8px 14px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-3);
  background: var(--bg-alt);
}
body.dark-mode .nav-ac-group-label { background: var(--bg-card2); }
.nav-ac-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; text-decoration: none; color: var(--text);
  transition: background 0.15s; cursor: pointer;
}
.nav-ac-item:hover { background: var(--green-light); }
body.dark-mode .nav-ac-item:hover { background: rgba(30,107,53,0.15); }
.nav-ac-emoji { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }
.nav-ac-details { display: flex; flex-direction: column; gap: 2px; }
.nav-ac-name { font-size: 13px; font-weight: 600; color: var(--text); }
.nav-ac-name mark { background: rgba(200,150,12,0.25); color: inherit; border-radius: 2px; }
.nav-ac-meta { font-size: 11px; color: var(--text-3); }
.nav-ac-empty { padding: 16px 14px; font-size: 13px; color: var(--text-3); text-align: center; }

/* Right: menu + actions */
.nav-right {
  display: flex; align-items: center; gap: 0;
  justify-content: flex-end;
}
.nav-menu {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0 16px 0 0;
}
.nav-menu a {
  padding: 7px 12px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.85); border-radius: 6px;
  letter-spacing: 0.3px; position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 3px;
  left: 12px; right: 12px; height: 1.5px;
  background: var(--gold-light); transform: scaleX(0);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: #ffffff; }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25); border-radius: 8px;
  cursor: pointer; padding: 7px; margin-left: 10px;
}
.nav-hamburger span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile-drawer {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--green); padding: 20px 24px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25); z-index: 999;
  transform: translateY(-8px); opacity: 0;
  transition: all 0.3s ease; pointer-events: none;
}
body.dark-mode .nav-mobile-drawer { background: #155228; }
.nav-mobile-drawer.open {
  display: block; opacity: 1; transform: translateY(0); pointer-events: all;
}
.nav-mobile-search {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 20px;
}
.nav-mobile-search input {
  background: none; border: none; outline: none; color: #fff;
  font-size: 14px; width: 100%;
}
.nav-mobile-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-mobile-menu { list-style: none; margin-bottom: 20px; }
.nav-mobile-menu li a {
  display: block; padding: 12px 4px; color: rgba(255,255,255,0.9);
  font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
}
.nav-mobile-menu li a.active { color: var(--gold-light); font-weight: 700; }
.nav-mobile-actions { display: flex; gap: 12px; margin-top: 8px; }
.nav-mobile-actions button {
  flex: 1; padding: 12px; border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 8px; background: transparent; color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.nav-mobile-actions button.signup {
  background: var(--gold-light); color: var(--green); border-color: var(--gold-light);
}
.btn-nav-login {
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.9); background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35); border-radius: 6px;
}
.btn-nav-login:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(255,255,255,0.06);
}
.btn-nav-signup {
  padding: 8px 18px; font-size: 13px; font-weight: 700;
  color: var(--green); background: var(--gold-light); border-radius: 6px;
}
.btn-nav-signup:hover { background: #ffffff; color: var(--green); transform: translateY(-1px); }

.nav-cart {
  position: relative; padding: 9px 20px 9px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--green); background: #ffffff;
  border-radius: 50px; display: flex; align-items: center; gap: 8px;
  cursor: pointer; transition: var(--transition);
}
.nav-cart:hover { background: var(--gold-light); color: var(--green); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; background: var(--gold);
  color: #000; border-radius: 50%; font-size: 10px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Theme toggle on green navbar */
.theme-toggle {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: var(--gold-light) !important;
  color: var(--gold-light) !important;
  transform: rotate(20deg);
}

/* Cart Dropdown */
.cart-dropdown {
  position: fixed; top: calc(var(--nav-height) + 8px); right: 40px;
  width: 380px;
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--border-md); border-radius: var(--radius-xl);
  padding: 20px; box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: var(--transition); z-index: 999;
}
.cart-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-dd-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cart-dd-header h4 {
  font-family: 'Playfair Display', serif; font-size: 16px; color: var(--text);
}
.cart-dd-header button {
  background: none; color: var(--text-3); font-size: 18px;
}
.cart-items-list { max-height: 280px; overflow-y: auto; margin-bottom: 16px; }
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.cart-item-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--bg-card3); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 12px; color: var(--gold); }
.cart-item-id { font-size: 10px; color: var(--grey); }
.cart-item-remove { background: none; color: var(--grey); font-size: 14px; flex-shrink: 0; }
.cart-item-remove:hover { color: var(--red); }
.cart-empty-msg { text-align: center; padding: 30px; color: var(--grey); font-size: 14px; }
.cart-empty-msg span { font-size: 40px; display: block; margin-bottom: 10px; }
.cart-total-row {
  display: flex; justify-content: space-between; font-weight: 600;
  padding: 12px 0; border-top: 1px solid var(--border);
  margin-bottom: 12px; color: var(--text);
}
.cart-total-row span:last-child { color: var(--gold); }
.cart-logistics-note {
  font-size: 11px; color: var(--gold-light); text-align: center;
  padding: 8px; background: rgba(212,160,23,0.08);
  border: 1px solid rgba(212,160,23,0.15); border-radius: 6px;
  margin-bottom: 12px;
}
.btn-checkout-cart {
  width: 100%; padding: 13px; background: var(--gold);
  color: var(--black); font-weight: 700; font-size: 14px;
  border-radius: var(--radius); letter-spacing: 0.5px;
}
.btn-checkout-cart:hover { background: var(--gold-light); }

/* ============================================
   HERO
============================================ */

/* ── BACK BUTTON ─────────────────────────────────── */
#backBtn {
  position: fixed;
  top: calc(var(--nav-height) + 14px);
  left: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-md);
  border-radius: 20px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}
#backBtn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateX(-2px);
}
@media (max-width: 600px) {
  #backBtn { top: calc(var(--nav-height) + 10px); left: 14px; padding: 6px 12px; font-size: 12px; }
}

/* ── HERO CAROUSEL ───────────────────────────────── */
.hero {
  height: 100vh; min-height: 600px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* Carousel slides */
.hero-carousel {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}

/* Grain texture */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Central content */
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 640px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1; font-weight: 700; color: #ffffff;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.78); line-height: 1.7;
  margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; background: var(--gold);
  color: #000; font-weight: 700; font-size: 14px;
  border-radius: 50px; letter-spacing: 0.5px;
  box-shadow: 0 8px 32px rgba(212,160,23,0.35);
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212,160,23,0.45); color: #000;
}
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; background: rgba(255,255,255,0.1); color: #ffffff;
  font-weight: 600; font-size: 14px; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  cursor: pointer; font-family: 'Outfit', sans-serif;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: #ffffff; background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Carousel controls */
.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 44px; height: 44px;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%; color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); border-color: var(--gold); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-scroll-hint {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 2.5px; color: rgba(255,255,255,0.45);
  text-transform: uppercase; z-index: 3;
  animation: breathe 2.5s ease-in-out infinite;
}
.hero-scroll-hint::after {
  content: ''; width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ============================================
   SECTION BASE
============================================ */
section { padding: 100px 10vw; }
.section-tag {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 18px;
}
.section-desc {
  font-size: 16px; color: var(--text-2); line-height: 1.75; max-width: 540px;
}

/* ============================================
   SERVICES STRIP
============================================ */
.services-strip {
  padding: 64px 10vw;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  text-align: center; padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--green);
  background: var(--green);
  transition: var(--transition);
}
.service-card:hover {
  background: #155228;
  border-color: #155228;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30,107,53,0.4);
}
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.service-card h4 { font-size: 16px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.55; }

/* ============================================
   CATEGORIES
============================================ */
.categories-section { background: var(--bg); }
.categories-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; flex-wrap: wrap; gap: 24px;
}
.view-all-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.5px;
}
.view-all-link:hover { color: var(--gold-light); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  cursor: pointer; aspect-ratio: 3/4; background: var(--bg-card2);
  border: 1px solid var(--border); transition: var(--transition);
  text-decoration: none; display: block;
}
.cat-card:hover {
  transform: translateY(-6px); border-color: rgba(212,160,23,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.88) 100%);
  z-index: 1;
}
.cat-emoji {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -65%); font-size: 88px; z-index: 0;
  transition: var(--transition);
}
.cat-card:hover .cat-emoji { transform: translate(-50%, -70%) scale(1.08); }
.cat-bg-accent {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.07; transition: var(--transition);
}
.cat-card:hover .cat-bg-accent { opacity: 0.12; }
.cat-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 22px; z-index: 2;
}
.cat-price {
  display: inline-block; padding: 4px 10px;
  background: rgba(212,160,23,0.12); border: 1px solid rgba(212,160,23,0.3);
  border-radius: 20px; font-size: 11px; color: var(--gold-light);
  margin-bottom: 8px;
}
.cat-name {
  font-family: 'Playfair Display', serif; font-size: 24px;
  font-weight: 700; color: #ffffff; margin-bottom: 4px;
}
.cat-sub { font-size: 12px; color: rgba(255,255,255,0.58); margin-bottom: 12px; }
.cat-cta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* ============================================
   ABOUT
============================================ */
.about-section { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap {
  border-radius: var(--radius-xl); overflow: hidden; height: 500px;
  background: linear-gradient(135deg, var(--bg-card3) 0%, var(--bg-card) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 120px;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -16px; right: -16px;
  width: 110px; height: 110px; background: var(--gold);
  border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--black);
  text-align: center;
}
.about-badge strong { font-size: 30px; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 38px;
  font-weight: 700; color: var(--gold); display: block; line-height: 1;
}
.stat-lbl { font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }
.about-text .section-desc { color: var(--text-2); margin-bottom: 28px; }
.benefit-list { list-style: none; }
.benefit-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 15px; color: var(--text);
}
.benefit-list li::before {
  content: '✓'; width: 24px; height: 24px; flex-shrink: 0;
  background: rgba(42,107,63,0.2); border: 1px solid rgba(61,184,98,0.4);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--green-bright); font-size: 11px; font-weight: 800;
}

/* ============================================
   REVIEWS
============================================ */
.reviews-section { background: var(--bg); overflow: hidden; }
.reviews-header { text-align: center; margin-bottom: 56px; }
.reviews-header .section-tag { justify-content: center; }
.reviews-header .section-tag::before { display: none; }
.reviews-track-outer {
  overflow: hidden; position: relative;
}
.reviews-track-outer::before,
.reviews-track-outer::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 130px; z-index: 2; pointer-events: none;
}
.reviews-track-outer::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.reviews-track-outer::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.reviews-track {
  display: flex; gap: 24px;
  animation: scrollLeft 35s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
.review-card {
  width: 360px; flex-shrink: 0; padding: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); transition: var(--transition);
}
.review-card:hover { border-color: rgba(212,160,23,0.3); transform: translateY(-4px); }
.review-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.review-quote { font-size: 24px; color: var(--earth); opacity: 0.5; line-height: 1; margin-bottom: 6px; font-family: serif; }
.review-text { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.72; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--earth-dark); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--cream); font-family: 'Playfair Display', serif;
}
.review-author-info strong { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.review-author-info span { font-size: 12px; color: var(--grey); }

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
  margin: 0 10vw 80px; padding: 60px 64px;
  background: linear-gradient(135deg, #155228 0%, #1e6b35 50%, #2a8a48 100%);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.cta-banner::after {
  content: ''; position: absolute; left: 40%; bottom: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-banner-text { position: relative; z-index: 1; }
.cta-banner-text h2 {
  font-family: 'Playfair Display', serif; font-size: 32px;
  font-weight: 700; color: #ffffff; margin-bottom: 8px;
}
.cta-banner-text p { font-size: 15px; color: rgba(255,255,255,0.8); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 38px; background: var(--black); color: var(--gold);
  font-weight: 700; font-size: 15px; border-radius: 50px;
  white-space: nowrap; position: relative; z-index: 1;
}
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }
.btn-wa-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; background: #25D366;
  color: #ffffff; font-weight: 700; font-size: 14px;
  border-radius: 50px; white-space: nowrap;
  position: relative; z-index: 1;
  text-decoration: none; transition: all 0.3s;
}
.btn-wa-cta:hover { background: #1da851; transform: translateY(-2px); color: #ffffff; }

.btn-wa-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; background: rgba(255,255,255,0.15);
  color: #ffffff; font-weight: 700; font-size: 15px;
  border-radius: 50px; border: 2px solid rgba(255,255,255,0.3);
  white-space: nowrap; position: relative; z-index: 1;
  text-decoration: none; transition: var(--transition);
}
.btn-wa-cta:hover { background: rgba(255,255,255,0.25); color: #ffffff; border-color: rgba(255,255,255,0.6); }


/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-md);
  padding: 80px 10vw 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px; margin-bottom: 60px;
}
.footer-brand-logo { height: 48px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; max-width: 260px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--bg-card3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); }
.footer-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
  display: flex; gap: 10px; margin-bottom: 14px;
  font-size: 14px; color: var(--text-2);
}
.footer-contact-item .fci-icon { flex-shrink: 0; margin-top: 2px; font-size: 15px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input {
  flex: 1; padding: 10px 14px; background: var(--bg-card);
  border: 1px solid var(--border-md); border-radius: 6px;
  color: var(--cream); font-size: 13px; outline: none;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  padding: 10px 16px; background: var(--gold); color: var(--black);
  border-radius: 6px; font-weight: 600; font-size: 13px;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 12px;
}

/* ============================================
   WHATSAPP FAB
============================================ */
.wa-fab {
  position: fixed; bottom: 32px; right: 32px; z-index: 990;
  width: 58px; height: 58px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0;
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  transition: var(--transition); cursor: pointer;
  text-decoration: none; animation: fabGlow 2.5s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.12); }
@keyframes fabGlow {
  0%,100% { box-shadow: 0 8px 28px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,0.65); }
}

/* ============================================
   MODALS
============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-md);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(10px); transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--text); }
.modal-close {
  background: var(--bg-card3); color: var(--grey);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.14); color: var(--cream); }
.modal p { font-size: 14px; color: var(--text-2); margin-bottom: 24px; line-height: 1.6; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px;
  letter-spacing: 0.8px; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-md);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; outline: none; transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green); background: var(--green-light);
  outline: none;
}
.form-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-select option { background: var(--bg-card); color: var(--text); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-divider {
  text-align: center; color: var(--grey); font-size: 13px;
  margin: 20px 0; position: relative;
}
.form-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.1);
}
.form-divider span { position: relative; background: var(--dark-2); padding: 0 16px; }
.btn-google {
  width: 100%; padding: 12px; background: var(--bg-alt);
  border: 1px solid var(--border-md); border-radius: var(--radius);
  color: var(--text); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-google:hover { background: var(--bg-card3); }
.btn-full {
  width: 100%; padding: 14px; background: var(--gold);
  color: var(--black); font-weight: 700; font-size: 15px;
  border-radius: var(--radius); letter-spacing: 0.5px;
}
.btn-full:hover { background: var(--gold-light); }
.form-link-text { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 16px; }
.form-link-text a { color: var(--gold); font-weight: 500; }

/* Contact form modal */
.contact-modal { max-width: 520px; }

/* Profile prompt */
.profile-prompt .modal { max-width: 420px; text-align: center; }
.profile-prompt-icon { font-size: 56px; margin-bottom: 20px; }

/* ============================================
   PAGE HEADER
============================================ */
.page-header {
  padding: 160px 10vw 80px;
  background: linear-gradient(135deg, #0d2b14 0%, #1a4a2a 45%, #2a6b3f 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden; min-height: 320px;
  background-size: cover; background-position: center;
}
.page-header .ph-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.22; z-index: 0;
  transition: opacity 0.4s;
}
.page-header .ph-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px; opacity: 0.04; pointer-events: none;
}
.page-header::after {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 550px; height: 550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,107,63,0.35) 0%, transparent 65%);
}
.page-header-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
  position: relative; z-index: 1;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700; color: #ffffff; line-height: 1.12;
  position: relative; z-index: 1;
}
.page-header p { font-size: 17px; color: rgba(255,255,255,0.72); margin-top: 16px; max-width: 500px; position: relative; z-index: 1; }

/* ============================================
   TOAST
============================================ */
.toast-container {
  position: fixed; top: 90px; right: 24px; z-index: 20000;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  padding: 14px 20px; background: var(--bg-card);
  border: 1px solid var(--border-md); border-radius: var(--radius);
  font-size: 13px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: all; max-width: 340px; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid var(--green-bright); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--gold); }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes breathe {
  0%,100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   LOGISTICS NOTICE (sitewide)
============================================ */
.logistics-notice {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: rgba(212,160,23,0.08);
  border: 1px solid rgba(212,160,23,0.25); border-radius: 20px;
  font-size: 12px; color: var(--gold-light);
}
.logistics-notice-bar {
  background: rgba(212,160,23,0.08); border-top: 1px solid rgba(212,160,23,0.2);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  padding: 10px 10vw; text-align: center;
  font-size: 13px; color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
  section { padding: 80px 6vw; }
  .hero-content { padding: 0 6vw; max-width: 600px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-menu { display: none; }
  .nav-actions .btn-nav-login { display: none; }
  section { padding: 64px 5vw; }
  .hero-content { padding: 80px 5vw 0; max-width: 100%; }
  .cta-banner { margin: 0 5vw 60px; padding: 40px 28px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 60px 5vw 24px; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .page-header { padding: 120px 5vw 60px; }
}


/* ============================================
   DARK MODE TOGGLE
============================================ */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card2);
  border: 1.5px solid var(--border-md);
  color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
  transform: rotate(20deg);
}
body.dark-mode .theme-toggle {
  background: var(--bg-card2);
  border-color: var(--border-md);
  color: var(--gold-light);
}
body.dark-mode .theme-toggle:hover {
  background: rgba(212,160,23,0.12);
  border-color: var(--gold);
}

/* ── dark-mode surface overrides ─────────────────── */
body.dark-mode .services-strip,
body.dark-mode .about-section,
body.dark-mode footer {
  background: var(--bg-alt);
}
body.dark-mode .categories-section,
body.dark-mode .reviews-section,
body.dark-mode .hero { background: var(--bg); }
body.dark-mode .review-card,
/* service-card stays green in both themes */
body.dark-mode .modal { background: var(--bg-card); }
body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea {
  background: var(--bg-card2);
  border-color: var(--border-md);
  color: var(--text);
}
body.dark-mode .cart-dropdown { background: var(--bg-card); border-color: var(--border-md); }
/* page-header always uses green gradient — no dark-mode override */
body.dark-mode .toast { background: var(--bg-card); border-color: var(--border-md); }

.nav-cart-label { display: inline; }

@media (max-width: 1100px) {
  .navbar { padding: 0 24px; gap: 16px; }
  .nav-search-wrap { max-width: 320px; }
  .nav-menu a { padding: 7px 9px; font-size: 12px; }
  .btn-nav-login, .btn-nav-signup { display: none; }
}
@media (max-width: 860px) {
  /* Collapse to logo | (nothing) | hamburger */
  .navbar { grid-template-columns: auto 1fr auto; }
  .nav-search-wrap { display: none; }
  .nav-menu { display: none; }
  .nav-actions .btn-nav-login,
  .nav-actions .btn-nav-signup { display: none; }
  .nav-actions .nav-cart .nav-cart-label { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  .navbar { padding: 0 16px; }
}
