/* Reset e Configurações Básicas */
:root {
    --primary-blue: #1a3765;      /* Azul marinho da identidade */
    --secondary-yellow: #f0a83e;  /* Dourado da identidade */
    --background-light: #f5f5f5;  /* Cinza claro de fundo */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Correções de overflow para mobile */
@media (max-width: 768px) {
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Força todos os elementos a respeitarem a largura da tela */
    .hero, .features, .cta-final, .footer {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 16px !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Força todos os elementos filhos a respeitarem a largura */
    .hero-content > * {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .benefits {
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }
    
    .benefit {
        width: auto !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0D0D0D;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transform: scale(1.6);
    transform-origin: left center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #022859 0%, #043259 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 55, 101, 0.45);
    mix-blend-mode: multiply;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(45deg, #D9A23D, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

.benefits {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.benefit:hover .benefit-icon svg {
    transform: scale(1.1);
}

.benefit span {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.cta-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-text {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.whatsapp-button-container {
    margin: 24px 0;
}

/* Botões do WhatsApp */
.whatsapp-cta-button {
    background: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(26, 55, 101, 0.2);
    border: 0;
    display: inline-block;
    text-decoration: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

.whatsapp-cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #e79c2d;
    box-shadow: 0 14px 36px rgba(26, 55, 101, 0.28);
}

.whatsapp-cta-button:active {
    transform: translateY(0) scale(0.98);
}

.whatsapp-cta-button:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Manter compatibilidade com placeholder-button */
.placeholder-button {
    background: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(26, 55, 101, 0.2);
    border: 0;
    display: inline-block;
    text-decoration: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.placeholder-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #e79c2d;
    box-shadow: 0 14px 36px rgba(26, 55, 101, 0.28);
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
}

.car-icon {
    margin-bottom: 16px;
    display: block;
}

.car-icon svg {
    width: 120px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.image-placeholder p {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #022859;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-yellow);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* CTA Final Section */
.cta-final {
    background: linear-gradient(135deg, #1a3765 0%, #022859 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #D9A23D;
    margin-bottom: 12px;
}

.footer-info p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
    }
    
    .benefits {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        width: 100%;
    }
    
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero {
        padding: 100px 0 60px;
        width: 100%;
    }
    
    .features {
        padding: 60px 0;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .cta-content h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .benefit {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .benefit span {
        font-size: 12px;
    }
    
    .cta-section {
        padding: 20px 16px;
    }
    
    .placeholder-button {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-icon {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .image-placeholder {
        padding: 40px 20px;
    }
    
    .car-icon {
        font-size: 60px;
    }
}

@media (max-width: 320px) {
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .container {
        padding: 0 8px;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .benefit {
        padding: 6px 10px;
    }
    
    .benefit span {
        font-size: 11px;
    }
    
    .placeholder-button {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .image-placeholder {
        padding: 30px 15px;
    }
    
    .car-icon {
        font-size: 50px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Melhorias de Performance */
.hero, .features, .cta-final {
    will-change: transform;
}

.feature-card {
    will-change: transform, box-shadow;
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Foco para navegação por teclado */
.placeholder-button:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Estilos responsivos para botões do WhatsApp */
@media (max-width: 768px) {
    .whatsapp-cta-button {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .whatsapp-cta-button {
        padding: 12px 16px;
        font-size: 13px;
    }
}
