/* 
   Conserto dos Óculos - Folha de Estilos Premium
   Cores corporativas baseadas na logomarca
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #00152b; /* Azul Escuro da Logo */
    --secondary-color: #0056b3; /* Azul Brilhante da Logo */
    --accent-color: #25d366; /* Verde WhatsApp */
    --accent-hover: #1ebd59;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navegação */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.logo svg, .header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-btn {
    background-color: var(--secondary-color);
    color: var(--bg-white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 21, 43, 0.2);
}

/* Hero Section */
.hero {
    padding: 9rem 2rem 5rem;
    background: radial-gradient(circle at 10% 20%, rgba(240, 245, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 90%);
    position: relative;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    opacity: 0.2;
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.badge svg {
    color: var(--secondary-color);
    width: 20px;
    height: 20px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

/* Slider de Antes e Depois Interativo */
.hero-visual {
    position: relative;
    width: 100%;
    height: 400px; /* Fallback para navegadores antigos */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border: 4px solid var(--bg-white);
}

@supports (aspect-ratio: 4/3) {
    .hero-visual {
        aspect-ratio: 4/3;
        height: auto;
    }
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.image-before {
    z-index: 2;
    background-image: url('images/broken.png');
    transition: opacity 0.5s ease-in-out;
}

.image-after {
    z-index: 1;
    background-image: url('images/repaired.png');
}

/* Hover Effect para consertar o óculos (Desktop & JS Fallback) */
.comparison-slider:hover .image-before,
.comparison-slider.is-repaired .image-before {
    opacity: 0;
}

.comparison-slider::after {
    content: 'Passe o mouse para consertar';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 21, 43, 0.85);
    color: var(--bg-white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.comparison-slider:hover::after,
.comparison-slider.is-repaired::after {
    content: '✨ Óculos Restaurado!' !important;
    background-color: var(--secondary-color) !important;
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.5) !important;
}

.sparkle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    background-color: var(--bg-white);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: scale(0);
}

@keyframes flash-sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* Diferenciais */
.features {
    padding: 5rem 2rem;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 86, 179, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tabela de Preços e Serviços */
.pricing {
    padding: 5rem 2rem;
}

.pricing-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    background-color: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.pricing-list h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-weight: 600;
    color: var(--primary-color);
}

.price-value {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.price-item.lenses {
    background-color: rgba(0, 86, 179, 0.03);
    padding: 1.2rem 1rem;
    border-radius: 12px;
    border-bottom: none;
}

.price-item.lenses .price-value {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #002852 100%);
    border-radius: 18px;
    padding: 2.5rem;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.pricing-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(0, 86, 179, 0.15);
    border-radius: 50%;
}

.pricing-cta h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pricing-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-cta .btn-primary {
    justify-content: center;
    width: 100%;
}

.pricing-cta ul {
    list-style: none;
    margin-top: 1.5rem;
}

.pricing-cta li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-cta li svg {
    color: var(--accent-color);
    width: 18px;
    height: 18px;
}

/* Logística (Como Funciona) */
.how-it-works {
    padding: 5rem 2rem;
    background-color: var(--bg-white);
}

.steps-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 86, 179, 0.1);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    z-index: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    color: var(--secondary-color);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.step-icon svg {
    width: 30px;
    height: 30px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Acessórios */
.accessories {
    padding: 5rem 2rem;
}

.accessories-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-img {
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.product-img svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.product-btn:hover {
    background-color: var(--secondary-color);
}

/* Depoimentos */
.testimonials {
    padding: 5rem 2rem;
    background-color: var(--bg-white);
}

.testimonials-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    color: var(--bg-white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stars {
    color: #ffb800;
    display: flex;
    gap: 2px;
    margin-top: 0.2rem;
}

.stars svg {
    width: 14px;
    height: 14px;
}

/* FAQ */
.faq {
    padding: 5rem 2rem;
}

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

.faq-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-color);
    user-select: none;
}

.faq-question svg {
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

/* Rodapé */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    background-color: var(--bg-white);
    padding: 4px;
    border-radius: 8px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.footer-info p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
}

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

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-contact-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.footer-copy {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-container, .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding: 8rem 2rem 4rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-badges, .cta-group {
        justify-content: center;
    }
    
    .features-grid, .steps-grid, .accessories-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    /* Prevenir quebra de linha do menu em telas médias */
    .nav-menu {
        gap: 1.2rem;
    }
    .nav-menu a {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Oculta o menu em tablets e telas menores */
    }
    
    .features-grid, .steps-grid, .accessories-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-copy {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Ajuste de altura e mensagem do slider no mobile/tablet */
    .hero-visual {
        height: 320px;
    }
    
    @supports (aspect-ratio: 4/3) {
        .hero-visual {
            aspect-ratio: 4/3;
            height: auto;
        }
    }
    
    .comparison-slider::after {
        content: 'Role para consertar' !important;
    }
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
}

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

.whatsapp-float:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px) scale(1.05);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
