/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #F5E6CA;
    color: #3E2C23;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    background-color: #3E2C23;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    align-items: center;
     margin-left: 20px;
}

.navbar a:hover {
    color: #D4A373;
}

/* NEW DROPDOWN ADDITIONS */

/* 1. Make the container hold the dropdown in place */
.dropdown {
    display: inline-block;
    position: relative;
}

/* 2. Style the hidden menu box */
.dropdown-content {
    display: none;              /* Hidden by default */
    position: absolute;
    background-color: #3E2C23;  /* Matches your navbar color */
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;                  /* Places it right below the nav bar */
    left: 20px;                 /* Aligns with the margin-left of your links */
}

/* 3. Style the specific buttons (Focaccia / Other Breads) */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    margin-left: 0;             /* Reset margin for vertical list */
    display: block;             /* Stack buttons vertically */
    font-size: 14px;
}

/* 4. Hover effect for dropdown items */
.dropdown-content a:hover {
    background-color: #4e3b2f;  /* Slightly lighter shade of your brown */
    color: #D4A373;
}

/* 5. Show the menu when hovering over the "Ingredients" container */
.dropdown:hover .dropdown-content {
    display: block;
}


/* HERO */
.hero {
    background: url('https://raw.githubusercontent.com/Shadowcat-dev/SourDoe/refs/heads/main/20250501_180548.jpg') no-repeat center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    margin: 20px 0;
    font-size: 1.2rem;
}

.btn {
    padding: 10px 20px;
    background-color: #8B5E3C;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
}

.btn:hover {
    background-color: #D4A373;
}

.textbar {
    background-color: #3E2C23;
    color: white;
    padding: 15px 40px;
    display: flex;
}


/* PRODUCTS */
.section {
    padding: 40px 40px;
    text-align: center;
}

.subsection {
    padding: 40px 40px;
    text-align: center;
}
.subsection h1{
    font-size: 4rem;
    color: #38280d;
}


.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: start; /* This tells cards: "Only be as tall as your content" */
    margin-top: 40px;
}

.product-card {
    background: white;
    margin-top: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;          /* Always fill the width of the card */
    height: 500px;        /* Set a taller height for desktop to minimize cropping */
    
    /* These two are key to managing the cropping */
    object-fit: cover;    /* Fill the box without stretching */
    object-position: center; /* Crop equally from top/bottom and left/right */

    border-radius: 10px;
    display: block;
}

.product-card h3 {
    margin: 15px 0 15px;
}

.product-card p {
    margin: 15px 0 15px;
    margin-bottom: 1em; 
}


/* FORM */
form {
    max-width: 500px;
    margin: 30px auto;
}

form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

footer {
    background-color: #3E2C23;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
   
/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
     .product-card img {
        height: 300px;    /* Use a shorter height for narrow mobile cards */
    }
    .products {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the cards if the screen is slightly wider */
        gap: 25px; /* Adds a nice gap between each loaf of bread */
    }

    .product-card {
        width: 100%;
        max-width: 350px; /* Prevents cards from getting TOO wide on larger phones */
    }
    /* 1. Fix the Navbar */
    .navbar {
        padding: 15px 20px; /* Reduce side padding so links don't squash */
        flex-direction: column; /* Stack logo above links if it gets too tight */
        gap: 10px;
    }
    
    .navbar a {
        margin-left: 10px; /* Bring links closer together */
        font-size: 0.9rem;  /* Slightly smaller text */
    }

    /* 2. Fix the Hero & Headers */
    .hero h1 {
        font-size: 1.5rem !important;
    }

    .subsection h1 {
        font-size: 1.8rem !important; 
        line-height: 1.2 !important;
    }

    /* 3. Adjust Section Spacing */
    .section, .subsection {
        padding: 30px 20px; /* Give more horizontal room to your content */
    }
    /* 5. Dropdown Adjustment */
    .dropdown-content {
        left: 0; /* Align dropdown to the edge of the link on mobile */
    }
    .section, .subsection {
        padding: 20px 15px !important;
    
    }
    .navbar, .textbar {
    padding: 15px 20px !important;
    } 
    body {
        font-size: 14px;
    }
}













































