
/* --- Configurações Globais e Variáveis --- */
:root {
    --primary-color: #77539E; /* Um azul suave, psicológico */
    --secondary-color: #D193C0;
    --light-bg: #F4F7FA;
    --text-color: #333;
    --text-light: #555;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', Times, serif;
}


/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
/* Barra de progresso de rolagem da página */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.15s linear;
}


html {
    scroll-behavior: smooth; /* Efeito de rolagem suave */
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-y: auto;
    padding-top: 120px; /* Ajuste conforme a altura real do seu header */
}
body::-webkit-scrollbar {
    width: 0;
    background: transparent;
}



/* --- Componentes Reutilizáveis --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 3rem 0;
}

.section:nth-child(odd) {
    background-color: var(--light-bg);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--text-color);
    transform: translateY(-2px);
}

/* --- Cabeçalho --- */
.header {
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: fixed; /* Mudou de sticky para fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}


.logo-img {
    height: 50px; /* Altura da logo */
    width: auto;
}

.logo-spacer {
    width: 150px; /* Deve ser o mesmo tamanho da logo */
}


.clinic-name {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}
.navbar {
    margin-top: 0.5rem;
    display: flex;
    gap: 20px;
    font-family: sans-serif;
    font-weight: bold;
    margin-left: auto;
    justify-content: space-between;
    
}

.navbar a {
    position: relative; /* NECESSÁRIO para posicionar a barrinha */
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    padding: 6px;

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

/* Barrinha inicial invisível */
.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px; /* afastado do texto */
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px; /* deixa mais bonitinho */
    transition: width 0.3s ease;
}


/* Crescimento da barrinha ao passar o mouse */
.navbar a:hover::after {
    width: 100%;

}

.navbar ul {
    position: relative;
    padding: 1px;
    margin: 1px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    height: 80px;
    border-radius: 100px;
    background-position: center center;
    background-image: radial-gradient(
        ellipse 150px 100px at calc(var(--primary-color) *1px) bottom,
        white 0%,
        rgba(255,255,255,0.2)
    );
}

.navbar li {
    display: flex;
    align-items: center;
    
}



/* --- Botão Flutuante (WhatsApp) --- */
.whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: #25D366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            z-index: 999;
            cursor: pointer;
            transition: transform 0.3s;
            text-decoration: none;
        }

        .whatsapp-float:hover {
            transform: scale(1.1);
        }

        .whatsapp-float svg {
            width: 35px;
            height: 35px;
            fill: white;
        }

/* --- Seção Início (Hero) --- */
.hero-section {
    padding-top: 4rem; /* Menor padding no topo por causa do header */
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
  
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-text .cta-button {
    margin-top: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px; /* Alinhado ao tamanho do texto */
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Seção Galeria --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-out; /* Efeito flutuante */
}

.gallery-item:hover img {
    transform: scale(1.08); /* Efeito flutuante (zoom) */
}

/* Lightbox da Galeria */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: zoom 0.3s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #f1f1f1;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--border-color);
}

@keyframes zoom {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

/* --- Seção Horários --- */

#horarios {
    background: var(--light-bg);
    padding: 1rem ;
}

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

.horario-dia {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.horario-dia h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.horario-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
    color: var(--text-light);
}

.horario-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* --- Seção Contato --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-form .cta-button {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/* --- Seção Localização --- */
.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

.map-directions-link {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.map-directions-link:hover {
    background-color: var(--light-bg);
}

/* --- Rodapé --- */
.footer {
    background-color: #2c2c2c;
    color: #f0f0f0;
    padding: 3rem 2rem 1rem;
}

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

.footer-column h4 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-column p {
    margin-bottom: 0.5rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer a{
    color: rgb(236, 238, 240);
}

.footer-column p i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

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

.social-icons a {
    color: #ccc;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

.footer-top-link {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.back-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}


/* --- Menu Hamburger para Mobile --- */
/* Hamburger Menu */
/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Tablets (landscape) e Desktops pequenos */
@media (max-width: 1024px) {
    .header-container {
        width: 95%;
    }
    
    .hero-container {
        gap: 2rem;
    }

    .hero-text h2 {
        font-size: 2.4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top-link {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-top: 2rem;
    }
}

/* Tablets (portrait) - 768px */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    body {
        padding-top: 70px; /* Ajuste conforme a altura do header mobile */
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Header */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        gap: 0;
        width: 95%;
        position: sticky;
    }
    
    .logo-img {
        height: 60px !important;
        width: auto;
    }
    
    .logo-spacer {
        display: none;
    }
    
    .clinic-name {
        font-size: 1.2rem;
        margin: 0;
    }

    /* Menu Hamburger */
    .hamburger {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 80px;
        right: 1rem;
        left: 1rem;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        visibility: hidden;
        transition: all 0.3s ease;
        align-content: center;
    }

    .navbar.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
        border: 1px solid var(--border-color);
        justify-content: center;
        width: 90%;
        align-content: center;
        margin-right: 5%;
    }

    .navbar ul {
        padding: 1rem;
        margin: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .navbar li {
        border-bottom: none;
    }

    .navbar a {
        display: block;
        padding: 0.5rem 1rem;
        text-align: center;
        white-space: nowrap;
    }

    /* Animação do X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Hero Section */
    .hero-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .hero-image {
        max-width: 100%;
    }

    .hero-image img {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .hero-text {
        text-align: center;
        padding: 0 1rem;
    }

    .hero-text h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Galeria */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    /* Horários */
    .schedule-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .schedule-day strong {
        flex-basis: auto;
        font-size: 1rem;
    }

    .schedule-times {
        gap: 0.5rem 1rem;
        flex-wrap: wrap;
    }
    
    /* Rodapé */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column h4 {
        font-size: 1.2rem;
    }
    
    .footer-column p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Celulares médios - 480px a 640px */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 2.5rem 0.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 70px !important;
    }

    .clinic-name {
        font-size: 1.1rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-image img {
        max-height: 300px;
    }

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

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Celulares pequenos - abaixo de 480px */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .section {
        padding: 2rem 0.5rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    /* Header mais compacto */
    .header-container {
        padding: 0.8rem;
        
    }

    .logo-img {
        height: 60px !important;
    }

    .clinic-name {
        font-size: 1rem;
    }

    .hamburger {
        transform: scale(0.9);
    }

    /* Hero ainda mais compacto */
    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

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

    /* Galeria em 1 coluna */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    /* Botões e cards menores */
    .cta-button,
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Menu mobile ajustado */
    .navbar {
        top: 70px;
        right: 0.5rem;
        left: 0.5rem;
        padding: 0.5rem;
        
    }

    .navbar ul {
        gap: 0.8rem;
    }

    .navbar a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    /* WhatsApp menor */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 12px;
        right: 12px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    /* Rodapé compacto */
    .footer-container {
        gap: 1.5rem;
        padding: 1rem;
    }

    .footer-column h4 {
        font-size: 1.1rem;
    }

    .footer-column p,
    .footer-column a {
        font-size: 0.9rem;
    }
}

/* Celulares muito pequenos - abaixo de 360px */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .logo-img {
        height: 40px !important;
    }

    .clinic-name {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-image img {
        max-height: 220px;
    }

    .whatsapp-float {
        width: 44px;
        height: 44px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}