/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
   :root {
    /* Colors derived from screenshot */
    --bg-cream: #f8f6f0;
    --bg-card: #f8f6f0;
    --text-dark: #1f2723;
    --text-muted: #757c79;
    --color-green: #29503d;
    --color-light-green: #678b7b;
    --color-gold: #c3913c;
    --color-gold-hover: #ad7d31;
    --color-white: #ffffff;
    --border-color: rgba(31, 39, 35, 0.1);

    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 3rem;
    --sp-xl: 5rem;
    --sp-xxl: 8rem;

    /* Border Radius */
    --br-sm: 8px;
    --br-md: 12px;
    --br-pill: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.font-serif {
    font-family: var(--font-serif);
    font-weight: 500;
}

.italic { font-style: italic; }
.text-green { color: var(--color-green); }
.text-light-green { color: var(--color-light-green); }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-dark { color: var(--text-dark); }
.text-muted { color: var(--text-muted); }

.bg-green { background-color: var(--color-green); }
.bg-cream { background-color: var(--bg-cream); }
.bg-gray { background-color: #e8e5df; } /* Placeholder for images */

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 2rem; }
.text-xxl { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; }

.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }

.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }

.section-padding {
    padding: var(--sp-xxl) 0;
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--br-pill);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-green {
    background-color: var(--color-green);
    color: var(--color-white);
}

.btn-green:hover {
    background-color: #1f3d2f;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(31, 39, 35, 0.05);
}

.btn-outline-map {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: var(--br-pill);
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-map:hover {
    background-color: rgba(31, 39, 35, 0.05);
}

.btn-dark-full {
    background-color: #111513;
    color: var(--color-white);
    width: 100%;
    padding: 1rem;
    border-radius: var(--br-pill);
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-dark-full:hover {
    background-color: #000000;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
}

.link-underline {
    display: inline-block;
    position: relative;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
}

.link-underline-white {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   LAYOUT MODULES
   ========================================================================== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
}

.split-section.align-center {
    align-items: center;
}

.split-section.align-start {
    align-items: flex-start;
}

.split-section.gap-lg {
    gap: var(--sp-xl); /* Can be adjusted */
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */






.navbar .logo {
    font-size: 1.25rem;
    font-weight: 600;
}



.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text-dark);
}



.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
    align-items: center;
    padding-top: 100px; /* Offset for fixed nav */
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light-green);
    margin-bottom: var(--sp-sm);
    font-weight: 500;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: var(--sp-md);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: var(--sp-lg);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    max-height: 700px;
    overflow: hidden;
    border-radius: 20px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.split-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--sp-lg);
}

.split-header.align-end {
    align-items: flex-end;
}

.section-num {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: var(--br-md);
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card.card-green {
    background-color: var(--color-green);
    border-color: var(--color-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-num {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ==========================================================================
   AGENDAMENTO
   ========================================================================== */
.agendamento-info h2 {
    line-height: 1.1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9375rem;
}

.detail-label {
    min-width: 80px;
    color: rgba(255, 255, 255, 0.6); /* For green bg */
}

/* Used in "Onde Estamos" section */
.detail-group .detail-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 4px;
}
.detail-group .detail-value {
    font-size: 1rem;
}

/* Form Styles */
.schedule-form {
    padding: 3rem;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: var(--color-green);
}

.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 3px;
    border-radius: 2px;
}

.form-group input::placeholder {
    color: #b0b5b3;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    pointer-events: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* ==========================================================================
   O PROFISSIONAL
   ========================================================================== */
.sobre-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
}

.sobre-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h4 {
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
}

/* ==========================================================================
   INSTAGRAM
   ========================================================================== */




.insta-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    margin-bottom: 1.5rem;
}

.insta-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.5s ease;
}

.insta-card a {
    display: block;
    overflow: hidden;
}

.insta-card a:hover .insta-img {
    transform: scale(1.05);
}



.insta-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* ==========================================================================
   ONDE ESTAMOS (MAP)
   ========================================================================== */
.loc-map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.loc-map {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-loc {
    letter-spacing: 0.05em;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-dark);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-socials a:hover {
    opacity: 1;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider {
    width: 24px;
    height: 1px;
    background-color: var(--border-color);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 120px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: 2;
    }

    .services-grid, .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: inline-flex; width: 100%; margin-top: 1rem; }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-cream);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .split-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .split-header.align-end {
        align-items: flex-start;
    }

    .services-grid, .insta-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .schedule-form {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right, .footer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .divider { display: none; }
}
/* ==========================================================================
   NEW ENHANCEMENTS (CLINIC, FOOTER LOGO, CTA)
   ========================================================================== */
.clinic-photo-wrapper {
    width: 100%;
    border-radius: var(--br-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.clinic-photo {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.bg-cream-dark {
    background-color: #ede9df;
}
.p-md {
    padding: 1.5rem;
}
.radius-md {
    border-radius: var(--br-md);
}
.cta-box h4 {
    margin-bottom: 0.5rem;
}
.bg-dark-card {
    background-color: #0b1114;
    color: #e0e0e0;
}
.bg-dark-card .footer-socials a {
    color: #e0e0e0;
}
.text-muted-light {
    color: #9ba3a0;
}
.footer-logo-img {
    max-width: 250px;
    height: auto;
    display: block;
}
.footer {
    padding: 4rem 0;
    border-top: none;
}

/* Rede de seguranca de midia: nada estoura a largura, mesmo sem o CSS da secao */
img, video { max-width: 100%; }

/* ==========================================================================
   Navbar — pilula flutuante, no espirito do componente enviado pelo Luiz,
   com as cores e a tipografia do site (nao o preto/laranja do original).
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 1.25rem 1rem;
    transition: padding .35s cubic-bezier(.22, .9, .25, 1);
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1080px;
    padding: .7rem .8rem .7rem 1.5rem;
    border-radius: 9999px;
    background-color: rgba(248, 246, 240, .82);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 2px rgba(31, 39, 35, .04),
                0 8px 30px -14px rgba(31, 39, 35, .22);
    transition: padding .35s cubic-bezier(.22, .9, .25, 1),
                box-shadow .35s ease,
                background-color .35s ease;
}

/* Depois de rolar, a pilula encolhe e ganha presenca */
.navbar.scrolled { padding-top: .75rem; padding-bottom: .75rem; }

.navbar.scrolled .nav-pill {
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: rgba(248, 246, 240, .93);
    box-shadow: 0 1px 2px rgba(31, 39, 35, .05),
                0 12px 34px -16px rgba(31, 39, 35, .3);
}

.nav-pill .logo {
    font-size: 1.15rem;
    white-space: nowrap;
    transition: transform .3s cubic-bezier(.22, .9, .25, 1);
}

.nav-pill .logo:hover { transform: scale(1.03); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    font-size: .9rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color .3s ease, transform .3s cubic-bezier(.22, .9, .25, 1);
}

.nav-links a:hover {
    color: var(--text-dark);
    transform: translateY(-1px);
}

/* Sublinhado que nasce do centro */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -5px;
    height: 1px;
    background-color: var(--color-green);
    transition: left .3s cubic-bezier(.22, .9, .25, 1), right .3s cubic-bezier(.22, .9, .25, 1);
}

.nav-links a:hover::after { left: 0; right: 0; }

.nav-cta {
    flex-shrink: 0;
    padding: .6rem 1.4rem;
    font-size: .875rem;
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color .3s ease, transform .2s ease;
}

.mobile-toggle:hover { background-color: rgba(31, 39, 35, .06); }
.mobile-toggle:active { transform: scale(.92); }

/* ==========================================================================
   Menu do celular — painel que entra pela direita
   ========================================================================== */
.menu-mobile {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem 2.5rem;
    background-color: var(--bg-cream);
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22, .9, .25, 1);
}

.menu-mobile[hidden] { display: none; }
.menu-mobile.aberto { transform: translateX(0); }

.menu-fechar {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: rgba(31, 39, 35, .06);
    color: var(--text-dark);
    cursor: pointer;
    transition: transform .2s ease;
}

.menu-fechar:active { transform: scale(.92); }

.menu-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.menu-mobile-links a {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    color: var(--text-dark);
    /* cada item entra um pouco depois do anterior */
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .45s cubic-bezier(.22, .9, .25, 1),
                transform .45s cubic-bezier(.22, .9, .25, 1);
}

.menu-mobile.aberto .menu-mobile-links a { opacity: 1; transform: translateX(0); }
.menu-mobile.aberto .menu-mobile-links a:nth-child(1) { transition-delay: .10s; }
.menu-mobile.aberto .menu-mobile-links a:nth-child(2) { transition-delay: .16s; }
.menu-mobile.aberto .menu-mobile-links a:nth-child(3) { transition-delay: .22s; }
.menu-mobile.aberto .menu-mobile-links a:nth-child(4) { transition-delay: .28s; }
.menu-mobile.aberto .menu-mobile-links a:nth-child(5) { transition-delay: .34s; }
.menu-mobile.aberto .menu-mobile-links a:nth-child(6) { transition-delay: .40s; }
.menu-mobile.aberto .menu-mobile-links a:nth-child(7) { transition-delay: .48s; }

.menu-mobile-cta {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-align: center;
}

.menu-mobile-rodape {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .875rem;
    color: var(--text-muted);
}

.menu-mobile-rodape a { color: var(--text-dark); font-weight: 500; }

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .nav-pill { padding: .6rem .7rem .6rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .menu-mobile { transition: none; }
    .menu-mobile-links a { opacity: 1; transform: none; transition: none; }
    .nav-links a:hover { transform: none; }
}

/* ==========================================================================
   Instagram — faixa compacta. Antes eram 3 fotos grandes ocupando 2.600px,
   mais que a secao Sobre, para entregar so um link ao perfil.
   ========================================================================== */
.insta-faixa {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.insta-faixa-conteudo {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.75rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--br-md);
    background-color: rgba(255, 255, 255, .45);
}

.insta-faixa-texto { flex-shrink: 0; }

.insta-faixa-texto h2 {
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.insta-tira {
    display: flex;
    gap: .75rem;
    margin-left: auto;
}

.insta-tira a {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: var(--br-sm);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.22, .9, .25, 1);
}

.insta-tira img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-tira a:hover { transform: translateY(-4px) scale(1.03); }

.insta-faixa-cta { flex-shrink: 0; }

@media (max-width: 900px) {
    .insta-faixa-conteudo {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .insta-tira { margin-left: 0; }
    .insta-tira a { width: 76px; height: 76px; }
    .insta-faixa-cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .insta-tira a { transition: none; }
    .insta-tira a:hover { transform: none; }
}

/* ==========================================================================
   Depoimentos — colunas rolando, como o componente React enviado pelo Luiz,
   feito em CSS puro (o site nao usa React nem framework de animacao).
   ========================================================================== */
.depo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-height: 620px;
    overflow: hidden;
    /* desvanece nas pontas, para os cards nao aparecerem cortados */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.depo-coluna { overflow: hidden; }

.depo-trilha {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* a lista aparece duplicada no HTML: ao chegar em -50% o laco reinicia
       exatamente sobre a copia, sem salto visivel */
    animation: depo-rola linear infinite;
    will-change: transform;
}

.depo-c1 .depo-trilha { animation-duration: 46s; }
.depo-c2 .depo-trilha { animation-duration: 58s; }
.depo-c3 .depo-trilha { animation-duration: 52s; }

@keyframes depo-rola {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

/* Parar ao passar o mouse: quem quer ler nao corre atras do texto */
.depo-grid:hover .depo-trilha,
.depo-grid:focus-within .depo-trilha { animation-play-state: paused; }

.depo-card {
    margin: 0;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--br-md);
    background-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(2px);
}

.depo-card blockquote {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.depo-card figcaption {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
}

/* Iniciais no lugar de foto: nao temos autorizacao de imagem de paciente */
.depo-iniciais {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--color-green);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.depo-nome {
    font-family: var(--font-sans);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text-dark);
}

.depo-fonte {
    margin-top: 2rem;
    text-align: center;
    font-size: .875rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .depo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .depo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sem movimento: vira uma lista comum, com rolagem propria */
@media (prefers-reduced-motion: reduce) {
    .depo-trilha { animation: none; }
    .depo-grid {
        max-height: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
    /* sem animacao a copia duplicada seria repeticao visivel */
    .depo-trilha .depo-card:nth-child(n+5) { display: none; }
}

/* ==========================================================================
   Vídeos (04) — verticais, sobre fundo verde. preload=none: só baixa ao tocar.
   ========================================================================== */
#videos { position: relative; }

.videos-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.video-card { margin: 0; }

.video-frame {
    position: relative;
    border-radius: var(--br-md);
    overflow: hidden;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background-color: #000;
}

.video-card figcaption { padding: 1.25rem .25rem 0; }

.video-card figcaption h3 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: .4rem;
}

.video-card figcaption p {
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
    font-size: .95rem;
}

.video-card--destaque figcaption h3 { font-size: 1.5rem; }

@media (max-width: 1024px) {
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
    .video-card--destaque { grid-column: 1 / -1; }
    .video-card--destaque .video-frame { max-width: 420px; }
}

@media (max-width: 640px) {
    .videos-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .video-card--destaque .video-frame { max-width: none; }
}

/* As secoes mantem position:relative para ancorar conteudo posicionado */
#servicos, #sobre, #instagram, #localizacao {
    position: relative;
}

/* ==========================================================================
   Botão flutuante de WhatsApp — conversão principal, sempre alcançável
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    transform: scale(1.07);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.whatsapp-fab:focus-visible {
    outline: 3px solid var(--color-green);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .whatsapp-fab {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab { transition: none; }
    .whatsapp-fab:hover,
    .whatsapp-fab:focus-visible { transform: none; }
}

/* Nota sob o botão do formulário */
.form-note {
    margin-top: .625rem;
    font-size: .8125rem;
    line-height: 1.5;
    text-align: center;
    color: var(--color-muted, #6b7280);
}

/* Rede de segurança: se o JS falhar, o conteúdo animado aparece mesmo assim */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Foto do procedimento no card de servico — discreta, sem competir com o titulo */
.service-img {
    margin: 0 0 1.5rem;
    border-radius: var(--br-sm);
    overflow: hidden;
    background-color: var(--bg-card);
    aspect-ratio: 4 / 3;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.service-card:hover .service-img img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
    .service-img img { transition: none; }
    .service-card:hover .service-img img { transform: none; }
}

/* Sinal de disponibilidade — atualizado pelo script conforme o horario real */
.status-atendimento {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    padding: .3rem .75rem .3rem .6rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, .12);
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .01em;
}

.status-atendimento::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: .55;
}

.status-atendimento.is-aberto {
    background-color: rgba(255, 255, 255, .18);
}

.status-atendimento.is-aberto::before {
    background-color: #7ad9a6;
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(122, 217, 166, .25);
}

/* ==========================================================================
   Fundo vivo — camadas atravessando devagar, como nuvens passando.
   Referencia: o timelapse que o Luiz enviou.
   Só transform e opacity sao animados (GPU, sem repaint).
   ========================================================================== */
.fundo-vivo {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-cream);
}

.nuvem {
    position: absolute;
    display: block;
    border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
    filter: blur(64px);
    will-change: transform, opacity;
}

/* Cada camada atravessa a tela em ritmo proprio: as mais lentas ficam
   "ao fundo", as rapidas passam na frente. E o que da sensacao de profundidade. */
.n1 {
    width: 62vw; height: 34vh; top: 4%; left: -70vw;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(41, 80, 61, .36), rgba(41, 80, 61, .12) 55%, transparent 72%);
    animation: nuvem-passa 34s linear infinite;
}

.n2 {
    width: 48vw; height: 26vh; top: 26%; left: -60vw;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(195, 145, 60, .34), rgba(195, 145, 60, .11) 55%, transparent 72%);
    animation: nuvem-passa 46s linear infinite -14s;
}

.n3 {
    width: 74vw; height: 40vh; top: 48%; left: -84vw;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(103, 139, 123, .34), rgba(103, 139, 123, .11) 55%, transparent 72%);
    animation: nuvem-passa 58s linear infinite -28s;
}

.n4 {
    width: 40vw; height: 22vh; top: 68%; left: -50vw;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(41, 80, 61, .3), rgba(41, 80, 61, .1) 55%, transparent 72%);
    animation: nuvem-passa 40s linear infinite -22s;
}

.n5 {
    width: 56vw; height: 30vh; top: 84%; left: -66vw;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(195, 145, 60, .28), rgba(195, 145, 60, .09) 55%, transparent 72%);
    animation: nuvem-passa 52s linear infinite -38s;
}

/* Atravessa a tela inteira, subindo e descendo um pouco no caminho,
   e some nas pontas para nao "aparecer do nada" na borda */
@keyframes nuvem-passa {
    0%   { transform: translate3d(0, 0, 0) scale(1);       opacity: 0; }
    8%   {                                                  opacity: 1; }
    50%  { transform: translate3d(105vw, -4vh, 0) scale(1.14); }
    92%  {                                                  opacity: 1; }
    100% { transform: translate3d(210vw, 2vh, 0) scale(1);  opacity: 0; }
}

/* Respiro de luz sobre tudo, como o sol variando entre as nuvens */
.brilho-fundo {
    position: absolute;
    inset: -20%;
    display: block;
    background: radial-gradient(ellipse at 30% 20%,
        rgba(255, 252, 245, .5), transparent 55%);
    animation: brilho-respira 26s ease-in-out infinite;
    will-change: opacity;
}

@keyframes brilho-respira {
    0%, 100% { opacity: .22; }
    50%      { opacity: .68; }
}

/* As secoes deixam o fundo aparecer */
.hero,
#servicos,
#sobre,
#instagram,
#localizacao {
    background-color: transparent;
}

/* No celular, menos camadas: o custo do blur nao compensa */
@media (max-width: 768px) {
    .n2, .n4, .n5 { display: none; }
    .nuvem { filter: blur(48px); }
}

@media (prefers-reduced-motion: reduce) {
    .nuvem, .brilho-fundo { animation: none; }
    .nuvem { opacity: .55; transform: translate3d(60vw, 0, 0); }
}

/* ==========================================================================
   Efeito de vidro (liquid glass) e entrada letra a letra
   ========================================================================== */

/* Vidro: fundo translucido, desfoque do que esta atras e uma borda
   gradiente feita com mask-composite no ::before */
.liquid-glass {
    background: rgba(31, 39, 35, .10);
    backdrop-filter: blur(7px) saturate(1.1);
    -webkit-backdrop-filter: blur(7px) saturate(1.1);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .32);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, .6) 0%,
        rgba(255, 255, 255, .25) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, .25) 80%,
        rgba(255, 255, 255, .6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.btn.liquid-glass {
    color: var(--text-dark);
    border: 1px solid rgba(31, 39, 35, .12);
}

.btn.liquid-glass:hover {
    background: rgba(31, 39, 35, .16);
    border-color: rgba(31, 39, 35, .2);
}

/* Selo de credencial sobre a foto — aqui o vidro tem o que desfocar */
.hero-image-wrapper { position: relative; }

.selo-vidro {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .95rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-family: var(--font-sans);
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.selo-vidro svg { opacity: .9; }

@media (max-width: 600px) {
    .selo-vidro { left: 12px; bottom: 12px; font-size: .75rem; padding: .45rem .8rem; }
}

/* Entrada letra a letra do titulo */
/* inline-block muda o calculo de altura da linha; sem isto o titulo
   ganha um vao enorme entre as duas linhas */
[data-letras] .linha-hero {
    line-height: 1.05;
    /* o span de linha precisa se comportar como bloco para nao somar altura */
    display: block;
}

/* A palavra inteira e a unidade de quebra. Sem isto, cada letra vira um
   ponto de quebra e o navegador parte a palavra ao meio. */
[data-letras] .palavra {
    display: inline-block;
    white-space: nowrap;
}

[data-letras] .letra {
    display: inline-block;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity .5s cubic-bezier(.22, .9, .25, 1),
                transform .5s cubic-bezier(.22, .9, .25, 1);
    will-change: opacity, transform;
}

[data-letras].letras-visiveis .letra {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-letras] .letra { opacity: 1; transform: none; transition: none; }
    .liquid-glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(31, 39, 35, .08); }
}

/* ==========================================================================
   Animacoes gerais do site
   ========================================================================== */

/* Barra fina de progresso da leitura */
.progresso-leitura {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    pointer-events: none;
    background-color: transparent;
}

.progresso-leitura span {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--color-green), var(--color-gold));
    will-change: transform;
}

/* Numeros que contam: largura estavel para nao empurrar o texto ao lado */
[data-conta] { font-variant-numeric: tabular-nums; }

/* Parallax discreto: as fotos deslizam um pouco mais devagar que a pagina */
.hero-img,
.clinic-photo,
.insta-img {
    will-change: transform;
}

/* Cards do Instagram: a foto respira e o card sobe */
.insta-card {
    transition: transform .45s cubic-bezier(.22, .9, .25, 1),
                box-shadow .45s cubic-bezier(.22, .9, .25, 1);
}

.insta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(31, 39, 35, .32);
}

.insta-card .insta-img-wrapper,
.insta-card > div:first-child {
    overflow: hidden;
    border-radius: var(--br-sm);
}

.insta-card:hover .insta-img {
    transform: scale(1.06);
}

.insta-img {
    transition: transform .7s cubic-bezier(.22, .9, .25, 1);
}

/* Cards de video: moldura reage ao ponteiro */
.video-card .video-frame {
    transition: transform .45s cubic-bezier(.22, .9, .25, 1),
                box-shadow .45s cubic-bezier(.22, .9, .25, 1);
}

.video-card:hover .video-frame {
    transform: translateY(-5px);
    box-shadow: 0 28px 56px -24px rgba(0, 0, 0, .34);
}

/* Navbar: encolhe e ganha contorno depois que a pessoa rola */
.navbar {
    transition: padding .35s cubic-bezier(.22, .9, .25, 1),
                background-color .35s ease,
                box-shadow .35s ease;
}

.navbar.scrolled {
    box-shadow: 0 1px 0 rgba(31, 39, 35, .08),
                0 8px 28px -20px rgba(31, 39, 35, .35);
}

/* Titulo do hero: cada linha sobe no seu tempo */
.hero-content h1 > span,
.hero-content h1 {
    display: block;
}

[data-animate="fade-up"] .linha-hero {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s cubic-bezier(.22, .9, .25, 1),
                transform .8s cubic-bezier(.22, .9, .25, 1);
}

[data-animate="fade-up"].is-visible .linha-hero { opacity: 1; transform: translateY(0); }
[data-animate="fade-up"].is-visible .linha-hero:nth-child(1) { transition-delay: .05s; }
[data-animate="fade-up"].is-visible .linha-hero:nth-child(2) { transition-delay: .18s; }

/* Botao flutuante: um leve chamado a cada tanto, sem incomodar */
@keyframes fab-chamado {
    0%, 92%, 100% { transform: scale(1); }
    95%           { transform: scale(1.08); }
}

.whatsapp-fab { animation: fab-chamado 9s ease-in-out 4s infinite; }
.whatsapp-fab:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
    .progresso-leitura span { transition: none; }
    .insta-card, .insta-img, .video-card .video-frame, .navbar { transition: none; }
    .insta-card:hover, .video-card:hover .video-frame { transform: none; }
    .insta-card:hover .insta-img { transform: none; }
    .whatsapp-fab { animation: none; }
    [data-animate="fade-up"] .linha-hero { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Servicos — inclinacao 3D no ponteiro e revelacao em cascata
   ========================================================================== */
.services-grid { perspective: 1100px; }

.service-card {
    transform-style: preserve-3d;
    /* as variaveis sao escritas pelo script conforme a posicao do mouse */
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lift: 0px;
}

.service-card.tem-tilt {
    transition: transform .12s ease-out, box-shadow .4s cubic-bezier(.22, .9, .25, 1);
}

.service-card.tem-tilt.saindo {
    transition: transform .55s cubic-bezier(.22, .9, .25, 1),
                box-shadow .4s cubic-bezier(.22, .9, .25, 1);
}

/* O numero e o titulo saem do plano do card, dando profundidade real */
.service-card .card-num,
.service-card h3 {
    transition: transform .4s cubic-bezier(.22, .9, .25, 1),
                color .3s ease;
    transform: translateZ(0);
}

.service-card:hover .card-num { transform: translateZ(26px); color: var(--color-green); }
.service-card:hover h3        { transform: translateZ(18px); }

/* Brilho que acompanha o ponteiro sobre a foto */
.service-img { position: relative; }

.service-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--brilho-x, 50%) var(--brilho-y, 50%),
        rgba(255, 255, 255, .22) 0%,
        rgba(255, 255, 255, 0) 55%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.service-card:hover .service-img::after { opacity: 1; }

/* Revelacao em cascata: cada card entra um pouco depois do anterior */
.services-grid .service-card[data-animate] {
    transform: translateY(26px);
    opacity: 0;
    transition: opacity .75s cubic-bezier(.22, .9, .25, 1),
                transform .75s cubic-bezier(.22, .9, .25, 1);
}

.services-grid .service-card[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .service-card.tem-tilt { transform: none !important; transition: none; }
    .service-card:hover .card-num,
    .service-card:hover h3 { transform: none; }
    .service-img::after { display: none; }
    .services-grid .service-card[data-animate] { transform: none; transition-duration: .01ms; }
}

/* ==========================================================================
   Hover crossfade — retrato troca para a foto em atendimento
   Baseado no snippet do Luiz, adaptado a paleta e as regras do site.
   Sem JavaScript.
   ========================================================================== */
.hc-frame {
    position: relative;
    width: 100%;
    /* Sem limite, ao empilhar em uma coluna o quadro 4:5 fica alto demais */
    max-width: 460px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 20px;            /* o mesmo raio que .sobre-img-wrapper ja usava */
    background-color: var(--color-green);
    cursor: pointer;
}

.hc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 700ms cubic-bezier(.22, .9, .25, 1),
                transform 1120ms cubic-bezier(.22, .9, .25, 1);
}

.hc-a { opacity: 1; transform: scale(1); }
.hc-b { opacity: 0; transform: scale(1.10); }

.hc-frame:hover .hc-a,
.hc-frame:focus-within .hc-a { opacity: 0; transform: scale(1.06); }

.hc-frame:hover .hc-b,
.hc-frame:focus-within .hc-b { opacity: 1; transform: scale(1.04); }

/* Veu escuro so na base, para a legenda ter contraste sobre qualquer foto */
.hc-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top,
        rgba(20, 33, 27, .74) 0%,
        rgba(20, 33, 27, .18) 32%,
        rgba(20, 33, 27, 0) 52%);
}

.hc-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    pointer-events: none;
}

.hc-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -.01em;
    color: #f6f3ec;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
    transition: opacity 490ms cubic-bezier(.22, .9, .25, 1),
                transform 490ms cubic-bezier(.22, .9, .25, 1);
}

.hc-label-b { position: absolute; left: 0; right: 0; bottom: 0; }

.hc-label-a { opacity: 1; transform: translateY(0); }
.hc-label-b { opacity: 0; transform: translateY(8px); }

.hc-frame:hover .hc-label-a,
.hc-frame:focus-within .hc-label-a { opacity: 0; transform: translateY(-8px); }

.hc-frame:hover .hc-label-b,
.hc-frame:focus-within .hc-label-b { opacity: 1; transform: translateY(0); }

/* Sem mouse (celular/tablet): a segunda foto aparece ao toque */
@media (min-width: 992px) {
    .hc-frame { max-width: none; }
}

@media (hover: none) {
    .hc-frame:active .hc-a { opacity: 0; }
    .hc-frame:active .hc-b { opacity: 1; transform: scale(1.04); }
    .hc-frame:active .hc-label-a { opacity: 0; }
    .hc-frame:active .hc-label-b { opacity: 1; transform: translateY(0); }
}

/* Quem pede menos movimento continua vendo a troca, sem deslize nem zoom */
@media (prefers-reduced-motion: reduce) {
    .hc-img,
    .hc-label { transition-duration: 200ms; }
    .hc-a, .hc-b,
    .hc-frame:hover .hc-a, .hc-frame:hover .hc-b,
    .hc-frame:focus-within .hc-a, .hc-frame:focus-within .hc-b { transform: none; }
    .hc-label-a, .hc-label-b,
    .hc-frame:hover .hc-label-a, .hc-frame:hover .hc-label-b { transform: none; }
}

/* Dica de interacao: convida a mexer na foto, e some assim que a pessoa mexe */
.hc-dica {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem .45rem .65rem;
    border-radius: 9999px;
    background-color: rgba(20, 33, 27, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f6f3ec;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .01em;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    animation: hc-dica-entra .6s cubic-bezier(.22, .9, .25, 1) 1.1s forwards,
               hc-dica-respira 2.6s ease-in-out 2s infinite;
    transition: opacity .35s ease, transform .35s ease;
}

.hc-dica svg { flex-shrink: 0; opacity: .85; }

/* Some no hover/toque: quem ja descobriu nao precisa mais do aviso */
.hc-frame:hover .hc-dica,
.hc-frame:focus-within .hc-dica,
.hc-frame:active .hc-dica {
    opacity: 0;
    transform: translateY(-6px) scale(.96);
    animation: none;
}

@keyframes hc-dica-entra {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hc-dica-respira {
    0%, 100% { box-shadow: 0 0 0 0 rgba(246, 243, 236, 0); }
    50%      { box-shadow: 0 0 0 5px rgba(246, 243, 236, .10); }
}

/* O texto muda conforme o aparelho: mouse ou toque */
.hc-dica-toque { display: none; }

@media (hover: none) {
    .hc-dica-mouse { display: none; }
    .hc-dica-toque { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
    .hc-dica {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ==========================================================================
   Refinamento visual — acabamento sobre a identidade que ja existia
   ========================================================================== */

/* 1. Botoes: elevacao sutil e curva mais natural que o 'ease' padrao */
.btn {
    transition: background-color .3s ease,
                color .3s ease,
                transform .35s cubic-bezier(.22, .9, .25, 1),
                box-shadow .35s cubic-bezier(.22, .9, .25, 1);
    will-change: transform;
}

.btn-green,
.btn-gold,
.btn-dark-full {
    box-shadow: 0 1px 2px rgba(31, 39, 35, .08);
}

.btn-green:hover,
.btn-gold:hover,
.btn-dark-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(31, 39, 35, .28);
}

.btn-green:active,
.btn-gold:active,
.btn-dark-full:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(31, 39, 35, .12);
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--color-green);
}

/* 2. Cards de servico: sombra difusa em vez de so deslocar */
.service-card {
    transition: transform .4s cubic-bezier(.22, .9, .25, 1),
                box-shadow .4s cubic-bezier(.22, .9, .25, 1),
                border-color .4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px -22px rgba(31, 39, 35, .30);
    border-color: rgba(41, 80, 61, .22);
}

/* 3. Numero da secao: risco fino antes do rotulo, marcando o ritmo */
.section-num {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    letter-spacing: .14em;
}

.section-num::before {
    content: '';
    width: 26px;
    height: 1px;
    background-color: currentColor;
    opacity: .45;
}

/* 4. Titulos grandes: tracking negativo, como pede uma serifada em corpo alto */
.text-xxl,
h1.font-serif {
    letter-spacing: -.02em;
}

/* 5. Links de texto: sublinhado que cresce a partir da esquerda */
.link-underline,
.link-underline-white {
    position: relative;
    text-decoration: none;
}

.link-underline::after,
.link-underline-white::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22, .9, .25, 1);
}

.link-underline:hover::after,
.link-underline-white:hover::after {
    transform: scaleX(1);
}

/* 6. Numeros da prova social: peso e respiro */
.stat-item h4 {
    letter-spacing: -.02em;
}

/* 7. Foto do hero e do consultorio: leve profundidade */
.hero-image-wrapper,
.clinic-photo-wrapper {
    box-shadow: 0 30px 70px -40px rgba(31, 39, 35, .45);
    border-radius: 20px;
    overflow: hidden;
}

/* 8. Quadro do crossfade acompanha a mesma profundidade */
.hc-frame {
    box-shadow: 0 30px 70px -40px rgba(31, 39, 35, .45);
}

@media (prefers-reduced-motion: reduce) {
    .btn, .service-card, .link-underline::after, .link-underline-white::after {
        transition-duration: .01ms;
    }
    .btn:hover, .service-card:hover { transform: none; }
}

/* ==========================================================================
   Acabamento
   ========================================================================== */

/* Foco visivel em tudo que e navegavel por teclado (WCAG 2.4.7).
   :focus-visible so aparece na navegacao por teclado, nao no clique de mouse. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
video:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 3px;
    border-radius: 4px;
}

.bg-green a:focus-visible,
.bg-green button:focus-visible,
.footer a:focus-visible {
    outline-color: var(--color-white);
}

/* Atalho para quem usa teclado pular direto ao conteudo */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: .75rem 1.25rem;
    background-color: var(--color-green);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 0 0 var(--br-sm) 0;
}

.skip-link:focus {
    left: 0;
}

/* Selecao de texto na cor da marca */
::selection {
    background-color: var(--color-green);
    color: var(--color-white);
}

