:root {
    --main-color:#d3ad7f;
    --black: #13131a;
    --bg: #010103;
    --border: 0.1rem solid #d3ad7f;
    font-size: 10px;
    color: #fff;
}

*{
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    text-decoration: none;
    transition: 0.3s linear;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 150;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

body {
    background: url("../images/background-front-blur.png") fixed no-repeat;
    background-position: center;
    background-size: cover;
    background-color: var(--bg);
}

section { 
    padding: 5rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    border-bottom: var(--border);
    background-color: rgba(0, 0, 0, 0.9);
}

.header section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.header__nav a {
    margin: 0 1rem;
    font-size: 1.8rem;
    color: #fff
}

.header__nav a:hover {
    color: var(--main-color);
    border-bottom: 0.1rem solid var(--main-color);
    padding-bottom: 0.5rem;
    font-size: 2rem;
}
.header__icons {
    display: inline-flex;
    align-items: center;
}

.header__icons img {
    margin: 1rem;
    cursor: pointer;
}

.header__icons img:hover {
    width: 35px;
    height: auto;
}

.btn {
    background: var(--main-color);
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 5px;
    font-size: 1.7rem;
    cursor: pointer;
    margin-top: 2rem;
    display: inline-flex;
    img {
        margin-right: 0.8rem;
        filter: brightness(0) invert(100%) sepia(0%);
        transition: filter 0.3s ease;
    }
}

.btn:hover {
    background: #ffdaad;
    color: var(--main-color);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    transform: translateY(-0.3rem);
    img {
        filter: brightness(0) invert(39%) sepia(72%);
    }
}

.home {
    height: 100vh;
}
.home section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    gap: 5rem;
}
.home__content {
    max-width: 60rem;
    flex-basis: 40%;
}

.home__title {
    font-size: 6rem;
    color: #fff;
    font-weight: 400;
}
.home__description {
    font-size: 2rem;
    line-height: 2;
    padding: 1rem 0;
}

.home__image {
    flex-grow: 1;
    flex-basis: 50%;
    align-items: start;
    perspective: 1000px; /* Perspectiva 3D para o contêiner */
    overflow: hidden; /* Evita que a imagem "escape" ao ser rotacionada */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.image-3d {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out; /* Transição suave */
}

.image-3d.rotated {
    transform: rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

.home__image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}
.about__title {
    font-size: 5rem;
    font-weight: 400;
    color: var(--main-color);
    text-align: center;
    padding: 4rem 0;
}

.about__title span {
    color: #fff;
}

.about__row {
    display: flex;
    align-items: center;
    background-color: var(--black);
    border-radius: 5px;
    border: var(--border);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    padding: 3rem;
    gap: 1.5rem;
}

.about__column h3 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.about__column p {
    font-size: 1.6rem;
    padding: 1rem 0;
    line-height: 1.8;
}

.about__column {
    padding: 2rem;
}

.menu__title {
    font-size: 5rem;
    text-align: center;
    padding: 4rem 0;
    span {
        color: var(--main-color);
        font-weight: 400;
    }
}

.menu__grid {
    display: grid;
    /* Isso cria um grid flexível que se adapta */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: stretch; /* Garante que os itens tenham a mesma altura */
    justify-items: center; /* Centraliza os itens na grade */
}

.menu__product {
    display: flex;
    flex-basis: 30%;
    flex-grow: 1;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    min-width: 100%;
    min-height: 100%;
    border: var(--border);
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--black);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.menu__product:hover {
    transform: translateY(-1rem) scale(1.05);
    box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.4);
    img {
        transform: scale(1.05);
    }
}

.menu__product img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 5px;
}

.menu__product-title {
    font-size: 2.2rem;
    color: #fff;
    margin: 1.5rem 0 1rem;
    font-weight: 500;
}

.menu__product-description {
    font-size: 1.5rem;
    color: #ccc;
    padding: 1rem 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.modal {
    background: var(--black) !important;
    color: #fff;
    padding: 0;
    border: var(--border);
    border-radius: 5px;
    min-width: 800px;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.5);
    text-align: center;
}
.close-modal {
    display: none !important;
}

.modal__content-wrapper {
    display: flex;
    flex-direction: column !important;
}

.modal__image-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal__video-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal__video-column iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 5px !important;
}

.modal__text-column {
    flex: 1;
    min-width: 350px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal__btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.modal h2 {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.modal__img {
    display: flex;
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px !important;
}

.modal p {
    font-size: 1.8rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 2rem;
}

.modal .btn {
    margin-top: 0;
}

.jquery-modal {
    background: rgba(0, 0, 0, 0.9) !important;
}

@media (min-width: 768px) {
    .modal__content-wrapper {
        flex-direction: row; 
        text-align: left;
    }

    .modal__btn-group {
        justify-content: flex-start;
    }
}

@media (max-width: 554px) {
    .modal {
        min-width: 90%;
        padding: 1rem;
    }

    .modal__content-wrapper {
        flex-direction: column !important;
        text-align: center;
    }

    .modal__text-column {
        padding: 1rem;
        min-width: auto;
    }
    .modal__btn-group {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

.reviews__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 5rem 0;
    border-radius: 5px;
}

.reviews__box {
    display: flex;
    width: 100%;
    border: var(--border);
    background-color: var(--main-color);
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-align: center;
}

.reviews__image {
    flex-grow: 1;
    text-align: center;
    flex-basis: 30%;
    max-width: fit-content;
    max-height: 300px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

.reviews__title {
    font-size: 5rem;
    font-weight: 400;
    color: var(--main-color);
    padding: 4rem 0;
    text-align: center;
    span {
        color: #fff;
        font-weight: 100;
    }
}

.carousel {
    flex-basis: 80%;
    margin: 0 0 auto 0;
    overflow: hidden;
    position: relative;
    border: var(--bg) 0.1rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    border-radius: 5px 0 0 10px;
    min-height: 300px;
    background-color: var(--black);
}

.review-card {
    width: 95%;
    min-height: 180px;
    background-color: var(--black);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-card__avatar {
    border-radius: 50%; 
    width: 6rem;
    height: 6rem;
    object-fit: cover;
}

.review-card__author {
    font-size: 2.2rem;
    font-weight: 500;
    color: #fff;
}

.review-card__stars img {
    width: 2rem;
    height: 2rem;
}

.review-card__text {
    font-size: 1.8rem;
    line-height: 1.6;
    color: #ccc;
    margin-top: 4rem;
}

.gallery-section {
    border-radius: 5px;
    padding: 5rem 0;
}

.gallery__title {
    font-size: 5rem;
    font-weight: 400    ;
    text-align: center;
    color: var(--main-color);
    padding: 4rem 0;
    text-align: center;
    span {
        color: #fff;
        font-weight: 100;
    }
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery__item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: var(--border);
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

.gallery__item:hover {
    transform: scale(1.05);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.gallery__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery__item:hover::after {
    opacity: 1;
}


.location {
    padding: 5rem 0;
    text-align: center;
    border-radius: 5px;
}

.location__title {
    font-size: 5rem;
    font-weight: 400;
    color: var(--main-color);
    padding: 4rem 0;
    text-align: center;
    span {
        color: #fff;
        font-weight: 100;
    }
}
.location__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    border: var(--border);
    border-radius: 5px;
    margin: 0 auto;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

.location__info {
    flex-basis: 50%;
    flex-grow: 1;
    text-align: left;
    padding: 0;
    border-radius: 5px 0 0 5px;
    height: auto;
    background: url("../images/cafe-front.png") no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
}

.location__text {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    width: 100%;
    border-radius: 0 0 0 5px;
}

.location__link {
    display: inline-block;
    font-size: 1.6rem;
    color: var(--main-color);
    margin-top: 1rem;
    padding-left: 2rem;
}

.location__address,
.location__hours {
    font-size: 1.8rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0 2rem;
}

.location__map {
    flex-basis: 40%;
    min-height: 500px;
}

.location__map iframe {
    width: 100%;
    height: 100%;
    border: var(--border);
    border-radius: 0 5px 5px 0;
    object-fit: cover;   
}

.footer {
    border-top: var(--border);
    background-color: rgba(0, 0, 0, 0.9);
}

.footer section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__socials {
    flex-basis: 30%;
    text-align: start;
    margin: 2rem;
}
.footer__working-hours,
.footer__cta  {
    flex-basis: 30%;
    text-align: end;
    margin: 2rem;
}


.footer__header {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.footer__contact-info {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer__contact-info p {
    font-size: 1.6rem;
    color: #fff;
    margin: 0;
}

.working__time-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.working__time {
    font-size: 1.6rem;
    color: #ccc;
    line-height: 1.8;
}

.footer section .btn {
    margin: 0;
}

@media (max-width: 940px) {
    
    .footer section {
        flex-direction: column;
        gap: 4rem;
        align-items: flex-start;
        text-align: left;
    }

    .footer__socials,
    .footer__working-hours,
    .footer__cta {
        flex-basis: auto;
        width: 100%;
        text-align: left;
    }
    
    .footer__contact-info {
        justify-content: flex-start;
    }
    
    .footer__header {
        text-align: left;
    }
    
    .footer__cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 940px) {
    body {
        font-size: 1.6rem;
    }

    section {
        padding: 3rem 5rem;
        margin: auto 3rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .header section {
        flex-wrap: wrap;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .header__nav {
        display: none;
    }
    
    .header__nav a {
        font-size: 1.6rem;
        margin: 0 0.5rem;
    }

    .header__icons {
        margin-top: 1.5rem;
    }
    
    .header__nav a:hover {
        font-size: 1.8rem;
    }

    .home section {
        flex-direction: column-reverse;
        text-align: center;
        min-height: auto;
        padding-top: 12rem;
        padding-bottom: 5rem;
        gap: 2rem;
    }
    
    .btn {
        max-width: 200px;
    }
    
    .home__content {
        max-width: 100%;
    }
    
    .home__title {
        font-size: 4rem;
        line-height: 1.2;
    }
    
    .home__description {
        font-size: 1.6rem;
        line-height: 1.5;
    }
    
    .home__image {
        width: 90%;
        margin-top: 3rem;
    }

    .about__row {
        flex-direction: column;
        padding: 2rem;
    }

    .about__title {
        font-size: 4rem;
    }
    
    .about__column {
        padding: 0;
        text-align: center;
    }
    
    .about__column img {
        margin-bottom: 2rem;
    }
    
    .about__column h3 {
        font-size: 2.5rem;
    }
    
    .about__column p {
        font-size: 1.5rem;
    }

    .modal {
        min-width: 90%;
        padding: 1rem;
    }

    .menu__title {
        font-size: 4rem;
    }

    .reviews__title {
        font-size: 4rem;
    }

    .reviews__box {
        flex-direction: column;
        background-color: transparent;
        border: none;
    }
    
    .carousel {
        width: 100%;
        border-radius: 5px;
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    }
    
    .reviews__image {
        display: none;
    }

    .gallery__title {
        font-size: 4rem;
    }
    
    .location__title {
        font-size: 4rem;
    }

    .location__text {
        display: none;
    }

    .location__address {
        padding: 0 1rem;
        font-size: 1.6rem;
    }
    .location__info {
        flex-basis: 0%;
    }

    .location__map {
        flex-basis: 100%;
        min-height: 400px;
    }

    .location__map iframe {
        border-radius: 5px;
    }

    .footer section {
        flex-direction: column-reverse;
        align-items: center;
        gap: 3rem;
    }

    .footer__header {
        text-align: center;
    }
    
    .footer__socials,
    .footer__working-hours,
    .footer__cta {
        flex-basis: auto;
        width: 100%;
        text-align: center;
    }
    
    .footer__contact-info {
        justify-content: center;
    }
}

@media (max-width: 475px) {
    .header section {
        margin: 1rem 0;
    }
    section {
        padding: 3rem 2rem;
        margin: 4rem 1rem;
        width: auto;
        height: auto;
    }
}