/* Responsive overrides for the original style.css */

@media screen and (max-width: 1200px) {
    .container { width: 90%; max-width: 1100px; }
    #our-story .story-des p { width: 90%; }
    #our-story .story-img img { width: 100%; max-width: 600px; }
    .menu-des p, .sweet-des p { width: 90%; }
}

@media screen and (max-width: 1000px) {
    .container { width: 90%; }
    header nav ul { width: 70%; }
    header nav .logo { width: 30%; }
    header nav ul li { margin: 0 7px; }
    header nav ul li a { font-size: 17px; }
    .header-desc h1 { font-size: 42px; }
    .header-desc p { font-size: 18px; }

    #our-story { height: auto; padding: 80px 0; overflow: auto; }
    #our-story .story-des, #our-story .story-img { width: 50%; }
    #our-story .story-des h1 { font-size: 27px; margin-top: 70px; }
    #our-story .story-des p { width: 90%; font-size: 16px; line-height: 28px; }
    #our-story .story-img img { width: 100%; }

    #menu { height: auto; padding: 80px 0; overflow: auto; }
    .menu-des, .menu-img { width: 50%; }
    .menu-des h1 { font-size: 34px; }
    .menu-des p { width: 90%; font-size: 17px; }
    .menu-img ul li { width: 50%; }
    .menu-img img { width: 95%; }

    .sweet-des h1 { font-size: 42px; }
    .sweet-des p { font-size: 17px; line-height: 28px; }
    #hot .hot-des h1 { font-size: 50px; }
    #hot .hot-des p { width: 90%; font-size: 25px; }
    .delight-des h1 { font-size: 42px; }
    .delight-des p { width: 90%; font-size: 17px; line-height: 28px; }
    .delight-img img { width: 40%; height: auto; max-height: 400px; margin: 0 8px; }
    #footer .content-us { width: 80%; }
    .footer p { width: 90%; }
}

@media screen and (max-width: 768px) {
    .container { width: 92%; }
    header { min-height: 550px; }
    header nav { height: auto; min-height: 70px; padding: 10px 0; }
    header nav ul { width: 100%; float: none; text-align: center; height: auto; }
    header nav ul li { line-height: 2; margin: 5px 6px; }
    header nav ul li a { font-size: 16px; }
    header nav .logo { display: none; }
    .header-desc { top: 40%; padding: 0 15px; }
    .header-desc h1 { font-size: 34px; line-height: 1.7; }
    .header-desc p { font-size: 17px; line-height: 2; }

    #our-story { padding: 70px 0; }
    #our-story .story-des, #our-story .story-img { width: 100%; float: none; }
    #our-story .story-des { margin-bottom: 40px; }
    #our-story .story-des h1 { margin-top: 0; font-size: 28px; }
    #our-story .story-des p { width: 95%; font-size: 16px; line-height: 28px; }
    #our-story .story-img { text-align: center; }
    #our-story .story-img img { width: 100%; max-width: 600px; }

    #sweet { height: auto; min-height: 300px; padding: 80px 0; background-attachment: scroll; }
    .sweet-des { margin-top: 50px; }
    .sweet-des h1 { font-size: 36px; line-height: 1.6; }
    .sweet-des p { width: 95%; font-size: 16px; line-height: 28px; }

    #menu { padding: 70px 0; }
    .menu-des, .menu-img { width: 100%; float: none; }
    .menu-des { margin-bottom: 40px; }
    .menu-des h1 { font-size: 34px; }
    .menu-des p { width: 95%; font-size: 17px; line-height: 2; }
    .menu-img ul li { width: 50%; }
    .menu-img img { width: 95%; height: auto; }

    #hot { height: auto; min-height: 220px; padding: 80px 0; background-attachment: scroll; }
    #hot .hot-des { margin-top: 50px; }
    #hot .hot-des h1 { font-size: 45px; }
    #hot .hot-des p { width: 95%; font-size: 22px; line-height: 1.8; }

    #delight { padding: 70px 0; }
    .delight-des, .delight-img { width: 100%; float: none; }
    .delight-des { margin-top: 0; margin-bottom: 40px; }
    .delight-des h1 { font-size: 36px; line-height: 1.6; }
    .delight-des p { width: 95%; font-size: 16px; line-height: 28px; }
    .delight-img img { width: 44%; height: auto; max-height: none; margin: 0 1%; }

    #footer { padding: 70px 0; }
    .footer h2 { font-size: 28px; }
    .footer p { width: 95%; font-size: 16px; line-height: 28px; }
    #footer .content-us { width: 95%; margin-top: 40px; }
}

@media screen and (max-width: 480px) {
    .container { width: 92%; }
    header { min-height: 600px; }
    header nav ul li { margin: 3px 4px; }
    header nav ul li a { font-size: 14px; }
    .header-desc { top: 38%; }
    .header-desc h1 { font-size: 27px; line-height: 1.8; }
    .header-desc p { font-size: 15px; }

    #our-story { padding: 60px 0; }
    #our-story .story-des h1 { font-size: 25px; }
    #our-story .story-des p { width: 100%; font-size: 15px; line-height: 27px; }
    #sweet { padding: 60px 0; min-height: 330px; }
    .sweet-des { margin-top: 30px; }
    .sweet-des h1 { font-size: 29px; }
    .sweet-des p { width: 100%; font-size: 15px; line-height: 27px; }
    #menu { padding: 60px 0; }
    .menu-des h1 { font-size: 29px; }
    .menu-des p { width: 100%; font-size: 15px; line-height: 28px; }
    .menu-img ul li { width: 50%; margin-bottom: 7px; }
    .menu-img img { width: 96%; }
    #hot { padding: 60px 0; min-height: 200px; }
    #hot .hot-des { margin-top: 30px; }
    #hot .hot-des h1 { font-size: 37px; }
    #hot .hot-des p { width: 100%; font-size: 18px; }
    #delight { padding: 60px 0; }
    .delight-des h1 { font-size: 29px; }
    .delight-des p { width: 100%; font-size: 15px; line-height: 27px; }
    .delight-img img { width: 47%; margin: 0 0.5%; border-radius: 7px; }
    #footer { padding: 60px 0; }
    .footer h2 { font-size: 25px; }
    .footer p { width: 100%; font-size: 15px; line-height: 27px; }
    #footer .content-us { width: 100%; }
    #footer .content-us .social, #footer .content-us .news-latter { width: 100%; float: none; margin-bottom: 30px; }
    #footer .content-us .news-latter input { max-width: 70%; box-sizing: border-box; }
    #footer .content-us .social ul li { margin: 0 8px; }
}

@media screen and (max-width: 360px) {
    header nav ul li { margin: 2px 3px; }
    header nav ul li a { font-size: 12px; }
    .header-desc h1 { font-size: 24px; }
    .header-desc p { font-size: 14px; }
    .sweet-des h1, .menu-des h1, .delight-des h1 { font-size: 26px; }
    #hot .hot-des h1 { font-size: 33px; }
    #hot .hot-des p { font-size: 16px; }
    .menu-img ul li { width: 100%; float: none; text-align: center; }
    .menu-img img { width: 100%; }
    .delight-img img { width: 100%; margin: 0 0 15px; }
}

/* Prevent media from overflowing the viewport. */
img { max-width: 100%; }
input, button { max-width: 100%; box-sizing: border-box; }


/* =========================================================
   CSS-only mobile/tablet hamburger menu
   ========================================================= */

.mobile-menu-toggle {
    display: none;
}

.hamburger {
    display: none;
}

/* Tablet and mobile */
@media screen and (max-width: 768px) {
    header nav {
        position: relative;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 15px;
        right: 20px;
        width: 42px;
        height: 42px;
        padding: 8px;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 7px;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: 0.25s ease;
    }

    header nav ul {
        display: none;
        width: 100%;
        float: none;
        padding: 55px 0 15px;
        text-align: center;
        background:  rgba(192, 120, 62, 0.6);
    }

    header nav ul li {
        display: block;
        margin: 0;
        line-height: 2.5;
    }

    header nav ul li a {
        display: block;
        font-size: 17px;
    }

    header nav .logo {
        display: none;
    }

    /* Open menu */
    .mobile-menu-toggle:checked ~ .container nav ul,
    .mobile-menu-toggle:checked ~ .container > ul {
        display: block;
    }

    /* The actual selector above needs to reach the ul inside .container */
    .mobile-menu-toggle:checked ~ .container > ul {
        display: block;
    }

    /* Hamburger -> X */
    .mobile-menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .hamburger {
        top: 12px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .hamburger span {
        width: 22px;
    }

    header nav ul {
        padding-top: 52px;
    }

    header nav ul li a {
        font-size: 15px;
    }
}
