:root {
    /* Color Palette */
    --primary: #8DC63F;
    --secondary: #E8651E;
    --primary-dark: #7ab336;
    --secondary-dark: #cf5a1a;
    
    /* Light Mode */
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-light: #aaaaaa;
    --header-bg: rgba(18, 18, 18, 0.95);
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --card-bg: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight-primary {
    color: var(--primary);
}

.highlight-secondary {
    color: var(--secondary);
}

.text-center { text-align: center; }
.text-white { color: #fff !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 198, 63, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 101, 30, 0.4);
}

.btn-whatsapp {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-whatsapp:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 198, 63, 0.4);
}

/* Compact Contact Section Modifications */
#contato.section {
    padding: 20px 0 !important;
}

#contato .contact-content {
    max-width: 650px;
    margin: 0 auto;
}

#contato .contact-info-plus h2 {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

#contato .contact-info-plus > p {
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.btn-whatsapp span, .btn-whatsapp i {
    color: var(--primary);
    transition: var(--transition);
}

.btn-whatsapp:hover span, .btn-whatsapp:hover i {
    color: #121212 !important; /* Dark text on hover for contrast against bright green */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.logo-wrapper {
    background-color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

#site-logo {
    height: 55px;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#theme-toggle:hover {
    background-color: var(--surface-color);
    border-color: var(--primary);
}

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

#mobile-menu-btn:hover {
    color: var(--primary);
}

/* Sections */
.section {
    padding: 120px 0; /* Increase padding to ensure clear separation */
}

.bg-light {
    background-color: var(--surface-color);
}

.bg-primary {
    background-color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Hero Section - Full Image Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../assets/sprinter-silver.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #000;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.95), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9);
}

.hero h1 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin: 0 auto 30px;
    max-width: 700px;
}

.hero-btns.justify-center {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Institutions Bottom Bar */
.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.institutions-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 400;
}

.institutions-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.institution-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.institution-item-dot {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.institution-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
    transition: var(--transition);
}

.institution-item img {
    height: 35px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Turns any logo completely white */
    opacity: 0.9;
    transition: var(--transition);
}

.institution-item:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
    text-align: left;
}

.service-info i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Fleet */
.fleet-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.fleet-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.fleet-item.reverse {
    flex-direction: row-reverse;
}

.fleet-image {
    flex: 1;
    position: relative;
}

.fleet-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.fleet-details {
    flex: 1;
}

/* AI Badge */
.ai-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

/* About Us */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mvv-item {
    padding: 30px;
    background-color: var(--surface-color);
    border-radius: 20px;
    border-left: 5px solid var(--primary);
}

.mvv-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-info-plus {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.contact-item {
    color: #ffffff !important; /* Back to white for better elegance */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    background: rgba(0,0,0,0.2); /* Darker semi-transparent tint for readability */
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2rem;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background: #121212;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-color);
    text-align: center;
}

.cnpj, .ai-notice {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.mobile-only {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-only {
        display: block;
    }
    .header-container {
        height: 70px;
    }

    .logo-wrapper {
        padding: 4px 8px;
    }

    #site-logo {
        height: 40px;
    }

    nav {
        display: none; /* Hide desktop nav */
    }

    .header-actions .btn-whatsapp {
        display: none; /* Hide header WhatsApp button on mobile */
    }

    #mobile-menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
        padding-bottom: 50px;
    }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; margin: 0 auto 30px; }
    .hero-btns { 
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .fleet-item, .fleet-item.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .fleet-image, .fleet-details {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .contact-links { flex-direction: column; }
    .contact-item { width: 100%; justify-content: center; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Menu Active Overlay */
#main-nav.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--header-bg);
    padding: 100px 40px 40px;
    z-index: 999;
    animation: slideDown 0.4s cubic-bezier(0, 0, 0.2, 1);
}

#main-nav.active ul {
    flex-direction: column;
    gap: 25px;
    text-align: center;
    width: 100%;
}

#main-nav.active a {
    font-size: 1.5rem;
    display: block;
    padding: 10px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
