/* ==================================================================== */
/*          VERSIUNEA FINALĂ ȘI COMPLETĂ PENTRU despre-proiect.css      */
/* ==================================================================== */

:root {
    --color-blood-red: #b91c1c; /* Un roșu închis, de alertă */
}

/* --- Antetul paginii --- */

.page-header {
    
    background-image: url('../images/gaina6.webp');
    background-size: cover; /* Imaginea acoperă tot spațiul */
    background-position: center center; /* centrează imaginea */
    
    padding: 100px 0; /* Mărim puțin spațiul vertical */
    text-align: center;
    position: relative; /* Necesar pentru a poziționa overlay-ul */
    z-index: 1; /* Asigură ordinea corectă a straturilor */
}

/* NOU: Overlay semi-transparent care se așează peste imagine */


.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Folosim culoarea brandului cu transparență pentru a întuneca fundalul */
    background-color: rgba(26, 46, 53, 0.6); /* deep-teal la 60% opacitate */
    z-index: -1; /* Plasează overlay-ul între imagine și text */
}

/* NOU: Modificăm stilul textului pentru a fi lizibil */


.page-header h1 {
    margin: 0;
    font-size: 3.5em; /* L-am mărit puțin pentru mai mult impact */
    color: var(--color-white); /* Culoare albă pentru contrast */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    /* Adăugăm o umbră subtilă pentru a scoate textul în evidență */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* --- Secțiunea Generală FAQ --- */

.faq-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.faq-section .container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 25px; /* Spațiu mai mare între carduri */
    border-radius: 12px; /* Colțuri rotunjite pentru întregul card */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    border: 1px solid var(--color-light-teal); /* Un contur subtil */
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}



/* --- Containerul Întrebării (elementul click-abil) --- */


.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Stilul pentru fundalul animat (inițial o dungă) */

.faq-question::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 8px;
    background-color: var(--color-coral-red);
    border-radius: 4px;
    z-index: -1;
    transition: width 0.4s ease-in-out;
}

.faq-item.active .faq-question::before {
    width: 100%;
}

.faq-question h3 {
    margin: 0;
    padding-left: 15px;
    font-size: 1.5em;
    color: var(--color-deep-teal);
    font-weight: 700;
    transition: color 0.4s ease-in-out;
}

.faq-question .faq-icon {
    font-size: 1.4em;
    color: var(--color-coral-red);
    transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
    min-width: 20px;
}

.faq-item.active .faq-question h3,
.faq-item.active .faq-question .faq-icon {
    color: var(--color-white);
}

/* --- Containerul Răspunsului --- */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    padding: 0 25px;
    margin-top: 0;
    color: var(--text-dark);
    background-color: #eff4f7;
    border-left: 6px solid var(--color-saffron);
    border-radius: 8px;
    line-height: 1.8;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(180deg);
}
.faq-item.active .faq-answer {
    max-height: 1500px;
    opacity: 1;
    padding: 20px 25px;
    margin-top: 15px;
}

/* --- Stiluri pentru LISTE CREATIVE în răspunsuri --- */

.creative-steps {
    list-style: none; padding-left: 0; margin: 30px 0; counter-reset: step;
}
.creative-steps li {
    position: relative; padding-left: 3.5rem; margin-bottom: 20px;
    font-size: 1.1em; font-weight: 700; color: var(--color-deep-teal);
}
.creative-steps li::before {
    counter-increment: step; content: counter(step); position: absolute;
    left: 0; top: -0.2rem; display: grid; place-items: center;
    width: 2.5rem; height: 2.5rem; border-radius: 999px;
    background: #00a092; color: var(--color-white);
    font-weight: 700; font-size: 1.2rem; box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.creative-steps li p {
    font-weight: 400; font-size: 0.95em; color: var(--text-dark); margin-top: 8px;
}
.creative-bullets {
    list-style: none; padding-left: 0; margin: 20px 0 20px 20px;
}
.creative-bullets li {
    position: relative; padding-left: 2rem; margin-bottom: 12px;
    color: var(--text-light); font-size: 1em;
}
.creative-bullets li::before {
    content: '✔'; /* Am schimbat cercul într-o BIFĂ */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-teal-vibrant); /* Setăm culoarea bifei */
    font-weight: 900; /* Facem bifa mai groasă și mai vizibilă */
    font-size: 1.2em; /* Mărimea bifei */
}

/* --- Stil întrebarea 8 --- */


.stat-highlight {
    background-color: var(--color-light-blue-grey);
    border-left: 6px solid var(--color-saffron);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}
.stat-highlight .number {
    display: block; font-size: 4.5em; font-weight: 800;
    line-height: 1.1; color: var(--color-teal-vibrant);
}
.stat-highlight .description {
    display: block; font-size: 1.1em; color: var(--text-dark);
    font-weight: 600; margin-top: 5px;
}

/* ======================================================= */
/*          STILURI PENTRU GALERIE ȘI CTA (v2)             */
/* ======================================================= */

.cta-section { 
    padding: 80px 0; 
    text-align: center; 
    background-color: var(--color-deep-teal); 
    color: var(--color-white); 
}

.cta-section h2 { 
    color: var(--color-white); 
    font-size: 2.5em; 
    margin: 0 0 20px 0; 
}

.cta-section p { 
    color: var(--color-light-teal); 
    font-size: 1.15em; max-width: 600px; 
    margin: 0 auto 30px auto; 
    
}



/* --- STILURI NOI PENTRU GALERIE --- */

.gallery-section {
    padding-top: 80px;
    text-align: center;
}
.gallery-section h2 {
    color: var(--color-deep-teal);
    position: relative;
    padding-left: 20px;
    font-size: 2.5em;
    font-weight: 700;
    display: inline-block; /* Pentru centrare corectă */
}
.gallery-section h2::before {
    content: ""; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 8px; height: 100%;
    background-color: var(--color-coral-red); border-radius: 4px;
}

/* 1. Grila cu 3 coloane fixe */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creează 3 coloane egale */
    gap: 30px; /* Spațiu între carduri */
    margin-top: 40px;
}

/* 2. Cadrul pentru fiecare fotografie */

.gallery-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-teal); /* Un contur subtil */
    border-radius: 12px; /* Colțuri rotunjite */
    padding: 10px; /* Spațiu între imagine și contur */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 200px; /* O înălțime fixă pentru consistență */
    object-fit: cover; /* Asigură că imaginea umple spațiul fără a se deforma */
    display: block;
    border-radius: 8px; /* Rotunjim și colțurile imaginii */
}

/* 3. Stilul pentru Lightbox (imaginea mărită) */

.lightbox-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(26, 46, 53, 0.9); /* Fundal mai opac */
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

#lightbox-image {
    /* Asigură că imaginea nu depășește NICIODATĂ ecranul */
    max-width: 95vw;  /* Maxim 95% din lățimea ecranului */
    max-height: 95vh; /* Maxim 95% din înălțimea ecranului */
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute; top: 20px; right: 35px; color: white;
    font-size: 40px; font-weight: bold; cursor: pointer;
}




.btn { 
    display: inline-flex; 
    align-items: center; 
    padding: 15px 30px; 
    border-radius: 30px; 
    text-decoration: none; 
    color: var(--color-white); 
    font-weight: 700; 
    font-size: 1.05em; 
    transition: all 0.3s ease; 
    text-transform: uppercase; 
    letter-spacing: 0.03em; 
    border: none; 
    cursor: pointer; 
}
    
    
.btn i { 
    margin-right: 10px; 
    font-size: 1.2em; 
}

.btn-primary { 
    background-color: var(--color-coral-red); 
    box-shadow: 0 6px 15px rgba(255, 90, 95, 0.3); 
}

.btn-primary:hover { 
    background-color: #e04c51; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(255, 90, 95, 0.4); 
}

* --- Culori specifice pentru codurile de ouă --- */

/* Selectăm fiecare 'li' din lista cu pași și îi colorăm cercul */
.faq-answer .creative-steps .code-0::before {
    background: var(--color-teal-vibrant) !important;
}
.faq-answer .creative-steps .code-1::before {
    background: var(--color-saffron) !important;
}
.faq-answer .creative-steps .code-2::before {
    background: var(--color-coral-red) !important;
}
.faq-answer .creative-steps .code-3::before {
    background: var(--color-blood-red) !important;
}

/* --- Culoare specifică pentru numerele de la întrebarea 3 --- */
/* Selectăm al treilea .faq-item și colorăm cercurile numerotate în roșu închis */
.faq-item:nth-child(3) .creative-steps li::before {
    background: var(--color-blood-red) !important;
}


/* --- Stil NOU pentru lista cu BULINE MARI ROȘII (întrebarea 3) --- */
.faq-answer ul.creative-red-bullets {
    list-style: none !important; /* Forțăm eliminarea bulinei */
    padding-left: 0 !important;
    margin: 30px 0;
}

.faq-answer ul.creative-red-bullets > li {
    list-style-type: none !important; /* Dublă siguranță, direct pe elementul li */
    position: relative;
    padding-left: 3.5rem; /* Ajustează spațiul pentru bulină */
    margin-bottom: 1rem; /* Pentru consistență */
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-deep-teal);
    
    
}

.faq-answer ul.creative-red-bullets > li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--color-blood-red);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: Arial, sans-serif;
    
    /* Metoda de centrare cu Flexbox */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Proprietate de rezervă, poate fi eliminată dacă Flexbox e suficient */
    line-height: 2.5rem; 
}

/* Stil pentru paragrafele din interiorul listei */
.faq-answer ul.creative-red-bullets > li p {
    font-weight: 400;
    font-size: 0.95em;
    color: var(--text-dark);
    margin-top: 8px;
}

/* --- Stiluri pentru butoanele de navigație din Lightbox --- */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 46, 53, 0.5); /* deep-teal semi-transparent */
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; /* Le facem rotunde */
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 1001; /* Asigură că sunt deasupra imaginii */
}

.lightbox-nav:hover {
    background-color: var(--color-coral-red);
    border-color: var(--color-white);
}

/* Poziționarea specifică pentru fiecare buton */
#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

