/* ============================================================
   Biretwa Agro Supplies Ltd — theme from logo greens + gold sun
   Header: white top menu bar (brand) + sticky green nav
   ============================================================ */
:root {
  --green: #2f9e4f;
  --green-mid: #1c8a42;
  --green-dark: #146c32;
  --green-deep: #0c4a22;
  --leaf: #7bc67c;
  --gold: #f4c430;
  --gold-deep: #d4a017;
  --gold-light: #ffe08a;
  --cream: #fffaf1;
  --mint: #f4fbf6;
  --text: #1d3324;
  --muted: #5b6d61;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 108, 50, .14);
  --shadow-lg: 0 30px 80px rgba(12, 74, 34, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --green-grad: linear-gradient(135deg, #0c4a22, #146c32 42%, #2f9e4f 78%, #7bc67c);
  --gold-grad: linear-gradient(135deg, #d4a017, #f4c430, #ffe08a);
}

/* ============ BASE ============ */
* { box-sizing: border-box; scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff4cc 0%, transparent 50%),
    radial-gradient(900px 400px at 100% 0%, #d9f5e2 0%, transparent 46%),
    linear-gradient(180deg, #fffefb 0%, #f7fbf8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.01em; color: var(--green-deep); }
a { color: var(--green-dark); text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--green-deep); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #eef7f0; }
::-webkit-scrollbar-thumb { background: linear-gradient(#146c32, #2f9e4f); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #0c4a22; }

/* ============ HEADER — white top menu bar (brand + contacts) ============ */
.text-gold { color: var(--gold) !important; }

.topbar {
  background: #ffffff;
  color: var(--text);
  border-bottom: 1px solid #e4f3e8;
  box-shadow: 0 2px 14px rgba(20, 108, 50, .07);
  position: relative;
  z-index: 1031;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px; padding: .55rem 0;
}

/* brand block (shared: topbar, mini nav brand, offcanvas) */
.topbar-brand, .brand-mini {
  display: inline-flex; align-items: center; gap: .7rem; text-decoration: none;
}
.topbar-brand:hover { text-decoration: none; }
.brand-logo {
  height: 50px; width: 50px; border-radius: 12px; background: #fff; padding: 4px;
  border: 1px solid #e4f3e8;
  box-shadow: 0 6px 16px rgba(20, 108, 50, .15);
  transition: transform .3s ease;
}
.brand-logo-sm { height: 38px; width: 38px; padding: 3px; box-shadow: none; border-color: rgba(255,255,255,.25); }
.topbar-brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-text { line-height: 1.05; }
.brand-name {
  display: block; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: .05em;
}
.brand-sub {
  display: block; font-size: .64rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-light);
}
/* brand colors on the white top bar */
.topbar .brand-name { color: var(--green-deep); }
.topbar .brand-sub  { color: var(--gold-deep); }

/* contact quick links (dark text for white bg) */
.topbar-contact { font-size: .86rem; font-weight: 600; flex-wrap: wrap; justify-content: flex-end; }
.topbar-contact a, .topbar-hours {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--green-dark); padding: .32rem .7rem; border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.topbar-contact a i, .topbar-hours i { color: var(--gold-deep); }
.topbar-contact a:hover { background: var(--mint); color: var(--green-deep); }
.topbar-hours { color: var(--muted); }
.topbar a:focus-visible, .navbar-ba a:focus-visible {
  outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 8px;
}

/* ============ STICKY NAV (green) ============ */
.navbar-ba {
  background: linear-gradient(90deg, rgba(12,74,34,.97), rgba(20,108,50,.95) 55%, rgba(47,158,79,.93));
  backdrop-filter: blur(14px);
  border-bottom: 3px solid transparent;
  border-image: var(--gold-grad) 1;
  box-shadow: 0 10px 30px rgba(12, 74, 34, .22);
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar-ba.scrolled {
  background: linear-gradient(90deg, #0c4a22, #146c32 60%, #1c8a42);
  box-shadow: 0 14px 34px rgba(12, 74, 34, .32);
}
.navbar-ba .nav-link {
  color: #eef8f0 !important; font-weight: 600; position: relative;
  padding: .55rem .75rem !important;
}
.navbar-ba .nav-link::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .28rem; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.navbar-ba .nav-link:hover::after, .navbar-ba .nav-link.active::after { transform: scaleX(1); }
.navbar-ba .nav-link:hover, .navbar-ba .nav-link.active { color: var(--gold-light) !important; }
.navbar-ba .nav-ico { color: var(--gold); margin-right: .4rem; font-size: .9em; transition: transform .25s ease; }
.navbar-ba .nav-link:hover .nav-ico { transform: translateY(-1px) scale(1.08); }
.navbar-ba .dd-caret { color: var(--gold-light); margin-left: .35rem; font-size: .68em; transition: transform .3s ease; }
.navbar-ba .dropdown:hover .dd-caret,
.navbar-ba .dropdown.show .dd-caret { transform: rotate(180deg); }
.navbar-ba .nav-link[data-bs-toggle="dropdown"]::after { display: none; }
.navbar-ba .navbar-toggler { border-color: rgba(244,196,48,.5); }
.navbar-ba .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(244,196,48,.25); }
.navbar-ba .nav-cta { white-space: nowrap; }

.navbar-ba .dropdown-menu {
  border: 0; border-top: 3px solid var(--gold); border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow); padding: .5rem; min-width: 260px;
}
.navbar-ba .dropdown-item { border-radius: 8px; font-weight: 500; padding: .5rem .8rem; }
.navbar-ba .dropdown-item:hover { background: rgba(47, 158, 79, .12); color: var(--green-dark); }
.navbar-ba .dropdown-item i { color: var(--green); width: 1.15em; text-align: center; }
.navbar-ba .dropdown-item.all-item { font-weight: 800; color: var(--green-deep); background: rgba(244,196,48,.18); }
.navbar-ba .dropdown-item.all-item:hover { background: var(--gold-grad); color: var(--green-deep); }

/* mini brand inside sticky nav (mobile always; desktop only when scrolled) */
.brand-mini .brand-name { font-size: 1rem; letter-spacing: .04em; }
@media (max-width: 1199.98px) {
  .brand-mini { display: inline-flex !important; }
  .topbar-inner { min-height: 64px; }
  .brand-logo { height: 42px; width: 42px; }
  .brand-name { font-size: 1.1rem; }
}
@media (min-width: 1200px) {
  .brand-mini {
    display: inline-flex !important;
    max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    transform: translateX(-6px);
    transition: max-width .35s ease, opacity .3s ease, transform .35s ease;
  }
  .navbar-ba.scrolled .brand-mini { max-width: 180px; opacity: 1; transform: none; }
  .navbar-ba .dropdown-menu {
    margin-top: .45rem; display: block; opacity: 0; visibility: hidden;
    transform: translateY(-12px); pointer-events: none;
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
  }
  .navbar-ba .dropdown:hover > .dropdown-menu,
  .navbar-ba .dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
}

/* ============ BUTTONS ============ */
.btn { border-radius: 999px; font-weight: 700; transition: all .25s ease; }
.btn-ba {
  background: var(--green-grad); color: #fff !important; border: 0;
  padding: .72rem 1.25rem; box-shadow: 0 10px 24px rgba(20, 108, 50, .28);
}
.btn-ba:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 32px rgba(12,74,34,.35); }
.btn-gold {
  background: var(--gold-grad); background-size: 180% 180%; color: #3a2a00 !important; border: 0;
  font-weight: 800; padding: .72rem 1.25rem; box-shadow: 0 10px 26px rgba(212, 160, 23, .35);
}
.btn-gold:hover { color: #3a2a00 !important; background-position: right center; transform: translateY(-2px); }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold-light); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--green-deep) !important; transform: translateY(-2px); }

/* ============ HERO SLIDER ============ */
.hero-slider { position: relative; height: 82vh; min-height: 520px; overflow: hidden; background: var(--green-deep); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(1.05) saturate(1.08); }
.hero-slide.active .hero-slide-img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,74,34,.38) 0%, rgba(12,74,34,0) 28%, rgba(12,74,34,.15) 52%, rgba(12,74,34,.88) 100%);
}
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; color: #fff; padding: 0 0 clamp(1.6rem, 4.5vh, 3.2rem); }
.hero-caption h1 {
  color: #fff; font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.08;
  margin: 0 0 1rem; text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.hero-caption p { color: #e8f8ec; max-width: 42rem; }
.hero-slide-anim { animation: heroUp .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; z-index: 4; bottom: 1.4rem; right: 1.4rem; display: flex; gap: 8px; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: all .3s ease;
}
.hero-dots button.active { background: var(--gold); width: 30px; }
.hero-arrow {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(12,74,34,.4); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: all .25s ease; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.hero-arrow.prev { left: 1rem; } .hero-arrow.next { right: 1rem; }

/* ============ TYPOGRAPHY HELPERS / SECTIONS ============ */
.kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--green); font-weight: 800; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold-grad); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .55rem;
  padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep);
  background: var(--gold-grad); box-shadow: 0 6px 16px rgba(212,160,23,.4);
}
.display-title {
  font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  background: linear-gradient(90deg, #0c4a22, #2f9e4f 45%, #d4a017);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: 5rem 0; }
.section-title { font-weight: 800; letter-spacing: -.02em; }

/* ============ CARDS ============ */
.shine-card, .feature-card, .svc-card {
  background: linear-gradient(180deg, #ffffff, #f8fff9);
  border: 1px solid #e4f3e8; border-radius: var(--radius);
  box-shadow: var(--shadow); height: 100%; overflow: hidden;
  transition: .28s transform, .28s box-shadow, .28s border-color;
  position: relative;
}
.shine-card::before, .feature-card::before, .svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gold-grad); transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.shine-card:hover::before, .feature-card:hover::before, .svc-card:hover::before { transform: scaleY(1); }
.shine-card:hover, .feature-card:hover, .svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.icon-bubble {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e9fbea, #fff4c7);
  color: var(--green-dark); font-size: 1.4rem; transition: .25s;
}
.shine-card:hover .icon-bubble,
.feature-card:hover .icon-bubble,
.svc-card:hover .icon-bubble {
  background: linear-gradient(135deg, #2f9e4f, #f4c430);
  color: #fff; transform: rotate(-8deg) scale(1.06);
}
.trust-strip { margin-top: -40px; position: relative; z-index: 3; }
.img-cover { width: 100%; height: 220px; object-fit: cover; }
.product-img { height: 190px; object-fit: cover; }

/* ============ CTA BAND (gold) ============ */
.cta-band {
  background:
    radial-gradient(640px 320px at 92% -30%, rgba(255,255,255,.4), transparent 62%),
    linear-gradient(135deg, #e7b416 0%, #f4c430 45%, #ffdf7e 100%);
  color: var(--green-deep);
  border-radius: 24px;
  padding: 1.9rem 2.2rem;   /* was 3rem */
  box-shadow: 0 16px 36px rgba(212, 160, 23, .28);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -18% -60% 45%; height: 170px;
  background: radial-gradient(circle, rgba(12,74,34,.16), transparent 70%);
}
.cta-band h2 {
  color: var(--green-deep); position: relative; z-index: 1;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-bottom: .3rem;
}
.cta-band p { color: #5c470a; position: relative; z-index: 1; }

/* buttons tuned for the gold background (no HTML change needed) */
.cta-band .btn-gold {
  background: var(--green-grad);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(12, 74, 34, .3);
}
.cta-band .btn-gold:hover { color: #fff !important; transform: translateY(-2px); }
.cta-band .btn-outline-gold {
  border: 2px solid var(--green-deep);
  color: var(--green-deep) !important;
  background: rgba(255,255,255,.35);
}
.cta-band .btn-outline-gold:hover {
  background: var(--green-deep);
  color: #fff !important;
}

/* tighter wrapper spacing */
.cta-section { padding: 2.25rem 0 3rem; }
@media (max-width: 575.98px) {
  .cta-band { padding: 1.4rem 1.25rem; }
  .cta-section { padding: 1.75rem 0 2.25rem; }
}
/* ============ FOOTER (dark green) ============ */
.footer-ba {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(244, 196, 48, .08), transparent 60%),
    linear-gradient(180deg, #062e15 0%, #0c4a22 42%, #09371b 100%);
  color: #dceee1;
  position: relative;
}
.footer-ba::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold-grad);
}
.footer-ba h6 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(123,198,124,.3);
}
.footer-ba a { color: #cfe6d5; }
.footer-ba a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-col a { display: block; padding: .35rem 0; transition: padding .2s ease, color .2s ease; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(244,196,48,.3);
}
.footer-social a:hover { background: var(--gold); color: var(--green-deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }

/* ============ end FOOTER ============ */

.social-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #fff; border: 1px solid #dceee1; color: var(--green-dark); transition: .2s;
}
.social-btn:hover { background: var(--green); color: #fff; transform: translateY(-3px); }

/* ============ FLOATING ACTIONS ============ */
.float-actions { position: fixed; right: 16px; bottom: 16px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.float-actions a {
  display: flex; align-items: center; gap: 8px; padding: .7rem 1.1rem; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); transition: transform .2s ease;
}
.float-actions a:hover { transform: translateY(-3px); color: #fff; }
.fab-call { background: var(--green-grad); border: 1px solid var(--gold); }
.fab-wa { background: #25d366; }

/* ============ PAGE HERO ============ */
.page-hero {
  padding: 5.5rem 0 3.5rem; position: relative; color: #fff; overflow: hidden;
  background: var(--green-grad);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 300px at 85% 0%, rgba(244,196,48,.28), transparent 60%),
              url("../images/company/maize-field-01.jpg") center/cover;
  opacity: .22;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1, .page-hero .display-title { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.page-hero .kicker { color: var(--gold-light); }
.page-hero .kicker::before { background: var(--gold-grad); }
.page-hero .lead { color: #e8f8ec; }

/* ============ FORMS & COMPONENTS ============ */
.form-control, .form-select { border-radius: 12px; border-color: #d7eadc; padding: .8rem 1rem; }
.form-control:focus, .form-select:focus { border-color: #2f9e4f; box-shadow: 0 0 0 .25rem rgba(47,158,79,.15); }
.input-icon { position: relative; }
.input-icon i, .input-icon .material-icons {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--green);
}
.input-icon .form-control, .input-icon .form-select { padding-left: 44px; }
.badge-soft { background: #e8f7ec; color: var(--green-dark); font-weight: 700; }
.video-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.team-photo { width: 100%; height: 280px; object-fit: cover; }
.gallery-item { border-radius: 18px; overflow: hidden; height: 220px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.gallery-item:hover img { transform: scale(1.08); }
.admin-login { min-height: 100vh; background: linear-gradient(135deg, #f8fff9, #fff6d8 55%, #e7f8ec); }
.table thead { background: #eaf8ee; }

/* ============ OFFCANVAS (mobile menu) ============ */
.offcanvas { background: var(--green-grad); color: #fff; }
.offcanvas a { color: #e7f8ec; }
.offcanvas a:hover { color: var(--gold-light); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* ============ MEDIA QUERIES ============ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.active .hero-slide-img { animation: none; }
  .brand-mini { transition: none; }
}
@media (max-width: 1199.98px) {
  .hero-slider { height: auto; min-height: 78vh; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
  .hero-slider { min-height: 74vh; }
  .hero-arrow { display: none; }
  .float-actions a span { display: none; }
  .cta-band { padding: 1.6rem; }
  .section { padding: 2.8rem 0; }
  .topbar-inner { min-height: 58px; }
  .brand-logo { height: 38px; width: 38px; border-radius: 10px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .58rem; }
}