/* File: css/style.css */

/* --- CSS VARIABLES (Tea Green Theme) --- */
:root {
    --primary-color: #8cb369; /* Tea Green */
    --primary-dark: #6a8a4f;  /* Darker Green for hover */
    --secondary-color: #2d3436; /* Dark Grey for text */
    --light-bg: #f7fcf0; /* Very light green tint */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; }

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.top-bar a {
    color: var(--white);
    margin-left: 15px;
    font-weight: 300;
}

.top-bar i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* --- NAVIGATION --- */
/* --- NAVIGATION (Desktop Default) --- */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span { color: var(--primary-color); }

/* Default Desktop Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary-color); }



.cta-btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

/* Hamburger is Hidden on Desktop */
.hamburger {
    display: none;
}

/* --- MOBILE VIEW (Max Width 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Show Hamburger */
    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--secondary-color);
    }

    /* 2. Hide Contact Bar */
    .top-bar {
        display: none;
    }

    /* 3. Mobile Menu Setup */
    .nav-links {
        display: none; /* HIDDEN BY DEFAULT */
        position: absolute;
        top: 100%; /* Pushes it exactly below the navbar */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    /* 4. The Class that Javascript adds */
    .nav-links.active {
        display: flex; /* SHOWS WHEN CLICKED */
    }

    /* 5. Mobile Link Spacing */
    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
}
/* --- HERO SECTION (Split Layout) --- */
.hero {
    min-height: 90vh; /* Full screen height */
    width: 100%;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

/* Left Column: Image */
.hero-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image-box img {
    /* Optimization for tall image (1568x2688) */
    height: 80vh; /* Restrict height so it fits screen */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

/* Right Column: Text */
.hero-text-box {
    flex: 1;
    padding-left: 50px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 90%;
}

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

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(140, 179, 105, 0.3);
}
.btn-primary1 {
    background-color: #2d3436;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(140, 179, 105, 0.3);
}



.btn-primary1:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

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

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

/* Floating Animation for the product image */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column; /* Stack vertically on phone */
        padding-top: 40px;
        text-align: center;
        height: auto;
    }

    .hero-image-box {
        order: 1; /* Image first? Or change to 2 for text first */
        margin-bottom: 30px;
        width: 100%;
    }
    
    .hero-image-box img {
        height: 50vh; /* Smaller image on mobile */
    }

    .hero-text-box {
        order: 2;
        padding-left: 0;
        margin-bottom: 50px;
    }

    .hero h1 { font-size: 2.5rem; }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links { display: none; } /* Mobile menu hidden for simplicity */
    
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}



/* --- SECTIONS COMMON --- */
section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-header span {
    color: var(--primary-color);
    position: relative;
}

/* --- FEATURES / BENEFITS SECTION --- */
.features {
    background-color: var(--white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--light-bg);
    transition: 0.3s;
    /* Animation: Fade In Up */
    animation: fadeInUp 1s ease-out forwards;
}

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

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* --- ABOUT SECTION --- */
.about {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--white);
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    /* Image size recommendation: 600px x 400px */
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.checkmark-list {
    list-style: none;
    margin-top: 20px;
}

.checkmark-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.checkmark-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- PRODUCTS SECTION --- */

.products {
    background-color: var(--light-bg); /* Keep the light tea-green background */
    padding-bottom: 8rem;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-card {
    background: var(--white);
    border-radius: 20px; /* Softer, rounder corners */
    width: 320px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Very soft shadow */
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-12px); /* Floats higher on hover */
    box-shadow: 0 20px 40px rgba(140, 179, 105, 0.25); /* Greenish shadow glow */
}

.product-img-container {
    height: 280px;
    background: linear-gradient(180deg, #f9fff5 0%, #ffffff 100%); /* Subtle gradient behind image */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.product-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); /* Shadow on the flour bag itself */
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.05); /* Slight zoom on the image */
}

/* The "Natural" Badge */
.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color); /* The orange/gold accent */
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-details {
    padding: 25px;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.product-details h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.price-row {
    display: flex;
    justify-content: space-between; /* Puts price left, button right */
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.price {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 800;
}

.cart-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Circle button */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.1rem;
}

.cart-btn:hover {
    background-color: var(--primary-color);
    transform: rotate(15deg);
}
/* --- FOOTER --- */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 4rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #ccc;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
    }
    .about-img img {
        height: auto;
    }
}

/* --- PAGE HEADER (For Inner Pages) --- */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/product.png'); /* Reusing your product image as background */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 5%;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- INGREDIENT LIST STYLES --- */
.ingredient-list {
    margin: 15px 0;
    text-align: left;
}

.ingredient-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.ingredients-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ing-tag {
    background-color: var(--light-bg);
    border: 1px solid #e0e0e0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #555;
    font-weight: 500;
}

/* Highlight key ingredients */
.ing-tag.highlight {
    background-color: rgba(140, 179, 105, 0.2);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}


/* --- STORY PAGE SPECIFIC CSS --- */

/* The Intro Section (Text + Image) */
.story-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: var(--white);
    padding: 6rem 5%;
}

.story-content h3 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.story-image img {
    width: 100%;
    border-radius: 20px; /* Matches product card roundness */
    box-shadow: 20px 20px 0px var(--light-bg); /* Cool offset effect */
}

/* The Values Grid (Icons) */
.values-section {
    background-color: var(--light-bg);
    text-align: center;
    padding: 5rem 5%;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

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

/* Mobile Fix */
@media (max-width: 768px) {
    .story-intro {
        flex-direction: column;
        padding: 3rem 5%;
    }
}

/* --- CONTACT PAGE SPECIFIC CSS --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: var(--white);
    padding: 0 5% 5rem; /* Padding bottom only, top handled by header */
}

/* Left Side: Info & Map */
.contact-info-side {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.info-content p {
    color: #666;
    font-size: 0.95rem;
}

.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
    width: 100%;
}

/* Right Side: Form */
.contact-form-side {
    flex: 1.2; /* Slightly wider */
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(140, 179, 105, 0.1);
}

textarea.form-control {
    resize: vertical; /* Allow user to resize height only */
    min-height: 120px;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column-reverse; /* Form on top on mobile, map on bottom */
    }
}