body {
    margin: 3%;
}

.Intro {
    position: relative;
    width: 90%;
    margin: 0 auto;
    margin-top: 5%;
}

.loafLogo {
    position: absolute;
    top: -12%;
    left: 2%;
    z-index: 10;
    width: clamp(114px, 40%, 40%);
    height: auto;
    margin-bottom: -20%;
}

.bakeryFrame {
    width: 100%;
    aspect-ratio: 16 / 9;
    clip-path: polygon(0% 20%, 100% 0%, 100% 100%, 7% 92%);
    background: center / auto no-repeat url("assets/bakery.jpeg");
}

.bakerySpecial {
    position: absolute;
    right: 4%;
    bottom: 30%;
    width: clamp(140px, 30%, 400px);
    aspect-ratio: 1;
    background: white;
    border: 0.5vw solid rgb(0, 78, 136);
    z-index: 10;
    display: flex;
    flex-direction: column;   
    align-items: center;       /* horizontal centering */
    text-align: center;        /* keeps text centered */
    
}

.bakerySpecial p {
    font-size: clamp(16px, 1vw, 25px);
    text-align: center;
    margin: 2%;
}

.bakerySpecial h1 {
    font-size: clamp(32px, 2vw, 48px);
    text-align: center;
}

.ribbon {
    position: absolute;
    z-index: 10;
    bottom: -20%;
    width: 100%
}



.btn {
    
    display: inline-block;
    text-decoration: none;        
    border: none;
    cursor: pointer;
    background-color: rgb(0, 78, 136);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    

    /* Smooth interaction */
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: blue;
}

.btn:active {
    transform: scale(0.97);
}

/* Hidden checkbox that drives the mobile hamburger menu open/closed state */
#navToggle {
    display: none;
}

/* Hamburger tap target — hidden on desktop, shown in the mobile media query below */
.navBtn {
    display: none;
}

.navbar {
    display: flex;
    list-style: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 70px;
    background-color: rgb(0, 78, 136);
    position: sticky;
    z-index: 1000;
    flex-wrap: wrap;
}

.navbar li {
    position: relative;
    font-size: clamp(24px, 2vw, 32px);
}
.navbar a {
    text-decoration: none;
    color: white;
}

.dropdown-menu {
    display: none;
    position: absolute;
    list-style: none;
    background: rgb(0, 78, 136);
    padding: 10px;
    min-width: 220px;
    width: max-content;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    font-size: clamp(24px, 2vw, 32px);
}

.dropdown:hover .dropdown-menu {
    display: block;
}
.aboutTitle {
    text-align: center;
    font-size: clamp(32px, 3vw, 48px);
    margin-top: 5%;
    text-decoration: underline;
}
.About {
    display: flex;
    flex-direction: row;
    margin-top: 5%;
    justify-content: center;
    align-items: stretch;
    gap: 5%;
    row-gap: 50px;
    flex-wrap: wrap;
    align-content: center;
}
.aboutContent {
    width: 30%;
    text-align: center;
    border: 1px solid rgb(0, 78, 136);
    padding: 10px;
    min-width: 300px;
}
.aboutContent h2 {
    font-size: clamp(24px, 2vw, 32px);
    margin-bottom: 20px;
    text-align: center;
}
.aboutContent p {
    font-size: clamp(16px, 1vw, 25px);
    text-align: left;
    line-height: 1.5
}
.aboutImage {
    width: 50%;
    height: auto;
    max-width: 700px;
    align-self: flex-start;
}
.Info {
    list-style-position: inside;
    text-align: center;
    margin-top: 6vh;
}
.Info li {
    font-size: clamp(16px, 1vw, 25px);
    margin-bottom: 10px;
}
.Info h2 {
    font-size: clamp(24px, 2vw, 32px);
    margin-bottom: 20px;
}
.Info p {
    font-size: clamp(16px, 1vw, 25px);
    text-align: center;
    line-height: 1.5
}
.Info h1 {
    font-size: clamp(32px, 3vw, 48px);
    margin-bottom: 20px;
}
.Info img {
    width: 30%;
    height: auto;
    min-width: 200px;
}
footer {
    background-color: rgb(0, 78, 136);
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    color: white;
    
}
.footerLinks {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}
.Social img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 80%;
    margin: 0 auto;
    
}
.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    
}
@media (max-width: 1000px) {
    .navBtn {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 50px;
        z-index: 1001;
        cursor: pointer;
    }

    .navBtn::before {
        content: "☰";
        position: absolute;
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: rgb(0, 78, 136);
        font-size: 30px;
    }

    .navbar {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 50px;
        height: 50px;
        padding: 0;
        overflow: hidden;
        display: none;
    }
    .navbar li {
        display: none;
    }
    #navToggle:checked ~ .navBtn::before {
        content: "✖";
        color: white;
        font-size: 30px;
    }

    /* Expand navbar when the hidden checkbox is checked (tapped via .navBtn label) */
    #navToggle:checked ~ .navbar {
        width: 50%;
        min-width: 250px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        overflow: visible;
    }

    /* Top-level items only (Home, Holidays, Bakery Items, etc.) */
    #navToggle:checked ~ .navbar > li {
        display: block;
        text-align: center;
    }

    /* Submenu items — needs equal specificity to win over the rule above */
    #navToggle:checked ~ .navbar .dropdown-menu li {
        display: block;
        text-align: center;
    }

    .dropdown a {
        display: block;
        margin: 8px 0;
    }
    .navbar a:not([href="#"]) {
        text-decoration: underline;
    }
    .navbar a[href="#"] {
        font-weight: bold;
        font-size: clamp(28px, 2.5vw, 38px);
    }

    /* Submenus always visible on mobile, shown as an indented list under each heading */
    .dropdown-menu {
        display: block;
        position: static;
        background: none;
        box-shadow: none;
        padding-left: 0;
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .dropdown-menu li {
        margin: 8px 0;
    }

    .dropdown {
        width: 100%;
    }

    .Intro {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .loafLogo {
        position: relative;
        margin-bottom: -12%;
        order: 1;
    }

    .bakeryFrame {
        width: 90%;
        height: auto;
        clip-path: none;
        order: 2;
        background: center / cover no-repeat url("assets/bakery.jpeg");
    }

    .ribbon {
        position: relative;
        order: 3;
        margin: -5vh 0;
        padding-right: 9%;
    }
    

    .bakerySpecial {
        position: static;
        width: 90%;
        height: 300px;
        align-self: center;
        order: 4;
        margin-top: 5vh;
    }

    .About {
        flex-direction: column;
        align-items: center;
    }

    .aboutContent,
    .aboutImage {
        width: 90%;
        max-width: 700px;
        align-self: center;
    }
}

@media (max-width: 400px) {
    .bakeryFrame {
        display: none;
    }

    .loafLogo {
        width: 100%;
        margin: 0;
    }

    .ribbon {
        margin-top: -35%;
    }
}