/* ========================================
   OFTALMOVET - Dra. Carolina Neumann
   Landing Page Styles v3 - Performance Optimized
   Cores: #395756 (verde escuro) | #C4B18A (dourado)
   Fontes: Nunito (títulos/corpo) | Manrope (destaques) | Sora (botões)
======================================== */

:root {
    --color-primary: #395756;
    --color-primary-dark: #2d4544;
    --color-accent: #C4B18A;
    --color-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-cream: #faf9f7;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-text-muted: #b2bec3;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1fb855;
    --color-star: #fbbf24;
    --color-border: #e9ecef;
    
    --font-title: 'Nunito', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-detail: 'Manrope', sans-serif;
    --font-button: 'Sora', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

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

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HERO BRAND
======================================== */
.hero-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 1px solid #e7ebef;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.logo-image {
    display: block;
    width: 220px;
    height: auto;
    max-width: 100%;
}

/* Google Badge */
.google-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    box-shadow: var(--shadow-sm);
}

.google-badge-icon {
    width: 20px;
    height: 20px;
}

.google-badge-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.google-badge-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.google-badge-score {
    font-family: var(--font-detail);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
}

.google-badge-stars {
    display: flex;
    gap: 1px;
}

.google-badge-stars svg {
    width: 11px;
    height: 11px;
    color: var(--color-star);
}

.google-badge-reviews {
    font-family: var(--font-detail);
    font-size: 10px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ========================================
   HERO - Compacto e Alinhado
======================================== */
.hero {
    padding: 48px 0 60px;
    background: linear-gradient(180deg, var(--color-bg-cream) 0%, var(--color-white) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    grid-template-areas:
        "content image"
        "actions image";
    column-gap: 48px;
    row-gap: 16px;
    align-items: start;
}

.hero-content {
    grid-area: content;
    padding-top: 0;
}

.hero-actions {
    grid-area: actions;
    margin-top: 8px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-badges::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-detail);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.hero-badges .badge:last-child {
    order: 3;
    transform: translateX(50%);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

/* Hero Image - Menor */
.hero-image {
    grid-area: image;
    max-width: 380px;
    margin-left: auto;
    align-self: center;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SECTIONS
======================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ========================================
   ATENDIMENTO - Carrossel Infinito
======================================== */
.atendimento {
    --atendimento-slide-width: 280px;
    --atendimento-slide-gap: 16px;
    --atendimento-set-size: 8;
    padding: 60px 0;
    background: var(--color-white);
    overflow: hidden;
}

.atendimento-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 32px;
}

.atendimento-track {
    display: flex;
    gap: 16px;
    animation: scrollLeft 25s linear infinite;
    width: max-content;
}

.atendimento-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% {
        transform: translateX(calc(
            (var(--atendimento-slide-width) + var(--atendimento-slide-gap)) * var(--atendimento-set-size) * -1
        ));
    }
}

.atendimento-slide {
    flex: 0 0 var(--atendimento-slide-width);
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.atendimento-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder */
.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #f1f2f6 0%, #dfe4ea 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-align: center;
    padding: 16px;
    border: 2px dashed #ced6e0;
    border-radius: var(--radius-lg);
}

.placeholder-image span {
    font-family: var(--font-detail);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.placeholder-image small {
    font-size: 10px;
    opacity: 0.7;
}

/* ========================================
   DEPOIMENTOS
======================================== */
.depoimentos {
    padding: 60px 0;
    background: var(--color-bg-light);
}

.depoimentos-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.depoimentos-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.depoimentos-track::-webkit-scrollbar { display: none; }

.depoimento-card {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 280px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.depoimento-card:hover {
    transform: translateY(-3px);
}

.depoimento-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.depoimento-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.depoimento-info { flex: 1; }

.depoimento-name {
    font-family: var(--font-detail);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text);
    display: block;
    margin-bottom: 3px;
}

.depoimento-stars {
    display: flex;
    gap: 2px;
}

.star-small {
    width: 12px;
    height: 12px;
    color: var(--color-star);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.depoimento-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Carousel Controls */
.carousel-btn {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-border);
    transition: all 0.2s;
}

.dot.active, .dot:hover {
    background: var(--color-primary);
    transform: scale(1.2);
}

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

/* ========================================
   ESTRUTURA - Grid Uniforme
======================================== */
.estrutura {
    padding: 60px 0;
    background: var(--color-white);
}

.estrutura-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.estrutura-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.estrutura-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.estrutura-item:hover img {
    transform: scale(1.04);
}

/* ========================================
   COMO FUNCIONA
======================================== */
.como-funciona {
    padding: 60px 0;
    background: var(--color-primary);
}

.como-funciona .section-title {
    color: var(--color-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.step-card {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: background 0.2s, transform 0.2s;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
}

.step-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 6px;
}

.step-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

.como-funciona-cta { text-align: center; }

/* ========================================
   AUTORIDADE
======================================== */
.autoridade {
    padding: 60px 0;
    background: var(--color-bg-cream);
}

.autoridade-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.autoridade-image img {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.autoridade-image {
    margin: 0 0 24px;
}

.autoridade-image-desktop {
    display: block;
    margin: 0;
}

.autoridade-image-mobile {
    display: none;
}

.autoridade-title {
    font-family: var(--font-title);
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.autoridade-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 28px;
}

.autoridade-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background:
        linear-gradient(135deg, rgba(196, 177, 138, 0.14) 0%, rgba(196, 177, 138, 0.04) 100%),
        var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(196, 177, 138, 0.28);
    box-shadow:
        0 10px 24px rgba(57, 87, 86, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-icon {
    width: 38px;
    height: 38px;
    padding: 8px;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(196, 177, 138, 0.28) 0%, rgba(196, 177, 138, 0.12) 100%);
    border: 1px solid rgba(196, 177, 138, 0.35);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feature-item span {
    font-family: var(--font-detail);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-text);
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 177, 138, 0.5);
    box-shadow:
        0 14px 30px rgba(57, 87, 86, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* ========================================
   FAQ
======================================== */
.faq {
    padding: 60px 0;
    background: var(--color-white);
}

.faq-list {
    max-width: 680px;
    margin: 0 auto 40px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: transform 0.2s;
}

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

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

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 18px;
}

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

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

/* ========================================
   CTA FINAL
======================================== */
.cta-final {
    padding: 60px 0;
    background: var(--color-bg-light);
}

.cta-final-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: start;
}

.cta-final-title {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.cta-final-subtitle {
    font-family: var(--font-detail);
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 24px;
    font-weight: 600;
}

.cta-final-info { margin-bottom: 24px; }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    margin-top: 2px;
}

.info-item span {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.cta-final-map { margin-top: 24px; }

.cta-final-image {
    align-self: start;
}

.cta-final-image img {
    width: 100%;
    max-width: 100%;
    height: 520px;
    min-height: 0;
    border-radius: var(--radius-xl);
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow-lg);
}

.cta-final-image .placeholder-image {
    min-height: 380px;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-family: var(--font-body);
    font-size: 12px;
    opacity: 0.85;
}

.footer-logo {
    display: block;
    margin: 0 auto;
    max-width: 220px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
}

/* ========================================
   WHATSAPP FLOAT
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s;
    animation: pulse 2s infinite;
}

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

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ========================================
   RESPONSIVE - Mobile First Optimized
======================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "image"
            "actions";
        gap: 32px;
    }
    
    .hero-image {
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-actions {
        margin-top: 0;
    }
    
    .hero-content,
    .hero-actions { text-align: center; }
    .hero-brand-row { justify-content: center; }
    .hero-badges { justify-content: center; }
    
    .steps-grid { grid-template-columns: 1fr; }
    
    .autoridade-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .autoridade-image { text-align: center; }
    .autoridade-image-desktop { display: none; }
    .autoridade-image-mobile { display: block; }
    
    .cta-final-grid { grid-template-columns: 1fr; }
    .cta-final-image { order: 2; }
    
    .estrutura-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .hero-brand-row {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 18px;
    }

    .hero-brand-row .google-badge {
        order: 1;
    }

    .hero-brand-row .logo {
        order: 2;
    }
    
    .logo {
        width: auto;
        min-width: 0;
        gap: 0;
        padding: 4px 8px;
    }

    .logo-image {
        width: 170px;
        flex-shrink: 0;
    }

    .google-badge {
        flex-shrink: 0;
        gap: 6px;
        padding: 5px 8px;
        border-radius: 10px;
    }

    .google-badge-icon {
        width: 16px;
        height: 16px;
    }

    .google-badge-score {
        font-size: 12px;
    }

    .google-badge-stars svg {
        width: 9px;
        height: 9px;
    }

    .google-badge-reviews {
        font-size: 9px;
    }
    
    .hero { padding: 32px 0 48px; }

    .hero-badges::before {
        content: none;
    }

    .hero-badges .badge:last-child {
        order: initial;
        transform: none;
    }
    
    .hero-image { max-width: 300px; }
    
    .atendimento-slide {
        --atendimento-slide-width: 240px;
        flex: 0 0 240px;
        height: 170px;
    }
    
    .depoimento-card {
        flex: 0 0 calc(100% - 24px);
        min-width: 260px;
    }
    
    .carousel-btn { display: none; }
    
    .estrutura-gallery { gap: 10px; }
    
    .autoridade-features { grid-template-columns: 1fr; }
    
    .btn { width: 100%; }
    
    section { padding: 48px 0; }
    
    .cta-final-image img,
    .cta-final-image .placeholder-image {
        max-width: none;
        width: 100%;
        height: auto;
        min-height: 260px;
    }
}

@media (max-width: 480px) {
    .hero-brand-row {
        flex-direction: column;
        align-items: center;
    }

    .logo-image { width: 145px; }

    .google-badge {
        padding: 4px 6px;
    }

    .google-badge-content {
        gap: 0;
    }

    .google-badge-reviews {
        font-size: 8px;
    }
    
    .hero-title { font-size: 24px; }
    .section-title { font-size: 20px; }
    
    .badge { width: 100%; justify-content: center; }

    .hero-badges .badge:last-child {
        width: 100%;
    }
    
    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .estrutura-gallery { grid-template-columns: 1fr; }
    
    .atendimento-slide {
        --atendimento-slide-width: 220px;
        flex: 0 0 220px;
        height: 155px;
    }
    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .atendimento-track {
        animation: none;
        overflow-x: auto;
    }
}
