/* ==========================================================================
   PALETA DE CORES E CONFIGURAÇÕES GERAIS
   ========================================================================== */
:root {
    --bmw-blue: #1C69D4;       /* Azul BMW / Conectividade */
    --navy-dark: #0A192F;      /* Azul Escuro / Premium */
    --slate-gray: #4A5568;     /* Cinza Técnico */
    --light-bg: #F7FAFC;       /* Fundo Claro Limpo */
    --accent-orange: #FF6B00;  /* Laranja Garmin / Destaques e Alertas */
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--navy-dark);
    line-height: 1.6;
}

/* ==========================================================================
   TOPO / INFO BAR
   ========================================================================== */
.top-bar {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 10px 5%;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bmw-blue);
}

.top-bar-info span {
    margin-right: 20px;
}

.top-bar-info strong {
    color: var(--accent-orange);
}

/* ==========================================================================
   CABECALHO PRINCIPAL (CORRIGIDO E ALINHADO AO CENTRO)
   ========================================================================== */
header {
    background-color: var(--white);
    padding: 10px 5%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinha o menu perfeitamente ao centro vertical da logo */
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    max-width: 250px;
    max-height: 250px;
    overflow: hidden;
}

.logo-container img {
    width: 100%;
    height: auto;
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   NAVEGACAO E MENUS DROPDOWN INTERATIVOS
   ========================================================================== */
nav .nav-container {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

nav .nav-container a {
    color: var(--slate-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
    padding: 20px 0; /* Area de clique aumentada */
    display: inline-block;
}

nav .nav-container a:hover {
    color: var(--bmw-blue);
}

.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    list-style: none;
    min-width: 260px;
    display: none;
    padding: 10px 0;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--navy-dark);
}

.dropdown li a:hover {
    background-color: var(--light-bg);
    color: var(--bmw-blue);
}

.nav-item:hover .dropdown {
    display: block;
}

/* ==========================================================================
   CONTEUDO PRINCIPAL / HERO BANNER
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1A365D 100%);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    border-bottom: 4px solid var(--bmw-blue);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 19px;
    margin-bottom: 35px;
    color: #E2E8F0;
    font-weight: 300;
}

.hero-banner-img {
    width: 100%;
    max-width: 900px;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-cta {
    background-color: var(--bmw-blue);
    color: var(--white);
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(28, 105, 212, 0.3);
}

.btn-cta:hover {
    background-color: #1552A6;
    transform: translateY(-1px);
}

/* ==========================================================================
   ESTRUTURA DE GRADE / CARDS COM IMAGEM
   ========================================================================== */
.main-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--navy-dark);
    margin-bottom: 45px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 0 0 30px 0 !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--slate-gray);
    transition: border-color 0.3s, transform 0.3s;
    overflow: hidden;
}

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

.service-card.bmw-highlight {
    border-top-color: var(--bmw-blue);
}

.service-card.garmin-highlight {
    border-top-color: var(--accent-orange);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    margin-bottom: 20px;
}

.service-card-body {
    padding: 0 30px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--navy-dark);
}

/* ==========================================================================
   ALERTAS E RODAPE
   ========================================================================== */
.info-notice {
    background-color: var(--white);
    border-left: 4px solid var(--bmw-blue);
    padding: 30px;
    border-radius: 0 8px 8px 0;
    margin: 60px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.info-notice h4 {
    font-size: 18px;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.info-notice p {
    color: var(--slate-gray);
    font-size: 15px;
}

footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 60px 5% 30px 5%;
    margin-top: 100px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1A365D;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #A0AEC0;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
    color: #718096;
    font-size: 13px;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    nav .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h2 {
        font-size: 32px;
    }
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
