/* ==========================================================================
   CSS Variáveis & Reset
   ========================================================================== */
:root {
    --color-primary: #beebf6;      /* Azul claro */
    --color-primary-dark: #a1d7e5; /* Azul um pouco mais escuro para hover */
    --color-secondary: #9e9385;    /* Bege acinzentado */
    --color-dark: #3d3833;         /* Grafite quente — topbar e rodapé */
    --color-bg: #f6f0eb;           /* Off-white */
    --color-bg-light: #ffffff;
    --color-cta: #ffbf42;          /* Amarelo suave */
    --color-cta-dark: #f0ae29;
    --color-text: #333333;
    --color-text-light: #666666;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utilitários e Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section-header { margin-bottom: 3rem; }

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-cta);
    color: #fff;
    box-shadow: var(--shadow-sm);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    background-color: var(--color-cta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.btn-outline:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
}
/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
    background-color: var(--color-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-social {
    display: flex;
    gap: 12px;
}

.topbar-social a {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    opacity: 0.85;
}

.topbar-social a:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
}

.header-nav a:hover {
    color: var(--color-cta-dark);
}

/* ==========================================================================
   Mobile Menu (Hamburguer)
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-light);
        padding: 1.5rem 0;
        box-shadow: var(--shadow-md);
        z-index: 99;
        text-align: center;
        gap: 0;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .header-nav a:last-child {
        border-bottom: none;
    }
}
/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--color-bg-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 87px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .logo {
        height: 63px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary) 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 8px 28px;
    background-color: rgba(255,255,255,0.6);
    border-radius: var(--radius-full);
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero h1 span {
    color: var(--color-secondary);
    font-style: italic;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
}

.hero-image .image-wrapper {
    position: relative;
    border-radius: 2%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero-image:hover img {
    transform: scale(1);
}

/* ==========================================================================
   Autoridade (Features)
   ========================================================================== */
.authority {
    padding: 5rem 0;
    background-color: var(--color-bg-light);
    margin-top: -3rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    z-index: 10;
}

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

.feature-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--color-primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-sans);
    color: var(--color-text);
}

/* ==========================================================================
   Divisor de Seção (triângulo invertido)
   ========================================================================== */
.section-divider {
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    z-index: 11;
    pointer-events: none;
}

.section-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   Conexão Emocional
   ========================================================================== */
.connection {
    padding: 6rem 0;
    background-color: var(--color-secondary);
    color: var(--color-bg-light);
    text-align: center;
}

.connection-container {
    max-width: 800px;
}

.connection h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.connection p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.services {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

@media (max-width: 768px) {
    .services {
        background-attachment: scroll;
    }
}

/* Overlay para o pattern não ficar tão forte */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(246, 240, 235, 0.9);
}

.services .container {
    position: relative;
    z-index: 1;
}

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

.service-item {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-icon {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    display: flex;
}

.service-item h4 {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   Diferencial
   ========================================================================== */
.differential {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
}

.differential-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.differential-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-img {
    max-width: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.differential-content {
    flex: 1.5;
}

.differential-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary-dark);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.accordion-header:hover {
    color: var(--color-secondary);
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Sobre a Médica
   ========================================================================== */
.sobre-medica {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.sobre-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.sobre-foto {
    flex: 0 0 340px;
}

.sobre-foto img {
    width: 100%;
    object-fit: contain;
    border-radius: 2%;
}

.sobre-content {
    flex: 1;
}

.sobre-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.sobre-local {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.sobre-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.sobre-content .check-list {
    margin-top: 1.5rem;
}

.sobre-cta {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .sobre-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .sobre-foto {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .sobre-cta .btn,
    .authority-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Localização / Contato
   ========================================================================== */
.location {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: 2rem;
}

.contact-card {
    background: var(--color-bg-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    background: var(--color-bg);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.contact-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 350px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer Custom (Padrão Escuro)
   ========================================================================== */
.footer-custom {
    background-color: var(--color-dark);
    background-image: url('../ativos_site/banner_com_pattern.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    padding: 2.5rem 0 1.5rem 0;
}

.footer-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(61, 56, 51, 0.82);
}

.footer-custom .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.footer-logo {
    height: 54px;
    margin: 0 0 0.4rem 0;
    object-fit: contain;
}

.footer-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.footer-info p {
    color: var(--color-bg);
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #fff;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--color-cta);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--color-secondary);
    background-color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    transform: scale(1.1);
    background-color: var(--color-bg);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    color: var(--color-bg);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-custom {
        padding: 1.8rem 0 1rem 0;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer-logo {
        height: 44px;
    }

    .footer-info h3 {
        font-size: 1.1rem;
    }

    .footer-info p {
        font-size: 0.85rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .footer-divider {
        margin: 1rem 0;
    }
}

/* ==========================================================================
   WhatsApp Flutuante
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* ==========================================================================
   Animações
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-up.visible, .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 191, 66, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 191, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 191, 66, 0); }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero .subtitle {
        margin: 0 auto 2rem auto;
    }
    
    .differential-grid {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .check-list li {
        text-align: left;
    }
    
    .header .btn {
        display: none; /* Esconde botão do header no mobile para simplificar */
    }
}
