/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E RESETS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CORREÇÃO ANTIVAZAMENTO: Garante que nenhuma seção ultrapasse a tela */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, .serif-font {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

/* CORREÇÃO ANTIVAZAMENTO: Evita que imagens gigantes empurrem o layout */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Estilo para a fonte manuscrita Quentin */
.quentin-text {
    font-family: 'Quentin', cursive;
    font-size: 40px;
    color: #bfa38a;
    text-transform: none !important;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. MENU SUPERIOR (HEADER) - DESKTOP
   ========================================================================== */
header {
    background-color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f5f5f5;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 80px;
}

/* Envelopador do Menu no PC (distribui os links nas pontas) */
.nav-menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Links da Esquerda */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #bfa38a;
}

/* Links e Botão da Direita */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link-sobre {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link-sobre:hover {
    color: #bfa38a;
}

.nav-active {
    color: #bfa38a;
}

.btn-book {
    background-color: #000;
    color: #fff;
    padding: 14px 28px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-book:hover {
    background-color: #bfa38a;
}

/* Logo centralizado perfeitamente no meio (PC) */
.logo-img-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    z-index: 1010;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Botão Hamburger clássico - ESCONDIDO NO PC */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1020;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

/* Efeito clássico: Transforma as 3 linhas em um "X" ao abrir */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Oculta o botão mobile por padrão no Desktop */
.btn-book-mobile {
    display: none;
}

/* ==========================================================================
   3. BANNER PRINCIPAL (HERO)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.5)), url('../img/banner-manicure.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0;
}

.hero .quentin-text {
    color: #fff;
    margin-bottom: 5px;
}

.hero h1 {
    font-size: 68px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-desc {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    color: #ddd;
}

/* ==========================================================================
   4. SEÇÃO DE CÍRCULOS (DO WIREFRAME ORIGINAL)
   ========================================================================== */
.services-circles {
    padding: 90px 0;
    text-align: center;
}

.circles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.circle-item img {
    width: 110px;
    height: 110px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background-color: #fcf6f2;
    padding: 22px;
    object-fit: contain;
}

.circle-item h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.circle-item p {
    font-size: 13px;
    color: #777;
    font-weight: 300;
    max-width: 200px;
    margin: 0 auto;
}

/* ==========================================================================
   5. GRID DE FOTOS LADO A LADO (AJUSTADO PARA 3 COLUNAS)
   ========================================================================== */
.categories-grid-section {
    width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.category-card {
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
}

/* Gradiente escuro na base das imagens para dar contraste à fonte branca */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.6));
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.75));
}

.category-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.category-content .quentin-text {
    color: #fff;
    font-size: 28px;
    margin-bottom: -15px;
    opacity: 0.9;
}

.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.1;
}

/* ==========================================================================
   6. SEÇÃO DE DESTAQUES (SHOWCASE ALTERNADO)
   ========================================================================== */
.showcase-section {
    background-color: #fcf6f2;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 90px;
}

.showcase-row:last-child {
    margin-bottom: 0;
    flex-direction: row-reverse;
}

.showcase-img, .showcase-text {
    flex: 1;
}

.showcase-img img {
    width: 100%;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.showcase-text {
    padding: 0 20px;
}

.showcase-text h2 {
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.showcase-text p {
    font-size: 14px;
    color: #666;
    font-weight: 300;
    margin-bottom: 35px;
}

.btn-outline {
    border: 1px solid #1a1a1a;
    padding: 14px 35px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.btn-outline:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* ==========================================================================
   7. SEÇÃO DE DEPOIMENTOS (TESTIMONIALS)
   ========================================================================== */
.testimonials {
    padding: 110px 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 38px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    margin-bottom: 50px;
}

.quote-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    color: #bfa38a;
    line-height: 1;
    margin-bottom: 10px;
}

.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-style: italic;
    color: #444;
    max-width: 750px;
    margin: 0 auto 35px;
    line-height: 1.5;
}

.author-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.author-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.author-role {
    font-size: 11px;
    color: #999;
}

/* ==========================================================================
   8. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    background-color: #050505;
    color: #fff;
    padding: 90px 0 30px;
    text-align: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.footer-logo span {
    display: block;
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 6px;
    color: #777;
    margin-top: 3px;
}

.footer-desc {
    font-size: 13px;
    color: #8a8a8a;
    max-width: 550px;
    margin: 0 auto 45px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    list-style: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 45px;
}

.footer-links a:hover {
    color: #bfa38a;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.footer-socials a {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-socials a:hover {
    color: #fff;
}

.copyright {
    font-size: 11px;
    color: #444;
    border-top: 1px solid #111;
    padding-top: 35px;
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVIDADE UNIFICADA)
   ========================================================================== */
@media screen and (min-width: 1025px) {
    .testimonial-slide {
        display: none;
    }
    .testimonial-slide.active {
        display: block !important;
    }
}

/* REGRAS EXCLUSIVAS PARA CELULAR E TABLET (Telas menores ou iguais a 1024px) */
@media screen and (max-width: 1024px) {

    /* --- 1. CONFIGURAÇÕES DO CABEÇALHO (HEADER) --- */
    
    /* Esconde os elementos do menu desktop tradicional */
    header .nav-links, 
    header .nav-right-group,
    header .nav-link-sobre,
    header .btn-book {
        display: none !important;
    }

    /* Configuração da barra branca do topo */
    header .nav-container {
        position: relative !important;
        display: flex !important;
        justify-content: space-between !important; 
        align-items: center !important;
        width: 100% !important;
        min-height: 80px !important; 
        padding: 0 24px !important;
        box-sizing: border-box !important;
        background-color: #ffffff !important;
    }

    /* CORREÇÃO ANTIVAZAMENTO: Garante que o container feche 100% e suma visualmente */
    header .nav-menu-wrapper:not(.active) {
        display: none !important;
        visibility: hidden !important;
        transform: translateX(100%) !important;
    }

    /* LOGO CENTRALIZADO NO CELULAR */
    header .logo-img-container {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        z-index: 1010 !important;
        margin: 0 !important;
    }

    header .logo-image {
        height: 50px !important; /* Tamanho proporcional para celular */
        width: auto !important;
        display: block !important;
    }

    /* BOTÃO HAMBURGER (Arredondado e discreto à direita) */
    header .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important;
        height: 18px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        
        position: absolute !important;
        right: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1020 !important;
    }

    /* Linhas do botão hambúrguer */
    header .menu-toggle .bar {
        width: 100% !important;
        height: 2.5px !important;
        background-color: #1a1a1a !important; /* Cor elegante cinza escura/preta */
        border-radius: 10px !important;
        display: block !important;
        transition: all 0.3s ease !important;
    }

    /* --- 2. GAVETA DO MENU LATERAL (MOBILE DRAWER) --- */
    header .nav-menu-wrapper.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 100px 40px 40px 40px !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.08) !important;
        z-index: 1015 !important;
        box-sizing: border-box !important;
    }

    /* Organiza a lista de links verticalmente */
    header .nav-menu-wrapper.active .nav-links {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 25px !important;
    }

    header .nav-menu-wrapper.active .nav-links a {
        display: block !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 16px !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        color: #1a1a1a !important;
        text-decoration: none !important;
    }

    /* --- 3. BOTÃO DE AGENDAMENTO EXCLUSIVO DO CELULAR (DENTRO DA GAVETA) --- */
    .btn-book-mobile {
        display: block !important;
        width: 100% !important;
        margin-top: 35px !important;
        background-color: #1a1a1a !important; /* Preto clássico */
        color: #ffffff !important;
        text-align: center !important;
        padding: 15px 20px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        text-decoration: none !important;
        border-radius: 4px !important;
        transition: background-color 0.3s ease !important;
    }

    .btn-book-mobile:active {
        background-color: #bfa38a !important; /* Cor cobre de destaque ao tocar */
    }

    /* --- 4. NOVO: AJUSTE DO BANNER PRINCIPAL (HERO) NO CELULAR --- */
    .hero {
        padding: 100px 0 !important; /* Deixa o banner com altura elegante, sem ficar esticado verticalmente */
    }

    .hero h1 {
        font-size: 34px !important; /* Reduz de 68px para 34px para caber perfeitamente no celular */
        letter-spacing: 2px !important; /* Diminui o espaço entre letras para caber em telas estreitas */
        line-height: 1.2 !important;
        padding: 0 15px !important; /* Margem interna para o texto nunca tocar as laterais da tela */
    }

    .hero .quentin-text {
        font-size: 30px !important; /* Ajusta a fonte manuscrita "Espaço" para manter harmonia */
        margin-bottom: 0px !important;
    }

    .hero-desc {
        font-size: 11px !important;
        letter-spacing: 2px !important;
        padding: 0 10px !important;
    }

    /* --- 5. CORREÇÕES DE OUTRAS SEÇÕES (SHOWCASE / O ESPAÇO) --- */
    .showcase-section .container {
        padding: 40px 20px !important;
    }

    .showcase-row {
        display: flex !important;
        flex-direction: column !important; /* Empilha fotos e textos verticalmente */
        gap: 30px !important;
        text-align: center !important;
    }

    .showcase-row:last-child {
        flex-direction: column !important; /* Mantém a ordem correta no celular */
    }

    .showcase-row img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }

    .showcase-text {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Centraliza botões de texto no celular */
    .showcase-text .btn-outline {
        margin: 15px auto 0 auto !important;
        display: inline-block !important;
    }

    /* --- 6. GRID DE CATEGORIAS NO CELULAR (CORRIGIDO) --- */
    .categories-grid {
        grid-template-columns: 1fr !important; /* Passa de 3 colunas para 1 por linha */
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .category-card {
        height: 380px !important; /* Altura confortável para o feed do celular */
    }

    /* --- 7. DEPOIMENTOS NO CELULAR --- */
    .testimonial-slide {
        display: none;
    }
    .testimonial-slide.active {
        display: block !important;
    }
}