/* =====================================================================
==               DARK MODE THEME & PROFESSIONAL ENHANCEMENTS         ==
=====================================================================
*/

:root {
    /* Dark Theme Palette */
    --background-primary: #0F172A;      /* Main background - very dark blue/slate */
    --background-secondary: #1E293B;  /* Cards, alternate sections */
    --text-primary: #E2E8F0;           /* Main text - light gray/slate */
    --text-secondary: #94A3B8;         /* Lighter text for descriptions */
    --text-headings: #FFFFFF;          /* Headings */
    --accent-primary: #38BDF8;         /* A bright, vibrant blue for links and icons */
    --accent-cta: #F59E0B;             /* A warm gold/amber for buttons and CTAs */
    --border-color: #334155;           /* Subtle borders */
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15); /* A subtle glow effect for hovers */
    --success-green: #28a745;
}

/* --- Base & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Ensure anchor scrolling accounts for fixed header */
html { scroll-padding-top: 84px; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Prevent horizontal overflow caused by transforms */
html, body { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-headings);
    line-height: 1.3;
}

/* Gradient effect for section titles */
.section-header h2 {
    background: linear-gradient(90deg, var(--text-headings), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--accent-primary); transition: color 0.3s ease; }
a:hover { color: var(--text-headings); }

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Reusable Components --- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--accent-cta);
    color: var(--background-primary);
}
.btn-primary:hover {
    background-color: #ffb742; /* Brighter gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}


/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background-color: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-headings);
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-headings);
    z-index: 1000;
    position: relative;
    background: rgba(30, 41, 59, 0.95);
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-headings);
    text-align: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
}
.hero h1 {
    color: var(--text-headings);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- General Section Styling --- */
.section {
    padding: 6rem 0;
}
.section-bg {
    background-color: var(--background-secondary);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-icon {
    color: var(--accent-primary);
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-headings);
}
.stat-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Card-based Sections (Products, Process, Gallery) --- */
.products-grid, .process-grid, .media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card, .process-step, .media-thumbnail {
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover, .process-step:hover, .media-thumbnail:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.product-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.product-card-content, .process-step {
    padding: 1.5rem;
}

.process-step { text-align: center; }
.process-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--background-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}
.process-step h4 { margin-bottom: 0.5rem; }

/* --- Media Gallery Section --- */
.media-content-wrapper {
    position: relative;
    width: 100%;
    height: 220px;   
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    min-height: 220px;
}
.media-thumbnail:hover img {
    transform: scale(1.05);
}
.media-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    transition: opacity 0.3s ease;
}
.play-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-headings);
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.media-thumbnail:hover .play-icon-wrapper {
    opacity: 1;
}
.media-thumbnail:hover::after {
    opacity: 0;
}
.media-thumbnail h3 {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: var(--text-headings);
    z-index: 2;
    font-size: 1.25rem;
}

/* --- Testimonials & Parallax Effect --- */
.parallax {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('assets/contact-background.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Disable fixed background on mobile / small screens for performance */
@media (max-width: 1024px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* Reveal animations for progressive, performant scroll effects */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity 700ms cubic-bezier(.2,.9,.2,1), transform 700ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Utility for elements that should have subtle parallax */
[data-parallax] {
    transform: translateZ(0);
    will-change: transform;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-headings);
}
.testimonial-card p {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1.5rem;
}
.quote-icon {
    color: var(--accent-primary);
    opacity: 0.5;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}
.testimonial-author h4 {
    color: var(--text-headings);
    margin: 0;
}
.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Footer & Contact Form --- */
.footer {
    background-color: var(--background-primary);
    color: var(--text-primary);
    padding: 6rem 0 2rem;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}
.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.form-group {
    display: flex;
    gap: 1rem;
}
.contact-form-container button {
    width: 100%;
    padding: 1rem;
    cursor: pointer;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-info-item i {
    color: var(--accent-primary);
    margin-top: 5px;
}
.contact-info-item h4 {
    margin-bottom: 0.25rem;
}
.contact-info-item p, .contact-info-item a {
    margin: 0;
    color: var(--text-secondary);
}
.form-message {
    margin-top: 1rem;
    color: var(--success-green);
    font-weight: 500;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 300px);
        height: 100vh;
        background-color: var(--background-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        gap: 3rem;
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }
    
    .process-grid { grid-template-columns: 1fr; }
}
/* =================== SERVICES PAGE STYLES =================== */

/* Page Header Banner */
.page-header {
    background-color: var(--dark-blue);
    background-image: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), url('assets/about-farm-landscape.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f8f9fa; /* Or your preferred card color */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
}

.service-card-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Details Section */
.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-details-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details-cta p {
    margin-bottom: 1.5rem;
}

.delivery-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    max-width: max-content;
}

.contact-details-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-block i, .contact-info-block svg {
    flex-shrink: 0;
    margin-top: 5px;
    color: var(--primary-color);
}

.contact-info-block h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.contact-info-block p {
    margin: 0;
    font-size: 1rem;
}
/* Add this new button style to your existing .btn styles in global.css */
.btn-secondary {
    background-color: transparent;
    color: var(--accent-cta);
    border: 1px solid var(--accent-cta);
}

.btn-secondary:hover {
    background-color: var(--accent-cta);
    color: var(--background-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}
/* =================== FOOTER MAP IMAGE STYLES =================== */

/* =================== FOOTER MAP IMAGE STYLES =================== */

/* =================== FOOTER MAP BUTTON STYLES =================== */

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
    margin-top: 1rem;
    padding: 0.5rem 1.2rem; /* Custom padding for a smaller button */
    font-size: 0.9rem;
    font-weight: 500;
    
    /* Button Style */
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background-color: var(--accent-primary);
    color: var(--background-primary); /* Invert colors on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
}

.btn-map .btn-icon {
    width: 16px;
    height: 16px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* Header & Navigation */
    .mobile-menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 5rem 2rem 2rem;
        z-index: 999;
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%);
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        transform: translateX(0);
    }
    .nav-link {
        font-size: 1.25rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stats Section */
    .stat-number {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}