/* =========================================
   1. VARIABILE & CONFIGURARE (THEME: DARK FINTECH)
   ========================================= */
:root {
    /* --- CULORI DE BAZĂ (BACKGROUNDS) --- */
    --bg-body: #011a12;            /* Cel mai închis verde (Deep Forest) - pentru body */
    --bg-card: #04291e;            /* Un verde puțin mai deschis - pentru carduri */
    --bg-glass: rgba(255, 255, 255, 0.03); /* Efect de sticlă pentru carduri moderne */
    
    /* --- CULORI DE ACCENT --- */
    --brand-green: #00b074;        /* Verdele vibrant din PDF (Butoane/Highlight) */
    --brand-gradient: linear-gradient(135deg, #00b074 0%, #005c3e 100%); /* Gradient Card */
    --primary-blue: #00b074;       /* Suprascriem variabila veche cu verdele brandului */
    --whatsapp-green: #25D366;

    /* --- TYPOGRAPHY --- */
    --text-main: #ffffff;          /* Text principal alb */
    --text-muted: #a0b3ad;         /* Text secundar gri-verzui deschis */
    
    --border-dim: rgba(255, 255, 255, 0.1); /* Borduri subtile */
    
    /* --- UMBRE & GLOW --- */
    --shadow-glow: 0 0 20px rgba(0, 176, 116, 0.15);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

/* =========================================
   2. RESETARE & STILURI GLOBALE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- SOLUȚIA DEFINITIVĂ PENTRU SCROLL ORIZONTAL --- */
html, body {
    overflow-x: hidden; /* Blochează scroll-ul lateral nedorit */
    background-color: var(--bg-body); /* Setăm fundalul întunecat global */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
}

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

/* -- Typography -- */
h1, h2, h3 {
    color: #fff; /* Titluri albe */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 { font-size: 3rem; letter-spacing: -1px; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 50px; position: relative; }
h3 { font-size: 1.5rem; }

/* Linie decorativă sub H2 - Neon Green */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-green);
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--brand-green); /* Efect de glow */
}

p {
    margin-bottom: 20px;
    color: var(--text-muted); /* Textul paragrafelor e gri deschis */
}

a {
    text-decoration: none;
    color: var(--brand-green);
    transition: all 0.3s;
}
a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--brand-green);
}

ul { list-style: none; }
img { max-width: 100%; border-radius: 12px; }
section { padding: 80px 0; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* =========================================
   3. BUTOANE (STIL FINTECH MODERN)
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px; /* Rotunde complet - Pill Shape */
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Buton Principal (Verde Vibrant) */
.btn-primary {
    background: var(--brand-green);
    color: #fff; 
    box-shadow: 0 4px 15px rgba(0, 176, 116, 0.4); /* Glow verde */
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: #00d68f; /* Mai deschis la hover */
    box-shadow: 0 6px 20px rgba(0, 176, 116, 0.6);
}

/* Buton Secundar (Outline Alb) */
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: rgba(0, 176, 116, 0.1);
}

/* Buton WhatsApp */
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #fff;
}
.btn-whatsapp:hover {
    background-color: #1EAE50;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Buton Fișă Tehnică */
.btn-tech-sheet {
    background-color: transparent;
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
    margin-top: 20px;
    border-radius: 12px;
}
.btn-tech-sheet:hover {
    background-color: var(--brand-green);
    color: #fff;
}

/* Buton Cookie */
.btn-accept {
    background: var(--brand-green);
    color: #fff;
    border-radius: 8px;
}

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

/* =========================================
   4. HEADER & NAVIGAȚIE (DARK GLASS)
   ========================================= */
header {
    background: rgba(1, 26, 18, 0.85); /* Verde foarte închis transparent */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
    text-shadow: none;
}

/* Meniul Burger (Linii albe) */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px;
    background-color: #fff;
    margin: 5px; border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   5. SECȚIUNE HERO
   ========================================= */
.hero {
    /* Imagine de fundal întunecată cu overlay verde închis */
    background: linear-gradient(rgba(1, 26, 18, 0.85), rgba(1, 26, 18, 0.75)), url('img/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 180px 0 200px;
    margin-bottom: 140px;
}
.hero h1 { margin-bottom: 25px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 40px;
}
.hero .btn-secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

/* =========================================
   6. SECȚIUNE FLOTĂ (CARDURI DARK)
   ========================================= */
.fleet-section {
    background: var(--bg-body);
    margin-top: -100px; /* Suprapunere peste Hero */
    padding-top: 0;
}

.car-card {
    background: var(--bg-glass); /* Transparent Dark */
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-card);
}

.car-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-green);
    box-shadow: 0 10px 40px -10px rgba(0, 176, 116, 0.2); /* Green glow la hover */
}

.car-card img {
    border-radius: 0;
    margin-bottom: 20px;
    height: 220px;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.car-card:hover img { opacity: 1; }

.car-card h3 {
    padding: 0 25px;
    color: #fff;
}

.car-card .features {
    padding: 0 25px 25px;
    flex-grow: 1;
}
.car-card .features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}
.car-card .features li:last-child { border-bottom: none; }
.car-card .features li b {
    color: var(--brand-green);
    margin-right: 8px;
}
.car-card .btn { margin: 0 25px 30px; }

/* =========================================
   7. SECȚIUNE BENEFICII
   ========================================= */
.benefits-section { background: var(--bg-body); }

.benefit-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-dim);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.benefit-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--brand-green);
    transform: translateY(-5px);
}
.benefit-card h3 {
    color: var(--brand-green); /* Titluri verzi */
    margin-bottom: 15px;
}
.benefit-card p { margin-bottom: 0; }

/* =========================================
   8. PAGINĂ MAȘINĂ: DETALII & PREȚURI
   ========================================= */
/* Header Detalii */
.car-details-header {
    text-align: center;
    background: radial-gradient(circle at center, #052e20 0%, #011a12 70%); /* Glow central subtil */
    padding-bottom: 60px;
}
.car-details-header img {
    margin-bottom: 30px;
    max-height: 400px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); /* Umbră sub mașină */
}

/* Secțiune Prețuri */
.pricing-section { background: var(--bg-body); }

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-5px);
}

.pricing-header {
    padding: 50px 30px 30px;
    border-bottom: 1px solid var(--border-dim);
    background: rgba(0,0,0,0.2);
}

/* --- Cardul Popular (DESIGN SPECIAL PDF) --- */
.pricing-card.popular {
    border: none; 
    background: var(--brand-gradient); /* Tot cardul e verde */
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 50px -10px rgba(0, 176, 116, 0.4);
}
.pricing-card.popular:hover { transform: scale(1.08); }

/* Textul cardului popular devine Alb pentru contrast */
.pricing-card.popular h3,
.pricing-card.popular span,
.pricing-card.popular li,
.pricing-card.popular strong,
.pricing-card.popular .pricing-footer {
    color: #fff !important;
    border-color: rgba(255,255,255,0.2);
}
.pricing-card.popular .pricing-header { background: transparent; }
.pricing-card.popular .pricing-footer { background: rgba(0,0,0,0.1); }

/* Detalii Text Prețuri */
.pricing-header h3 { font-size: 2rem; margin-bottom: 5px; }
.pricing-header span {
    font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8;
}

.pricing-features { padding: 30px; }
.pricing-features li {
    margin-bottom: 15px; color: var(--text-muted);
    font-size: 1.1rem;
}
.pricing-features li strong { color: #fff; }

.pricing-footer {
    padding: 20px;
    font-weight: 600;
    color: var(--brand-green);
    background: rgba(255,255,255,0.02);
}
/* Stil pentru +TVA (Superscript) */
.tva {
    font-size: 0.8em;       /* Mult mai mic (50% din mărimea prețului) */
    vertical-align: top;    /* Îl aliniază în partea de sus */
    position: relative;     /* Ne permite să îl ajustăm fin */
    top: -0.3em;            /* Îl ridică puțin mai sus decât linia textului */
    margin-left: 3px;       /* Adaugă puțin spațiu față de simbolul € */
    font-weight: 400;       /* Îl face mai subțire, să nu concureze cu prețul */
    opacity: 0.7;           /* Îl face ușor transparent, pentru eleganță */
}
.popular-badge {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    background: #fff; color: var(--brand-green); /* Inversat */
    padding: 5px 15px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
}

/* =========================================
   9. ALTE SECȚIUNI (CTA, FAQ, LOCATION, FOOTER)
   ========================================= */
/* CTA Section */
.cta-section {
    background: linear-gradient(to right, #004d33, #00261a);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    text-align: center;
}
.cta-section p { color: rgba(255,255,255,0.8); }

/* FAQ Section */
.faq-section { background: var(--bg-body); }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-left: 4px solid var(--brand-green);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    margin-bottom: 15px;
}
.faq-item h3 { color: var(--brand-green); font-size: 1.2rem; }
.faq-item p { color: var(--text-muted); margin: 0; }

/* Location Section */
.location-section { background: var(--bg-body); }
.location-map iframe {
    border-radius: 20px;
    border: 1px solid var(--border-dim);
    filter: grayscale(100%) invert(92%) hue-rotate(120deg) contrast(90%); /* HACK: Harta Dark Mode */
}
.location-details h3 { color: #fff; }

/* Footer */
footer {
    background: #000; /* Negru total */
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-dim);
}
footer p { color: var(--text-muted); opacity: 0.7; }
.footer-links a { color: var(--text-muted); margin: 0 15px; }
.footer-links a:hover { color: var(--brand-green); }

/* =========================================
   10. COOKIE BANNER (DARK)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(4, 41, 30, 0.95);
    border: 1px solid var(--brand-green);
    box-shadow: 0 0 30px rgba(0, 176, 116, 0.2);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 20px 30px;
}

.cookie-banner-visible {
    display: flex;
}

.cookie-text {
    flex-grow: 1;
    margin-right: 30px;
    font-size: 0.95rem;
    color: #fff;
}
.cookie-text a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
}
.cookie-buttons {
    display: flex;
    gap: 15px;
}
.cookie-buttons .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* -- Tablete (900px și mai jos) -- */
@media (max-width: 900px) {
    .hero { clip-path: none; padding: 150px 0 100px; }
    .cookie-banner-visible { flex-direction: column; text-align: center; bottom: 0; width: 100%; border-radius: 0; }
    .cookie-text { margin-right: 0; margin-bottom: 20px; }
    .faq-grid, .location-content { grid-template-columns: 1fr; }
}

/* ==========================================================================
   theMarketer — Lead Capture Form
   ========================================================================== */
.tm-lead-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-dim);
    padding: 20px 0 0;
}

.tm-lead-wrapper {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.tm-lead-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#tm-lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#tm-lead-form input[type="text"],
#tm-lead-form input[type="email"],
#tm-lead-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#tm-lead-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

#tm-lead-form input:focus {
    border-color: var(--accent-green);
}

.tm-form-message {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 4px;
}

.tm-form-message.tm-success {
    background: rgba(0, 176, 116, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 176, 116, 0.3);
}

.tm-form-message.tm-error {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* -- Mobile (768px și mai jos) -- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    /* Meniul Mobil - Dark Background */
    .nav-links {
        position: absolute; right: 0; top: 70px;
        background: #022015; /* Dark background */
        border-left: 1px solid var(--border-dim);
        display: flex; flex-direction: column; align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding: 30px 0;
    }
    .nav-links li { opacity: 0; width: 100%; text-align: center; transition: opacity 0.4s ease-in; }
    .nav-links a {
        display: block; padding: 20px; font-size: 1.2rem; color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }
    .nav-active li { opacity: 1; transition-delay: 0.25s; }
    
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .pricing-card.popular { transform: scale(1); margin: 20px 0; }
    
    .location-map iframe { height: 300px; }
    .tm-form-row { grid-template-columns: 1fr; }
}