/*
Theme Name: Bashe Dairy Farm Child
Template: astra
Description: Custom child theme for Bashe Dairy Farm Limited (bdf.co.tz) implementing the BDF brand design system.
Version: 1.0.0
Text Domain: bdf-child
*/

:root {
  --bdf-green:    #1B5E20;
  --bdf-green-rgb: 27, 94, 32;
  --bdf-gold:     #F9A825;
  --bdf-white:    #FFFFFF;
  --bdf-cream:    #F5F5F0;
  --bdf-dark:     #212121;
  --bdf-orange:   #E65100;
  --bdf-whatsapp: #25D366;
  --bdf-radius:   12px;
  --bdf-shadow:   0 6px 24px rgba(0,0,0,0.08);
}

/* ---------- Base typography ---------- */
body,
button,
input,
select,
textarea {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--bdf-dark);
  background: var(--bdf-cream);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.elementor-heading-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--bdf-dark);
}

strong, b { font-weight: 600; }

a { color: var(--bdf-green); }
a:hover { color: var(--bdf-gold); }

/* ---------- Header: logo image is branding enough, hide the redundant text title ---------- */
.ast-site-identity .site-title { display: none; }

/* ---------- Sticky header ---------- */
.site-header.sticky,
.ast-sticky-header-active .main-header-bar {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
}

/* ---------- Order Now nav button ---------- */
.nav-order-btn,
.bdf-order-now a {
  background: var(--bdf-gold) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.3s;
  display: inline-block;
}
.nav-order-btn:hover,
.bdf-order-now a:hover { background: var(--bdf-green) !important; }

/* ---------- Stats strip ---------- */
.bdf-stats-strip { background: var(--bdf-green); color: #fff; padding: 50px 0; }
.bdf-stats-strip .bdf-stat-number { font-size: 2.5rem; font-weight: 800; color: var(--bdf-gold); font-family: 'Montserrat', sans-serif; }
.bdf-stats-strip .bdf-stat-label { color: #fff; font-size: 1rem; }

/* ---------- Cards ---------- */
.bdf-card {
  background: #fff;
  border-radius: var(--bdf-radius);
  box-shadow: var(--bdf-shadow);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bdf-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.14); }
.bdf-card .bdf-card-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ---------- Section headings ---------- */
.bdf-eyebrow { color: var(--bdf-gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.85rem; }
.bdf-section-heading { color: var(--bdf-green); font-family: 'Montserrat', sans-serif; }
.bdf-section-subtitle { color: #666; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.bdf-btn, .wp-block-button__link {
  background: var(--bdf-green);
  color: #fff !important;
  border-radius: 6px;
  padding: 14px 32px;
  font-weight: 700;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}
.bdf-btn:hover, .wp-block-button__link:hover { background: var(--bdf-gold); transform: translateY(-2px); }
.bdf-btn-gold { background: var(--bdf-gold); }
.bdf-btn-gold:hover { background: var(--bdf-orange); }

/* ---------- WooCommerce product cards ---------- */
.woocommerce ul.products li.product {
  background: #fff;
  border-radius: var(--bdf-radius);
  box-shadow: var(--bdf-shadow);
  padding: 16px;
}
.woocommerce ul.products li.product a.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
  background: var(--bdf-green);
  color: #fff !important;
  border-radius: 6px;
  transition: background 0.3s;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--bdf-gold);
}
.woocommerce span.price, .woocommerce ul.products li.product .price { color: var(--bdf-orange); font-weight: 700; }

/* ---------- CTA banner ---------- */
.bdf-cta-banner { background: var(--bdf-green); color: #fff; text-align: center; padding: 80px 20px; border-radius: var(--bdf-radius); }
.bdf-cta-banner h2 { color: #fff; }
.bdf-cta-banner .bdf-btn-gold { font-size: 1.2rem; padding: 16px 40px; }

/* ---------- WhatsApp float ---------- */
.bdf-whatsapp-float {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--bdf-whatsapp);
  color: #fff; border-radius: 50%;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; z-index: 9999;
  box-shadow: 0 4px 15px rgba(37,211,102,0.5);
  transition: transform 0.3s;
  text-decoration: none;
}
.bdf-whatsapp-float:hover { transform: scale(1.12); color: #fff; }

/* ---------- Back to top ---------- */
.bdf-back-to-top {
  position: fixed; bottom: 100px; right: 33px;
  background: var(--bdf-green); color: #fff;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 9998; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.bdf-back-to-top.show { opacity: 1; pointer-events: auto; }
.bdf-back-to-top:hover { transform: translateY(-4px); color: #fff; }

/* ---------- Preloader ---------- */
#bdf-preloader {
  position: fixed; inset: 0; background: #fff; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
#bdf-preloader img { width: 140px; animation: bdf-pulse 1.2s ease-in-out infinite; }
@keyframes bdf-pulse { 0%,100% { opacity: 0.5; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1); } }
#bdf-preloader.bdf-hide { opacity: 0; pointer-events: none; }

/* ---------- Smooth scroll ---------- */
html { scroll-behavior: smooth; }

/* ---------- Footer ---------- */
.bdf-footer { background: #16491b; color: #eee; padding: 60px 0 20px; }
.bdf-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.bdf-footer a { color: #d7e6d8; text-decoration: none; }
.bdf-footer a:hover { color: var(--bdf-gold); }
.bdf-footer .bdf-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); margin-right: 8px; font-size: 16px;
}
.bdf-footer .bdf-socials a:hover { background: var(--bdf-gold); color: #fff; }
.bdf-footer .bdf-footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.9rem; color: #b7c8b8; }

/* ---------- Popup / modal ---------- */
.bdf-welcome-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.bdf-welcome-popup-overlay.bdf-show { opacity: 1; pointer-events: auto; }
.bdf-welcome-popup {
  background: #fff; border-radius: var(--bdf-radius); max-width: 420px; width: 90%;
  padding: 40px 32px; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.bdf-welcome-popup .bdf-popup-close {
  position: absolute; top: 12px; right: 16px; font-size: 1.5rem; cursor: pointer; color: #999; background:none; border:none;
}
.bdf-welcome-popup h3 { color: var(--bdf-green); margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .bdf-cta-banner { padding: 50px 16px; }
  .bdf-stats-strip .bdf-stat-number { font-size: 2rem; }
  .bdf-whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
  .bdf-back-to-top { bottom: 84px; right: 24px; width: 40px; height: 40px; }
}
