/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --clr-black: #0a0a0a;
    --clr-graphite-dark: #141414;
    --clr-graphite: #1e1e1e;
    --clr-graphite-light: #2a2a2a;
    --clr-white: #ffffff;
    --clr-gray: #999;
    --clr-gray-light: #ccc;
    --clr-red: #e63946;
    --clr-orange: #FF4500;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--clr-black);
    color: var(--clr-white);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; }
.hidden { display: none !important; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-header p { color: var(--clr-gray); font-size: 1.1rem; }

/* ==========================================================================
   PRELOADER (TIPO LOADING BAR)
   ========================================================================== */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.preloader-overlay {
    position: absolute; top: 0; width: 50%; height: 100%;
    background: #000; z-index: -1; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader-overlay.left-door { left: 0; }
.preloader-overlay.right-door { right: 0; }

.preloader-content { text-align: center; z-index: 2; transition: opacity 0.5s; }
.preloader-logo-new { width: 250px; margin-bottom: 2rem; }

.loading-bar-wrapper {
    width: 250px; height: 4px; background: rgba(255,255,255,0.1);
    margin: 0 auto 1rem; border-radius: 2px; overflow: hidden;
}
.loading-bar-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, #FF4500, #FF0000);
    transition: width 0.1s linear;
}
.loading-text { font-family: var(--font-heading); font-weight: 700; color: #fff; font-size: 1.2rem; }

/* Animações ao carregar */
body.loaded .preloader-overlay.left-door { transform: translateX(-100%); }
body.loaded .preloader-overlay.right-door { transform: translateX(100%); }
body.loaded .preloader-content { opacity: 0; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1rem 2rem; background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 50px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--clr-gray-light); }
.nav-links a:hover { color: var(--clr-orange); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
    padding: 1rem 2rem; border: none; border-radius: 50px;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
    cursor: pointer; transition: var(--transition-smooth);
    text-transform: uppercase; letter-spacing: 1px; display: inline-block;
}
.btn-orange { background: linear-gradient(to right, #FF4500, #FF0000); color: #fff; box-shadow: 0 4px 15px rgba(255,69,0,0.4); }
.btn-orange:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,69,0,0.6); }

.btn-green { background: linear-gradient(to right, #25D366, #128C7E); color: #fff; box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,211,102,0.6); }

.btn-white { background: #fff; color: #000; box-shadow: 0 4px 15px rgba(255,255,255,0.2); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,255,255,0.4); }

.btn-secondary { background: transparent; border: 2px solid var(--clr-white); color: var(--clr-white); padding: 1rem 2rem; border-radius: 50px; font-weight: 600; }
.btn-secondary:hover { background: var(--clr-white); color: var(--clr-black); }

.btn-dark { background: rgba(0,0,0,0.5); border: 1px solid var(--clr-gray); color: var(--clr-white); padding: 0.8rem 1.5rem; border-radius: 50px; display: flex; align-items: center; gap: 1rem; }
.btn-dark:hover { border-color: #FF4500; background: rgba(255,69,0,0.1); }
.btn-text strong { font-size: 1rem; display: block; }
.btn-text small { font-size: 0.7rem; font-weight: 400; }

/* ==========================================================================
   HERO HTML
   ========================================================================== */
.hero-premium {
    position: relative; min-height: 100vh; display: flex; flex-direction: column;
    padding-top: 80px; overflow: hidden; background-color: transparent;
}
.parallax-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%; z-index: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.1) 100%),
                linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 25%),
                url('hero-bg.jpg') center/cover no-repeat;
    animation: zoomHero 20s infinite alternate ease-in-out;
}
@keyframes zoomHero { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

/* Farol Piscando */
.headlight-glow {
    position: absolute; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(200,230,255,0.8) 20%, transparent 70%);
    border-radius: 50%; z-index: -1; opacity: 0; filter: blur(5px); animation: flashHeadlight 4s infinite;
}
.left-headlight { top: 48%; left: 34%; animation-delay: 0.1s; transform: scale(0.6); }
.right-headlight { top: 50%; left: 47%; }
@keyframes flashHeadlight {
    0%, 75%, 100% { opacity: 0; transform: scale(0.8); }
    80%, 95% { opacity: 0.9; transform: scale(1.2); }
    85%, 90% { opacity: 1; transform: scale(1.6); box-shadow: 0 0 60px 20px rgba(255,255,255,0.7); }
}

.hero-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto; width: 100%; padding: 2rem; flex: 1; z-index: 1;
}
.hero-content { max-width: 700px; }
.hero-tags { color: #FF4500; font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 1rem; }

/* Animações do Texto (GSAP hooks) */
.hero-line-wrap { overflow: hidden; padding-top: 15px; margin-top: -15px; }
.hero-anim-text { display: inline-block; transform: translateY(100%); opacity: 0; }
.hero-anim-item { opacity: 0; transform: translateY(20px); }

.hero-headline { font-family: 'Outfit', sans-serif; font-style: italic; line-height: 1; margin-bottom: 1rem; text-transform: uppercase; }
.hero-headline .text-white { font-size: clamp(3rem, 5vw, 5rem); color: #FFF; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-headline .text-small { font-size: clamp(2rem, 3vw, 3rem); color: #FFF; }
.hero-headline .text-orange { font-size: clamp(3.5rem, 6.5vw, 7.5rem); background: linear-gradient(to right, #FF4500, #FF8C00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0px 0px 30px rgba(255,69,0,0.3); }

.hero-subheadline { font-size: 1.1rem; color: var(--clr-gray-light); margin-bottom: 2rem; font-weight: 500; }
.hero-mini-services { display: flex; gap: 1.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.mini-srv { text-align: center; }
.mini-srv svg { filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.4)); transition: transform 0.3s ease, filter 0.3s ease; }
.mini-srv:hover svg { transform: scale(1.1); filter: drop-shadow(0 0 12px rgba(255, 69, 0, 0.8)); }
.mini-srv span { font-size: 0.8rem; font-weight: 700; color: #FF4500; display: block; margin-top: 0.5rem;}
.mini-srv small { color: var(--clr-gray); font-weight: 400; font-size: 0.7rem; }
.mini-srv small { color: var(--clr-gray); font-weight: 400; font-size: 0.7rem; }

.hero-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn-green { display: inline-flex; align-items: center; gap: 1rem; }

.hero-right { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; }
.floating-badge {
    background: rgba(0,0,0,0.6); border: 1px solid #FF4500; padding: 0.8rem 1.5rem;
    border-radius: 10px; display: flex; align-items: center; gap: 1rem; backdrop-filter: blur(5px);
    color: #FF4500; font-weight: 700; font-size: 0.9rem;
}
.floating-badge small { color: var(--clr-gray-light); font-weight: 400; display: block; font-size: 0.75rem; }

.hero-bottom-bar {
    width: 100%; background: rgba(10,10,10,0.9); border-top: 1px solid rgba(255,69,0,0.3);
    padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 2;
}
.hero-counters { display: flex; gap: 3rem; flex-wrap: wrap; }
.counter-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: #FF4500; line-height: 1; display: block;}
.counter-label { font-size: 0.75rem; color: var(--clr-white); text-transform: uppercase; }
.hero-brand small { display: block; color: var(--clr-white); font-weight: 700; margin-bottom: 0.5rem; }
.hero-brand img { height: 40px; }

/* ==========================================================================
   BRANDS
   ========================================================================== */
.brands-section { padding: 3rem 0; background: var(--clr-graphite-dark); border-bottom: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.brands-track { display: flex; animation: scrollBrands 20s linear infinite; width: max-content; }
.brands-wrapper { display: flex; gap: 4rem; padding: 0 2rem; }
.brands-wrapper img { height: 50px; opacity: 0.6; filter: grayscale(100%); transition: var(--transition-smooth); }
.brands-wrapper img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scrollBrands { to { transform: translateX(-50%); } }

/* ==========================================================================
   OFERTAS
   ========================================================================== */
.ofertas-section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.ofertas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.oferta-card {
    background: var(--clr-graphite); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    padding: 2rem; text-align: center; transition: var(--transition-smooth); display: flex; flex-direction: column;
}
.oferta-card:hover { border-color: var(--clr-orange); transform: translateY(-5px); }
.oferta-tag { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--clr-white); margin-bottom: 1rem; }
.oferta-card img { height: 180px; object-fit: contain; margin-bottom: 1.5rem; }
.oferta-price { margin-bottom: 1.5rem; }
.oferta-price small { color: var(--clr-gray); font-size: 0.8rem; }
.price-val { font-size: 2.5rem; font-weight: 900; color: #FF4500; font-family: var(--font-heading); }
.price-val span { font-size: 1rem; }

/* ==========================================================================
   FROTISTA
   ========================================================================== */
.frotista-section { padding: 6rem 2rem; background: var(--clr-graphite-dark); }
.frotista-container { max-width: 1400px; margin: 0 auto; display: flex; gap: 4rem; align-items: center; }
.frotista-text { flex: 1; }
.frotista-text h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.frotista-text p { color: var(--clr-gray-light); margin-bottom: 1rem; font-size: 1.1rem; }
.apps-icons { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.apps-icons img { height: 40px; background: #fff; padding: 5px; border-radius: 8px; }
.frotista-image { flex: 1; }
.frotista-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services-section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { background: var(--clr-graphite); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; cursor: pointer; transition: var(--transition-smooth); }
.service-card:hover { border-color: var(--clr-orange); transform: translateY(-8px); }
.service-card-img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.service-card-body p { color: var(--clr-gray-light); font-size: 0.95rem; margin-bottom: 1rem; }
.service-link { color: var(--clr-orange); font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; }

/* ==========================================================================
   QUEM SOMOS
   ========================================================================== */
.quem-somos-section { padding: 6rem 2rem; background: var(--clr-graphite-dark); }
.qs-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.qs-card { background: var(--clr-black); padding: 2rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.qs-image { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }
.qs-laranja { color: #FF4500; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.qs-card p { color: var(--clr-gray-light); }

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.differentials-section { padding: 6rem 2rem; background: var(--clr-black); max-width: 1200px; margin: 0 auto; }
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.diff-card { background: var(--clr-graphite); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 2.5rem 2rem; text-align: center; }
.diff-icon { margin-bottom: 1.5rem; color: var(--clr-orange); }

/* ==========================================================================
   NOTÍCIAS
   ========================================================================== */
.noticias-section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.noticias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.noticia-card { background: var(--clr-graphite-dark); border-radius: 16px; overflow: hidden; }
.noticia-card img { width: 100%; height: 200px; object-fit: cover; }
.noticia-body { padding: 1.5rem; }
.noticia-body h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.noticia-body p { color: var(--clr-gray); font-size: 0.9rem; margin-bottom: 1rem; }

/* ==========================================================================
   INSTAGRAM
   ========================================================================== */
.instagram-section { padding: 6rem 2rem; background: var(--clr-graphite-dark); text-align: center; }

/* ==========================================================================
   UNIDADES
   ========================================================================== */
.units-section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.units-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.unit-card { background: var(--clr-graphite); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; }
.unit-info { padding: 1.5rem; }
.unit-map { padding: 0.5rem 1.5rem; position: relative; }
.map-logo { position: absolute; top: 20px; left: 35px; z-index: 10; width: 80px; background: rgba(0,0,0,0.8); padding: 8px; border-radius: 8px; }
.unit-map iframe { border-radius: 10px; width: 100%; height: 220px; }
.unit-actions { display: flex; gap: 0.5rem; padding: 1rem 1.5rem 1.5rem; }
.btn-unit { flex: 1; text-align: center; padding: 0.8rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; }
.btn-unit-wpp { background: #25D366; color: #fff; }
.btn-unit-route { background: var(--clr-orange); color: #fff; }

/* ==========================================================================
   CTA & FOOTER
   ========================================================================== */
.cta-final { background: linear-gradient(rgba(230,57,70,0.9), rgba(214,40,40,0.9)); padding: 6rem 2rem; text-align: center; }
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

.premium-footer { background: var(--clr-graphite-dark); padding: 4rem 2rem 2rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { height: 50px; margin-bottom: 1rem; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--clr-white); }
.footer-col p, .footer-col li { color: var(--clr-gray); margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--clr-orange); }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--clr-gray); }

/* ==========================================================================
   WHATSAPP BUBBLE
   ========================================================================== */
.whatsapp-smart-btn { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.whatsapp-bubble { background: #fff; color: #000; padding: 1rem; border-radius: 12px; border-bottom-right-radius: 0; max-width: 250px; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
.whatsapp-bubble.show { opacity: 1; transform: translateY(0); }
.whatsapp-icon-wrapper { width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; animation: pulse 2s infinite; }
.whatsapp-icon { width: 35px; height: 35px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); } 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-content { background: var(--clr-graphite-dark); width: 100%; max-width: 600px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); position: relative; padding: 3rem; }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--clr-gray); font-size: 2rem; cursor: pointer; }

/* ==========================================================================
   RESPONSIVIDADE GERAL
   ========================================================================== */
@media (max-width: 1024px) {
    .frotista-container { flex-direction: column; }
    .hero-container { flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 4rem; }
    .hero-bottom-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .parallax-bg {
        background-position: 70% center !important;
    }
    .nav-cta, .nav-links { display: none; }
    .mobile-menu-btn { display: flex; flex-direction: column; gap: 5px; background: none; border: none; }
    .mobile-menu-btn span { width: 25px; height: 2px; background: #fff; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons > * { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-mini-services { display: grid; grid-template-columns: 1fr 1fr; }
    .whatsapp-bubble { display: none !important; }
}
