/* 
======================================
VARIÁVEIS DE DESIGN (Design System)
====================================== 
*/
:root {
    /* Paleta de Cores */
    --bg-color: #0f1014;
    --bg-card: rgba(25, 27, 33, 0.7);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    /* Verde da logo LocAgora (GO) */
    --primary-color: #00e676;
    --primary-hover: #33f58f;
    --primary-dark: #00b35c;
    --primary-rgb: 0, 230, 118;
    --secondary-color: #2b2d35;
    --accent-glow: rgba(var(--primary-rgb), 0.35);

    /* Fontes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaçamentos e Bordas */
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease-in-out;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 
======================================
COMPONENTES (Botões e Cards)
====================================== 
*/
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0f1014;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #3f424e;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.glow-effect {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.center-btn {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 
======================================
NAVBAR (Header)
====================================== 
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 16, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 
======================================
SEÇÃO HERO
====================================== 
*/
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(15,16,20,0) 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    min-width: 0;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-image {
    flex: 1;
    position: relative;
    overflow: visible;
}

.hero-sublogo {
    position: absolute;
    top: -20px;
    right: -24px;
    z-index: 3;
    width: clamp(100px, 32%, 240px);
    height: auto;
    pointer-events: none;
    /* Fundo preto da arte some no fundo escuro do site */
    mix-blend-mode: screen;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    /* Proporção da hero-2 (1088×656) — todas as fotos usam a mesma área */
    aspect-ratio: 1088 / 656;
    min-height: 220px;
    animation: floatMoto 6s ease-in-out infinite;
}

/* 1ª foto define a altura (evita área zerada no mobile/Safari) */
.hero-slideshow .hero-slide:first-child {
    position: relative;
}

.hero-slideshow .hero-slide:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slideshow .hero-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    animation: heroSlideFade 8s ease-in-out infinite;
    will-change: opacity;
}

/* 1ª foto visível ao carregar (Safari/iOS às vezes não inicia a animação) */
.hero-slideshow .hero-slide:first-child {
    opacity: 1;
    animation-name: heroSlideFadeLead;
}

/* hero-1 é mais larga/baixa — escala extra para ficar no tamanho das outras */
.hero-slideshow .hero-slide--amplified {
    transform: scale(1.45);
    transform-origin: center center;
}

.hero-slideshow .hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .hero-slide:nth-child(2) { animation-delay: 2s; }
.hero-slideshow .hero-slide:nth-child(3) { animation-delay: 4s; }
.hero-slideshow .hero-slide:nth-child(4) { animation-delay: 6s; }

@keyframes floatMoto {
    0% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-15px) scale(1.1); }
    100% { transform: translateY(0) scale(1.1); }
}

@keyframes heroSlideFadeLead {
    0%, 22% { opacity: 1; }
    25%, 99% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes heroSlideFade {
    0%, 3% { opacity: 0; }
    4%, 22% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slideshow {
        animation: none;
    }

    .hero-slideshow .hero-slide {
        animation: none;
        opacity: 0;
    }

    .hero-slideshow .hero-slide:first-child {
        opacity: 1;
    }
}

/* 
======================================
COMO FUNCIONA
====================================== 
*/
.how-it-works {
    padding: 80px 0;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.icon-list {
    list-style: none;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.icon-list li:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.icon-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 
======================================
PLANOS (Pricing)
====================================== 
*/
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.pricing-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 0;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.price b {
    font-size: 3.5rem;
    color: var(--text-main);
}

.price-details {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.availability {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.pricing-card .btn {
    width: 100%;
}

/* Card Premium (Fidelidade) */
.premium-card {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(25, 27, 33, 0.9) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

.premium-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.4);
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-color);
    color: #0f1014;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* 
======================================
NOSSAS MOTOS
====================================== 
*/
.motorcycles {
    padding: 80px 0;
}

.moto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.moto-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    transition: var(--transition);
}

.moto-card:hover {
    transform: scale(1.03);
}

.moto-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1088 / 656;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--primary-rgb), 0.35);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        180deg,
        rgba(var(--primary-rgb), 0.1) 0%,
        rgba(15, 16, 20, 0.5) 100%
    );
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.2),
        inset 0 0 24px rgba(var(--primary-rgb), 0.06),
        0 10px 20px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.moto-card:hover .moto-frame {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.45),
        0 0 20px rgba(var(--primary-rgb), 0.2),
        inset 0 0 24px rgba(var(--primary-rgb), 0.1),
        0 15px 30px rgba(0, 0, 0, 0.5);
}

.moto-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.moto-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

/* 
======================================
BENEFÍCIOS
====================================== 
*/
.benefits {
    padding: 80px 0;
}

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

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.02);
}

.benefit-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.1);
}

.benefit-icon {
    height: 60px;
    margin-bottom: 20px;
}

.benefit-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 
======================================
MÍDIA E DEPOIMENTOS
====================================== 
*/
.media-testimonials {
    padding: 80px 0;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(var(--primary-rgb), 0.05) 50%, rgba(0,0,0,0) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--primary-color);
}

/* 
======================================
FAQ (Accordion)
====================================== 
*/
.faq {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255,255,255,0.02);
}

.accordion-header i {
    transition: var(--transition);
    color: var(--primary-color);
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

/* 
======================================
BOTÃO FLUTUANTE WHATSAPP
====================================== 
*/
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1003;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 1.85rem;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #20bd5a;
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* 
======================================
FOOTER
====================================== 
*/
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0a0b0e;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 
======================================
RESPONSIVIDADE (Mobile)
====================================== 
*/
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 36px;
    }

    .hero-title {
        font-size: clamp(1.65rem, 7vw, 2.75rem);
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .premium-card { transform: scale(1); }
    .premium-card:hover { transform: translateY(-5px); }
    .moto-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero::before { display: none; }
    .hero {
        overflow: hidden;
    }
    .hero-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }
    .hero-slideshow {
        min-height: 200px;
        animation: floatMotoMobile 6s ease-in-out infinite;
    }
    .hero-slideshow .hero-slide--amplified {
        transform: scale(1.05);
    }
    .hero-sublogo {
        width: clamp(80px, 35%, 160px);
        top: 4px;
        right: 4px;
    }
}

@keyframes floatMotoMobile {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

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

    .hero-title {
        font-size: clamp(1.45rem, 8vw, 2rem);
    }

    .btn-large {
        width: 100%;
        max-width: 100%;
    }

    .nav-links, .navbar .btn-primary { display: none; }
    .menu-toggle {
        display: block;
        z-index: 1002;
        position: relative;
    }

    /* Overlay escuro + blur atrás do menu (body.menu-open via JS) */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(5, 6, 8, 0.75);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        z-index: 998;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        z-index: 1001;
        gap: 8px;
        padding: 28px 24px 40px;
        text-align: center;
        background: rgba(10, 11, 14, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .nav-links.active a {
        font-size: 1.05rem;
        padding: 14px 16px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-links.active a:hover,
    .nav-links.active a:active {
        background: rgba(var(--primary-rgb), 0.15);
        color: var(--primary-color);
    }
    
    .grid-2-cols { grid-template-columns: 1fr; }
    .moto-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }

    .whatsapp-float {
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
        right: max(16px, env(safe-area-inset-right, 16px));
        width: 54px;
        height: 54px;
        font-size: 1.75rem;
    }
}
