/* CSS Reset & Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --section-padding: 120px 24px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-body); background-color: var(--bg-primary); color: var(--text-primary); }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Typography */
h1 { font-family: var(--font-heading); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: var(--text-primary); letter-spacing: -0.01em; }
h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.75rem; }
p { color: var(--text-secondary); line-height: 1.7; font-size: 1.05rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Helpers & Layout */
.container { max-width: var(--max-width); margin: 0 auto; width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem auto; }

/* Fade-in Animation Classes */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; gap: 0.5rem; }
.btn-primary { background-color: var(--accent); color: var(--bg-primary); border: 1px solid var(--accent); }
.btn-primary:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); }
.btn-outline { background-color: transparent; border: 1px solid var(--text-primary); color: var(--text-primary); }
.btn-outline:hover { background-color: var(--text-primary); color: var(--bg-primary); transform: translateY(-3px); }

/* ========================= */
/* NAVBAR — SINGLE SOURCE    */
/* ========================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 0.6rem 24px;
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease, padding 0.4s ease;
}
nav.scrolled {
    background-color: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    padding: 0.4rem 24px;
    border-bottom: 1px solid var(--border);
}

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

/* Logo in Navbar */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    border: none;
    margin-left: -30px;
}
.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--text-primary); }

/* CTA Button in Navbar */
.btn-nav-cta {
    background-color: var(--accent);
    color: #000000 !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    white-space: nowrap;
}
.btn-nav-cta:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 101; }
.hamburger span { display: block; width: 30px; height: 2px; background-color: var(--text-primary); transition: var(--transition); }

/* Page Header (for non-index pages) */
.page-header { padding: calc(100px + 20px) 24px 60px 24px; background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%); text-align: center; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 0.5rem; }

/* WhatsApp Floating Button */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background-color: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; animation: slideUpFade 0.6s ease 1s backwards; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Section */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 0 24px; background: radial-gradient(circle at center, #1f1f1f 0%, var(--bg-primary) 70%); overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; }
.hero-content { display: flex; flex-direction: column; align-items: center; max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.5rem auto; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; justify-content: center; }
.google-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; background-color: var(--bg-secondary); border: 1px solid var(--border); border-radius: 50px; font-size: 0.9rem; font-weight: 500; }
.star-icon { color: #fbbc05; }

/* Sections */
.services, .about, .vehicles, .testimonials { padding: var(--section-padding); }
.services, .vehicles { background-color: var(--bg-secondary); }
.about, .testimonials { background-color: var(--bg-primary); }

/* Components */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card { background-color: var(--bg-primary); border: 1px solid var(--border); padding: 2.5rem 1.5rem; border-radius: 8px; transition: var(--transition); display: flex; flex-direction: column; align-items: flex-start; }
.service-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.service-icon { width: 50px; height: 50px; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, 0.05); border-radius: 8px; color: var(--accent); }
.service-icon svg { width: 28px; height: 28px; fill: currentColor; }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-features { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.about-features li { display: flex; align-items: center; gap: 15px; font-weight: 500; color: var(--text-primary); font-family: var(--font-heading); }
.feature-icon { color: var(--accent); display: flex; }

.about-image { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }

.vehicles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.vehicle-card { background-color: var(--bg-primary); border: 1px solid var(--border); padding: 4rem 3rem; border-radius: 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 350px; position: relative; overflow: hidden; transition: var(--transition); }
.vehicle-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background-color: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.vehicle-card:hover::before { transform: scaleX(1); }
.vehicle-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.vehicle-card p { margin-bottom: 2.5rem; max-width: 400px; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; text-align: left; }
.testim-card { background-color: var(--bg-secondary); border: 1px solid var(--border); padding: 2.5rem; border-radius: 8px; position: relative; display: flex; flex-direction: column; gap: 1.5rem; }
.quote-mark { position: absolute; top: 1.5rem; right: 2rem; font-family: serif; font-size: 4rem; color: rgba(255, 255, 255, 0.03); line-height: 1; }
.stars { color: #fbbc05; letter-spacing: 2px; font-size: 1.1rem; }
.testim-text { font-size: 1.05rem; font-style: italic; color: var(--text-primary); line-height: 1.6; flex-grow: 1; }
.testim-author { font-family: var(--font-heading); font-weight: 700; color: var(--text-secondary); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; }

/* Main Contact Page */
.contact-page { padding: var(--section-padding); background-color: var(--bg-primary); }

/* ========================= */
/* FOOTER — SINGLE SOURCE    */
/* ========================= */
footer { background-color: #1a1a1a; padding: 5rem 24px 2rem 24px; }
footer p, footer .contact-item, footer .footer-links a { color: #a0a0a0 !important; }
footer h4 { color: #ffffff !important; }
footer .footer-links a:hover { color: #ffffff !important; }
footer .contact-item svg { color: #ffffff !important; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); text-align: center; padding-top: 2rem; color: #666; font-size: 0.85rem; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; max-width: var(--max-width); margin: 0 auto; margin-bottom: 4rem; }
.footer-col h4 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.footer-col p { margin-bottom: 1rem; font-size: 1.05rem; }

/* Footer Logo — use same dark bg image, no filters needed */
.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    background: transparent;
    padding: 0;
    border: none;
}
.footer-logo img {
    height: 90px;
    width: auto;
    display: block;
}

.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: var(--text-secondary); font-size: 1.05rem; }
.footer-links a:hover { color: var(--accent); }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 1.05rem; }
.contact-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.footer-socials { display: flex; gap: 12px; margin-top: 15px; }
.footer-socials a { color: #f5f5f5; transition: opacity 0.3s; opacity: 0.8; display: flex; }
.footer-socials a:hover { opacity: 1; color: var(--accent); }

.map-container { width: 100%; margin-top: 1.5rem; }
.color-accent { color: var(--accent); }
.mt-40 { margin-top: 40px; }

/* Nova classe para botão footer */
.btn-footer-contact {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
    border: 2px solid transparent !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}
.btn-footer-contact:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { background-color: #1a1a1a; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.faq-question { padding: 1.5rem; width: 100%; text-align: left; background: none; border: none; color: var(--text-primary); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-secondary); line-height: 1.6; }
.faq-item.active .faq-answer { padding-bottom: 1.5rem; max-height: 500px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #555555; }

/* Mobile Fixes */
.custom-2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* Service Card Span 2 */
.service-card-span2 { grid-column: span 2; justify-content: center; align-items: center; text-align: center; }

/* UNIVERSAL RESPONSIVE IMAGE RESET */
img { max-width: 100%; height: auto; display: block; }
.logo img, .footer-logo img { display: block; }
html, body { max-width: 100%; overflow-x: hidden; }

/* ========================= */
/* RESPONSIVE BREAKPOINTS    */
/* ========================= */
@media (max-width: 1400px) {
    .logo { margin-left: -15px; }
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .logo { margin-left: 0; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px 20px; }

    h1 { font-size: clamp(2rem, 8vw, 2.8rem) !important; margin-bottom: 1rem !important; }
    h2 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; margin-bottom: 1rem !important; }
    .page-header { padding: 120px 20px 40px 20px !important; }
    .section-subtitle { font-size: 1rem !important; }

    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background-color: var(--bg-secondary); flex-direction: column;
        justify-content: center; align-items: center; transition: right 0.4s ease;
        border-left: 1px solid var(--border); box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .btn-nav-cta { margin-left: 0; margin-top: 20px; width: 100%; border-radius: 4px; padding: 15px !important; }

    .custom-2-grid { grid-template-columns: 1fr !important; }
    .services-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .vehicles-grid { grid-template-columns: 1fr !important; }
    .about-content { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
    .testimonials-grid { grid-template-columns: 1fr !important; }
    .service-card-span2 { grid-column: span 1 !important; }

    .hero-buttons { flex-direction: column !important; width: 100% !important; }
    .hero-buttons .btn { width: 100% !important; margin: 0 !important; }
    .hero { padding-top: 80px !important; }
    .btn { width: 100%; }

    .whatsapp-float { width: 48px !important; height: 48px !important; bottom: 16px !important; right: 16px !important; }
    .whatsapp-float svg { width: 24px; height: 24px; }

    footer { padding: 3rem 20px 80px 20px !important; }

    .faq-question { padding: 1rem !important; font-size: 1.1rem !important; }
    .faq-answer { padding: 0 1rem !important; }
    .faq-item.active .faq-answer { padding-bottom: 1rem !important; }

    .logo img { height: 50px !important; }
    .footer-logo img { height: 60px !important; }

    /* Force fade-in visible on mobile in case IntersectionObserver fails */
    .fade-in { opacity: 1 !important; transform: none !important; animation: none !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    .page-header { padding: 100px 15px 30px 15px !important; }
    :root { --section-padding: 40px 15px; }
    .vehicle-card { min-height: auto !important; padding: 2rem 1.5rem !important; }
    .service-card { padding: 2rem 1.25rem !important; }
    .testim-card { padding: 1.5rem !important; }
    .about-image { height: 300px !important; }
}


/* Values Grid (Sobre Nós) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.value-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: var(--transition);
}
.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.value-icon {
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
}
.value-card h3 {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .values-grid { grid-template-columns: 1fr !important; }
    .value-card[style*="grid-column"] { grid-column: auto !important; max-width: 100% !important; }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background-color: #1a1a1a;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: slideUpCookie 0.4s ease;
}
.cookie-banner p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}
.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}
.btn-cookie {
    background-color: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn-cookie:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
@keyframes slideUpCookie {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; text-align: center; gap: 12px; }
}

/* Footer Legal Links */
.footer-legal {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}
.footer-legal a {
    color: rgba(255,255,255,0.4);
    transition: color 0.3s ease;
}
.footer-legal a:hover {
    color: rgba(255,255,255,0.7);
}
.footer-legal span {
    color: rgba(255,255,255,0.2);
    margin: 0 8px;
}

/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}
.legal-content p {
    margin-bottom: 1rem;
}
