/* --- 1. Variabile & Reset --- */
:root {
    --primary-red: #D32F2F;      /* Rosu Brand */
    --primary-dark: #2C3E50;     /* Dark Blue Brand */
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--primary-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--primary-dark); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. Componente --- */
.text-red { color: var(--primary-red); }
.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    border: 2px solid var(--primary-red);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 15px;
}
.btn-outline:hover { background: white; color: var(--primary-dark); }
.btn-block { width: 100%; text-align: center; }

/* --- 3. Navbar Logic (Glass vs Scrolled) --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.05); /* Transparent Glass */
    backdrop-filter: blur(10px);
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Logo Styling */
#nav-logo {
    height: 27px;
    width: auto;
    transition: 0.3s;
}

.nav-links { display: flex; align-items: center; gap: 30px; }


.nav-links a { 
    font-weight: 600; 
    font-size: 0.95rem; 
    color: var(--white); /* Text Alb pe fundal transparent */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Umbră fină neagră pentru lizibilitate */
}

/* STARE SCROLLED (ALB): Text Dark (#2C3E50) */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

#navbar.scrolled .nav-links a {
    color: var(--primary-dark); 
    text-shadow: none;
}
#navbar.scrolled .nav-links a:hover {
    color: var(--primary-red);
}

/* Buton Contact in Navbar */
/* Păstrează conturul roșu, dar textul se moștenește (Alb pe Glass, Dark pe Scroll) */
.nav-btn {
    border: 2px solid var(--primary-red);
    padding: 8px 20px;
    border-radius: 20px;
}
.nav-btn:hover { background: var(--primary-red); color: white !important; }

/* --- 4. Hero Section --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/inmatriculare-auto-iasi.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient inchis pentru a scoate textul alb/rosu in evidenta */
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-content { position: relative; z-index: 2; color: white; max-width: 800px; padding: 20px; }

/* H1 Culoare Rosu D32F2F */
.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    line-height: 1.1;
    color: var(--primary-red);
}
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; color: white; }

/* --- 5. Servicii --- */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-dark); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Umbra initiala discreta */
    border-bottom: 5px solid transparent;     /* Linie jos invizibila */
    
    /* Tranzitie rapida si "snappy" */
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    
    /* Asiguram layout vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.card:hover {
    /* SE MISCA MAI MULT: Ridicare 15px in sus (fata de 5px cat era inainte) */
    transform: translateY(-15px); 
    
    /* UMBRA MAI MARE: Se intinde mai mult si e mai difuza */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Accentul rosu jos */
    border-bottom-color: var(--primary-red);
}
.icon-box {
    width: 70px; height: 70px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: 0.3s;
}
/* Iconita se coloreaza si ea rapid */
.card:hover .icon-box {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1); /* Efect bonus: iconita se mareste putin */
}

/* --- 6. Verificare Documente  --- */
.bg-light { background-color: var(--bg-light); }

.doc-container { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    flex-wrap: wrap; 
}

/* Stanga - Textul */
.doc-text { 
    flex: 1; 
    min-width: 300px; 
}
.check-title {
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* Dreapta - Lista de Carduri */
.verification-wrapper { 
    flex: 1; 
    min-width: 300px; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.verify-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: 0.3s;
    border-left: 5px solid transparent;
}

.verify-card:hover {
    transform: translateX(10px);
    border-left-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.v-icon {
    background: rgba(44, 62, 80, 0.05); /* Un gri-albastrui foarte deschis */
    color: var(--primary-dark);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0; /* Sa nu se turteasca iconita */
}

.verify-card:hover .v-icon {
    background: var(--primary-red);
    color: white;
}

.v-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.v-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive fix pentru ecrane mici */
@media screen and (max-width: 768px) {
    .doc-container { gap: 40px; }
    .verify-card:hover { transform: translateY(-5px); } /* Pe mobil ridicam in sus, nu dreapta */
}

/* --- 7. Despre Noi (Creativ) --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.about-content p { color: #666; margin-bottom: 30px; }

.features-list { display: flex; gap: 30px; }
.feature { display: flex; align-items: center; gap: 15px; }
.feature i { 
    font-size: 2rem; 
    color: var(--primary-red); 
    background: rgba(211,47,47,0.1);
    padding: 10px;
    border-radius: 10px;
}
.feature h4 { margin-bottom: 2px; font-size: 1.1rem; }
.feature small { color: #888; font-size: 0.85rem; }

.about-image { position: relative; }
.about-image img { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: var(--shadow);
}
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 5px solid var(--primary-red);
}
.experience-badge .years { font-size: 2.5rem; font-weight: 800; color: var(--primary-red); line-height: 1; }
.experience-badge .text { font-size: 0.9rem; font-weight: 600; line-height: 1.2; color: var(--primary-dark); }

/* --- 8. Recenzii --- */

/* Container General */
.fb-reviews-section {
    width: 100%;
    overflow: hidden;
    font-family: sans-serif; /* Sau fontul site-ului tau */
}

/* --- Stil Bara Rosie --- */
.fb-header-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #D32F2F; /* Culoarea rosie ceruta */
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.fb-header-link:hover {
    background-color: #b71c1c;
}

.fb-cta-text {
    margin-right: 10px;
}

/* --- Stil Carusel Albastru --- */
.fb-carousel-container {
    background-color: #2C3E50; /* Culoarea albastra ceruta */
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.fb-marquee-track {
    display: inline-block;
    /* Viteza animatiei (40 secunde) */
    animation: marquee-scroll 40s linear infinite;
}

/* Stil Imagini Recenzii */
.fb-review-img {
    height: 100px; /* Inaltime fixa */
    width: auto;
    border-radius: 6px;
    margin: 0 15px; /* Spatiu intre poze */
    vertical-align: middle;
    display: inline-block;
    background-color: white; 
}

/* --- Animatia --- */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se muta la stanga fix 50% (cat tine primul set de poze) */
        transform: translateX(-50%);
    }
}

/* --- Mobil --- */
@media (max-width: 768px) {
    .fb-header-link {
        font-size: 16px;
        padding: 12px;
    }
    .fb-review-img {
        height: 100px; /* Poze mai mici pe telefon */
        margin: 0 8px;
    }
}

/* --- 9. Contact --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.info-item { display: flex; align-items: center; margin-bottom: 30px; }
.info-item i {
    font-size: 1.2rem; color: var(--primary-red);
    width: 50px; height: 50px; background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 20px;
}
.input-group { position: relative; margin-bottom: 30px; }
.input-group input, .input-group textarea {
    width: 100%; padding: 15px 0; border: none; border-bottom: 2px solid #ddd;
    background: transparent; font-size: 1rem; transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-bottom-color: var(--primary-red); }
.input-group label {
    position: absolute; top: 15px; left: 0; color: #999; pointer-events: none; transition: 0.3s;
}
.input-group input:focus + label, .input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label, .input-group textarea:not(:placeholder-shown) + label {
    top: -10px; font-size: 0.8rem; color: var(--primary-red);
}

/* --- Footer --- */
footer { background: var(--primary-red); color: #ffffff; text-align: center; padding: 30px 0; }

/* --- Responsive --- */
@media screen and (max-width: 992px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .about-wrapper { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .about-image { margin-top: 30px; }
    .experience-badge { right: 0; bottom: -15px; }
}

/* --- Responsive Mobile (FĂRĂ MENIU) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Ascundem complet link-urile și burger-ul */
    .nav-links, .burger {
        display: none !important;
    }

    /* 2. Centrăm Logo-ul pe mijlocul barei */
    .nav-container {
        justify-content: center;
    }

    /* 3. Ajustări Hero (Textul principal) */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    /* 4. Butoanele din Hero unul sub altul */
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .btn-outline {
        margin-left: 0;
    }
    
    /* 5. Alte ajustări necesare pentru layout */
    .contact-layout, .about-wrapper, .doc-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .experience-badge {
        right: 0;
        bottom: -15px;
    }
}

/* Scroll Reveal Anim */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } 
.delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }
/* --- Fix pentru Carduri pe Mobil --- */
@media screen and (max-width: 600px) {
    /* Trecem la o singură coloană pe ecrane înguste */
    .cards-grid {
        grid-template-columns: 1fr; 
        gap: 20px; /* Reducem puțin spațiul între ele */
    }

    /* Opțional: Reducem puțin padding-ul containerului general pentru mai mult loc */
    .container {
        width: 95%;
    }
}

.whatsapp-sticky {
    position: fixed; bottom: 20px; right: 20px;
    background: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; z-index: 1001;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}