/* Variáveis de Cores e Fontes */
:root {
    --primary-color: #d4a373; /* Dourado suave */
    --secondary-color: #fae1dd; /* Rosa/Nude bem claro */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Resets Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* Utilitários */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Botões */
.btn-primary, .btn-whatsapp {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #bfa27e;
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-3px);
}

/* Header & Menu */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

/* --- AJUSTES DA LOGO NO HEADER --- */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px; /* Ajuste a altura máxima para não quebrar o cabeçalho */
    width: auto;  /* Mantém a proporção da imagem */
    display: block;
}

/* Classe utilitária para esconder o texto de acessibilidade sem sumir para o Google */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ajuste no Header para manter o alinhamento vertical perfeito */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Reduz ligeiramente o padding para acomodar a logo */
}

#menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

#menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

#menu a:hover {
    color: var(--primary-color);
}

#btn-mobile {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/banner.jpeg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de Sobre */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.sobre-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Cards de Serviços */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    font-family: var(--font-title);
}

/* --- FOOTER --- */

footer {
    background-color: #1a1a1a;
    color: #b3b3b3;
    padding: 60px 0 0 0;
    font-size: 0.9rem;
}

/* Modificado para 4 colunas em telas grandes */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 8px;
}

/* Mantendo o seu container da logo ajustado */
.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
    background-color: #fff; 
    padding: 8px 15px;      
    border-radius: 8px;     
}

.footer-logo img {
    height: 45px;           
    width: auto;
    display: block;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Container dos Ícones das Redes Sociais */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #b3b3b3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-socials a svg {
    width: 20px;
    height: 20px;
}

/* Efeito Hover nos Ícones: Ganha a cor dourada do salão e sobe levemente */
.footer-socials a:hover {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Listas e Links do Menu do Rodapé */
.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

/* Efeito dinâmico ao passar o mouse nos links do rodapé */
.footer-list a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Empurra o link sutilmente para o lado */
}

.footer-bottom {
    background-color: #111111;
    padding: 20px 0;
    border-top: 1px solid #252525;
    font-size: 0.8rem;
    color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
    }
    
    .footer-col h3::after {
        margin: 8px auto 0 auto;
    }

    .footer-socials {
        justify-content: center; /* Centraliza as redes sociais no celular */
        margin-bottom: 20px;
    }

    .footer-list a:hover {
        padding-left: 0; /* Desativa o efeito de empurrar pro lado no mobile */
    }
}

/* Responsividade (Menu Mobile) */
@media (max-width: 768px) {
    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 76px;
        right: 0px;
        background: var(--white);
        transition: 0.6s;
        z-index: 1000;
        height: 0px;
        visibility: hidden;
        overflow-y: hidden;
    }
    #nav.active #menu {
        height: calc(100vh - 76px);
        visibility: visible;
        overflow-y: auto;
    }
    #menu li {
        padding: 1rem 0;
        margin: 0 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    #btn-mobile {
        display: flex;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: 0.5rem;
    }
    #hamburger {
        border-top: 2px solid;
        width: 20px;
    }
    #hamburger::after, #hamburger::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        transition: 0.3s;
        position: relative;
    }
    #nav.active #hamburger {
        border-top-color: transparent;
    }
    #nav.active #hamburger::before {
        transform: rotate(135deg);
    }
    #nav.active #hamburger::after {
        transform: rotate(-135deg);
        top: -7px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* --- ESTILOS DO CARROSSEL DE DEPOIMENTOS --- */

.carousel-container {
    position: relative;
    max-width: 700px;
    margin: 40px auto 0 auto;
    overflow: hidden; /* Esconde os depoimentos que não estão ativos */
    background: var(--light-bg);
    border-radius: 15px;
    padding: 40px 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Efeito suave de deslizar */
    width: 100%;
}

.testimonial-card {
    min-width: 100%; /* Garante que cada card ocupe o espaço total do container */
    box-sizing: border-box;
    text-align: center;
    padding: 0 10px;
}

.stars {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Botões (Setas) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    padding: 10px;
}

.carousel-btn:hover {
    color: #bfa27e;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Indicadores (Bolinhas) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Ajuste Responsivo para Telas Pequenas */
@media (max-width: 500px) {
    .carousel-container {
        padding: 40px 20px; /* Reduz espaçamento lateral para sobrar espaço para o texto */
    }
    .carousel-btn {
        display: none; /* Em celulares, o usuário pode navegar pelos botões indicadores abaixo */
    }
}

/* --- ESTILOS DA SEÇÃO ANTES E DEPOIS --- */

.section-subtitle {
    margin-top: -20px;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.05rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.transformation-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.transformation-card:hover {
    transform: translateY(-5px);
}

.gallery-images {
    display: flex;
    position: relative;
    height: 280px;
    background-color: #eee;
}

.img-box {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width 0.4s ease, filter 0.4s ease;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a foto preencha o espaço sem distorcer */
}

/* Etiquetas por cima da imagem */
.label {
    position: absolute;
    top: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    background-color: rgba(250, 225, 221, 0.9); /* Rosa clarinho */
    color: var(--text-color);
}

.img-box.antes .label { left: 15px; }
.img-box.depois .label { right: 15px; }

.label.highlight {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Efeito Interativo Interativo (Hover) */
/* Quando passar o mouse no card, o 'Depois' ganha foco e o 'Antes' fica discreto */
.transformation-card:hover .img-box.antes {
    filter: grayscale(40%) brightness(85%);
}

.transformation-card:hover .img-box.depois {
    filter: brightness(105%);
}

/* Informações do Card */
.card-info {
    padding: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.card-info h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-info p {
    font-size: 0.95rem;
    color: #666;
}

.cta-gallery {
    margin-top: 40px;
}

/* Ajuste fino para celulares */
@media (max-width: 400px) {
    .gallery-images {
        height: 220px;
    }
}

/* --- ESTILOS DO FORMULÁRIO DE AGENDAMENTO --- */

.form-container {
    max-width: 650px;
    background-color: var(--primary-color);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-header {
    margin-bottom: 35px;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 22px;
    position: relative;
}

.grid-3-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsividade: Em tablets e celulares, os campos ficam um embaixo do outro */
@media (max-width: 768px) {
    .grid-3-form {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: #fafafa;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.15);
}

/* Classes de validação aplicadas pelo JavaScript */
.input-group.invalid input,
.input-group.invalid select {
    border-color: #e63946;
    background-color: #fff5f5;
}

.input-group.valid input,
.input-group.valid select {
    border-color: #2a9d8f;
}

/* Mensagem de Erro */
.error-message {
    color: #e63946;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.input-group.invalid .error-message {
    display: block;
}

/* Botão de Envio */
.btn-submit {
    width: 100%;
    background-color: #25d366; /* Cor oficial do WhatsApp */
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: transform 0.3s, background-color 0.3s;
    margin-top: 15px;
}

.btn-submit:hover {
    background-color: #1ebd54;
    transform: translateY(-2px);
}

/* Ajustes Responsivos */
@media (max-width: 480px) {
    .form-container {
        padding: 30px 20px;
    }
}