/* ===== Makolele Country Farm – theme ===== */
:root {
  --green: #2f5a26;
  --green-dark: #1d3a17;
  --green-soft: #e9f0e3;
  --gold: #e3b22f;
  --gold-dark: #c7961a;
  --red: #c63c35;
  --cream: #faf7ef;
  --ink: #1f2a1c;
  --muted: #5d6857;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 58, 23, .12);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--green-dark); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
a { color: var(--green); }
a:hover { color: var(--gold-dark); }
section[id], header[id] { scroll-margin-top: 80px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: .5rem;
}

/* ===== Buttons ===== */
.btn-gold { background: var(--gold); color: var(--ink); border: 0; font-weight: 600; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; font-weight: 600; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline-success { --bs-btn-color: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green); --bs-btn-hover-border-color: var(--green); --bs-btn-active-bg: var(--green); --bs-btn-active-border-color: var(--green); }

/* ===== Top bar & nav ===== */
.topbar { background: var(--green-dark); color: #dfe8d9; font-size: .85rem; padding: .4rem 0; }
.topbar a { color: #dfe8d9; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); margin-right: .25rem; }

.navbar { background: rgba(250, 247, 239, .96); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: .5rem 0; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--red); line-height: 1; }
.brand-text small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-top: 3px; }
.navbar .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .85rem !important; border-radius: 8px; }
.navbar .nav-link:hover { color: var(--green); }
.navbar .nav-link.active { color: var(--green); background: var(--green-soft); }
.navbar .btn-nav { background: var(--green); color: #fff !important; margin-left: .5rem; }
.navbar .btn-nav:hover, .navbar .btn-nav.active { background: var(--green-dark); }
@media (max-width: 991.98px) {
  .navbar .btn-nav { margin: .5rem 0 0; text-align: center; }
  .navbar-collapse { padding: .5rem 0 1rem; }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: calc(100vh - 110px); min-height: calc(100svh - 110px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { position: absolute; inset: 0; height: 100%; }
.hero .carousel-item { background-size: cover; background-position: center; }
.hero .carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,38,15,.85) 0%, rgba(20,38,15,.55) 50%, rgba(20,38,15,.2) 100%); }
.hero .carousel-item.active { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; z-index: 3; }
.hero .carousel-indicators { z-index: 3; }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 5rem 0; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-content .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.1; margin-bottom: 1.25rem; max-width: 20ch; }
.hero .lead { max-width: 560px; color: #eef3ea; margin-bottom: 2rem; }
@media (max-width: 575.98px) {
  .hero-content { padding: 4rem 0 5rem; }
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
}

/* ===== Stats ===== */
.stats { background: var(--green); color: #fff; padding: 2.25rem 0; position: relative; z-index: 2; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--gold); }
.stat-unit { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); margin-left: .2rem; }
.stat p { margin: 0; font-size: .9rem; color: #dfe8d9; }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--green-soft); }
.section-head { margin-bottom: 3rem; }
.section-head p.mx-auto { max-width: 600px; }
@media (max-width: 767.98px) { .section { padding: 3.75rem 0; } }

/* ===== About ===== */
.about-images { position: relative; padding: 0 3rem 3rem 0; }
.about-images .img-main { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-images .img-accent { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--cream); box-shadow: var(--shadow); }
.badge-est { position: absolute; top: 1.5rem; left: -1rem; background: var(--gold); color: var(--ink); padding: .9rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow); text-align: center; line-height: 1.1; }
.badge-est strong { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.badge-est span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
@media (max-width: 575.98px) {
  .about-images { padding: 0; }
  .about-images .img-main { height: 360px; }
  .badge-est { left: .75rem; top: .75rem; }
}

.vm-tabs .nav-link { color: var(--green); font-weight: 600; border-radius: 999px; padding: .45rem 1.1rem; margin-right: .4rem; }
.vm-tabs .nav-link.active { background: var(--green); color: #fff; }
.vm-content { background: #fff; border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; box-shadow: var(--shadow); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
@media (min-width: 768px) { .check-list.two-col { columns: 2; column-gap: 2rem; } .check-list.two-col li { break-inside: avoid; } }

/* ===== Services ===== */
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(29,58,23,.18); }
.service-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.service-img-poultry { background: radial-gradient(circle at 30% 30%, #f3d27a, var(--gold) 45%, var(--gold-dark)); }
.service-img-poultry::before { content: "\F313"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; color: rgba(255,255,255,.55); }
.service-icon { position: absolute; left: 1.25rem; bottom: -24px; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.35rem; box-shadow: 0 6px 16px rgba(198,60,53,.35); }
.service-body { padding: 2.25rem 1.5rem 1.5rem; }
.service-body h3 { font-size: 1.4rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list span { background: var(--green-soft); color: var(--green-dark); font-size: .82rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; transition: background .2s, color .2s; }
.tag-list span:hover { background: var(--green); color: #fff; }

/* ===== Farm ===== */
.land-meter .progress { height: 14px; background: #dfe6d9; border-radius: 999px; }
.land-meter .progress-bar { background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .8s ease; }
.farm-accordion .accordion-item { border: 0; margin-bottom: .75rem; border-radius: var(--radius) !important; overflow: hidden; box-shadow: 0 4px 16px rgba(29,58,23,.08); }
.farm-accordion .accordion-button { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--green-dark); background: #fff; }
.farm-accordion .accordion-button:not(.collapsed) { background: var(--green); color: #fff; box-shadow: none; }
.farm-accordion .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.farm-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(227,178,47,.5); }
.mini-head { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 600; }

.borehole-chart { background: var(--green-soft); border-radius: 12px; padding: 1rem 1.25rem; }
.bh { display: grid; grid-template-columns: 90px 1fr 60px; align-items: center; gap: .75rem; font-size: .85rem; margin-bottom: .4rem; }
.bh b { text-align: right; font-variant-numeric: tabular-nums; }
.bh-bar { height: 10px; background: #fff; border-radius: 999px; overflow: hidden; }
.bh-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width 1s ease; }
.bh-bar i.muted { background: repeating-linear-gradient(45deg, var(--gold), var(--gold) 6px, var(--gold-dark) 6px, var(--gold-dark) 12px); }
.show .bh-bar i, .bh-bar.go i { width: var(--w); }

/* ===== Gallery ===== */
.section-dark { background: var(--green-dark); color: #dfe8d9; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.gallery-filters { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.gallery-filters button { background: transparent; color: #dfe8d9; border: 1px solid rgba(255,255,255,.3); padding: .4rem 1.1rem; border-radius: 999px; font-weight: 500; transition: all .2s; }
.gallery-filters button:hover { border-color: var(--gold); color: var(--gold); }
.gallery-filters button.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.g-item { transition: opacity .35s ease, transform .35s ease; }
.g-item.hide { display: none; }
.g-tile { display: block; width: 100%; height: 260px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: #111; }
@media (min-width: 992px) { .g-tile.tall-lg { height: 420px; } }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.g-tile:hover img, .g-tile:focus-visible img { transform: scale(1.07); opacity: .85; }
.g-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; text-align: left; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.7)); transform: translateY(8px); opacity: .9; transition: all .3s; }
.g-tile:hover .g-cap { transform: none; opacity: 1; }

#lightbox .modal-content { background: transparent; border: 0; position: relative; align-items: center; }
#lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lb-close { position: absolute; top: -2.5rem; right: 0; z-index: 2; opacity: 1; }
.lb-cap { color: #fff; margin: .75rem 0 0; text-align: center; font-weight: 500; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--green-dark); font-size: 1.3rem; display: grid; place-items: center; z-index: 2; }
.lb-nav:hover { background: var(--gold); }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
.modal-backdrop.show { opacity: .9; }

/* ===== Markets ===== */
.panel { background: #fff; border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow); }
.panel-green { background: var(--green); color: #eef3ea; }
.panel-green h2 { color: #fff; }
.panel-green .eyebrow { color: var(--gold); }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.market-grid div { display: flex; align-items: center; gap: .7rem; background: var(--green-soft); padding: .8rem 1rem; border-radius: 10px; font-weight: 500; transition: transform .2s; }
.market-grid div:hover { transform: translateX(4px); }
.market-grid i { color: var(--red); font-size: 1.2rem; }
.compliance { list-style: none; padding: 0; margin: 0; }
.compliance li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.compliance li:last-child { border-bottom: 0; }
.compliance i { color: var(--gold); font-size: 1.15rem; }
.compliance em { color: #c9d6c1; }

/* ===== Contact ===== */
.contact-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.1rem; }
.contact-list i { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.contact-list a { word-break: break-word; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/8; background: #dfe6d9; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 575.98px) { .map-wrap { aspect-ratio: 4/3; } }
.enquiry { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(47,90,38,.2); }

/* ===== Footer ===== */
.footer { background: var(--green-dark); color: #cfdac8; padding: 2.5rem 0; }
.footer a { color: var(--gold); text-decoration: none; }
.footer-logo { width: 110px; height: 110px; border-radius: 12px; background: #fff; padding: 4px; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 1030; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
