/* ==========================================
   GLOBAL & RESET
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Nunito", sans-serif;
    background-color: #fff;
}

section {
    font-family: "Nunito", sans-serif;
    font-style: normal; 
}

h1, h2, h3, h4 {
    font-family: "Titan One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

a {
    text-decoration: none;
    color: white;
    font-family: "Titan One", sans-serif;
}

address {
    display: inline;
    font-style: normal;
}

/* ==========================================
   HEADER & NAVIGATION (BASE STYLES)
   ========================================== */
header > section {
    background: rgb(238, 51, 83);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header1 {
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
}

nav {
    display: flex;
    align-items: center;
    width: auto;
    margin-left: 0; /* Cleared margin offset */
}

.navBar ul {
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; 
    list-style: none;
    gap: 20px;
    white-space: nowrap;
} 

.navBar li {
    display: inline-block;
    padding: 0;
}

.navBar address a {
    background: rgb(241, 221, 39);
    border-radius: 45px;
    padding: 10px 18px;
    color: rgb(39, 3, 14);
    font-size: 0.9rem;
    display: inline-block;
    white-space: nowrap;
}

.open {
    background: rgb(241, 221, 39);
    color: black;
    padding: 10px 20px;
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
}

/* ==========================================
   HERO / MAIN SECTION
   ========================================== */
main {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    min-height: 520px;
    background-image: linear-gradient(90deg, 
    rgba(140, 5, 48, 0.86), 
    rgba(234, 38, 12, 0.256)), url(ice.jpg);
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.south {
    width: 100%; 
    max-width: 750px;
    color: white;
    margin: 0 auto;
    padding: 0;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 10px 0 20px 0;
}

.south h4 {
    margin: 0;
    color: rgb(241, 221, 39);
    font-family: "Nunito", sans-serif;
    font-weight: bold;
    font-size: 1rem;
}

.south p {
    width: 100%;
    max-width: 600px;
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.south > a {
    background: rgb(241, 221, 39);
    border-radius: 45px;
    padding: 14px 24px;
    margin-right: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: rgb(39, 3, 14);
    display: inline-block;
}

#transparent {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.south .small {
    margin-top: 25px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   FLAVORS SECTION (FLEX WRAP)
   ========================================== */
#flavor {
    padding: 60px 40px;
    background: rgb(246, 242, 235);
}

.blockF {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.blockF > h4 {
    font-family: "Nunito", sans-serif;
    font-size: 1.1rem;
    color: rgb(226, 16, 128);
    margin-bottom: 5px;
}

.blockF > h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.2;
    margin-bottom: 10px;
    margin-left: 0;
    width: 100%;
}

.blockF > p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    width: 100%;
    margin: 0;
}

.container1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Wraps items cleanly */
    gap: 20px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto 30px auto;
    padding: 0;
}

.flavor-card {
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(95, 91, 98, 0.15);
    flex: 1 1 180px;
    max-width: 220px;
}

.flavor-card dt {
    font-family: "Titan One", sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    padding-bottom: 10px;
}

.tini {
    color: gray;
    font-size: 0.95rem;
    line-height: 1.4;
}

.dot {
    font-size: 1.5em;
    vertical-align: middle;
}

#red { border-top: 5px solid red; }
.red { color: red; }

#yellow { border-top: 5px solid yellow; }
.yellow { color: gold; }

#blue { border-top: 5px solid blue; }
.blue { color: blue; }

#orange { border-top: 5px solid orange; }
.orange { color: orange; }

#purple { border-top: 5px solid purple; }
.purple { color: purple; }

#special {
    text-align: center;
    margin-top: 20px;
}

#special > .sunday {
    width: 100%;
    font-size: 1.05rem;
}   

.sunday > span {
    background: rgb(241, 221, 39);
    color: black;
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 6px;
}

/* ==========================================
   SIZES SECTION (FLEX WRAP ROWS)
   ========================================== */
#size {
    background: rgb(183, 217, 235);
    padding: 60px 40px;
    text-align: center;
}

#size .blockF {
    text-align: center;
}

.container2 {
    display: flex;
    flex-direction: row;      /* Side-by-side row format */
    flex-wrap: wrap;          /* Wraps items cleanly */
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0;
}

.size-card {
    flex: 1 1 180px; 
    max-width: 220px;
    padding: 20px 15px;
    border: 1px solid white;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(95, 91, 98, 0.15);
}

.size-card dt {
    font-family: "Titan One", sans-serif;
    font-size: 1.3rem;
    padding: 5px 0;
}

.price {
    font-family: "Titan One", sans-serif;
    font-size: 1.8rem;
    color: rgb(226, 16, 128);
    margin: 5px 0;
}

#size > section > p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   FIND THE STAND SECTION (FLEX WRAP ROWS)
   ========================================== */
#stand {
    background: rgb(246, 242, 235);
    padding: 60px 40px;
}

.container3 {
    display: flex;
    flex-direction: row;      /* Side-by-side row format */
    flex-wrap: wrap;          /* Wraps items cleanly */
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto 0 auto;
    padding: 0;
}

.container3 > section {
    flex: 1 1 280px;
    max-width: 350px;
    padding: 25px 30px;
    border: 1px solid white;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(95, 91, 98, 0.15);
}

.stand-card {
    height: auto;
    width: 100%;
}

.stand-card .money {
    background: rgb(241, 221, 39);
    color: black;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
}

.container3 h3 {
    font-size: 1.4rem;
    color: rgb(226, 16, 128);
    padding-bottom: 10px;
}

.stand-card p {
    line-height: 1.5;
    margin-bottom: 8px;
}

.stand-card a {
    font-weight: bold;
    font-size: 1em;
    color: rgb(226, 16, 128);
    text-decoration: underline;
    font-family: "Nunito", sans-serif;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: rgb(45, 26, 52);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 40px 30px 40px;
}

#about {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: space-between;
    padding-bottom: 30px;
    gap: 30px;
}

.season {
    flex: 1 1 220px;
    padding-bottom: 0;
    width: auto;
}

.season h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.season p {
    line-height: 1.5;
}

.season a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    font-family: "Nunito", sans-serif;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 25px auto 0 auto;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    font-family: "Nunito", sans-serif;
}   

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* TABLET LEVEL (Below 850px) */
@media screen and (max-width: 850px) {
    header > section {
        flex-direction: column;
        text-align: center;
    }

    .header1 {
        justify-content: center;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .navBar ul {
        justify-content: center;
        gap: 15px;
    }

    #flavor, #size, #stand {
        padding: 50px 20px;
    }
}

/* MOBILE LEVEL (Below 600px down to 320px) */
@media screen and (max-width: 600px) {
    .navBar ul {
        flex-direction: column; /* Wraps menu items vertically on small mobile screens */
        gap: 12px;
        white-space: normal;
    }

    .south > a {
        display: block;
        text-align: center;
        margin-right: 0;
    }

    .flavor-card, .size-card, .container3 > section {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #about {
        flex-direction: column;
        gap: 25px;
    }

    .season {
        width: 100%;
    }

    .bottom {
        flex-direction: column;
        text-align: center;
    }
}