:root {
            --primary-dark: #2C2C2C;       /* Charcoal */
            --primary-accent: #C58940;     /* Golden Crust */
            --bg-light: #FAF9F6;           /* Off-white */
            --bg-white: #FFFFFF;
            --text-body: #4A4A4A;
            --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
            --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
            --radius: 8px;
        }

        html {
            scroll-behavior: smooth;
        }

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

        body {
            font-family: 'Open Sans', sans-serif;
            line-height: 1.8;
            color: var(--text-body);
            background-color: var(--bg-light);
            overflow-x: hidden;
        }

        h1, h2, h3, h4, a.logo {
            font-family: 'Montserrat', sans-serif;
            color: var(--primary-dark);
        }

        /* --- Global Variables (Ensure these exist in your main CSS file) --- */
        :root {
            --primary-dark: #333; 
            --primary-accent: #d35400; /* Example accent color */
            --bg-white: #fff;
            --text-body: #555;
            --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
            --radius: 4px;
        }

        /* --- Base Navigation Styles (Desktop) --- */
        header {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 0 2rem;
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            height: 80px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

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

        .nav-links {
            list-style: none;
            display: flex;
            gap: 30px;
            align-items: center;
            margin: 0;
            padding: 0;
        }

        .nav-links li { position: relative; }

        .nav-links a {
            text-decoration: none;
            color: var(--primary-dark);
            font-weight: 600;
            font-size: 0.9rem;
            transition: color 0.3s ease;
            padding: 10px 0;
            display: block;
        }

        /* Dropdown Base Styles */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: var(--bg-white);
            min-width: 220px;
            box-shadow: var(--shadow-hover);
            border-radius: var(--radius);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 10px 0;
            z-index: 999;
        }

        .nav-links li:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .dropdown-menu li { width: 100%; }

        .dropdown-menu a {
            padding: 10px 20px;
            font-size: 0.85rem;
            color: var(--text-body);
        }

        .dropdown-menu a:hover {
            background-color: #f5f5f5;
            color: var(--primary-accent);
        }

        .has-dropdown > a::after {
            content: ' ▼';
            font-size: 0.6em;
            vertical-align: middle;
            color: #ccc;
        }

        /* Hamburger Icon (Hidden on Desktop) */

        .hamburger {
            display: none;
            cursor: pointer;
            margin-left: auto; /* <--- THIS IS THE KEY FIX */
        }

        /* Ensure your nav container spans the full width so the right edge is actually the edge of the screen */
        nav {
            width: 100%;       /* Ensures the container fills the header */
            max-width: 1200px;
            margin: 0 auto;
            height: 80px;
            display: flex;
            justify-content: space-between; /* This usually works, but margin-left: auto forces it */
            align-items: center;
        }
        .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            transition: all 0.3s ease-in-out;
            background-color: var(--primary-dark);
        }

        /* --- MOBILE STYLES (The Fix) --- */
        @media (max-width: 768px) {
            .hamburger {
                display: block; /* Show hamburger on mobile */
            }

            .hamburger.active .bar:nth-child(2) { opacity: 0; }
            .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
            .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

            .nav-links {
                position: fixed;
                left: -100%; /* Hide off-screen by default */
                top: 80px; /* Below the header */
                flex-direction: column;
                background-color: var(--bg-white);
                width: 100%;
                text-align: left; /* Align text to left for cleaner mobile look */
                transition: 0.3s;
                box-shadow: 0 10px 10px rgba(0,0,0,0.1);
                padding: 20px 0;
                gap: 0;
                height: calc(100vh - 80px); /* Full height */
                overflow-y: auto; /* Allow scrolling if menu is long */
            }

            .nav-links.active {
                left: 0; /* Slide in */
            }

            .nav-links li {
                width: 100%;
                padding: 0 2rem;
            }

            .nav-links a {
                padding: 15px 0;
                border-bottom: 1px solid #eee;
                font-size: 1.1rem;
            }

            /* Fix Dropdowns for Mobile (Make them accordion/stacked instead of hover) */
            .dropdown-menu {
                position: static; /* Stack naturally */
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                padding-left: 20px; /* Indent sub-items */
                display: none; /* Hide sub-items by default on mobile */
                min-width: 100%;
                background-color: #f9f9f9;
            }

            /* Use a class to toggle mobile dropdowns via JS, OR just show them always: */
            /* For simplicity, let's show them on hover/tap or make them always visible indented */
            .nav-links li:hover .dropdown-menu {
                display: block;
            }
        }

        /* --- Hero Section --- */
        .hero {
            /* Placeholder for a bread background */
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            padding: 0 20px;
        }

        .hero-content {
            max-width: 800px;
            animation: fadeIn 1s ease-out;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .hero p.subtitle {
            font-size: 1.4rem;
            font-weight: 300;
            margin-bottom: 2.5rem;
            opacity: 0.95;
        }

        /* --- Buttons --- */
        .btn {
            display: inline-block;
            padding: 16px 32px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .btn:hover { transform: translateY(-3px); }

        .btn-primary {
            background-color: var(--primary-accent);
            color: white;
            border: 2px solid var(--primary-accent);
            box-shadow: 0 4px 15px rgba(197, 137, 64, 0.4);
        }

        .btn-primary:hover {
            background-color: #a45a1b;
            border-color: #a45a1b;
        }

        .btn-secondary {
            background-color: transparent;
            color: white;
            border: 2px solid white;
            margin-left: 15px;
        }

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

        /* --- Global Layout --- */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }

        section { padding: 6rem 0; }

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

        .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .section-header .divider {
            height: 3px;
            width: 70px;
            background-color: var(--primary-accent);
            margin: 0 auto;
        }

        /* --- The Baker / About --- */
        .split-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text p { margin-bottom: 20px; font-size: 1.05rem; }

        .about-image {
            background-color: #ddd;
            height: 400px;
            border-radius: var(--radius);
            background-image: url('../public/images/Phenix-Baking-1.jpg');
            background-size: cover;
            box-shadow: var(--shadow-soft);
        }

        /* --- Giveth of Bread (Mission) --- */
        .mission-section {
            background-color: white;
            position: relative;
        }
        
        .stat-box {
            display: flex;
            justify-content: center;
            gap: 50px;
            margin-top: 40px;
            text-align: center;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary-accent);
            display: block;
        }

        /* --- Subscription / Commercial --- */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            
            /* 👇 THIS IS THE MAGIC LINE 👇 */
            align-items: start;
        }

        .feature-card {
            background: white;
            padding: 2.5rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow-soft);
            transition: transform 0.3s;
            border-top: 4px solid transparent;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            border-top: 4px solid var(--primary-accent);
        }

        .feature-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }

        /* --- Form Styling --- */
        .contact-form {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            padding: 2rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow-soft);
        }

        .form-group { margin-bottom: 1.5rem; }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
        }

        /* --- Footer --- */
        footer {
            background-color: var(--primary-dark);
            color: #aaa;
            padding: 5rem 0;
            margin-top: auto;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 40px;
        }

        .footer-col h4 { color: white; margin-bottom: 1.5rem; }

        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 10px; }
        
        .footer-col a {
            color: #aaa;
            text-decoration: none;
            transition: color 0.3s;
        }
        .footer-col a:hover { color: var(--primary-accent); }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 768px) {
            nav { height: auto; padding: 1rem 0; flex-direction: column; }
            .nav-links { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: 1rem;}
            header:hover .nav-links { display: flex; } /* Simple mobile menu hack */
            .split-layout { grid-template-columns: 1fr; }
            .hero h1 { font-size: 2.5rem; }
            .btn { width: 100%; margin: 10px 0 0 0; text-align: center; }
            .stat-box { flex-direction: column; gap: 20px; }
            .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: #f9f9f9; }
            .nav-links li:hover .dropdown-menu { display: block; }
        }

        /* --- INTERACTIVE LOAF CARDS --- */
.loaf-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.loaf-image {
    width: 100%;
    height: 350px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.loaf-content {
    padding: 1.5rem;
}

/* Hidden details by default */
.loaf-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-out;
}

/* The "Active" class makes the details appear */
.loaf-card.active .loaf-details {
    max-height: 300px; /* Enough space for text + button */
    opacity: 1;
    margin-top: 1rem;
}

.loaf-card.active {
    ring: 2px solid var(--primary-accent); /* Gold border when active */
}

/* A tiny arrow to hint interactivity */
.toggle-icon {
    float: right;
    font-weight: bold;
    color: var(--primary-accent);
    transition: transform 0.3s;
}

.loaf-card.active .toggle-icon {
    transform: rotate(180deg);
}

/* --- MOBILE REPAIR PATCH --- */
@media (max-width: 768px) {
    nav {
        height: auto;           /* Allow navbar to grow tall */
        flex-direction: column; /* Stack Logo on top of links */
        padding: 1rem 0;
    }

    .nav-links {
        flex-direction: column; /* Stack the buttons vertically */
        gap: 15px;              /* Space them out */
        width: 100%;
        margin-top: 15px;
        padding: 0;
    }

    .nav-links li {
        width: 100%;            /* Make buttons full width */
        text-align: center;
    }

    /* Fix Dropdowns on Mobile */
    .dropdown-menu {
        position: static;       /* Stop floating, sit inside the list */
        transform: none;
        box-shadow: none;       /* Remove shadow to look cleaner */
        background-color: #f9f9f9; /* Light grey background */
        width: 100%;
        text-align: center;
        
        /* OPTIONAL: Make dropdowns always visible on mobile */
        /* so users don't struggle with "hover" on a touchscreen */
        opacity: 1;
        visibility: visible;
        display: block; 
    }
    
    .dropdown-menu a {
        padding-left: 0;
    }

    /* --- Page Specific: Bread Club --- */

    /* Hero */
    .page-hero {
        background-color: #f4f1ea; /* Fallback color */
        /* Add a background image of bread here if you have one */
        /* background-image: url('images/bread-rack.jpg'); */
        background-size: cover;
        background-position: center;
        padding: 4rem 2rem;
        text-align: center;
        color: var(--primary-dark);
    }

    .hero-content h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }

    /* Benefits Grid */
    .club-intro { padding: 3rem 2rem; background: #fff; text-align: center; }
    .intro-text { max-width: 700px; margin: 0 auto 2rem; line-height: 1.6; }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    .benefit-card i { font-size: 2rem; color: var(--primary-accent); margin-bottom: 1rem; }
    .benefit-card h3 { margin-bottom: 0.5rem; }

    /* Pricing Tables */
    .pricing-section {
        padding: 3rem 2rem;
        background-color: #f9f9f9;
    }
    .pricing-section h2 { text-align: center; margin-bottom: 0.5rem; }
    .pricing-subtitle { text-align: center; margin-bottom: 3rem; color: #666; }

    .pricing-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .pricing-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        flex: 1;
        min-width: 300px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .pricing-card.premium { border-top: 4px solid var(--primary-accent); }

    .card-header {
        background-color: #333;
        color: #fff;
        padding: 1.5rem;
        text-align: center;
    }
    .card-header h3 { margin: 0; font-size: 1.5rem; }
    .bread-type { font-size: 0.9rem; opacity: 0.9; font-weight: 300; }

    .price-options { padding: 1.5rem; flex-grow: 1; }

    .price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        flex-wrap: wrap;
    }
    .price-row:last-child { border-bottom: none; }

    .price-row.best-value {
        background-color: #fff9f0;
        padding: 1rem;
        border-radius: 4px;
        margin: 0.5rem -1rem; /* Visual pop */
        border: 1px solid #eee;
    }

    .tag {
        width: 100%;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--primary-accent);
        font-weight: bold;
        margin-bottom: 5px;
    }

    .amount { font-weight: bold; color: #333; }
    .cost { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); }
    .cost small { font-size: 0.7em; font-weight: 400; }
    .savings { 
        width: 100%; 
        font-size: 0.8rem; 
        color: #27ae60; /* Green for money */
        margin-top: 4px; 
        font-style: italic;
    }

    .btn-select {
        display: block;
        text-align: center;
        background: #333;
        color: #fff;
        padding: 1rem;
        text-decoration: none;
        transition: background 0.3s;
    }
    .btn-select:hover { background: var(--primary-accent); }

    /* Accessible Form Styling */
    .container-narrow { max-width: 600px; margin: 0 auto; }
    .signup-section { padding: 4rem 2rem; }

    .accessible-form .form-group { margin-bottom: 1.5rem; }

    .accessible-form label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #333;
    }

    .accessible-form input, 
    .accessible-form select, 
    .accessible-form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
    }

    /* Focus States for ADA compliance */
    .accessible-form input:focus, 
    .accessible-form select:focus, 
    .accessible-form textarea:focus {
        border-color: var(--primary-accent);
        outline: 2px solid var(--primary-accent);
        outline-offset: 2px;
    }

    .btn-submit {
        width: 100%;
        padding: 15px;
        background-color: var(--primary-accent);
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .btn-submit:hover { background-color: #b04600; }
    .form-disclaimer { font-size: 0.8rem; color: #777; margin-top: 1rem; text-align: center; }

    /* Responsive Pricing for Mobile */
    @media (max-width: 768px) {
        .pricing-grid { flex-direction: column; }
        .price-row { text-align: left; }
    }
}