/* --- IMPORTAÇÃO DE FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* --- VARIÁVEIS DE COR --- */
:root {
    --primary-gold: #E3A857;
    --primary-dark: #B8863D;
    --text-brown: #5D4037;

    /* Paleta de Fundos */
    --bg-white: #FFFFFF;
    --bg-beige: #FDFBF7;
    --bg-gold-light: #FFF8E7;

    --white: #FFFFFF;
}

/* --- GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-brown);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-brown);
    margin-bottom: 15px;
    font-weight: 700;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* AJUSTE: Aumentei para 140px para garantir que o título não fique escondido atrás do header */
section {
    scroll-margin-top: 140px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- BOTÕES (Estilo Global) --- */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-dark));
    color: var(--white);
    padding: 12px 35px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 15px rgba(184, 134, 61, 0.3);
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 61, 0.4);
}

.section-padding { padding: 50px 0; }

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

/* --- HEADER --- */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 120px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 180px;
    width: auto;
    transition: 0.3s;
    margin-left: 0;
    position: relative;
    top: 30px; /* Logo vazada no desktop */

    /* --- NOVA MOLDURA DOURADA --- */
    border: 1px solid var(--primary-gold); /* A borda dourada */
    background-color: var(--bg-white); /* Fundo branco para garantir contraste */
    padding: 10px; /* Espaço de respiro entre a logo e a moldura */
    border-radius: 4px; /* Cantos levemente arredondados para elegância */
    box-shadow: 0 5px 15px rgba(184, 134, 61, 0.2); /* Sombra suave para dar profundidade */
}

/* AJUSTE: Reduzi o gap para 15px para caber tudo na linha */
.nav-menu { display: flex; gap: 15px; align-items: center; }

.nav-menu a {
    color: var(--text-brown);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-menu a:hover { color: var(--primary-gold); }

/* AJUSTE: Botão mais compacto APENAS no menu desktop para não quebrar a linha */
.nav-menu .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-dark);
    flex-direction: column; /* Para empilhar ícone e texto */
    align-items: center;
    justify-content: center;
    line-height: 1; /* Ajusta a altura da linha para o ícone */
}

.mobile-toggle .menu-text {
    font-size: 0.7rem; /* Tamanho pequeno e legível */
    font-weight: 500;
    color: var(--text-brown);
    margin-top: 5px; /* Espaçamento entre o ícone e o texto */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- HERO CAROUSEL --- */
#home {
    margin-top: 120px;
    position: relative;
    /* CORREÇÃO: Altura dinâmica para evitar corte excessivo da imagem no desktop */
    height: calc(100vh - 120px);
    min-height: 500px; /* Garante altura mínima */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
    background: rgba(93, 64, 55, 0.5);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background: var(--primary-gold); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* --- SEÇÃO SOBRE MIM --- */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-img {
    display: flex;
    justify-content: center;
}

.about-img img {
    max-width: 350px;
    width: 100%;
    border-radius: 6px;
    box-shadow: 15px 15px 0px rgba(227, 168, 87, 0.2), 15px 15px 0px 2px var(--primary-gold);
}

.crp-badge {
    display: inline-block;
    background: var(--bg-white);
    padding: 5px 15px;
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 10px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-box {
    background: var(--bg-beige);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.value-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.value-box h4 { color: var(--primary-dark); margin-bottom: 10px; font-size: 1.2rem; }
.value-box p { font-size: 0.9rem; color: var(--text-brown); }

/* --- GALERIA --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* --- SERVIÇOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-gold);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.service-card p { font-size: 0.95rem; color: #666; }

/* --- JORNADA (Steps) --- */
.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.step-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-dark);
    transition: 0.3s;
}

.step-item:hover .step-icon-wrapper {
    background: var(--primary-gold);
    color: var(--white);
}

/* --- DEPOIMENTOS --- */
.testimonial-card {
    background: var(--bg-beige);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: serif;
    font-size: 4rem;
    color: var(--primary-gold);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
}

.testimonial-card p { font-style: italic; margin-bottom: 20px; z-index: 1; position: relative; }
.testimonial-author { font-weight: 700; color: var(--primary-dark); text-align: right; }

/* --- CONTATO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info h3 { margin-bottom: 20px; }

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
}

.contact-form button { width: 100%; }

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

/* --- FOOTER (Centralizado) --- */
footer {
    background-color: #2c1e1a;
    color: #ddd;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: var(--primary-gold); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ddd; }
.footer-col ul li a:hover { color: var(--primary-gold); padding-left: 5px; }

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: 0.3s;
}

.social-links a:hover { background: var(--primary-gold); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover { background-color: #128C7E; transform: scale(1.1); }

/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    header { height: 100px; }

    /* AJUSTE: Margem de 150px para empurrar o banner e não ser coberto pela logo */
    #home { margin-top: 150px; height: 500px; min-height: auto; }

    /* AJUSTE: Margem de rolagem para mobile */
    section, #home {
        scroll-margin-top: 100px;
    }

    .logo img { height: 110px; }
    /* Mantém o top: 30px para o efeito pendurado */

    /* Empurra o texto do banner para baixo para não ficar atrás da logo */
    .hero-content {
        padding-top: 80px;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        right: -100%;
        background: var(--bg-white);
        width: 80%;
        height: calc(100vh - 100px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        overflow-y: auto;
        transition: 0.4s;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        gap: 30px;
    }

    .nav-menu .btn {
        /* Restaura o tamanho original do botão no mobile */
        padding: 12px 35px;
        font-size: 0.9rem;
        margin-bottom: 40px;
    }

    .nav-menu.active { right: 0; }
    .mobile-toggle { display: flex; } /* Alterado para flex para exibir o texto */

    .about-content-wrapper, .contact-wrapper { grid-template-columns: 1fr; }
    .about-img { order: -1; margin-bottom: 30px; }

    .section-title h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }

    .steps-container { flex-direction: column; }
}

/* --- INDICADORES DO CARROSSEL (BOLINHAS) --- */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: var(--primary-gold);
    transform: scale(1.1);
}

.dot.active {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(227, 168, 87, 0.5);
}
