:root {
    --primary-color: #1e40af; /* Deep Blue 700 */
    --accent-color: #f59e0b; /* Amber 500 (Gold/Dourado) */
    --background-color: #f9fafb;
    --text-color: #333;
    --light-gray: #f3f4f6;
    --dark-blue: #102a88;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding-top: 80px; /* Espaço para o header fixo */
}

/* Base Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */

/* >>> NOVAS REGRAS PARA VISIBILIDADE DO WHATSAPP (MOBILE) <<< */

/* Por padrão, o botão de desktop é escondido no mobile */
.btn-desktop-only {
    display: none; 
}

/* Garante que o botão de mobile apareça no menu quando ele estiver ativo */
.btn-mobile-only {
    display: flex;
    margin: 1rem auto; /* Centraliza o botão dentro do menu mobile */
    width: fit-content;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    gap: 0.5rem; 

}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    transition: color 0.3s;
    /* Ajuste para mobile */
    font-size: 1.25rem; /* Fonte um pouco menor em mobile */
    line-height: 1.2;
    max-width: 60vw; /* Limita a largura para evitar quebra */
}

.logo span:hover {
    color: var(--accent-color);
}
    /* Estilo do Menu Mobile (padrão) */
    .nav-menu {
        display: none; /* Adicionado para garantir que o menu fique escondido por padrão em mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ajuste para logo abaixo do header fixo */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
        z-index: 40;
        padding-bottom: 1rem;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

/* Estilo para exibir o menu quando a classe 'active' é adicionada via JS */
.nav-menu.active {
    display: flex; /* O menu deve aparecer como coluna */
    transform: translateY(0);
    opacity: 1;
    pointer-events: all; /* Permite cliques */
}

/* Estilo dos links dentro do menu mobile */
.nav-menu .nav-link {
    border-bottom: none;
    padding-bottom: 5px; 
    padding: 0; 
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.nav-menu .nav-link:last-child {
    border-bottom: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, border-bottom 0.2s;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: var(--dark-blue);
    border-bottom: 2px solid var(--accent-color);
}

.btn-primary {
    display: flex; 
    align-items: center;
    background-color: #10b981; /* Green for WhatsApp */
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem; 
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
    margin-left: 1rem; 

}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(16, 185, 129, 0.4);
}
.icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    display: block; 
}

/* HERO SECTION (Wave Effect) */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    padding: 4rem 1rem;
    color: white;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.4);
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.accent-text {
    color: var(--accent-color);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-gradient {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    background: var(--accent-color);
    color: var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 15px rgba(245, 158, 11, 0.4);
}

.btn-gradient:hover {
    transform: scale(1.05);
}

/* Wave effect */
.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.wave span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(254, 254, 254, 0.1);
    border-radius: 40%;
    opacity: 0.1;
    animation: wave-animation 20s linear infinite;
}

.wave span:nth-child(2) {
    animation-delay: -5s;
    animation-duration: 25s;
    border-radius: 45%;
}

.wave span:nth-child(3) {
    animation-delay: -10s;
    animation-duration: 30s;
    border-radius: 50%;
}

@keyframes wave-animation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Services Section */
.section-services {
    padding: 4rem 0;
    background-color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 4px solid var(--accent-color);
    text-align: center;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
    transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 15px rgba(30, 64, 175, 0.1);
    transform: translateY(-5px);
}

.icon-container {
    padding: 0.75rem;
    background-color: #bfdbfe; 
    color: var(--primary-color);
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1rem;
    transition: background-color 0.3s, color 0.3s;
}
.service-card:hover .icon-container {
    background-color: var(--accent-color);
    color: white;
}


.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.875rem;
    color: #6b7280; 
}


/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-paragraph {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563; 
    margin-bottom: 1rem;
}

.about-image-container {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}


/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 3rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left; 
}

.contact-card {
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-top: 6px solid var(--primary-color);
}

.contact-list-card {
    border-top: 6px solid var(--accent-color);
}

.contact-card .header-content {
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-card .header-content .icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    margin: 0 auto 0.5rem;
}

.contact-list-card .header-content .icon {
    color: var(--accent-color);
}

.contact-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.visit-info-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e5e7eb;
}

.visit-info-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.visit-info-block strong {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.schedule-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.schedule-time {
    background-color: #d1fae5; 
    color: #065f46; 
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}
.contact-card:first-child .schedule-details:last-child .schedule-time {
     background-color: #fef3c7; 
     color: #b45309;
}


.card-text-list {
    list-style: none;
    padding: 0;
}

.contact-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.contact-item:last-child {
    border-bottom: none;
}

.contact-description {
    display: block;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.contact-detail a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-detail a:hover {
    color: var(--accent-color);
}
.contact-detail-phone a {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}
.phone-separator {
    color: #9ca3af;
    margin: 0 0.5rem;
    font-weight: 400; /* reset strong on 'ou' */
}


/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Links Section */
.links-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.links-section .contact-card {
    padding: 2.5rem;
    border-top: 6px solid #10b981; 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.link-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.link-item a:hover {
    background-color: #eff6ff; 
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.1);
}

.link-text {
    font-weight: 500;
    color: #1f2937; 
}

.link-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
}


/* Avaliar Google Section - CORRIGIDO */
#avaliar-google {
    background-color: var(--primary-color);
    padding: 3rem 1rem;
    /* Usa flex para centralizar o bloco principal */
    display: flex;
    align-items: center;
    justify-content: center;
}

#avaliar-google > div {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    /* Mantive o padding 2rem para ter espaço interno */
    padding: 2rem; 
    max-width: 400px;
    width: 100%; 
    border-top: 4px solid var(--accent-color);
    /* Garante que texto e elementos inline (como as estrelas) estejam centralizados */
    text-align: center; 
}

#avaliar-google h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

#avaliar-google p {
     color: #4b5563;
     margin-bottom: 1.5rem;
}

/* CORREÇÃO CRÍTICA PARA O BOTÃO NO MOBILE: */
#reviewButton {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 800;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
    
    /* Centralização de Bloco: ESSENCIAL */
    display: block; 
    /* Reduz a largura ligeiramente para garantir espaço e forçar o margin: 0 auto */
    width: 90%; 
    max-width: 300px; 
    /* Esta linha garante a centralização horizontal, use '0 auto' */
    margin: 0 auto; 
    
    /* Centralização de Conteúdo: Garante que o texto/ícone dentro do botão fique centralizado */
    text-align: center; 
}
#reviewButton:hover {
    background-color: #d97706; 
    transform: scale(1.02);
}



/* Footer */
.footer {
    background-color: var(--dark-blue);
    padding: 2rem 0;
}

.footer p {
    color: white;
    font-size: 0.875rem;
    opacity: 0.8;
    text-align: center;
}

/* Media Queries (Responsiveness) */

/* Tablet and larger screens */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop and larger screens */
@media (min-width: 1024px) {
    /* Oculta o botão "hambúrguer" */
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex; 
        position: static;
        transform: none;
        opacity: 1;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        pointer-events: all;
        gap: 2rem; 
        
        /* CORREÇÃO EXATA DO ALINHAMENTO À DIREITA */
        margin-left: auto; 
    }
    
    .nav-menu .nav-link {
        border-bottom: none;
        padding-bottom: 5px; 
        padding: 0; 
    }

    /* Oculta o botão de WhatsApp que foi inserido dentro do nav-menu (apenas para mobile) */
    .btn-mobile-only {
        display: none !important; 
    }
    
    /* Mostra o botão de WhatsApp exclusivo para desktop, e adiciona espaço */
    .btn-desktop-only {
        display: flex;
        margin-left: 2rem; /* Adiciona o espaço entre o menu e o botão */
    }

    /* Oculta o botão de WhatsApp que é exclusivo para mobile */
    .btn-mobile-only {
        display: none !important; 
    }
    
    .hero-title {
        font-size: 5rem;
    }
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}