/* =====================================================================
   Bwengye Millers — Custom theme
   Palette:
     Primary  : Deep green   #1b5e20 / #2e7d32
     Secondary: Golden/yellow #f4b400 / #ffc107
     Support  : White         #ffffff
     Text     : Dark charcoal #2b2b2b
     Accent   : Natural agri  #8d6e63 / #c8e6c9
   ===================================================================== */

:root {
  --green-900: #0f3d16;
  --green-700: #1b5e20;
  --green-600: #2e7d32;
  --green-500: #388e3c;
  --green-100: #e8f5e9;
  --gold-500:  #f4b400;
  --gold-400:  #ffc107;
  --charcoal:  #2b2b2b;
  --earth:     #8d6e63;
  --sand:      #f7f4ee;
  --white:     #ffffff;
  --muted:     #6c757d;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--charcoal);
  background-color: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--green-900);
}

a { text-decoration: none; }

.section { padding: 5rem 0; }
.section-sand { background-color: var(--sand); }
.section-green { background-color: var(--green-100); }

.text-green   { color: var(--green-700) !important; }
.text-gold    { color: var(--gold-500)  !important; }
.text-charcoal{ color: var(--charcoal)  !important; }
.bg-green     { background-color: var(--green-700) !important; }
.bg-gold      { background-color: var(--gold-400)  !important; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-500);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.divider-gold {
  width: 70px;
  height: 4px;
  background: var(--gold-400);
  border-radius: 4px;
  margin: 0.5rem 0 1.5rem;
}
.text-center .divider-gold { margin-left: auto; margin-right: auto; }

/* ---- Goal / Strategic Objectives board (About page) --------------- */
.goals-board {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 61, 22, 0.08);
  border: 1px solid #dce8dc;
}
.goals-cell {
  padding: 2rem 1.75rem;
  position: relative;
}
.goals-cell-split {
  border-left: 1px solid #c8e0c8;
}
.goals-cell-bottom {
  border-top: 1px solid #c8e0c8;
}
.goals-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.goals-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-500);
  margin-bottom: 0.15rem;
}
.goals-cell h3 {
  color: var(--green-700);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.goals-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--charcoal);
}
.goals-list li { margin-bottom: 0.55rem; }
.goals-list li:last-child { margin-bottom: 0; }
.goals-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.goals-checks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.goals-checks .bi {
  color: var(--green-600);
  font-size: 1.15rem;
  line-height: 1.5;
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .goals-cell-split { border-left: 0; border-top: 1px solid #c8e0c8; }
}

/* ---- Buttons ------------------------------------------------------- */
.btn { border-radius: 50px; font-weight: 600; padding: 0.65rem 1.6rem; }
.btn-primary {
  background-color: var(--green-700);
  border-color: var(--green-700);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--green-900);
  border-color: var(--green-900);
}
.btn-gold {
  background-color: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--charcoal);
}
.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--gold-500);
  border-color: var(--gold-500);
  color: #000;
}
.btn-outline-light-green {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-light-green:hover {
  background: var(--white);
  color: var(--green-700);
}

/* ---- Top contact bar ---------------------------------------------- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1030;
}
.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  padding: 0.4rem 0;
}
.topbar a {
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  white-space: nowrap;
}
.topbar a:hover { color: var(--gold-400); }
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow: hidden;
}
.topbar-sep { opacity: 0.35; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.topbar-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.topbar-social a:hover { background: rgba(255, 255, 255, 0.12); color: var(--gold-400); }

/* ---- Navbar -------------------------------------------------------- */
.navbar {
  background: var(--white);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--gold-400);
  font-size: 1.4rem;
}
.brand-text { line-height: 1.1; }
.brand-text strong { color: var(--green-700); font-size: 1.15rem; }
.brand-text span { display: block; font-size: 0.7rem; color: var(--muted); letter-spacing: 1px; }
.navbar .nav-link {
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0.15rem;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--green-700); }
.navbar .nav-link.active::after {
  content: "";
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0;
  height: 3px; border-radius: 3px; background: var(--gold-400);
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(rgba(15, 61, 22, 0.82), rgba(27, 94, 32, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='%231b5e20'/%3E%3Cpath d='M30 8l4 12h12l-10 8 4 12-10-8-10 8 4-12-10-8h12z' fill='%23256a29'/%3E%3C/svg%3E");
  background-size: cover, 60px 60px;
  padding: 6rem 0;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.15;
}
.hero .lead { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; }
.hero .highlight { color: var(--gold-400); }

.hero-stats { gap: 2.5rem; }
.hero-stat h3 { color: var(--gold-400); font-size: 2rem; margin-bottom: 0; }
.hero-stat p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.9rem; }

/* ---- Hero slider (images + videos) -------------------------------- */
.hero-has-slider { position: relative; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slider .carousel-inner,
.hero-slider .carousel-item { height: 100%; }
.hero-slider .carousel-item { position: relative; overflow: hidden; }
.hero-media { width: 100%; height: 100%; object-fit: cover; display: block; }
/* YouTube/iframe cover trick (16:9 scaled to fill) */
iframe.hero-media {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
/* Neutral (non-green) scrim: keeps text readable without tinting the image. */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 45%, rgba(0,0,0,0.05) 100%);
}
.hero-has-slider .container { position: relative; z-index: 2; }
.hero-has-slider h1,
.hero-has-slider .lead { text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
@media (max-width: 767.98px) {
  /* Text is centred on phones — use an even scrim instead of a side gradient. */
  .hero-overlay { background: rgba(0,0,0,0.45); }
}
.hero-has-slider .carousel-indicators { z-index: 3; margin-bottom: 0.6rem; }
.hero-has-slider .carousel-control-prev,
.hero-has-slider .carousel-control-next { z-index: 3; width: 6%; opacity: 0.7; }
.hero-has-slider .carousel-control-prev:hover,
.hero-has-slider .carousel-control-next:hover { opacity: 1; }

/* ---- Page banner (inner pages) ------------------------------------ */
.page-banner {
  background: linear-gradient(rgba(15, 61, 22, 0.85), rgba(27, 94, 32, 0.9));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-banner h1 { color: #fff; }
.page-banner .breadcrumb { justify-content: center; }
.page-banner .breadcrumb a { color: var(--gold-400); }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,0.8); }

/* ---- Cards --------------------------------------------------------- */
.feature-card, .product-card, .service-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover, .product-card:hover, .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(27, 94, 32, 0.14);
}
/* Clickable cards (those containing a stretched-link) */
.service-card:has(.stretched-link),
.product-card:has(.stretched-link) { cursor: pointer; }

/* Service detail sidebar */
.panel-sidebar {
  background: var(--sand);
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.5rem;
}
.panel-sidebar .list-group-item { border-color: #eee; font-weight: 500; }
.panel-sidebar .list-group-item:hover { background: var(--green-100); color: var(--green-900); }
.icon-circle {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 1.1rem;
}
.product-card .icon-circle { background: #fff7e0; color: var(--gold-500); }

.product-card .price {
  font-weight: 700;
  color: var(--green-700);
  font-size: 1.15rem;
}
.badge-cat {
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
}

/* ---- Feature strip ------------------------------------------------- */
.mini-feature { display: flex; gap: 1rem; align-items: flex-start; }
.mini-feature .bi { color: var(--gold-500); font-size: 1.5rem; margin-top: 0.15rem; }

/* ---- About / picture view ----------------------------------------- */
.about-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 61, 22, 0.25);
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about-photo:hover img { transform: scale(1.04); }
.about-photo .photo-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.about-photo .photo-badge .bi { color: var(--gold-500); font-size: 1.15rem; }
/* About image slider — keep every slide a consistent shape */
.about-slider .carousel-item { aspect-ratio: 4 / 3; }
.about-slider .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.about-slider .carousel-indicators { margin-bottom: .6rem; }
.about-slider .carousel-indicators [data-bs-target] {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.75);
}
.about-slider .carousel-indicators .active { background: var(--gold-400); }

/* ---- CTA banner ---------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  border-radius: 20px;
  padding: 3rem;
}
.cta-band h2 { color: #fff; }

/* ---- Testimonials -------------------------------------------------- */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border-top: 4px solid var(--gold-400);
  height: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.testimonial-card .stars { color: var(--gold-400); }

/* ---- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding-top: 3.5rem;
}
.site-footer h5 { color: #fff; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .footer-brand { color: #fff; font-size: 1.3rem; font-weight: 700; }
.site-footer .footer-brand span { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  font-size: 0.85rem;
}
.social-icon {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  margin-right: 0.4rem;
  transition: background .2s ease;
}
.social-icon:hover { background: var(--gold-400); color: var(--green-900) !important; }

/* ---- Floating WhatsApp button ------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 1050;
  animation: wa-pulse 2.2s infinite;
}
.whatsapp-float:hover { color: #fff; background: #1ebe57; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- Forms --------------------------------------------------------- */
.form-control, .form-select {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d9d9d9;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}
.contact-info-card {
  background: var(--green-700);
  color: #fff;
  border-radius: 16px;
  padding: 2.2rem;
  height: 100%;
}
.contact-info-card .bi { color: var(--gold-400); }
.contact-info-card a { color: #fff; }

/* ---- Alerts -------------------------------------------------------- */
.alert-success { background: var(--green-100); border-color: var(--green-500); color: var(--green-900); }

/* ---- Responsive tweaks -------------------------------------------- */

/* Global safety: never allow horizontal scroll, always fluid media. */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.footer-bottom, .site-footer, .contact-info-card { overflow-wrap: anywhere; word-break: break-word; }

/* Large desktops */
@media (min-width: 1400px) {
  .container { max-width: 1240px; }
}

/* Tablets & small laptops (<= 991px) */
@media (max-width: 991.98px) {
  .section { padding: 3.75rem 0; }
  .hero { padding: 4.5rem 0; }
  .about-photo { margin-bottom: 1.5rem; }
  .navbar .nav-link.active::after { display: none; }
  .navbar-collapse { padding-top: .5rem; }
  .navbar-nav .nav-item .btn { display: inline-block; }
  .topbar { font-size: 0.75rem; }
  .cta-band { padding: 2.25rem; }
}

/* Landscape phones / small tablets (<= 767px) */
@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0; text-align: center; }
  .hero .d-flex { justify-content: center; }
  .hero-stats { gap: 1.75rem; justify-content: center; }
  .cta-band { padding: 1.75rem; text-align: center; }
  .cta-band .d-flex { justify-content: center; }
  .page-banner { padding: 3rem 0; }
  .section-subtitle { padding: 0 .5rem; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.6rem; right: 16px; bottom: 16px; }
}

/* Portrait phones (<= 575px) */
@media (max-width: 575.98px) {
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0; }
  .hero .btn-lg { width: 100%; }
  .hero-stats { gap: 1.25rem 2rem; }
  .hero-stat h3 { font-size: 1.6rem; }
  .feature-card, .product-card, .service-card, .testimonial-card { padding: 1.5rem 1.25rem; }
  .cta-band h2 { font-size: 1.4rem; }
  .cta-band .btn { width: 100%; }
  .btn-lg { padding: .6rem 1.2rem; font-size: 1rem; }
  .contact-info-card { padding: 1.5rem; }
  .ratio-21x9 { --bs-aspect-ratio: 75%; } /* taller map on phones */
  .topbar .container { gap: 0.4rem; }
  .topbar-contacts a span { font-size: 0.72rem; }
  .topbar-social a { width: 28px; height: 28px; }
}

/* ---------------------------------------------------------------------
   Gallery
   --------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f7f2;
  box-shadow: 0 6px 20px rgba(15, 61, 22, 0.08);
}
.gallery-item > a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  background: rgba(15, 61, 22, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: #33413a;
  font-weight: 500;
}
@media (max-width: 575.98px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
}

/* Small per-service gallery */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
}
.service-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 61, 22, 0.12);
}
.service-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-gallery-item:hover img { transform: scale(1.08); }
.service-gallery-item .gallery-zoom { font-size: 1.3rem; }

/* Cookie / tracking consent banner */
.bw-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: rgba(15, 61, 22, 0.97);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.bw-consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.bw-consent a { color: var(--gold-400); text-decoration: underline; }
.bw-consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
@media (max-width: 575.98px) {
  .bw-consent-inner { justify-content: center; text-align: center; }
}

/* Entry animation for gallery images (revealed on scroll via JS) */
.will-reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.will-reveal.reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
