/* ============================================================
   Maioral Veículos MP Consultoria - Estilos Principais v5
   PARALLAX: Imagem fixa no body, secções com GAPS entre elas
   para se ver a imagem de fundo ao fazer scroll
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --gold:         #C9A84C;
    --gold-light:   #D4AF37;
    --gold-dark:    #a07830;
    --black:        #1a1a1a;
    --black-soft:   #242424;
    --black-card:   #2a2a2a;
    --white:        #f5f0e8;
    --white-pure:   #ffffff;
    --grey-light:   #3a3a3a;
    --grey-text:    #aaaaaa;
    --border-color: #3a3a3a;
    --primary-color: #C9A84C;
    --secondary-color: #D4AF37;
}

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

/* ===== FUNDO FIXO PARALLAX - IMAGEM OCUPA TODO O ECRÃ ===== */
body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
    line-height: 1.6;
    background-image: url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--black);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(10, 10, 10, 0.92) !important;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 30px rgba(201, 168, 76, 0.1);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--white) !important;
    text-decoration: none;
}

.navbar-brand img {
    margin-right: 12px;
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
}

.navbar-brand .brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-main {
    font-size: 16px;
    font-weight: 800;
    color: var(--white-pure);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-brand .brand-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    margin: 0 5px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey-text) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 0.8rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler { border-color: var(--gold) !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C9A84C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== HERO SECTION - TOTALMENTE TRANSPARENTE ===== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.3) 100%
    );
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(201,168,76,0.04) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.hero-logo-container {
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid rgba(201,168,76,0.35);
    padding: 25px 35px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(201,168,76,0.1), inset 0 0 30px rgba(201,168,76,0.03);
}

.hero-logo-container img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(201,168,76,0.3));
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--white-pure);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.hero-section h1 .gold-text,
.gold-text { color: var(--gold); }

.hero-section p.lead {
    font-size: clamp(14px, 2.5vw, 17px);
    margin-bottom: 35px;
    color: rgba(255,255,255,0.8);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECÇÕES COM GAPS ENTRE ELAS PARA VER A IMAGEM ===== */
/* Cada secção tem margem em cima para criar um espaço transparente
   onde se vê a imagem de fundo fixa */

.features-section {
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 80px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(201,168,76,0.2);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    border-radius: 0;
}

.feature-box {
    padding: 30px 22px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: rgba(25, 25, 25, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(201,168,76,0.12);
    border-color: var(--gold);
    background: rgba(25, 25, 25, 0.6);
}

.feature-box .feature-icon {
    font-size: 38px;
    color: var(--gold);
    margin-bottom: 18px;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,168,76,0.08);
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.2);
}

.feature-box h3 {
    color: var(--white-pure);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0 0 10px;
    font-size: 15px;
}

.feature-box p {
    color: var(--grey-text);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

/* ===== STATS SECTION - COM GAP PARA VER IMAGEM ===== */
.stats-section {
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.stat-item {
    padding: 20px 10px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 15px rgba(201,168,76,0.3);
}

.stat-label {
    color: var(--grey-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ===== CTA SECTION - COM GAP ===== */
.cta-section {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 80px 20px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white-pure);
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--grey-text);
    font-size: 15px;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== VEHICLES/PRODUCTS SECTION ===== */
.products-section {
    background: rgba(12, 12, 12, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 70px 20px;
    margin-top: 60px;
}

.products-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white-pure);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: clamp(22px, 5vw, 32px);
}

.products-section .section-subtitle {
    color: var(--grey-text);
    margin-bottom: 40px;
    font-size: 15px;
}

/* ===== VEHICLE CARDS ===== */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(201,168,76,0.2);
    border-color: var(--gold);
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--grey-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image { transform: scale(1.05); }

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    color: var(--gold);
    font-size: 48px;
}

.card-body { padding: 20px; flex-grow: 1; }

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white-pure);
}

.card-text { font-size: 13px; color: var(--grey-text); line-height: 1.6; }

.card-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 12px 28px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    color: var(--black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201,168,76,0.4);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--black);
}

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

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.btn-outline-light {
    border: 2px solid var(--white-pure);
    color: var(--white-pure);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white-pure);
    color: var(--black);
}

.btn-light {
    background-color: var(--white-pure);
    border: none;
    color: var(--black);
    font-weight: 700;
}

.btn-light:hover { background-color: var(--gold); color: var(--black); }

/* ===== FOOTER - COM GAP PARA VER IMAGEM ===== */
footer {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 60px;
    border-top: 2px solid var(--gold);
}

footer h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer p { font-size: 13px; margin-bottom: 8px; color: var(--grey-text); line-height: 1.7; }

footer a { color: var(--grey-text); text-decoration: none; font-size: 13px; transition: color 0.3s ease; }
footer a:hover { color: var(--gold); }

footer .footer-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--white-pure);
    letter-spacing: 1px;
    text-transform: uppercase;
}

footer .footer-brand-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

footer hr { border-color: var(--border-color); opacity: 0.5; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12px; color: var(--grey-text); }

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    font-size: 14px;
    background-color: rgba(30, 30, 30, 0.8);
    color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.2);
    background-color: rgba(30, 30, 30, 0.9);
    color: var(--white);
}

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

.form-label {
    color: var(--grey-text);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ===== ALERTS ===== */
.alert { border-radius: 8px; border: none; margin-bottom: 20px; }

.alert-info {
    background-color: rgba(201,168,76,0.1);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.3);
}

.alert-success {
    background-color: rgba(40,167,69,0.15);
    color: #5cb85c;
    border: 1px solid rgba(40,167,69,0.3);
}

.alert-danger {
    background-color: rgba(220,53,69,0.15);
    color: #e74c3c;
    border: 1px solid rgba(220,53,69,0.3);
}

/* ===== RESERVATION/CONTACT PAGE ===== */
.reservation-section {
    background: rgba(12, 12, 12, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 70px 20px;
    margin-top: 60px;
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-gold { color: var(--gold) !important; }
.gold-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 15px auto 30px; border-radius: 2px;
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 10px;
}
.section-header p { color: var(--grey-text); font-size: 15px; }

.card {
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--white);
}

.card-header {
    background-color: rgba(201,168,76,0.1);
    border-bottom: 1px solid var(--border-color);
    color: var(--white-pure);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* ===== MOBILE RESPONSIVO ===== */
@media (max-width: 768px) {
    .navbar { padding: 0.5rem 0; }
    .navbar-brand img { height: 38px !important; }
    .navbar-brand .brand-main { font-size: 13px; }
    .navbar-brand .brand-sub { font-size: 9px; letter-spacing: 2px; }
    .navbar-nav .nav-link { margin: 4px 0; font-size: 12px; }

    .hero-section { min-height: 70vh; }
    .hero-content { padding: 40px 0; }
    .hero-logo-container { padding: 18px 25px; }
    .hero-logo-container img { max-width: 150px; }
    .hero-section h1 { font-size: 24px; }
    .hero-section p.lead { font-size: 14px; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .hero-buttons .btn { width: 100%; }

    .features-section { padding: 50px 15px; margin-top: 40px; }
    .feature-box { padding: 25px 15px; }

    .stats-section { padding: 40px 15px; margin-top: 40px; }
    .stat-number { font-size: 32px; }
    .stat-label { font-size: 10px; }

    .cta-section { padding: 50px 15px; margin-top: 40px; }
    .cta-section .hero-buttons { flex-direction: column; gap: 10px; }
    .cta-section .hero-buttons .btn { width: 100%; }

    .products-section { padding: 50px 15px; margin-top: 40px; }
    .product-image-container { height: 160px; }

    footer { padding: 35px 15px 15px; margin-top: 40px; }
    .form-control, .form-select { font-size: 16px; }
    .btn-group { flex-direction: column; gap: 10px !important; }
    .btn-group .btn { width: 100% !important; }

    /* iOS não suporta background-attachment: fixed */
    body {
        background-attachment: scroll;
        background-size: cover;
    }
}

@media (max-width: 576px) {
    .navbar-brand .brand-main { font-size: 12px; }
    .hero-section { min-height: 60vh; }
    .hero-section h1 { font-size: 20px; }
    .hero-logo-container img { max-width: 120px; }
    .feature-box h3 { font-size: 14px; }
    .feature-box p { font-size: 12px; }
    .stat-number { font-size: 28px; }
}
