/* ======== RESET E DEFINIÇÕES GLOBAIS ======== */

/* Cores da marca SERENZIA - minimalista e elegante */
:root {
    --cor-fundo: #FAF8F5;       /* Off-white muito suave */
    --cor-bege: #E8DCC4;        /* Bege principal da marca */
    --cor-castanho: #8B7355;    /* Castanho suave */
    --cor-texto: #5A4A3A;       /* Castanho escuro para texto */
    --cor-branco: #FFFFFF;
    --sombra-leve: 0 2px 10px rgba(139, 115, 85, 0.08);

    /* Define as fontes - mais elegantes e minimalistas */
    --fonte-titulo: 'Cormorant Garamond', serif;
    --fonte-corpo: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-corpo);
    background-color: var(--cor-fundo);
    background-image: url('images/1.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--cor-texto);
    line-height: 1.8;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 248, 245, 0.85);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: var(--fonte-titulo);
    font-weight: 400;
    color: var(--cor-castanho);
    letter-spacing: 0.05em;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.15em;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 400;
}

p {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--cor-castanho);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cor-texto);
}

/* Classe utilitária para secções de conteúdo */
.content-section {
    padding: 100px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--cor-castanho);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 50px;
}

/* ======== CABEÇALHO E NAVEGAÇÃO ======== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10%;
    background-color: var(--cor-branco);
    box-shadow: var(--sombra-leve);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

header .logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--fonte-titulo);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--cor-castanho);
    letter-spacing: 0.15em;
}

header .logo img {
    height: 100px;
    width: auto;
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--cor-texto);
}

/* Ícone Burger (só aparece em mobile) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--cor-castanho);
    margin: 5px;
    transition: all 0.3s ease;
}

/* ======== SECÇÃO HERO (PRINCIPAL) ======== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 80px;
    background: linear-gradient(135deg, var(--cor-bege) 0%, var(--cor-fundo) 100%);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

#hero h1 {
    color: var(--cor-castanho);
    margin-bottom: 30px;
}

.tagline {
    font-family: var(--fonte-titulo);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--cor-texto);
    margin-bottom: 40px;
    font-style: italic;
}

.tagline p {
    margin-bottom: 5px;
}

/* ======== HERO PARA PÁGINAS INTERNAS ======== */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 80px;
    background: linear-gradient(135deg, var(--cor-bege) 0%, var(--cor-fundo) 100%);
    position: relative;
}

.page-hero h1 {
    color: var(--cor-castanho);
    margin-bottom: 20px;
}

.page-hero .tagline {
    font-family: var(--fonte-titulo);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--cor-texto);
    font-style: italic;
}

/* Botão "Call to Action" (CTA) */
.cta-button {
    display: inline-block;
    background-color: var(--cor-castanho);
    color: var(--cor-branco);
    padding: 15px 40px;
    border-radius: 0;
    font-weight: 300;
    font-family: var(--fonte-corpo);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--cor-castanho);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--cor-castanho);
    transform: translateY(-2px);
}

/* ======== SECÇÃO SOBRE ======== */
#sobre {
    text-align: center;
}

.sobre-container {
    max-width: 700px;
    margin: 0 auto;
}

.sobre-texto {
    text-align: center;
}

.sobre-texto p {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ======== SECÇÃO PRODUTOS ======== */
#produtos {
    background-color: rgba(232, 220, 196, 0.4);
    backdrop-filter: blur(10px);
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.produto-card {
    background-color: var(--cor-branco);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--sombra-leve);
}

.produto-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 280px;
}

.produto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.15);
}

.produto-imagem {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: var(--cor-bege);
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-overlay {
    display: none;
}

/* ======== CARROSSEL DE IMAGENS ======== */
.carousel-container {
    position: relative;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-img.active {
    opacity: 1;
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(139, 115, 85, 0.7);
    color: white;
    border: none;
    padding: 15px 12px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(139, 115, 85, 0.9);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.produto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    text-align: center;
}

.produto-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--cor-castanho);
    font-weight: 400;
    text-align: center;
}

.produto-info p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--cor-texto);
    margin-bottom: 15px;
    text-align: center;
}

.produto-preco {
    font-family: var(--fonte-titulo);
    font-size: 1.4rem;
    color: var(--cor-castanho);
    margin: 20px 0;
    font-weight: 400;
    text-align: center;
}

.produto-info {
    text-align: center;
}

.btn-comprar {
    display: inline-block;
    background-color: var(--cor-castanho);
    color: var(--cor-branco);
    padding: 12px 35px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--cor-castanho);
    border-radius: 25px;
    margin-top: 10px;
    min-width: 140px;
    text-align: center;
}

.btn-comprar:hover {
    background-color: transparent;
    color: var(--cor-castanho);
    transform: translateY(-2px);
}

.botoes-produto {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-detalhes {
    display: inline-block;
    background-color: var(--cor-bege);
    color: var(--cor-castanho);
    padding: 12px 35px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--cor-castanho);
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--fonte-corpo);
    min-width: 140px;
    text-align: center;
}

.btn-detalhes:hover {
    background-color: var(--cor-castanho);
    color: var(--cor-branco);
    transform: translateY(-2px);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--cor-castanho);
    cursor: pointer;
    font-family: var(--fonte-corpo);
}


.btn-detalhes:hover {
    background-color: var(--cor-castanho);
    color: var(--cor-branco);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    /* Grelha responsiva: 
       - Tenta criar colunas de 350px.
       - Se não couber, cria colunas mais pequenas mas iguais (1fr).
       - Em mobile, fica com 1 coluna (auto-fit).
    */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: var(--cor-fundo);
    border-radius: 10px;
    overflow: hidden; /* Garante que a imagem não sai dos cantos redondos */
    box-shadow: var(--sombra-leve);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 350px; /* Altura fixa para as imagens */
    object-fit: cover; /* Garante que a imagem cobre o espaço sem distorcer */
}

.gallery-item h3 {
    padding: 20px 20px 5px 20px;
    font-size: 1.5rem;
}

.gallery-item p {
    padding: 0 20px 20px 20px;
    font-weight: 300;
    margin: 0;
}

/* ======== SECÇÃO CONTACTO ======== */
#contacto {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 300;
    color: var(--cor-texto);
}

.contacto-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.contacto-item {
    text-align: center;
}

.contacto-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--cor-castanho);
    font-weight: 400;
}

.contacto-item a {
    font-size: 1.1rem;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
}

.contacto-item a:hover {
    color: var(--cor-texto);
    transform: translateY(-2px);
}

/* ======== RODAPÉ ======== */
footer {
    text-align: center;
    padding: 40px;
    background-color: rgba(232, 220, 196, 0.6);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--cor-texto);
}

/* ======== BOTÃO WHATSAPP FLUTUANTE ======== */
.facebook-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #1877F2;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.facebook-float:hover {
    background-color: #0c63e4;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
}

.facebook-float svg {
    width: 32px;
    height: 32px;
}

/* ======== MODAL/DETALHES ======== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--cor-branco);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--cor-castanho);
    margin-bottom: 30px;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--cor-castanho);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--cor-texto);
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section label:first-of-type {
    display: block;
    font-weight: 400;
    color: var(--cor-castanho);
    margin-bottom: 15px;
    font-size: 1rem;
}

.opcoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opcoes label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 300;
    color: var(--cor-texto);
    transition: color 0.2s ease;
    flex-wrap: wrap;
    gap: 10px;
}

.opcoes label strong {
    white-space: nowrap;
    color: var(--cor-castanho) !important;
    font-weight: 600;
}

.opcoes label span {
    flex-basis: 100%;
    margin-left: 28px;
    color: var(--cor-castanho);
}

.opcoes label:hover {
    color: var(--cor-castanho);
}

.opcoes input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.modal-content .cta-button {
    display: block;
    margin-top: 30px;
}
.info-box {
    background-color: var(--cor-branco);
    padding: 60px 50px;
    text-align: center;
    margin: 80px auto 50px;
    max-width: 600px;
    box-shadow: var(--sombra-leve);
}

.info-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--cor-castanho);
}

.info-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}


/* ======== MEDIA QUERIES (RESPONSIVO PARA MOBILE) ======== */

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .content-section {
        padding: 60px 5%;
    }

    /* --- Menu Mobile --- */
    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        background-color: var(--cor-branco);
        height: calc(100vh - 80px);
        width: 60%;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 20px 0;
    }

    /* Classe que o JavaScript vai adicionar */
    .nav-active {
        transform: translateX(0%);
    }

    /* Animação do Burger */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* --- Outras Secções Mobile --- */
    .tagline {
        font-size: 1.1rem;
    }

    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacto-info {
        flex-direction: column;
        gap: 40px;
    }

    .facebook-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .facebook-float svg {
        width: 26px;
        height: 26px;
    }
}