/* ==========================================================================
   Variáveis e Reset
   ========================================================================== */
:root {
    /* Cores da Identidade Visual */
    --color-primary: #2c3d5b;      /* Azul Marinho */
    --color-secondary: #d2b387;    /* Dourado/Areia Escuro */
    --color-accent: #d4a685;       /* Dourado/Areia Claro */
    --color-bg-light: #f9f9f9;     /* Fundo Claro */
    --color-bg-white: #ffffff;
    --color-text-dark: #1a202c;
    --color-text-muted: #4a5568;
    
    /* Tipografia */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sombras e Efeitos */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-pill: 0 8px 30px rgba(44, 61, 91, 0.1);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Background Dinâmico (Blobs)
   ========================================================================== */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

main, footer {
    position: relative;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.8;
    animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(210, 179, 135, 0.4) 0%, rgba(210, 179, 135, 0) 70%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 166, 133, 0.4) 0%, rgba(212, 166, 133, 0) 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.05); }
    100% { transform: translate(-2%, -5%) scale(0.95); }
}

/* ==========================================================================
   Tipografia e Globais
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

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

.bg-dark {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.bg-dark h2, .bg-dark p {
    color: var(--color-bg-white);
}

.section-tag {
    display: inline-block;
    background-color: rgba(210, 179, 135, 0.15);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(210, 179, 135, 0.3);
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header Flutuante (Pill Style)
   ========================================================================== */
.floating-header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: var(--container-max);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    border-radius: 100px; /* Pill shape */
    box-shadow: var(--shadow-pill);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.floating-header.scrolled .header-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(44, 61, 91, 0.15);
}

.logo {
    height: 60px;
    width: auto;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-fast);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Menu Mobile Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg-white);
    z-index: 2000;
    padding: 3rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
}

.mobile-nav {
    margin-top: 3rem;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
}

.btn-mobile {
    margin-top: 1rem;
    display: inline-flex;
}

/* ==========================================================================
   Seções Gerais
   ========================================================================== */
section {
    padding: 6rem 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 12rem; /* Espaço para o header flutuante */
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    width: 100%;
    gap: 3rem;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    margin-top: auto; /* Pushes the image to the bottom of the hero section */
    margin-bottom: -90px; /* Puxa a foto para sobrepor a seção abaixo */
}

.image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    z-index: 2;
    position: relative;
    animation: gentle-float 6s ease-in-out infinite;
}

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

/* ==========================================================================
   Sobre Section
   ========================================================================== */
.about-section {
    position: relative;
    z-index: 10; /* Mantém a seção acima da imagem do Doutor */
}

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

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    text-align: justify;
}

/* ==========================================================================
   Especialidades Section
   ========================================================================== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialty-card {
    background-color: var(--color-bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(210, 179, 135, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-secondary);
    font-size: 2rem;
    transition: var(--transition-normal);
}

.specialty-card:hover .card-icon {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
}

/* ==========================================================================
   Agendamento Section (Formulário)
   ========================================================================== */
.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-highlights {
    margin-top: 2rem;
}

.contact-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.contact-highlights i {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.premium-form {
    background-color: var(--color-bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(210, 179, 135, 0.2);
}

/* ==========================================================================
   Contato e Localização (Redesign)
   ========================================================================== */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    background-color: var(--color-bg-white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.location-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.location-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.location-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-primary);
}

.location-address {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    background-color: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    transition: var(--transition-normal);
    align-self: flex-start;
}

.btn-location:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.contact-info-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
}

.contact-info-item > i {
    font-size: 1.6rem;
    color: var(--color-secondary);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 500;
}

.contact-info-item a,
.contact-info-item span:not(.contact-label) {
    font-size: 1rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.contact-info-item a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Footer (Redesign)
   ========================================================================== */
.main-footer {
    background-color: #1a2436;
    color: var(--color-bg-white);
    padding-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.doctor-details {
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-bg-white);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-links ul li {
    margin-bottom: 0.3rem;
}

.footer-links a {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-contact strong {
    color: #cbd5e0;
    font-weight: 500;
}

.footer-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: #a0aec0 !important;
}

.footer-whatsapp i {
    color: #25d366;
    font-size: 1.1rem;
}

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

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

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #718096;
}

.developer-credit a {
    color: var(--color-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.developer-credit a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ==========================================================================
   Botão Flutuante WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

/* ==========================================================================
   Animações de Scroll (Premium Feel)
   ========================================================================== */
.fade-up, .reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1), filter 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible, .reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* ==========================================================================
   Responsividade (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .appointment-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Header e Navegação */
    .floating-header {
        top: 1rem;
        width: calc(100% - 2rem);
    }
    
    .logo {
        height: 45px;
    }
    
    .desktop-nav,
    .header-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Fix: Garantir que o botão do menu mobile mostre o texto */
    .btn-mobile {
        margin-top: 1rem;
        display: inline-flex;
        color: var(--color-bg-white) !important;
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }
    
    /* Seções */
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding-top: 8rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-text .subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: auto;
        margin-bottom: -50px;
    }
    
    .appointment-container,
    .locations-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        gap: 2rem;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        justify-content: center;
        text-align: center;
    }
    
    .contact-info-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .premium-form {
        padding: 2rem;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .premium-form {
        padding: 1.5rem;
    }
}
