:root {
    --primary-color: #061E3F;
    /* Requested Blue */
    --primary-dark: #04142a;
    /* Slightly darker for gradients */
    --secondary-color: #e5e5e5;
    /* Slightly darker grey for section contrast */

    --accent-color: #C28833;
    /* Requested Gold */
    --accent-hover: #a87328;

    --surface-dark: #F5F5F5;
    /* Requested Page Background */
    --surface-light: #FFFFFF;
    /* Card Background */

    --text-color: #333333;
    --text-muted: #666666;
    --white: #ffffff;

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(6, 30, 63, 0.05);

    --gradient-main: linear-gradient(135deg, var(--surface-dark) 0%, #ffffff 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fcfcfc 100%);

    --shadow-card: 0 4px 20px rgba(6, 30, 63, 0.08);

    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
    /* Ajuste global para o header fixo */
}

body {
    font-family: var(--font-body);
    background: var(--surface-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    /* Removed text-shadow for cleaner look */
}

h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a06d22 100%);
    color: var(--white);
    border-radius: 50px;
    /* Modern rounded style */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(194, 136, 51, 0.3);
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(194, 136, 51, 0.5);
    filter: brightness(1.1);
}

.btn-dourado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: linear-gradient(135deg, #C28833 0%, #a06d22 100%);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 136, 51, 0.3);
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-dourado:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(194, 136, 51, 0.5);
    filter: brightness(1.1);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-bg-light {
    background: var(--surface-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* Helpers */
.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

/* Header */
.header {
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    /* Fixed contrast on dark header */
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    min-width: 220px;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    overflow: hidden;
}

/* Carousel slides (background) */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Blue overlay over carousel */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(6, 30, 63, 0.60) 0%,
        rgba(2, 11, 24, 0.80) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    /* Keep white text on Hero image */
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Cards (Glassmorphism) */
.card,
.platform-card {
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 35px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.platform-card>div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.platform-card>div:first-child .btn {
    margin-top: auto;
}

.card:hover,
.platform-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(194, 136, 51, 0.15);
    background: #ffffff;
}

/* Shine effect on specific cards if desired */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.card p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.card-link {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--white);
}

.card-link::after {
    content: '→';
    transition: transform 0.3s;
}

.card-link:hover::after {
    transform: translateX(5px);
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Benefits List */
.benefits-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--primary-dark);
}

.benefits-list li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #020b18;
    padding: 80px 0 30px;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

.footer h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s ease;
}

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

.footer-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: #555;
}

/* WhatsApp Float — Wrapper */
.whatsapp-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.whatsapp-wrapper.wa-hidden { display: none; }

/* Botão de fechar (X) */
.whatsapp-close {
    background: rgba(0, 0, 0, 0.42);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
    align-self: flex-end;
    margin-right: 8px;
}
.whatsapp-close:hover { background: rgba(0, 0, 0, 0.65); }
.whatsapp-close svg {
    fill: #fff;
    width: 9px;
    height: 9px;
    display: block;
}

/* WhatsApp Float — Botão em si (sem position: fixed, agora é o wrapper) */
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .header .container {
        display: flex;
        justify-content: space-between;
    }

    .desktop-only {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(2, 11, 24, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-only {
        display: block;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile Dropdown Adjustments */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        border: none;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown:focus-within .dropdown-menu {
        display: flex;
    }

    .dropdown-item {
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .section {
        padding: 60px 0;
    }
}

/* App Button Styling */
.app-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.app-btn {
    display: flex;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 8px;
    background: #a06d22;
    color: #ecdddd;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    justify-content: center;
    align-content: stretch;
    flex-direction: row;
    align-items: center;
}

.app-btn:hover {
    background: #a87328;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.app-btn img {
    width: 40px;
    height: 40px;
    /* Remove invert since icons are already colored */
}

@media (max-width: 768px) {
    .app-buttons {
        flex-direction: column;
    }
}

/* Form Styles */
.contact-form {
    background: var(--surface-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(6, 30, 63, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

/* Contato page — 2-column layout */
#form-contato-maisprotecao {
    max-width: none;
    margin: 0;
}

@media (max-width: 768px) {
    #form-contato-maisprotecao {
        padding: 30px 20px;
    }
    .contato-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(194, 136, 51, 0.1);
    background-color: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
}

/* --- New Premium Styles --- */

/* Premium Tech Card (Mais Vision / Mais Fleet) */
.card-premium {
    background: linear-gradient(145deg, #ffffff 0%, #f4f6f9 100%);
    border: 1px solid rgba(6, 30, 63, 0.1);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(6, 30, 63, 0.15);
    border-color: var(--accent-color);
}

.card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    left: 0;
}

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

.card-premium .phrase {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 25px;
    font-style: italic;
}

.card-premium .benefit-list-premium {
    margin: 0 auto 30px auto;
    flex-grow: 1;
    text-align: left;
    width: fit-content;
}

.card-premium .benefit-list-premium li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-premium .benefit-list-premium li::before {
    content: '★';
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Prime Drive Commercial Section */
.section-prime-commercial {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white) 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

.section-prime-commercial::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(194, 136, 51, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.prime-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .prime-feature-grid {
        grid-template-columns: 1fr;
    }
}