/* ==========================================================================
   PROIECTE — stiluri dedicate paginilor de portofoliu (listare + detaliu)
   Folosește variabilele globale din style.css. Fișier separat de blog.
   ========================================================================== */

/* ---- HERO listare (refolosește .service-hero) ---- */
.proiecte-hero { padding: 56px 0 52px; }

/* ---- SECȚIUNE LISTARE ---- */
.proiecte-section { padding: 56px 0 88px; }

/* ---- FILTRE CATEGORII ---- */
.proiecte-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.proiect-filter {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border: 1px solid var(--border); border-radius: 40px;
    font-size: 14px; font-weight: 500; color: var(--navy); background: var(--white);
    transition: var(--transition);
}
.proiect-filter span { font-size: 12px; color: var(--gray); background: var(--light-bg); border-radius: 20px; padding: 1px 8px; }
.proiect-filter:hover { border-color: var(--gold); color: var(--gold); }
.proiect-filter.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.proiect-filter.active span { background: rgba(255,255,255,0.15); color: var(--white); }

/* ---- STARE GOALĂ ---- */
.proiecte-empty { text-align: center; padding: 72px 20px; color: var(--gray); }
.proiecte-empty p { margin-bottom: 20px; font-size: 16px; }

/* ---- PAGINARE (aceleași clase ca la blog, stilate aici pt. independență) ---- */
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.page-link {
    min-width: 42px; height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 14.5px; font-weight: 500; color: var(--navy); background: var(--white);
    transition: var(--transition); text-decoration: none;
}
.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-link.current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ==========================================================================
   PAGINA DEDICATĂ PROIECT
   ========================================================================== */
.proiect-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--navy);
}
.proiect-hero-media { position: absolute; inset: 0; }
.proiect-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.proiect-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,27,40,0.92) 0%, rgba(20,27,40,0.35) 55%, rgba(20,27,40,0.15) 100%);
}
.proiect-hero .container { position: relative; z-index: 1; width: 100%; }
.proiect-hero-inner { padding: 0 0 44px; max-width: 820px; }
.proiect-cat {
    display: inline-block; color: var(--gold);
    font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 14px;
}
.proiect-hero-inner h1 {
    font-family: var(--font-heading); font-size: 42px; line-height: 1.15; font-weight: 700; color: #fff;
}

.proiect-body { padding: 64px 0 88px; }
.proiect-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }

.proiect-content { font-size: 16.5px; line-height: 1.85; color: #3a3f47; }
.proiect-content > *:first-child { margin-top: 0; }
.proiect-content p { margin-bottom: 20px; }
.proiect-content h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--navy); margin: 40px 0 16px; }
.proiect-content h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--navy); margin: 30px 0 12px; }
.proiect-content ul, .proiect-content ol { margin: 0 0 20px 22px; }
.proiect-content li { margin-bottom: 9px; }
.proiect-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.proiect-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Galerie */
.proiect-gallery {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 40px;
}
.proiect-gallery-item {
    border: none; padding: 0; margin: 0; cursor: pointer; background: var(--light-bg);
    border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; display: block;
}
.proiect-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.proiect-gallery-item:hover img { transform: scale(1.06); }

/* Sidebar */
.proiect-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.proiect-facts { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 26px; border-top: 3px solid var(--gold); }
.proiect-facts h2 { font-family: var(--font-heading); font-size: 18px; color: var(--navy); margin-bottom: 16px; }
.proiect-facts ul { list-style: none; margin: 0; padding: 0; }
.proiect-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.proiect-facts li:last-child { border-bottom: none; }
.proiect-facts li span { color: var(--gray); }
.proiect-facts li strong { color: var(--navy); text-align: right; }
.proiect-cta { background: var(--navy); border-radius: 12px; padding: 28px; color: #fff; }
.proiect-cta h3 { font-family: var(--font-heading); font-size: 19px; color: #fff; margin-bottom: 8px; }
.proiect-cta p { color: rgba(255,255,255,0.72); font-size: 14px; margin-bottom: 18px; line-height: 1.6; }

/* Proiecte similare */
.proiect-related { background: var(--light-bg); padding: 72px 0; }
.proiect-related-title { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 44px; }

/* Lightbox */
.proiect-lightbox {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; background: rgba(15,20,30,0.94); padding: 40px;
}
.proiect-lightbox.open { display: flex; }
.proiect-lightbox .pl-img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.pl-close { position: absolute; top: 20px; right: 28px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.pl-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; cursor: pointer; transition: background 0.2s; }
.pl-nav:hover { background: rgba(255,255,255,0.25); }
.pl-prev { left: 24px; } .pl-next { right: 24px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .proiect-grid { grid-template-columns: 1fr; gap: 40px; }
    .proiect-sidebar { position: static; }
    .proiect-hero-inner h1 { font-size: 32px; }
    .proiect-related-title { font-size: 26px; }
}
@media (max-width: 560px) {
    .proiect-hero { min-height: 340px; }
    .proiect-hero-inner h1 { font-size: 26px; }
    .proiect-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .proiect-content { font-size: 15.5px; }
    .proiect-lightbox { padding: 16px; }
    .pl-prev { left: 8px; } .pl-next { right: 8px; }
}
