/* Reset e Base */
:root {
    --vermelho: #981920;
    --dourado: #c18512;
    --branco: #fff;
    --preto: #030303;
    --cinza: #f5f5f5;
    --cinza-escuro: #666;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--cinza);
    color: var(--preto);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* Header */
header {
    width: 100%;
    padding: 1.75rem 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--branco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#nav_logo {
    width: 250px;
    height: auto;
    max-height: 75px;
}

#nav_list {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-item a {
    text-decoration: none;
    color: var(--preto);
    font-weight: 600;
    padding-bottom: 0.3125rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--vermelho);
    transition: width 0.3s ease;
}

.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a,
.nav-item a:hover {
    color: var(--vermelho);
}

/* Botões */
.btn, .btn-default, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vermelho);
    color: var(--branco);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover, 
.btn-default:hover {
    background-color: #7a141a;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
}

.btn-whatsapp i{
    font-size: 24px;
    margin: 5px;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

/* Mobile Menu */
#mobile_btn, #mobile_close_btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--vermelho);
    cursor: pointer;
}

#mobile_menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--branco);
    z-index: 1100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#mobile_menu.active {
    display: flex;
}

#mobile_nav_list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2.5rem 0;
    text-align: center;
    list-style: none;
}

#mobile_nav_list .nav-item a {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('src/home-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--branco);
    padding-top: 5rem;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero-text span {
    color: var(--dourado);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 1.875rem;
}

/* Produtos */
.produtos {
    padding: 5rem 0;
}

.produtos h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 2.5rem;
}

.produtos h2 span {
    color: var(--dourado);
}

.produtos-carrossel {
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

.card {
    background-color: var(--branco);
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 21.875rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-0.625rem);
}

.card-img, .card-img-maior {
    width: 100%;
    height: auto;
    max-height: 12.5rem;
    object-fit: cover;
    margin: 0.9375rem auto;
}

.card-img-maior {
    max-height: 15.625rem;
}

.card-titulo {
    padding: 0.9375rem;
    color: var(--vermelho);
    font-size: 1.125rem;
    font-weight: 600;
}

.card-descricao {
    padding: 0 0.9375rem 0.9375rem;
    color: var(--cinza-escuro);
    margin-top: auto;
}

.swiper-button-next, 
.swiper-button-prev {
    color: var(--vermelho) !important;
    background: rgba(255, 255, 255, 0.8);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.9);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: 1.25rem !important;
    font-weight: bold;
}

/* Info Entregas */
.info-entregas {
    background: #f9f9f9;
    border-left: 4px solid var(--vermelho);
    padding: 1.25rem;
    margin: 1.875rem auto;
    border-radius: 0 0.5rem 0.5rem 0;
    max-width: 50rem;
}

.entrega-tipo {
    margin: 0.9375rem 0;
}

.entrega-tipo h4 {
    color: var(--vermelho);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.1rem;
}

/* Sobre */
.sobre {
    padding: 5rem 0;
    background-color: var(--branco);
}

.sobre-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.sobre-texto {
    flex: 1;
}

.sobre-texto h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.sobre-texto h2 span {
    color: var(--dourado);
}

.sobre-texto p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.sobre-texto ul {
    margin-top: 1.25rem;
    list-style: none;
}

.sobre-texto ul li {
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sobre-imagens {
    flex: 1;
    position: relative;
    height: 25rem;
    border-radius: 0.625rem;
    overflow: hidden;
}

.sobre-imagens img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.sobre-imagens img.active {
    opacity: 1;
}

#logo-sobre {
    object-fit: contain;
    padding: 1.25rem;
    background: var(--branco);
}

/* Orçamento */
.orcamento {
    text-align: center;
    padding: 5rem 0;
    background-color: #f0f0f0;
}

.whatsapp-box {
    max-width: 31.25rem;
    margin: 0 auto;
    padding: 1.875rem;
    background-color: var(--branco);
    border-radius: 0.625rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-box i {
    font-size: 3.125rem;
    color: var(--whatsapp);
    margin-bottom: 1.25rem;
}

.img-contato {
    width: 18.75rem;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 1.25rem auto 0;
    display: block;
}

/* Footer */
footer {
    background-color: var(--vermelho);
    color: var(--branco);
    padding: 2.5rem 0 1.25rem;
}

.footer-info {
    text-align: center;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
    margin: 1.25rem 0;
}

.social-icons a {
    color: var(--branco);
    font-size: 1.25rem;
    transition: color 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--dourado);
    background: rgba(255, 255, 255, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overscroll-behavior: contain;
}

.popup-content {
    background-color: var(--branco);
    width: 90%;
    max-width: 50rem;
    padding: 1.875rem;
    border-radius: 0.625rem;
    position: relative;
    display: flex;
    gap: 1.875rem;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-img {
    width: 50%;
    height: auto;
    max-height: 25rem;
    object-fit: contain;
    border-radius: 0.3125rem;
    align-self: center;
}

.popup-texto {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.popup-texto h3 {
    color: var(--vermelho);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-texto p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.close-popup {
    position: absolute;
    top: 0.9375rem;
    right: 0.9375rem;
    font-size: 1.875rem;
    cursor: pointer;
    color: var(--vermelho);
    background: none;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Responsivo */
@media screen and (max-width: 75rem) {
    #nav_list, #navbar .btn-default {
        display: none;
    }

    #mobile_btn, #mobile_close_btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #mobile_btn i {
        font-size: 2.1875rem;
    }

    #mobile_close_btn i {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 2.25rem;
    }

    .sobre-content {
        flex-direction: column;
    }

    .sobre-imagens {
        order: -1;
        height: 18.75rem;
        width: 100%;
        margin-bottom: 1.875rem;
    }
}

@media (max-width: 48rem) {
    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .sobre-imagens {
        display: none;
    }

    .sobre-texto {
        text-align: center;
    }

    .card-img-maior {
        max-height: 12.5rem;
    }

    .info-entregas {
        margin: 1.25rem 0;
    }

    /* Ajustes específicos para o popup em mobile */
    .popup-content {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }

    .popup-img {
        width: 100%;
        max-height: 15.625rem;
        margin-bottom: 1rem;
    }

    .popup-texto {
        width: 100%;
    }

    .popup-texto h3 {
        font-size: 1.3rem;
    }

    .popup-texto p {
        font-size: 0.9rem;
    }

    .btn-whatsapp {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 36rem) {
    .hero {
        padding-top: 4rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .btn, .btn-default, .btn-whatsapp {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .produtos h2, .sobre-texto h2 {
        font-size: 1.8rem;
    }
    
    .img-contato {
        width: 100%;
    }

    /* Ajustes adicionais para telas muito pequenas */
    .popup-content {
        width: 95%;
        padding: 1rem;
    }

    .popup-img {
        max-height: 12.5rem;
    }

    .popup-texto h3 {
        font-size: 1.2rem;
    }
}