/* ============================================================
   RESET ANTI-SCROLL & REGRULI GENERALE
   ============================================================ */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ============================================================
   HEADER & LOGO MINIMALIST
   ============================================================ */
.header-content {
    display: flex !important;
    background: #003366 !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

/* LOGO SIMPLU CU COLȚURI ROTUNJITE */
.logo-container a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 10px; /* Rotunjire ușoară */
    transition: transform 0.3s ease;
}

.logo-container a:hover {
    background: none !important;
}

.logo:hover {
    transform: scale(1.02);
}

/* ============================================================
   DESKTOP NAVIGATION (Peste 1025px)
   ============================================================ */
@media (min-width: 1025px) {
    .menu-btn, .mobile-nav, .mobile-overlay {
        display: none !important;
    }

    .desktop-nav {
        display: block !important;
        margin-right: 20px;
    }

    .desktop-nav ul {
        display: flex !important;
        list-style: none !important;
        gap: 25px;
        margin: 0;
        padding: 0;
    }

    .desktop-nav ul li a {
        color: #ffffff !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 18px;
        transition: 0.3s;
    }
    
    .desktop-nav ul li a:hover { color: #f3d932 !important; }
}

/* ============================================================
   MOBILE NAVIGATION (Sub 1024px) - Stil Curat & Aerisit
   ============================================================ */
@media (max-width: 1024px) {
    .desktop-nav { display: none !important; }

    .menu-btn {
        display: block !important;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255,255,255,0.3);
        padding: 8px 18px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 14px;
        text-transform: uppercase;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: rgb(255, 255, 255);
        z-index: 9000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    }

    .mobile-nav.open { right: 0; }

    /* Header Meniu Mobil (Zona cu X) */
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: #003366;
        color: white;
    }

    .close-btn {
    background: none;
    border: none;
    color: #000000 !important; /* Negru intens */
    font-size: 40px !important; /* Mare pentru a fi ușor de nimerit */
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* CURĂȚARE LISTĂ MOBIL */
    .mobile-nav ul {
        list-style: none !important; /* Elimină punctele negre */
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-nav ul li {
        border-bottom: 1px solid #eee; /* Separator fin între butoane */
    }

    .mobile-nav ul li a {
        display: block;
        padding: 18px 25px; /* Spațiu generos pentru deget */
        color: #003366 !important;
        text-decoration: none !important; /* Elimină sublinierile */
        font-size: 17px !important;
        font-weight: 500;
        transition: background 0.2s;
    }

    .mobile-nav ul li a:hover, .mobile-nav ul li a:active {
        background-color: #f8f9fa;
        color: #2ecc71 !important;
    }

    .mobile-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        display: none;
        z-index: 8999;
    }
    .mobile-overlay.active { display: block; }
}

/* ============================================================
   DRAWER OFERTE (Z-index Maxim)
   ============================================================ */
#offer-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: white;
    z-index: 10000 !important; /* Un pic mai mare pentru siguranță */
    transition: right 0.4s ease;
    box-sizing: border-box;

    /* REZOLVARE SCROLL ȘI VIZIBILITATE */
    display: flex;
    flex-direction: column;
    overflow-y: auto; 
    overflow-x: hidden;
    
    /* ELIMINĂM MARGINILE CARE DECAZĂ ELEMENTUL */
    margin: 0 !important; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

#offer-drawer.open { 
    right: 0 !important; 
}

/* Interiorul formularului */
#offer-drawer form {
    padding: 25px;
    /* Creștem padding-ul de jos pentru a compensa barele browserelor online */
    padding-bottom: 150px !important; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Ajustare pentru ecrane mici de laptop (720p) */
@media (max-height: 750px) {
    #offer-drawer form {
        padding-bottom: 200px !important; /* Mai mult spațiu dacă ecranul e scund */
    }
}

/* Stilul pentru butonul X (close-drawer) */
#close-drawer {
    /* RESETARE ȘI POZIȚIONARE */
    position: absolute !important;
    top: 20px !important;      /* Distanța de sus */
    right: 40px !important;    /* MUTARE ÎN STÂNGA: Mărește valoarea asta dacă vrei mai mult în stânga */
    
    /* DIMENSIUNI */
    width: 40px !important;
    height: 40px !important;
    
    /* STILIZARE VIZUALĂ */
    background-color: #f5f5f5 !important; /* Fundal gri deschis */
    color: #333 !important;             /* Culoarea X-ului */
    border: 1px solid #ddd !important;   /* O bordură fină */
    border-radius: 50% !important;       /* Îl facem rotund */
    
    /* ALINIERE X ÎN INTERIOR */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* TEXT ȘI CURSOR */
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    line-height: 0 !important;
    
    /* EFECTE */
    z-index: 10001 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    outline: none !important;
}

/* EFECT LA HOVER (când pui mouse-ul pe el) */
#close-drawer:hover {
    background-color: #333 !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.1) !important; /* Se rotește și crește puțin */
}

/* AJUSTARE PENTRU MOBIL */
@media (max-width: 480px) {
    #close-drawer {
        right: 50px !important; /* Îl împingem și mai mult în interior pe mobil ca să nu fie tăiat */
        top: 15px !important;
    }
}

/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
}