/* --- VARIÁVEIS --- */
:root {
    --color-primary: #9CA986;
    --color-primary-dark: #8B9875;
    --color-text-dark: #2C3E2C;
    --color-text-body: #4a5568;
    --color-bg-light: #F5F7F2;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    margin-bottom: 1rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Compensa o header fixo */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    line-height: 1.6;
    background-color: var(--color-white);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- LAYOUT UTILS --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-lg {
    max-width: 800px;
}

.py-section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-gradient {
    background: linear-gradient(to bottom, var(--color-white), var(--color-bg-light));
}

.bg-gradient-dark {
    background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary-dark));
}

.section-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* --- TIPOGRAFIA & COMPONENTES --- */
.text-accent {
    color: var(--color-primary);
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 169, 134, 0.3);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 2rem;
}

.links-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    width: 80%;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
}



/* --- HERO SECTION --- */
.hero {
    min-height: calc(100vh - 160px);
    /* Ajusta a altura considerando o header e a citação */
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-text h1 {
    font-size: 3.1rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-body);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.blob {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 200px;
    height: 200px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(40px);
    z-index: 1;
}

/* --- CARDS --- */
.card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(156, 169, 134, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.icon-box.solid {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- ABOUT --- */
.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    /* ADICIONE ESTA LINHA PARA NÃO CORTAR A CABEÇA */
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* --- CONSULTÓRIO --- */
.office-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    /* Mantém as fotos centralizadas e num tamanho agradável */
    margin: 2rem auto 0 auto;
}

.office-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.office-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
    /* Efeito suave de levantar ao passar o mouse */
}

.office-card img {
    width: 100%;
    height: 320px;
    /* Equivalente ao h-80 do Tailwind */
    object-fit: cover;
    display: block;
    /* Remove o pequeno espaço branco padrão abaixo de imagens */
}

/* Responsividade para celulares - Coloca uma foto embaixo da outra */
@media (max-width: 768px) {
    .office-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: var(--color-bg-light);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--color-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i,
.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i,
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* --- CTA SECTION (AGENDAR) --- */
.cta-simple {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
}

.cta-simple h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-simple p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: scale(1.05);
    /* Efeito de zoom */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Sombra acentuada */
    color: var(--color-primary-dark);
}

.btn-cta svg,
.btn-cta i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- COMO FUNCIONA (FEATURES) --- */
.feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--color-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: #C9D4B5;
    /* Verde claro do layout original */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    color: var(--color-primary-dark);
}

.feature-icon i,
.feature-icon svg {
    width: 28px;
    height: 28px;
}

.approach-box {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 4rem auto 0 auto;
}

.approach-box p {
    color: var(--color-text-body);
}

/* --- FOOTER --- */
footer {
    background-color: #2C3E2C;
    color: var(--color-white);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-contact,
.footer-hours {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-hours li {
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.footer-contact a,
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-white);
    transition: var(--transition);
}

.footer-contact a i,
.footer-contact a svg,
.footer-address i,
.footer-address svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-contact a:hover,
.footer-address:hover {
    color: #C9D4B5;
}

.footer-bottom-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.emergency-alert {
    background-color: rgba(127, 29, 29, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.emergency-alert i,
.emergency-alert svg {
    width: 24px;
    height: 24px;
    color: #fca5a5;
    flex-shrink: 0;
    margin-top: 4px;
}

.emergency-alert h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.emergency-alert p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.emergency-phones p {
    margin-bottom: 0.5rem;
}

.emergency-phones p:last-child {
    margin-bottom: 0;
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.75;
    margin: 0;
    color: var(--color-white);
}


/* --- WHATSAPP FLUTUANTE --- */
.floating-wa {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
}

.floating-wa i,
.floating-wa svg {
    width: 32px;
    height: 32px;
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .grid-2,
    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding-top: 6rem;
        text-align: center;
    }

    .hero-image img {
        height: 400px;
    }

    .about-text {
        text-align: center;
    }

    /* Regras do Footer e CTA que estavam no outro bloco */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}