/* assets/css/style.css */

/* === CSS Variables === */
:root {
    /* Colors */
    --primary-color: #4F772D; /* Olive Green */
    --primary-light: #6A994E;
    --primary-dark: #31572C;
    --secondary-color: #C9A227; /* Gold */
    --secondary-light: #E9C46A;
    --accent-color: #F2E8CF; /* Natural Beige */
    
    /* Text Colors */
    --text-main: #2D3748;
    --text-muted: #718096;
    --text-light: #F7FAFC;
    
    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-alt: #F9FAFB;
    --bg-card: #FFFFFF;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Borders */
    --border-color: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === Dark Mode Variables === */
body.dark-mode {
    --text-main: #F7FAFC;
    --text-muted: #A0AEC0;
    --bg-main: #1A202C;
    --bg-alt: #2D3748;
    --bg-card: #2D3748;
    --border-color: #4A5568;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --accent-color: #2b3323; 
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === Utility Classes === */
.bg-alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-gold { color: var(--secondary-color); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background-color: var(--bg-card);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .brand-name,
.navbar.scrolled .nav-links a,
.navbar.scrolled .theme-toggle,
.navbar.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

.navbar:not(.scrolled) .brand-name,
.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .mobile-menu-btn {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar.scrolled .brand-name { color: var(--primary-color); }

.nav-links ul {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle, .mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
}

.mobile-menu-btn {
    display: none;
}

/* === Hero Section === */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../images/hero_bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
    width: 100%;
    transition: transform var(--transition-slow);
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* === Vision & Mission === */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.vm-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-top: 4px solid var(--primary-color);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.vm-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.vm-card ul {
    margin-top: 20px;
}

.vm-card ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-card ul li i {
    color: var(--secondary-color);
}

/* === Why Choose === */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.why-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* === Products === */
.product-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 250px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-features {
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-features li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features i {
    color: var(--primary-color);
}

/* === Comparison Table === */
.comparison-table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--accent-color);
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.comparison-table .highlight {
    background-color: rgba(79, 119, 45, 0.1);
    color: var(--primary-dark);
    font-weight: 600;
}

/* === Heritage Section === */
.heritage {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/heritage_farm.webp') center/cover fixed;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.heritage h2 {
    color: white;
    font-size: 3.5rem;
}

.heritage p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 20px auto;
}

/* === Leadership === */
.leadership-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.ceo-img {
    flex: 0 0 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent-color);
}

.ceo-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.ceo-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* === Testimonials === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

/* === Contact === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: var(--accent-color);
    padding: 15px;
    border-radius: 50%;
}

.contact-form {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* === Footer === */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
}

.footer-desc {
    margin: 15px 0;
    color: rgba(255,255,255,0.8);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* === Floating Elements === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
}

/* === Animations === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid, .vision-mission-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .leadership-content {
        flex-direction: column;
        text-align: center;
    }
    .ceo-img {
        flex: 0 0 250px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        padding: 20px;
        box-shadow: var(--shadow-md);
        display: none;
        flex-direction: column;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links a {
        color: var(--text-main) !important;
        display: block;
        padding: 10px 0;
    }
    
    .hero-title { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}
