/* --- VARIÁVEIS E BASE --- */
:root {
    --primary: #770623;    /* Bordô Katia Boni */
    --dark: #1a0106;       /* Fundo Profundo */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--dark); 
    color: var(--white);
    overflow-x: hidden;
    width: 100%;

    /* <<< ISSO QUE FALTAVA */
    padding-top: 110px;
}

.container { 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- HEADER REFINADO --- */
#mainHeader {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 30px 0; /* Mais respiro inicial */
    transition: var(--transition);
    background: transparent;
}

/* Efeito ao rolar: sutil e elegante */
#mainHeader.scrolled {
    padding: 15px 0;
    background: rgba(26, 1, 6, 0.85); /* Marsala profundo com transparência */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white) !important;
}

.logo span { 
    color: var(--primary); 
    font-weight: 300; /* Mais fino que o atual */
}

/* NAVEGAÇÃO DESKTOP */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

/* Linha minimalista no hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--white);
    opacity: 1;
}

.nav-links a:hover::after {
    width: 20px;
}

/* Botão WhatsApp Discreto */
.btn-katia {
    border: 1px solid var(--primary) !important;
    background: transparent !important;
    padding: 8px 20px !important;
    border-radius: 0; /* Reto é mais elegante que arredondado */
    font-size: 0.65rem !important;
    transition: var(--transition) !important;
}

.btn-katia:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* MENU MOBILE ICON */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
}

.menu-icon .line {
    width: 22px; /* Menor e mais delicado */
    height: 1px; /* Linha ultra fina */
    background: var(--white);
    transition: var(--transition);
}
/* --- NAVEGAÇÃO DESKTOP --- */
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: clamp(15px, 2vw, 30px); 
    list-style: none; 
}

.nav-links a { 
    color: var(--white); 
    text-decoration: none; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    gap: 5px;
}

.nav-links a:hover { color: var(--primary); }

/* Dropdown Desktop */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; 
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    min-width: 220px; 
    padding: 15px 0; 
    border: 1px solid rgba(255,255,255,0.1);
    display: none; 
    flex-direction: column; 
    z-index: 100;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-menu { display: flex; animation: fadeIn 0.3s ease; }

.dropdown-menu li a { 
    padding: 12px 20px; 
    text-transform: none; 
    font-size: 0.85rem; 
    opacity: 0.8; 
}

/* Botão WhatsApp Menu */
.btn-katia {
    background: var(--primary); 
    color: white !important;
    padding: 10px 22px !important; 
    border-radius: 2px; 
    font-weight: 600;
}

/* --- HERO SECTION --- */
.hero {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #35020f 0%, var(--dark) 100%);
    padding: 80px 20px;
}

.hero-content { width: 100%; max-width: 900px; }

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

/* --- MENU MOBILE --- */
.menu-icon {
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer;
    flex-direction: column; 
    gap: 6px; 
    z-index: 1100;
    padding: 10px;
}

.menu-icon .line { 
    width: 28px; 
    height: 2px; 
    background: white; 
    transition: 0.4s; 
}

.mobile-menu {
    position: fixed; 
    inset: 0; 
    background: var(--dark);
    z-index: 1050; 
    display: none;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 40px;
}

.mobile-menu.active { display: flex; animation: fadeIn 0.4s ease; }

.mobile-inner {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-group { margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
.mobile-group span { 
    display: block; font-family: 'Cinzel'; color: var(--primary); 
    font-size: 0.65rem; letter-spacing: 3px; margin-bottom: 15px; 
}
.mobile-group a { 
    display: block; color: white; text-decoration: none; 
    font-size: 1.3rem; margin-bottom: 12px; font-family: 'Cinzel'; 
}

/* --- FOOTER --- */
footer {
    background: #0d0103;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(119, 6, 35, 0.2);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: 'Cinzel', serif;
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { 
    color: white; opacity: 0.6; text-decoration: none; 
    transition: 0.3s; font-size: 0.9rem;
}

.footer-col ul li a:hover { opacity: 1; color: var(--primary); padding-left: 5px; }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    opacity: 0.5;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- RESPONSIVIDADE --- */

/* Ajuste para Tablets/Laptops Pequenos */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    .menu-icon { display: flex; }
}

/* Ajuste para Celulares */
@media (max-width: 768px) {
    .hero { padding-top: 120px; }
    .footer-main { text-align: center; }
    .footer-socials { justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* Animação do X do Menu */
.menu-icon.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-icon.active .line:nth-child(2) { opacity: 0; }
.menu-icon.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero {
    position: relative;
    z-index: 1;
}

/* =========================
   CORREÇÃO DO HEADER FIXED
========================= */

#mainHeader{
    left:0;
    background: rgba(26, 1, 6, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* evita o texto branco sumir na hero */
#mainHeader .nav-links a,
#mainHeader .logo{
    color: #ffffff !important;
}

/* melhora contraste inicial */
#mainHeader:not(.scrolled){
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* =========================
   HERO + HEADER COMPATIBILIDADE
========================= */

.hero {
    min-height: calc(100vh - 110px);
}

/* evita corte em telas grandes */
@media (min-width:1400px){
    .hero{
        min-height: calc(100vh - 90px);
    }
}

/* =========================
   CORREÇÃO DO GRID DA VITRINE
========================= */

.vitrine-grid{
    width:100%;
    align-items: stretch;
}

.doce-card{
    height:100%;
}

/* impede imagens de expandirem o layout */
.doce-img-wrapper{
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
}

.doce-img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =========================
   FOOTER EMPURRADO PARA BAIXO
========================= */

html, body{
    min-height:100%;
}



/* =========================
   MENU MOBILE SCROLL LOCK
========================= */

body.menu-open{
    overflow:hidden;
}

/* ===== FIX FOOTER CORRETO ===== */

html{
    height:100%;
}

body{
    min-height:100vh;
}

footer{
    margin-top:80px;
}
