/* ========================================
   FAUSTINI ODONTOLOGIA - CLAREAMENTO DENTAL
   Landing Page Styles - Optimized for Performance
   ======================================== */

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

/* ✅ OTIMIZAÇÃO: Performance hints para elementos animados */
.ba-after, .ba-divider, .ba-handle {
    will-change: clip-path, left, transform;
}

.ba-before, .ba-after {
    contain: layout;
}

:root {
    /* Brand Colors */
    --brand-blue: #a8cee4;
    --brand-yellow: #ffe27a;
    --brand-pink: #fad4d3;
    --brand-green: #c1ff72;
    --brand-text: #333333;
    --brand-text-light: #666666;
    --brand-bg-hero: #f9f9f9;
    --brand-card-hero: rgba(239, 249, 255, 0.95);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Josefin Sans', sans-serif;
    
    /* Shadows */
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-cta: 0 4px 12px rgba(193, 255, 114, 0.3);
    --shadow-cta-hover: 0 6px 20px rgba(193, 255, 114, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--brand-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* === HEADER === */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 12px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.header-address {
    text-align: right;
    font-size: 14px; /* Mobile */
    font-weight: 500;
    line-height: 1.4;
}

@media (min-width: 769px) {
    .header-address {
        font-size: 16px; /* Desktop - acessibilidade */
    }
}

/* === HERO SECTION === */
.hero {
    background: var(--brand-bg-hero);
    padding: 20px 16px 24px; /* Reduzido padding */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha no topo */
    position: relative; /* Fix para transição suave */
}

@media (min-width: 769px) {
    .hero {
        padding: 40px 20px;
        min-height: auto;
    }
}

@media (min-width: 769px) {
    .hero {
        min-height: 100vh;
        padding: 20px 40px 40px;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    line-height: 1.1;
}

@media (min-width: 769px) {
    .hero-title {
        display: none; /* Oculta no desktop */
    }
}

.hero-title .title-line-1,
.hero-title .title-line-3 {
    font-weight: 400;
    display: block;
}

.hero-title .title-line-2 {
    font-weight: 700;
    font-style: italic;
    color: #4c7fb5;
    text-shadow: 1px 1px 0 white, -1px -1px 0 white;
    display: block;
}

@media (min-width: 769px) {
    .hero-title {
        font-size: 56px;
        margin-bottom: 20px;
    }
}

/* === HERO MOBILE - LAYOUT OVERLAP (45% + 65%) === */

/* Título centralizado */
.hero-title {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 56px;
    font-size: 32px;
    line-height: 1.1;
    padding: 0 16px;
}

.hero-title .title-line-1,
.hero-title .title-line-3 {
    display: block;
    font-weight: 400;
}

.hero-title .title-line-2 {
    display: block;
    font-weight: 700;
    font-style: italic;
    color: #4c7fb5;
}

/* Container mobile - dois blocos com overlap */
.hero-mobile {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    position: relative;
}

@media (min-width: 769px) {
    .hero-title {
        display: none;
    }
    
    .hero-mobile {
        display: none !important;
    }
}

/* Bloco esquerda - 45% */
.hero-mobile-left {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 8px;
    padding-top: 4px;
    padding-right: 12px; /* Adiciona espaço à direita */
    z-index: 10; /* SEMPRE na frente */
    position: relative;
}

/* Subtítulo mobile - maiúsculas pequenas */
.hero-subtitle-mobile {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.6;
    margin: 0 0 4px 0; /* Reduzido de 8px para 4px */
    text-transform: uppercase;
    color: var(--brand-text);
}

/* Checks simples - altura reduzida e MAIS PERTO do subtítulo */
.hero-benefits-simple {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 8px; /* Espaço pequeno acima */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha no topo */
    gap: 6px; /* Reduzido de 8px para 6px */
    flex: 1;
    padding-bottom: 12px; /* Reduzido de 20px para 12px */
}

.hero-benefits-simple li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-benefits-simple li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.hero-benefits-simple li span {
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-text);
}

/* Bloco direita - 80% com overlap MAIOR (igual protótipo) */
.hero-mobile-right {
    width: 80%; /* Aumentado de 75% para 80% */
    margin-left: -25%; /* OVERLAP MAIOR: -25% em vez de -10% */
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: flex-end; /* Alinha imagem à DIREITA */
    padding-bottom: 0;
    position: relative;
    z-index: 0; /* SEMPRE atrás do texto */
}

.hero-mobile-right img {
    width: auto; /* AUTO - deixa calcular baseado na altura */
    height: auto; /* Auto para respeitar proporção natural 3:4 */
    max-height: 48vh; /* Reduzido de 60vh para 48vh (imagem 3:4) */
    max-width: 100%; /* Máximo da largura do container */
    object-fit: contain; /* CONTAIN para mostrar imagem completa */
    /* Proporção natural: 3:4 (1200x1600) */
    /* SEM borda, SEM sombra */
}

/* CTA mobile - centralizado, destaque */
.hero-cta {
    text-align: center;
    padding: 0 20px;
    margin-top: -20px;
    margin-bottom: 32px;
    position: relative;
    z-index: 20;
}

@media (min-width: 769px) {
    .hero-cta {
        display: none;
    }
}

@media (min-width: 769px) {
    .hero-cta {
        display: none;
    }
}

/* Hero Desktop Layout - Above the Fold */
.hero-desktop {
    display: none;
}

@media (min-width: 769px) {
    .hero-desktop {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 150px); /* 100vh menos header */
        max-height: 800px;
        justify-content: space-between;
    }
    
    /* Oculta elementos mobile no desktop */
    .hero-mobile {
        display: none !important;
    }
}

.hero-desktop-content {
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 5%;
    height: 100%;
    align-items: stretch;
}

/* Coluna Esquerda */
.hero-desktop-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px; /* Aumentado de 32px para 40px */
}

.hero-desktop-text {
    text-align: left;
}

.hero-title-desktop {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 16px; /* Adicionado espaço entre título e subtítulo */
}

.hero-title-desktop .title-line-1,
.hero-title-desktop .title-line-3 {
    font-weight: 400;
    display: block;
}

.hero-title-desktop .title-line-2 {
    font-weight: 700;
    font-style: italic;
    color: #4c7fb5;
    text-shadow: 1px 1px 0 white, -1px -1px 0 white;
    display: block;
}

.hero-subtitle-desktop {
    font-size: 20px;
    font-style: italic;
    color: var(--brand-text-light);
    margin-bottom: 0;
}

.hero-desktop-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Aumentado de 12px para 16px */
}

.benefit-card-new {
    background: var(--brand-card-hero);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.benefit-card-new:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.benefit-card-new svg {
    flex-shrink: 0;
}

.benefit-card-new span {
    font-weight: 600;
    font-size: 16px;
}

/* Coluna Direita - Imagem */
.hero-desktop-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-desktop-right img {
    width: 100%;
    height: 100%;
    max-height: 600px; /* Reduzido de 700px para 600px */
    object-fit: contain;
    object-position: center;
    /* Removido: border-radius e box-shadow */
}

/* CTA Centralizado */
.hero-desktop-cta {
    text-align: center;
    padding: 24px 0;
}

/* Remove estilos antigos não usados */
.hero-desktop-wrapper,
.hero-desktop-image {
    display: none;
}

/* Hero CTA */
.hero-cta {
    text-align: center;
    margin-top: -20px;
    position: relative;
    z-index: 20;
}

@media (min-width: 769px) {
    .hero-cta {
        display: none; /* CTA mobile-only */
    }
}

/* === CTA BUTTON === */
.cta-button {
    display: inline-block;
    background: var(--brand-green);
    color: var(--brand-text);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow-cta);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-hover);
}

.cta-pulse {
    animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-cta);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-cta-hover);
    }
}

.cta-pulse:hover {
    animation: none;
}

.cta-large {
    font-size: 18px;
    padding: 18px 60px;
}

/* === SECTIONS === */
section {
    padding: 60px 20px;
}

@media (min-width: 769px) {
    section {
        padding: 80px 40px;
    }
}

.section-white {
    background: white;
}

.section-gray {
    background: var(--brand-bg-hero);
}

.section-cta-bg {
    background: linear-gradient(to bottom, var(--brand-blue), white);
}

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

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

.section-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--brand-text);
}

@media (min-width: 769px) {
    .section-title {
        font-size: 42px;
    }
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: var(--brand-text-light);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .section-subtitle {
        font-size: 20px;
    }
}

.mobile-break {
    display: block;
}

@media (min-width: 769px) {
    .mobile-break {
        display: none;
    }
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* === GRIDS === */
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 30px; /* Reduzido de 40px para 30px - cards mais largos */
}

@media (min-width: 769px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 20px;
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 30px; /* Reduzido de 40px para 30px - cards mais largos */
}

@media (min-width: 769px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding: 0 20px;
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }
}

/* === FEATURE CARDS === */
.feature-card {
    background: var(--brand-card-hero);
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.feature-icon {
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

@media (min-width: 769px) {
    .feature-card h3 {
        font-size: 24px;
    }
}

.feature-card p {
    font-size: 15px;
    color: var(--brand-text-light);
    line-height: 1.7;
}

/* === BEFORE/AFTER SLIDER === */
.before-after-container {
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 0 16px;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

@media (min-width: 769px) {
    .before-after-slider {
        height: 450px;
    }
}

@media (min-width: 1024px) {
    .before-after-slider {
        height: 500px;
    }
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-label {
    position: absolute;
    top: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 5;
}

.ba-label-before {
    left: 16px;
}

.ba-label-after {
    right: 16px;
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ba-handle svg {
    color: var(--brand-text);
}

.result-label {
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    color: var(--brand-text-light);
    margin-top: 16px;
}

/* === STATIC COMPARISONS === */
.static-comparison {
    margin-bottom: 60px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

.comparison-image {
    position: relative;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 769px) {
    .comparison-image {
        height: 280px;
    }
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-badge {
    position: absolute;
    top: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}

.comparison-image:first-child .comparison-badge {
    left: 12px;
}

.comparison-image:last-child .comparison-badge {
    right: 12px;
}

/* === PRODUCT CARDS === */
.product-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .product-card img {
        height: 240px;
    }
}

.product-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 12px;
}

@media (min-width: 1024px) {
    .product-card h3 {
        font-size: 22px;
    }
}

.product-card p {
    font-size: 15px;
    color: var(--brand-text-light);
    line-height: 1.7;
    flex: 1;
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--brand-yellow);
    color: var(--brand-text);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.product-badge-green {
    background: var(--brand-green);
}

.product-featured {
    grid-column: span 1;
}

@media (min-width: 769px) {
    .product-featured {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .product-featured {
        grid-column: span 1;
    }
}

/* === CAROUSEL === */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 48px;
    border-radius: 16px;
    overflow: hidden;
    padding: 0 20px; /* Margens laterais mobile */
}

@media (min-width: 769px) {
    .carousel-container {
        max-width: 900px; /* Limita largura desktop */
        padding: 0 40px; /* Margens laterais desktop */
    }
}

@media (min-width: 1024px) {
    .carousel-container {
        max-width: 1000px; /* Largura máxima desktop large */
        padding: 0 60px; /* Margens laterais maiores */
    }
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel img {
    flex-shrink: 0;
    width: 100%;
    /* SEM aspect-ratio - fotos horizontais naturais */
    max-height: 350px; /* Mobile */
    object-fit: cover;
    border-radius: 12px;
}

@media (min-width: 769px) {
    .carousel img {
        max-height: 450px; /* Desktop */
    }
}

@media (min-width: 1024px) {
    .carousel img {
        max-height: 500px; /* Desktop large */
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cccccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--brand-blue);
}

/* === DENTISTS === */
.dentists-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

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

.dentist-card img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin: 0 auto 12px;
}

@media (min-width: 769px) {
    .dentist-card img {
        width: 160px;
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .dentist-card img {
        width: 200px;
        height: 200px;
    }
}

.dentist-card h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.dentist-card p {
    font-size: 14px;
    color: var(--brand-text-light);
}

/* === TESTIMONIALS === */
.testimonials-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 20px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

@media (min-width: 769px) {
    .testimonials-scroll {
        padding: 0 40px 16px;
    }
}

.testimonial-card {
    flex: 0 0 calc(100% - 60px);
    min-width: 260px;
    max-width: 340px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    scroll-snap-align: start;
}

@media (min-width: 769px) {
    .testimonial-card {
        flex: 0 0 45%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 45%;
    }
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-header h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.testimonial-header p {
    font-size: 14px;
    color: var(--brand-text-light);
}

.testimonial-stars {
    color: var(--brand-yellow);
    font-size: 18px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--brand-text-light);
    line-height: 1.7;
}

/* === FAQ === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    background: white;
    transition: background 0.3s ease;
}

@media (min-width: 769px) {
    .faq-question {
        padding: 20px 24px;
        font-size: 17px;
    }
}

.faq-question:hover {
    background: var(--brand-bg-hero);
}

.faq-item.active .faq-question {
    background: var(--brand-bg-hero);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--brand-text-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 0 20px 20px;
}

@media (min-width: 769px) {
    .faq-item.active .faq-answer {
        padding: 0 24px 20px;
    }
}

.faq-answer p {
    font-size: 14px;
    color: var(--brand-text-light);
    line-height: 1.7;
}

@media (min-width: 769px) {
    .faq-answer p {
        font-size: 15px;
    }
}

/* === CONTACT === */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 769px) {
    .contact-card {
        padding: 32px;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--brand-blue);
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .contact-item span {
        font-size: 15px;
    }
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.map-container {
    margin: 24px 0;
}

.social-section {
    text-align: center;
    margin-top: 32px;
}

.social-section h3 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    background: #8bbbd6;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* === FOOTER === */
#footer {
    background: #333333;
    color: white;
    padding: 24px 20px;
    text-align: center;
}

#footer p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (min-width: 769px) {
    #footer p {
        font-size: 13px;
    }
}

/* === FLOATING WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

@media (min-width: 769px) {
    .whatsapp-float {
        width: 64px;
        height: 64px;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    animation: none;
}

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

@media (min-width: 769px) {
    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* === LOADING & LAZY LOAD === */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* WhatsApp Icon nos botões CTA */
.whatsapp-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* === FADE-IN ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   ANIMAÇÕES REMOVIDAS - CARDS APARECEM IMEDIATAMENTE
   =================================================== */

/* Todos os elementos começam VISÍVEIS */
.fade-in-element {
    opacity: 1;
    transform: translateY(0);
}

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

/* Cards aparecem direto - SEM animação */
.feature-card,
.product-card,
.testimonial-card,
.dentist-card,
.comparison-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Remove delays - tudo aparece imediatamente */
.feature-card:nth-child(1),
.feature-card:nth-child(2),
.feature-card:nth-child(3),
.feature-card:nth-child(4),
.product-card:nth-child(1),
.product-card:nth-child(2),
.product-card:nth-child(3),
.testimonial-card:nth-child(1),
.testimonial-card:nth-child(2),
.testimonial-card:nth-child(3),
.testimonial-card:nth-child(4) {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

/* ===================================
   V8: Otimizações CLS (Cumulative Layout Shift)
   =================================== */

/* Prevenir layout shift em containers principais */
.hero-mobile,
.hero-desktop,
.features,
.products,
.results,
.clinic,
.team,
.testimonials,
.faq,
.contact {
    contain: layout;
}

/* Hero containers já definidos no inline style do HTML
   mas adicionando fallback aqui também */
.hero-mobile-right,
.hero-desktop-right {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    contain: layout;
}

.hero-mobile-right img,
.hero-desktop-right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Containers de imagens com aspect ratio fixo */
.result-comparison,
.result-static-pair,
.product-card img,
.clinic-carousel,
.testimonial-avatar {
    contain: layout;
}

/* Logo com dimensões fixas */
.header-logo {
    width: 160px;
    height: 50px;
    display: inline-block;
    contain: layout;
}

/* Prevenir shift em elementos animados */
.feature-card,
.product-card,
.testimonial-card,
.faq-item {
    contain: layout;
    will-change: auto;
}

/* Botões CTA com dimensões estáveis */
.cta-button {
    contain: layout;
    min-height: 54px;
}

/* Footer com altura mínima */
footer {
    min-height: 200px;
    contain: layout;
}

/* Prevenir shift no WhatsApp float button */
.whatsapp-float {
    contain: layout;
}

/* Smooth font loading - prevenir flash */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Garantir que skeleton/placeholders não causem shift */
img[loading="lazy"] {
    content-visibility: auto;
}


/* ===================================
   V9: Acessibilidade - Focus Visible
   =================================== */

/* Focus visible para todos os elementos interativos */
button:focus,
a:focus,
.cta-button:focus,
.faq-question:focus,
.carousel-btn:focus,
.whatsapp-float:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4c7fb5;
    outline-offset: 2px;
}

/* Focus-visible para navegação por teclado */
button:focus-visible,
a:focus-visible,
.cta-button:focus-visible,
.faq-question:focus-visible {
    outline: 3px solid #4c7fb5;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(76, 127, 181, 0.2);
}

/* Remove outline padrão no mouse (mantém no teclado) */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Focus nos links do footer */
footer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ===================================
   V9: Aspect Ratio - Carousel e Before/After
   =================================== */

/* Carousel de clínicas - aspect ratio fixo */
.clinic-carousel img,
.carousel-container img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Before/After Slider - aspect ratio fixo */
.ba-slider,
.result-comparison {
    aspect-ratio: 735 / 613;
    position: relative;
    width: 100%;
    contain: layout;
}

.ba-before,
.ba-after {
    aspect-ratio: 735 / 613;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-before img,
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Result static pairs - aspect ratio consistente */
.result-static-pair {
    aspect-ratio: 2 / 1;
    display: flex;
    gap: 10px;
}

.result-static-item {
    flex: 1;
    aspect-ratio: 1 / 1;
    position: relative;
}

.result-static-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ===================================
   V9: Contraste Melhorado - Badges
   =================================== */

/* Badge amarelo com contraste WCAG AAA */
.product-badge {
    background: var(--brand-yellow);
    color: #1a1a1a; /* Mais escuro para contraste 6.8:1 */
    font-weight: 700; /* Reforça legibilidade */
}

.product-badge-green {
    background: #25d366;
    color: #fff;
    font-weight: 700;
}

/* Hover states com contraste mantido */
.product-badge:hover {
    background: #ffd54f; /* Mais escuro no hover */
    color: #000;
}

/* ===================================
   V9: Skip to Content (Acessibilidade)
   =================================== */

/* Link de pular navegação para leitores de tela */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4c7fb5;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #fff;
}

/* ===================================
   V9: Aria Live Regions
   =================================== */

/* Região de anúncios para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ===================================
   V10: Seção Bio da Dentista (E-A-T)
   =================================== */

#dentist-bio {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 20px;
}

.dentist-bio-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.dentist-bio-image {
    flex-shrink: 0;
}

.dentist-bio-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dentist-bio-text {
    flex: 1;
    max-width: 800px;
}

.dentist-bio-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.dentist-credentials {
    font-size: 1.1rem;
    color: #4c7fb5;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4c7fb5;
}

.dentist-bio-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.dentist-specialties,
.dentist-credentials-full {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dentist-specialties h4,
.dentist-credentials-full h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.dentist-specialties ul,
.dentist-credentials-full ul {
    list-style: none;
    padding: 0;
}

.dentist-specialties li,
.dentist-credentials-full li {
    padding: 8px 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.dentist-specialties li {
    padding-left: 25px;
    position: relative;
}

.dentist-credentials-full li strong {
    color: #4c7fb5;
    font-weight: 700;
}

.dentist-cta {
    text-align: center;
    margin-top: 30px;
}

.dentist-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Responsive */
@media (min-width: 769px) {
    .dentist-bio-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }
    
    .dentist-bio-image img {
        width: 300px;
        height: 300px;
    }
    
    .dentist-bio-text h3 {
        font-size: 2.5rem;
    }
}

/* ===================================
   V10: Schema.org Enhancements
   =================================== */

/* Estilo para citações científicas nas FAQs */
.faq-answer strong {
    color: #4c7fb5;
    font-weight: 700;
}

/* Destaque para fontes científicas */
.faq-answer p {
    position: relative;
}


/* ===================================
   V11: Contraste Corrigido (PageSpeed)
   =================================== */

/* Correção 1: Badge verde com contraste WCAG AA */
.product-badge-green {
    background: #1fa855 !important; /* verde mais escuro, contraste 4.6:1 */
    color: #fff;
    font-weight: 700;
}

/* Correção 2: Strong em todas seções com contraste WCAG AAA */
.dentist-bio strong,
.dentist-specialties strong,
.dentist-credentials strong,
.dentist-cro strong,
.faq-answer strong {
    color: #1a4d7a !important; /* azul escuro, contraste 7.2:1 WCAG AAA */
    font-weight: 700;
}

/* Correção 3: Credential labels com contraste adequado */
.credential-label {
    color: #1a4d7a; /* azul escuro, contraste 7.2:1 */
    font-weight: 700;
}

/* ===================================
   V11: Seção Sobre Nós Expandida
   =================================== */

/* Removido: Estilos antigos .dentists-grid e .dentist-card */

/* Novo grid expandido */
.dentists-grid-expanded {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
}

/* Card completo do dentista */
.dentist-card-full {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Foto do dentista */
.dentist-photo {
    align-self: center;
    flex-shrink: 0;
}

.dentist-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #4c7fb5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Informações do dentista */
.dentist-info {
    flex: 1;
}

.dentist-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.dentist-cro {
    font-size: 1.1rem;
    color: #4c7fb5;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.dentist-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

/* Áreas de atuação */
.dentist-specialties {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #4c7fb5;
}

.dentist-specialties h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.dentist-specialties ul {
    list-style: none;
    padding: 0;
}

.dentist-specialties li {
    padding: 8px 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

/* Formação e credenciais */
.dentist-credentials {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #e0e0e0;
}

.dentist-credentials h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.dentist-credentials ul {
    list-style: none;
    padding: 0;
}

.dentist-credentials li {
    padding: 10px 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.dentist-credentials li:last-child {
    border-bottom: none;
}

/* Desktop: lado a lado */
@media (min-width: 769px) {
    .dentist-card-full {
        flex-direction: row;
        align-items: flex-start;
        padding: 40px;
    }
    
    .dentist-photo {
        margin-right: 40px;
    }
    
    .dentist-photo img {
        width: 280px;
        height: 280px;
    }
    
    .dentist-info h3 {
        text-align: left;
        font-size: 2.5rem;
    }
    
    .dentist-cro {
        text-align: left;
    }
}

/* Desktop grande: fotos maiores */
@media (min-width: 1200px) {
    .dentist-photo img {
        width: 320px;
        height: 320px;
    }
}

