/* =========================================
   1. RESET & VARIABILE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #d32f2f; 
    --pure-white: #ffffff;
    --light-bg: #f9f9f9;
    --dark-grey: #333333;
    --transition: all 0.3s ease;
}

html {
    font-size: 100%; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--pure-white);
}

.container {
    width: 90%;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
}

.text-red {
    color: #ff0000;
}

/* =========================================
   2. HEADER & NAVIGARE
   ========================================= */
.main-header {
    background-color: #ff0000;
    height: 3.75rem; /* 60px */
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    height: 100%;
    margin: 0 auto;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: opacity 0.3s ease;
}

.logo-text:hover { opacity: 0.9; }

/* Hamburger (Mobil) */
.hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    display: block;
    width: 1.56rem;
    height: 0.18rem;
    margin: 0.3rem auto;
    background-color: var(--pure-white);
    transition: var(--transition);
}

/* Nav Menu Mobile */
.nav-menu {
    position: fixed;
    left: -100%;
    top: 3.75rem;
    width: 100%;
    height: calc(100vh - 3.75rem);
    background-color: var(--pure-white);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: 0.4s ease-in-out;
    z-index: 999;
}

.nav-menu.active { left: 0; }
.nav-menu ul { list-style: none; padding: 2.5rem 0; }
.nav-menu li { margin: 1.25rem 0; }

.nav-link {
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--dark-grey);
    font-weight: 700;
    transition: var(--transition);
}

/* Desktop Styles Nav */
@media (min-width: 48rem) { /* > 768px */
    .hamburger { display: none; }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        transition: none;
    }

    .nav-menu ul { display: flex; padding: 0; }
    .nav-menu li { margin: 0 0.9rem; }
    .nav-link { color: var(--pure-white); font-size: 1rem; }
    
    .nav-link.highlight {
        border: 0.125rem solid var(--pure-white);
        padding: 0.3rem 0.9rem;
        border-radius: 0.3rem;
    }
}

/* =========================================
   3. HERO SECTION (Desktop Default)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* PE DESKTOP ESTE CENTRAT (Mijloc) */
    color: white;
    text-align: left;
    margin-top: 3.75rem;
    padding: 2rem 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('images/fundal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-text {
    flex: 1; 
    text-align: center;
}

.main-headline {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Formularul Alb (Lead Magnet) */
.hero-form-card {
    flex: 1;
    max-width: 450px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--dark-grey);
}

.hero-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-grey);
    line-height: 1.3;
}

.hero-form-card label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.hero-form-card input,
.hero-form-card select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background: #f9f9f9;
}

.btn-submit-full {
    width: 100%;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-full:hover { background-color: #b30000; }

.btn-red {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* =========================================
   4. DESPRE NOI & VIDEO
   ========================================= */
.despre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lista-compacta {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.lista-compacta li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--dark-grey);
}

.nota-finala {
    font-style: italic;
    border-left: 4px solid var(--primary-red);
    padding-left: 10px;
    margin-top: 20px;
}

/* Video Wrapper */
.despre-video-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.despre-video-wrapper video {
    width: 100%;
    max-height: 500px; 
    object-fit: contain; 
    background-color: black;
    display: block;
}

.video-caption {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    background-color: white;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* =========================================
   5. ALTE SECȚIUNI & UTILITĂȚI
   ========================================= */
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: #f4f4f4; }

/* Centrare Text */
.informatii-centrate {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lista-centrata-wrapper {
    display: inline-block;
    text-align: left;
    margin: 20px 0;
}

.lista-centrata-wrapper li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.125rem;
    color: var(--dark-grey);
}

h2::after {
    content: '';
    display: block;
    width: 3.75rem;
    height: 0.25rem;
    background-color: var(--primary-red);
    margin: 1rem auto 0;
}

/* Servicii Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: white;
    padding: 2.5rem 1.8rem;
    border-radius: 0.6rem;
    text-align: center;
    box-shadow: 0 0.3rem 1.25rem rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 0.25rem solid transparent;
}

.service-card:hover {
    transform: translateY(-0.6rem);
    border-bottom: 0.25rem solid var(--primary-red);
}

.service-card h3 { margin-bottom: 1rem; color: var(--primary-red); }

/* Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info { text-align: left; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary-red); }

.info-item {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
}

.info-item a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 700;
}

/* Formular Contact Jos */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark-grey);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

/* Buton Plutitor */
/* --- BUTON PLUTITOR WHATSAPP --- */
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    /* Culoarea oficială WhatsApp */
    background-color: #25D366; 
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px; /* Centrează iconița pe verticală */
    font-size: 32px; /* Mărimea iconiței */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000; /* Să fie peste orice altceva */
    transition: transform 0.3s ease;
    text-decoration: none;
    
    /* Animație de pulsare (verde) */
    animation: pulse-green 2s infinite;
}

.floating-call-btn:hover {
    background-color: #128C7E; /* Verde mai închis când pui mouse-ul */
    transform: scale(1.1); /* Se mărește puțin */
}

/* Definim animația de pulsare VERDE */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Buton WhatsApp Contact */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white !important;
    padding: 10px 20px;
    margin-top: 5px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: fit-content; 
    align-self: flex-start;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* =================================================================
   6. RESPONSIVE OPTIMIZAT (MOBIL) - AICI ESTE FIX-UL
   ================================================================= */
@media (max-width: 900px) {
    
    /* 1. HERO SECTION - MODIFICAT SĂ FIE SUS */
    .hero-section {
        min-height: 100vh;
        /* Padding sus de 75px (60px header + 15px spatiu) */
        padding: 75px 0 30px 0; 
        /* ACEASTA ESTE LINIA IMPORTANTĂ: ALINIEM SUS (FLEX-START), NU CENTRU */
        align-items: flex-start; 
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 15px; 
        /* ȘI AICI ALINIEM SUS */
        justify-content: flex-start;
        margin-top: 10px;
    }

    /* 2. TITLURI */
    .main-headline {
        font-size: 2rem; 
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .sub-headline {
        font-size: 1.1rem;
    }

    /* Buton Suna Acum Mobil */
    .mobile-only {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .mobile-only .btn-red {
        padding: 10px 25px;
        font-size: 1rem;
    }

    /* 3. FORMULARUL (CARD) */
    .hero-form-card {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem; 
        margin-bottom: 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }

    .hero-form-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .hero-form-card label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .hero-form-card input, 
    .hero-form-card select {
        padding: 8px 10px; 
        margin-bottom: 10px;
        border-radius: 5px;
        font-size: 1rem;
        height: 42px; 
    }

    .btn-submit-full {
        padding: 12px;
        font-size: 1.1rem;
        margin-top: 5px;
    }

    /* Restul elementelor pe mobil */
    .despre-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .despre-video-wrapper video {
        max-height: 450px;
    }

    .lista-compacta {
        text-align: left;
        display: inline-block;
    }

    .nota-finala {
        border-left: none;
        border-top: 4px solid var(--primary-red);
        padding-top: 10px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (min-width: 901px) {
    .mobile-only { display: none; }
}

/* Footer */
.main-footer {
    background-color: #222; 
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary-red);
}

.main-footer p {
    margin-bottom: 5px;
}

.signature {
    font-size: 0.85rem;
    opacity: 0.8;
}

.brand-name {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* --- SECȚIUNE PARTENERI (Sub Formular pe Mobil) - Recalibrat să nu fie subțire --- */
.partner-logos-container {
    width: 100%;
    margin-top: 25px; /* Mai mult spațiu față de formular */
    padding: 20px; /* Mai mult padding interior pentru robustete */
    border-radius: 8px;
    background-color: white; /* Fundal alb curat */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* O umbră elegantă */
    text-align: center;
}

.partner-logos-container h3 {
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 15px; /* Spațiu sub titlu */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-logos-strip {
    display: flex;
    justify-content: space-around; /* Le împrăștie egal */
    align-items: center; /* Le aliniază vertical pe centru */
    gap: 15px; /* Spațiu între logo-uri */
    flex-wrap: wrap; /* Pe telefoane mici se pot pune pe două rânduri */
}

.partner-logo-item {
    flex: 0 0 25%; /* Pe un rând vor fi cam 4 pe un rând */
    max-width: 80px; /* Limităm lățimea maximă */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 50px; /* Limităm înălțimea logo-ului */
    display: block;
}

/* --- RESPONSIVE OPTIMIZAT PE TELEFOANE FOARTE MICI --- */
@media (max-width: 380px) {
    .partner-logo-item {
        flex: 0 0 40%; /* Pe telefoane mici se pun 2 pe rând */
        margin-bottom: 10px;
    }
}