/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --primary-green: #2F5D3A;
    --primary-dark: #1a3521;
    --accent-brown: #7A4B26;
    --accent-yellow: #F1B51C;
    --accent-yellow-dark: #d9a319;
    
    /* Backgrounds */
    --bg-soft: #F5F5EC;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    
    /* Typography */
    --text-dark: #222222;
    --text-muted: #555555;
    --text-light: #888888;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; 
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-green);
    line-height: 1.25;
    margin-bottom: 1rem;
}
h1 { font-weight: 700; font-size: 2.8rem; }
h2 { font-weight: 600; font-size: 2.2rem; }
h3 { font-weight: 600; font-size: 1.4rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }

/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 { margin-bottom: 0.75rem; }

.text-center { text-align: center; }
.bg-white { background-color: var(--bg-white); }
.bg-soft { background-color: var(--bg-soft); }

.section-label, .hero-label {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-brown);
    margin-bottom: 1rem;
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

.btn-primary { background-color: var(--primary-green); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}
.btn-secondary:hover { background-color: var(--primary-green); color: #fff; }

.btn-whatsapp {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}
.btn-whatsapp:hover { background-color: var(--accent-yellow-dark); }

/* =========================================
   4. NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.navbar { padding: 1rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; width: auto; }
.nav-menu { display: flex; gap: 2rem; }
.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--primary-green);
    font-size: 0.95rem;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--accent-brown); }
.nav-link.active::after {
    content: ''; display: block; width: 100%; height: 2px; background: var(--accent-yellow); margin-top: 4px; border-radius: 2px;
}
.nav-toggle, .nav-toggle-label { display: none; }

/* =========================================
   5. HERO STYLES
   ========================================= */
.hero {
    position: relative;
    background: url('/assets/images/hero-aranyaveda-farm.webp') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(rgba(15,50,25,0.85), rgba(15,50,25,0.70));
}
.hero-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 3rem;
    width: 100%;
}
.hero-text { color: #fff; max-width: 650px; }
.hero-text h1 { color: #fff; }
.hero-text p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 2.5rem; }
.hero-text .hero-label { color: var(--accent-yellow); }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================
   6. GRIDS & COMPONENTS
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.service-card {
    display: flex; flex-direction: column;
    background: var(--bg-card); padding: 2rem;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    transition: all 0.3s ease; text-align: left; height: 100%; 
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-bottom: 4px solid var(--accent-yellow); }
.service-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }

.product-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); display: flex; flex-direction: column;
    transition: 0.3s; border: 1px solid rgba(0,0,0,0.05);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-body { padding: 2.5rem; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.product-price { font-size: 1.5rem; color: var(--primary-green); font-weight: 700; margin: 0.5rem 0 1.5rem; }
.product-meta { font-size: 0.85rem; color: var(--accent-brown); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

.cta-strip { background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%); padding: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; padding: 3.5rem 0; }
.cta-text h3 { color: #fff; margin-bottom: 0.5rem; }
.cta-text p { color: rgba(255,255,255,0.8); margin: 0; }

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
    background: linear-gradient(135deg, #1f4d2b, #0f2e1b);
    color: #ffffff;
    padding: 4rem 0 1.5rem;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; }
.footer-col h4 { color: var(--accent-yellow); font-family: 'Poppins', sans-serif; font-size: 1rem; margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: rgba(255,255,255,0.8); }
.footer-col ul li a:hover { color: var(--accent-yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; margin-top: 3rem; color: rgba(255,255,255,0.6); }

/* =========================================
   8. BHOLA AI CHAT WIDGET
   ========================================= */
#bhola-chat-widget { position: fixed; bottom: 25px; right: 25px; z-index: 9999; }
#bhola-toggle { background: var(--primary-green); color: white; border: none; padding: 15px 24px; border-radius: 50px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; box-shadow: 0 8px 25px rgba(47, 93, 58, 0.4); transition: transform 0.2s; }
#bhola-toggle:hover { transform: scale(1.05); }
#bhola-chat-box { width: 360px; height: 520px; background: white; border-radius: var(--radius-lg); overflow: hidden; display: none; flex-direction: column; box-shadow: 0 15px 40px rgba(0,0,0,0.2); margin-top: 15px; border: 1px solid rgba(0,0,0,0.1); }
.bhola-header { background: var(--primary-green); color: white; padding: 18px; text-align: center; }
#bhola-messages { flex: 1; padding: 15px; overflow-y: auto; background: #f9f9f9; display: flex; flex-direction: column; gap: 10px; }
.bhola-message { padding: 12px 16px; border-radius: 14px; max-width: 85%; font-size: 0.95rem; line-height: 1.5; font-family: 'Poppins', sans-serif; }
.user-message { background: var(--primary-green); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-message { background: white; color: #222; align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.bhola-input-area {  
  padding: 12px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box; }
#bhola-input { flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid #ddd;
  padding: 12px 14px;
  outline: none;
  border-radius: 25px;
  font-family: inherit;
  transition: 0.3s;
  box-sizing: border-box; }
#bhola-input:focus { border-color: var(--primary-green); }
#bhola-send { background: var(--accent-yellow); color: var(--primary-dark); font-weight: 600; border: none; padding: 0 20px; border-radius: 50px; margin-left: 10px; cursor: pointer; transition: 0.2s; }
#bhola-send:hover { background: var(--accent-yellow-dark); }

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; } 
    section { padding: 3.5rem 0; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    
    .nav-toggle-label { display: block; cursor: pointer; padding: 0.5rem; }
    .nav-toggle-label span { display: block; width: 25px; height: 3px; background: var(--primary-green); margin: 5px 0; border-radius: 2px; }
    .nav-menu { display: none; flex-direction: column; width: 100%; background: #fff; position: absolute; top: 100%; left: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.1); padding: 1rem 0; }
    .nav-menu li { text-align: center; }
    .nav-link { display: block; padding: 1rem; }
    #nav-toggle:checked ~ .nav-menu { display: flex; }

    .hero-inner { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-buttons .btn { width: 100%; }
    
    .services-grid, .products-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    
    #bhola-chat-widget { bottom: 15px; right: 15px; }
    #bhola-chat-box { width: 90vw; height: 75vh; }
}

/* --- STRICT DROPDOWN FIX --- */
.dropdown {
    position: relative !important; 
}
.dropdown-menu {
    display: none !important; /* Forces it to hide initially */
    position: absolute !important;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 9999;
}
.dropdown:hover .dropdown-menu {
    display: block !important; /* Shows only on hover */
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #2F5D3A;
}
.dropdown-menu li a:hover {
    background: #F5F5EC;
}

/* --- STRICT FOOTER GRID FIX --- */
.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr !important;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

#bhola-attach-label { cursor: pointer; font-size: 1.2rem; padding: 10px; color: #1A3521; transition: 0.2s; }
#bhola-attach-label:hover { color: #F1B51C; }
.uploaded-img-preview { max-width: 150px; border-radius: 8px; margin-top: 5px; border: 2px solid #F1B51C; }