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

:root {
    --primary-color: #2d5016;
    --secondary-color: #6b8e23;
    --accent-color: #ff8c00;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,140,0,0.3);
}

.cta-button:hover {
    background: #ff6f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.4);
}

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

.cta-button-white:hover {
    background: var(--bg-light);
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.link-button {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.link-button:hover {
    color: var(--primary-color);
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--bg-light);
}

.products h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    padding: 20px 20px 10px;
}

.product-card p {
    color: var(--text-light);
    padding: 0 20px 20px;
}

.text-center {
    text-align: center;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: var(--white);
}

.why-us h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

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

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-light);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

.testimonials h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
}

.testimonial p {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.8;
}

.testimonial strong {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
}

/* About Content */
.about-content {
    padding: 80px 0;
}

.about-story {
    max-width: 900px;
    margin: 0 auto;
}

.about-main-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-story h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.about-story p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.milestone {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

.milestone img {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

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

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

.reason-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reason-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.reason-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.reason-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.values-list {
    list-style: none;
    margin: 30px 0;
}

.values-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    font-size: 1.1rem;
    color: var(--text-light);
}

.values-list strong {
    color: var(--primary-color);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.category-section {
    margin-bottom: 80px;
}

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

.category-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

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

.product-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    padding: 20px 20px 10px;
}

.product-item p {
    color: var(--text-light);
    padding: 0 20px 20px;
}

.product-info-box {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.product-info-box h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-info-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item img {
    width: 40px;
    height: 40px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.map-placeholder {
    margin-top: 40px;
}

.map-placeholder img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact Form */
.contact-form-container h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form-container > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-form {
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: var(--secondary-color);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Legal Pages */
.legal-page {
    padding: 60px 0;
}

.legal-page .container {
    max-width: 900px;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.legal-page h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.legal-page p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-page ul,
.legal-page ol {
    margin: 20px 0 20px 40px;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-page li {
    margin-bottom: 10px;
}

.legal-page strong {
    color: var(--text-dark);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
}

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

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

.footer-col ul li a {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    /* REMOVED: .nav-links { display: none; } - this was preventing the mobile menu from working.
       The menu is hidden off-screen with left: -100% instead (see mobile menu section below) */
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .cta-section h2,
    .products h2,
    .why-us h2,
    .testimonials h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Featured Product Styles */
.product-item.featured-product {
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.2);
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-size,
.product-price {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* iOS Safari Mobile Menu Fixes */
.mobile-menu-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    touch-action: manipulation;
}

.nav-links a {
    -webkit-tap-highlight-color: rgba(45, 80, 22, 0.1);
    touch-action: manipulation;
}

/* Fix for iOS Safari viewport */
@supports (-webkit-touch-callout: none) {
    .nav-links {
        position: fixed !important;
    }
}

/* Prevent double-tap zoom on buttons */
button, .mobile-menu-btn, .lang-btn {
    touch-action: manipulation;
}

/* iOS Mobile Menu Additional Fixes */
.mobile-menu-btn {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer !important;
    touch-action: manipulation;
    padding: 10px;
}

.nav-links a {
    -webkit-tap-highlight-color: rgba(45, 80, 22, 0.1);
    touch-action: manipulation;
}

/* Force fixed positioning on iOS */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .nav-links {
            position: fixed !important;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }
        
        .nav-links.active {
            transform: translateX(0) !important;
        }
    }
}

/* Prevent double-tap zoom */
button, .mobile-menu-btn, .lang-btn, a {
    touch-action: manipulation;
}
/* Pure CSS Mobile Menu - No JavaScript Required */
/* Works on ALL devices including iOS */

/* Hide the checkbox */
.menu-toggle {
    display: none;
}

/* Mobile menu button styling */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
    position: relative;
}

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

.mobile-menu-btn .hamburger {
    display: inline;
}

/* When checkbox is checked, swap icons */
.menu-toggle:checked + .mobile-menu-btn .hamburger {
    display: none;
}

.menu-toggle:checked + .mobile-menu-btn .close {
    display: inline;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    /* Show menu when checkbox is checked */
    .menu-toggle:checked ~ .nav-links {
        left: 0;
    }
    
    /* Close menu when clicking a link (except language switcher) */
    .nav-links li:not(.language-switch) a {
        display: block;
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 769px) {
    .menu-toggle,
    .mobile-menu-btn {
        display: none;
    }
}

/* Fix icon display - only show one at a time */
.mobile-menu-btn .hamburger {
    display: inline-block;
}

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

/* When menu is open (checkbox checked), swap icons */
.menu-toggle:checked + .mobile-menu-btn .hamburger {
    display: none !important;
}

.menu-toggle:checked + .mobile-menu-btn .close {
    display: inline-block !important;
}

/* Ensure spans don't stack */
.mobile-menu-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-btn {
    position: relative;
    width: 40px;
    height: 40px;
}

/* Ensure mobile menu structure works correctly */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }
    
    /* Menu toggle checkbox - completely hidden */
    .menu-toggle {
        display: none !important;
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    
    /* Mobile menu button positioning */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    /* Hide desktop nav on mobile */
    .nav-links {
        position: fixed !important;
        left: -100% !important;
        transition: left 0.3s ease !important;
    }
    
    /* Show menu when checkbox is checked */
    .menu-toggle:checked ~ .nav-links {
        left: 0 !important;
    }
}

/* ========================================
   WORKING MOBILE MENU - Pure CSS
   Checkbox is now BEFORE nav-links!
   ======================================== */

/* Hide checkbox completely */
.menu-toggle {
    display: none !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
    z-index: 1001;
}

.mobile-menu-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    line-height: 1;
}

/* Default state: show hamburger */
.mobile-menu-btn .hamburger {
    display: block;
}

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

/* Checked state: swap icons */
.menu-toggle:checked + .mobile-menu-btn .hamburger {
    display: none !important;
}

.menu-toggle:checked + .mobile-menu-btn .close {
    display: block !important;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 80px;
        left: -100% !important;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    /* CRITICAL: Show menu when checkbox is checked
       ~ selector works because checkbox comes BEFORE nav-links in HTML! */
    .menu-toggle:checked ~ .nav-links {
        left: 0 !important;
    }
}
