*{
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, div, ul, li, a, h1, h2, h3, h4, h5, p{
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

li {
    list-style-type: none;
}

.h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 200;
    text-transform: uppercase;
    color: var(--dark-color);
}

body{
    --white-color: #fff;
    --bg-color: #fffaf0;
    --light-color: #e9c268;
    --dark-color: #531909;
    background-color: var(--bg-color);
    font-family: Montserrat;
    color: var(--text-color);
    font-size: 25px;
}

.button {
    padding: 10px 25px;
    background-color: var(--dark-color);
    color: var(--bg-color);
    border: 2px solid;
    transition: background-color 0.35s, color 0.35s;
    border-radius: 16px;
    font-size: 0.8rem;
}

.button:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/*  HEADER SECTION  */

.header__container {
    background-color: var(--dark-color);
    position: sticky;
    top: 0;
    box-shadow: 0 0 7px #000;
    z-index: 10;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: var(--light-color);
    max-width: 1600px;
    margin: auto;
}

.logo__container {
    max-width: 80px;
}

.logo {
    max-width: 100%;
    height: auto;
}

.checkbox {
    display: none;
}

.content__container {
    display: none;
    background-color: var(--dark-color);
}

.close__menu-button {
    display: none;
}

.open__menu-button, .close__menu-button {
    width: 35px;
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(90%) sepia(69%) saturate(630%) hue-rotate(317deg) brightness(94%) contrast(94%);
}

.checkbox:checked ~ .checkbox__label .open__menu-button {
    display:none;
}

.checkbox:checked ~ .checkbox__label .close__menu-button {
    display:block;
}

.checkbox:checked ~ .content__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: absolute;
    top: 105.75px;
    left: 0;
    background-color: var(--bg-color);
    width: 100dvw;
    height: fit-content;
    padding: 60px 0;
    justify-content: start;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 10px #0007;
}

    

.nav__list-item {
    list-style-type: none;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.nav__list-item, .nav__list-item a {
    color: var(--dark-color);
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    font-size: 1rem;
    text-align: center;
}

.header__button {
    z-index: 1;
}

.nav__link:hover {
    text-decoration: underline;
}

@media only screen and (min-width: 810px) {
    .open__menu-button, .close__menu-button {
        display: none;
    }

    .content__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        font-size: 20px;
        gap: 100px;
    }

    .nav__list-item, .nav__list-item a {
    color: var(--light-color);
    }

    .nav__list {
        flex-direction: row;
        gap: 30px;
    }

    .header__button {
        color: var(--dark-color);
        background-color: var(--light-color);
    }

    .header__button:hover {
        color: var(--light-color);
        background-color: var(--dark-color);
    }
}

@media only screen and (min-width: 800px) and (max-width: 930px) {
    .content__container {
        font-size: 16px;
        gap: 80px;
        align-items: center;
    }
}

/*  HERO SECTION  */

.hero {
    container-name: hero;
    container-type: inline-size;
}

.hero__container {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100dvh - 106px);
    overflow: hidden;
    gap: 10px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    padding: 30px 15px 0 15px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-grow: 2;
}

.hero__title {
    font-size: clamp(2.6rem, 8vw, 5rem);
    text-align: center;
    text-wrap: pretty;

}

.hero__title, .hero__subtitle {
    color: var(--dark-color);
}

.hero__subtitle {
    font-size: clamp(1.5rem, 1.8vw, 1.8rem);
    text-align: center;
    text-wrap: balance;
    font-weight: 200;
}

h1 {
    font-weight: 500;
}

.hero__img {
    height: auto;
    object-fit: cover;
    flex-grow: 1;
    width: 100%;
}

/*  FAVORITE SECTION  */

.favorite {
    max-width: 1500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.favorite__articles-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
    padding: 30px;
    justify-content: center;
}

.favorite__title  {
    padding: 20px 0;
}

.favorite__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 12px #0007;
    padding: 15px;
    border-radius: 2rem;
    scale: 1;
    transition: scale 0.4s;
    max-width: 400px;
    min-height: 378px;
    flex: 1;
    border: 3.5px solid var(--dark-color);
    background-color: var(--white-color);
}

.favorite__card:hover {
    scale: 1.05;
}

.favorite__img {
    display: flex;
    justify-content: center;
}

.favorite__img img {    
    border-radius: 50%;
    object-fit: cover;
    width: 85%;
    height: auto;
}

.first__favorite {
    object-position: 50% 25%;
}

.last-favorite {
    object-position: 80% 10%;
}

.favorite_size {
    display: flex;
    gap: 10px;
    font-size: 20px;
    align-items: center;
}

.favorite_size img {
    width: 25px;
    filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(6810%) hue-rotate(347deg) brightness(97%) contrast(100%);

}

.middle{
    filter: brightness(0) saturate(100%) invert(100%) sepia(49%) saturate(1551%) hue-rotate(303deg) brightness(104%) contrast(108%);
}

.favorite__star {
    width: clamp(1.1rem, 2vw, 1.4rem);
    padding-top: 5px;
}

.favorite__img {
    position: relative;
}

.favorite__price {
    position: absolute;
    background-color: var(--dark-color);
    color: var(--bg-color);
    padding: 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    bottom: -20px;
    left: calc(50% - 28px);
}

.favorite__flan {
    padding: 20px 13px 5px 13px;
    text-align: center;
    font-size: 1.3rem;
    text-wrap: balance;
    font-weight: 600;
    color: var(--dark-color);
}

.hero__button {
    margin-top: 10px;
}

.middle-favorite {
    background-color: var(--dark-color);
    color: var(--bg-color);
}

.middle-favorite .favorite__flan {
    color: var(--bg-color);
}

.price1 {
    background-color: var(--bg-color);
    color: var(--dark-color);
}

@media screen and (min-width: 670px){
    .favorite__articles-container {
        flex-direction: row;
    }
}


/*  FLAVOUR SECTION */

.flavour {
    background-color: var(--light-color);
    margin: 40px 0;
    padding-bottom: 20px;
}

.flavour__flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    max-width: 1500px;
    margin: auto;
    padding: 0 30px;
    padding-bottom: 30px;
}

.flavour__img-container {
    width: 100%;
    height: 300px;
}

.flavour__img {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    object-fit: cover;
    object-position: top;
}

.flavour__content {
    scale: 1;
    transition: scale 0.3s;
    overflow: hidden;
    transition: scale 0.4s;
    border: 3px solid var(--bg-color);
    padding: 15px;
    border-radius: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.515);
    background-color: var(--bg-color);
    flex: 1;
    max-width: 400px;
    width: 100%;
}

.flavour__content:hover {
    scale: 1.05;
}

.flavours__name {
    text-align: center;
    padding-top: 10px;
    font-size: clamp(1.3rem, 2vw, 1.5rem);;
}

.flavours__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    margin: auto;
    padding-top: 10px;
    justify-content: center;
}

.flavour__list-item {
    padding: 4px 10px;
    border-radius: 10px;
}

.item1 {
    background-color: #f8d98f;
    border: 2px solid #f1bd44;
}

.item2 {
    background-color: #fdf279;
    border: 2px solid #f3e852;
}

.item3 {
    background-color: #f6f1c3;
    border: 2px solid #d5d08e;
}

.item4, .item5 {
    background-color: #d0b075;
    border: 2px solid #54401f;
}

.item6 {
    background-color: #fff0ba;
    border: 2px solid #ece556;
}

.item7 {
    background-color: #f8d28a;
    border: 2px solid #c5aa85;
}


.flavour__title {
    color: var(--dark-color);
    padding: 30px 10px;
}

@media screen and (min-width: 750px) {
    .flavour__flex-container {
        flex-direction: row;
        justify-content: center;
    }
    .buttons__container {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }
    .flavour__list-item {
        font-size: 1rem;
    }
    .flavour__content{
        min-height: 450px;
    }
}

/*  ABOUT SECTION  */
.studio{
    container-name: studio;
    container-type: inline-size;
}

.studio__container{
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 35px;
    justify-content: center;
    align-items: center;
    max-width: 1300px;
    margin: 20px auto;
}

.studio__title{
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
}

.studio__img{
    height: 340px;
    width: 95%;
}

.studio__img img{
    width: 100%;
    height: inherit;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.515);
}

.studio__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.3em;
}

.studio__p{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.studio__p p{
    text-align: center;
    text-wrap: balance;
    font-size: clamp(1rem, 1vw, 3rem);
}

.studio__p p:last-child{
    color: var(--dark-color);
    letter-spacing: 1px;
    font-size: 1rem;
}

.studio__buttons{
    margin-top: 20px;
}

.studio__buttons a{
    color: #fff;
}

.about__img-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    flex-wrap: wrap;
}

.flex__img-container {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    align-items: center;
    max-width: 5.2rem;
}

.flex__img-container p{
    font-size: clamp(0.6rem, 1.1vw, 1.2rem);
    text-align: center;
}

.about__img-container .flex__img-container img {
    width: clamp(1.5rem, 2vw, 2rem)
}

@container studio (min-width: 720px){
    .studio__container{
        flex-direction: row;
        margin-top: 30px;
    }
    .studio__img{
        height: 400px;
        min-width: 50%;
        border-radius: 30px;
    }
}

/*  REVIEWS SECTION  */

.reviews {
    display: flex;
    flex-direction: column;
    max-width: 1500px;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    color: var(--dark-color);
    margin: 40px auto;
    margin-top: 0;
}

.reviews__title {
    font-size: 1.8rem;
    padding: 0 10px 40px 10px;
    text-align: center;
}

.reviews__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0 30px;
}

.reviews__item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--bg-color);
    border: 3px solid var(--dark-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 10px #0007;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.reviews__item:nth-child(2) {
    background-color: var(--dark-color);
    color: var(--bg-color);
}

.reviews__person-name {
    font-weight: 600;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
}

.reviews__text {
    font-size: clamp(1rem, 1.3vw, 1.4rem);
}

@media screen and (min-width: 768px) {
    .reviews__container {
        flex-direction: row;
    }
}

/*  FOOTER SECTION  */

.footer {
    background-color: var(--dark-color);
}

.footer-container {
    max-width: 1500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 30px;
    color: var(--light-color);
}

.container-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__img-container {
    width: 200px;
    height: auto;
}

.footer__img-container img {
    width: 100%;
}

.footer__nav-container, .footer__contact-social-container, .contact-footer, .footer__contact-social {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer__contact-social-container {
    gap: 40px;
}

.social__icons-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer__nav-title {
    font-size: 1.5rem;
}

.footer__nav-list {
    text-align: center;
}

.footer_nav-item {
    padding-top: 10px;
    font-size: 1.2rem;
}

.footer-phone, 
.footer_nav-item a {
    color: var(--bg-color);
    transition: color 0.3s;
}

.footer_nav-item a:hover, .footer-phone:hover {
    color: var(--light-color);
}

.icon__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.footer-icons {
    width: 25px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(100%) sepia(49%) saturate(1551%) hue-rotate(303deg) brightness(104%) contrast(108%);
}

@media screen and (min-width: 500px) {
    .footer-container {
        flex-direction: row;
    }
    .container-container {
        flex-direction: row;
        align-items: start;
    }
}