/* ==========================================================================
   1. VARIABILE ȘI RESET GLOBAL
   ========================================================================== */
:root {
    --primary: #007bff;
    --primary-hover: #0056b3;
    --dark: #1a202c;
    --light-bg: #f8f9fa;
    --text: #2d3748;
    --muted: #718096;
    --white: #ffffff;
    --border: #e2e8f0;
    --font: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==========================================================================
   2. LAYOUT MACRO CU CSS GRID (Structura .bloc)
   ========================================================================== */
.bloc {
    display: grid;
    grid-template-rows: auto 1fr auto; /* Nav fixa/auto, Main flexibil, Footer la baza */
    min-height: 100vh;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    padding: 2.5rem 0;
}

/* ==========================================================================
   3. NAVIGAȚIE SEMANTICĂ ȘI MENIU MOBIL (Mobile-First)
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo a {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Butonul Hamburger */
.hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Meniul pe Mobil (Cortină laterală dreapta) */
menu {
    position: fixed;
    top: 0;
    right: -100%; /* Ascuns în afara ecranului */
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding: 80px 1.5rem 2rem 1.5rem;
    z-index: 1050;
}

/* Clasa adăugată din JS pentru deschidere */
menu.open {
    right: 0;
}

menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

menu ul li a {
    display: block;
    padding: 1rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
}

menu ul li a:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

/* Animație transformare Hamburger în X */
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   4. COMPONENTE SPECIFICE PAGINII (Header Custom & Elemente)
   ========================================================================== */
header {
    width: 100%;
    padding: 4rem 1.5rem;
    text-align: center;
    background: linear-gradient(rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.85)), var(--dark);
    color: var(--white);
    border-radius: 12px;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

header p {
    font-size: 1rem;
    color: var(--border);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Butonul de interacțiune din Header */
.btn-interactiune {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.85rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-interactiune:hover {
    background-color: var(--primary-hover);
}

.btn-interactiune:active {
    transform: scale(0.98);
}

/* ==========================================================================
   5. FOOTER GLOBAL
   ========================================================================== */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-continut p {
    margin-bottom: 0.75rem;
}

.footer-continut p:not(.linkuri-legale) {
    color: var(--border);
}

.linkuri-legale {
    margin-top: 1.5rem;
}

.linkuri-legale a {
    color: var(--white);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.linkuri-legale a:hover {
    color: var(--primary);
}
/* ==========================================================================
   8. PAGINA DE CONTACT ȘI FORMULARE
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2, .contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.detalii-lista {
    list-style: none;
    margin-top: 1.5rem;
}

.detalii-lista li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.detalii-lista a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Stiluri Formular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-grup label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-grup input, .form-grup textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-grup input:focus, .form-grup textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* Elemente de Alertă/Notificare */
.alerta {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alerta.succes {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alerta.eroare {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* CRITIC: Ascunderea Honeypot-ului pentru utilizatori */
.pot-de-miere {
    display: none !important;
    visibility: hidden;
}

/* Aliniere pe 2 coloane pe Desktop */
@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}
/* ==========================================================================
   6. ADAPTARE PENTRU ECRANE MARI (DESKTOP -> peste 768px)
   ========================================================================== */
@media (min-width: 768px) {
    main {
        padding: 3rem 2rem;
    }

    /* Ascundem Hamburgerul */
    .hamburger {
        display: none;
    }

    /* Resețăm Meniul pentru structura orizontală de Desktop */
    menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    menu ul {
        flex-direction: row;
        gap: 1rem;
    }

    menu ul li a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        font-weight: 500;
    }
    menu ul li a.active {
        color: var(--primary);
        font-weight: 700;
    }
    /* Scalăm elementele din Header pe ecrane mari */
    header {
        padding: 6rem 3rem;
    }

    header h1 {
        font-size: 2.75rem;
    }

    header p {
        font-size: 1.15rem;
    }
}