/* === CSS VARIABLES & GLOBAL STYLES === */
:root {
    --green-primary: #2F4F4F;
    --gold-accent: #DAA520;
    --bg-light: #F5F0E4;
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-heading: 'Lora', serif;
    --font-body: 'Lato', sans-serif;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

/* SCROLLBAR HIDDEN */
body::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--green-primary);
    margin-top: 0;
}

.section-padding { padding: 100px 0; }
.section-bg { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--gold-accent);
}

.text-accent {
    color: var(--gold-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* === NAVIGATION === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; 
    box-sizing: border-box;
}
.nav-logo { display: flex; align-items: center; }
.logo-image { max-height: 45px; width: auto; }

.nav-links a {
    text-decoration: none;
    color: var(--green-primary);
    font-weight: 700;
    margin-left: 30px;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.cta-button {
    background-color: var(--gold-accent);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: #c9941c;
    transform: translateY(-2px);
    color: var(--text-light);
}
.cta-button:hover::after { display: none; }
.hamburger-menu { display: none; font-size: 1.5rem; color: var(--green-primary); cursor: pointer; }

/* === HERO SECTION === */
.hero-header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('images/header.jpg') no-repeat center center/cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.07);
}
.hero-text-container {
    position: relative;
    z-index: 2;
    max-width: 820px; 
    transform: translateY(-173px);
    transition: transform 0.5s ease;
}
.hero-text-container h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--green-primary);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}
.hero-text-container p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--green-primary);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
}
.cta-button-hero {
    background-color: var(--green-primary); 
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button-hero:hover {
    background-color: #233a3a;
    transform: translateY(-3px);
}

/* === PRODUCT CATEGORIES (HOMEPAGE) === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.category-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.category-card img {
    width: 100%;
    height: auto;
    display: block;
}
.category-card h3 {
    text-align: center;
    padding: 20px;
    margin: 0;
    font-size: 1.3rem;
}

/* === ALTERNATING LAYOUT & OTHER SECTIONS === */
/* ... All other homepage section styles are unchanged ... */
.alternating-layout, .commitment-grid, .footer-grid { /* condensed */
    /* styles are the same as previous steps */
}

/* === STYLES FOR PRODUCT PAGES (e.g., cereals.html) === */
.page-header {
    background-color: var(--bg-light);
    text-align: center;
    border-bottom: 1px solid #ddd;
    /* THIS IS THE FIX: Padding-top is greater than nav-height */
    padding: 120px 20px 40px 20px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--green-primary);
    margin: 0;
}

.product-list-section {
    padding: 80px 0;
    background-color: #fff;
}

.product-grid {
    display: grid;
    /* Responsive grid with 2-4 columns */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-item {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 12px; /* Softer corners */
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-item h4 {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--green-primary);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    /* ... styles are unchanged ... */
}
@media (max-width: 768px) {
    .hero-text-container h1 { font-size: 2.8rem; }
    .hero-text-container p { font-size: 1.1rem; }
    h2.section-title { font-size: 2.2rem; }
    .section-padding { padding: 60px 0; }
    .nav-container { padding: 0 20px; }
    .nav-links { display: none; /* ... */ }
    .nav-links.active { display: flex; /* ... */ }
    .hamburger-menu { display: block; }
    /* ... other responsive styles are unchanged ... */
}