/* ═══════════════════════════════════════════════════════════════════
   assets/css/projects.css — modul PROIECTE (v3.39). Mobile first (≥320px).
   ═══════════════════════════════════════════════════════════════════ */
.pj { overflow-x: clip; padding-bottom: 40px; }
.pj svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pj-h1 { font-weight: 900; color: var(--brand-navy); line-height: 1.1; letter-spacing: -.01em; font-size: 30px; margin: 0 0 10px; }
.pj-h2 { font-weight: 900; color: var(--brand-navy); line-height: 1.15; letter-spacing: -.01em; font-size: 24px; margin: 0; }
.pj-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9aa4b2; margin-bottom: 12px; }
.pj-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-blue); border-radius: 2px; flex: none; }
.pj-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #94a3b8; padding: 14px 0 12px; }
.pj-crumbs a { color: #64748b; text-decoration: none; } .pj-crumbs a:hover { color: var(--brand-blue); }
.pj-crumbs b { color: #334155; font-weight: 600; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #64748b; margin-bottom: 16px; }
.pj-meta span { display: inline-flex; align-items: center; gap: 6px; } .pj-meta svg { width: 15px; height: 15px; color: #94a3b8; }
.pj-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pj-more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-blue); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }
.pj-more svg { width: 18px; height: 18px; stroke-width: 2; }

/* ───── listă: hero split ───── */
.pj-hero { display: grid; grid-template-columns: 1fr; border-radius: 20px; overflow: hidden; margin: 12px 0 22px; background: #f5f7fb; }
.pj-hero__photo { position: relative; aspect-ratio: 16 / 10; min-height: 200px; background: #e9eef4; }
.pj-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-hero__photo--empty { background: linear-gradient(135deg, #2f5f86, #4b86b4); }
.pj-hero__text { padding: 28px 20px 32px; }
.pj-hero__p { font-size: 14px; line-height: 1.65; color: #5b6775; margin: 0; }

/* ───── carduri proiect ───── */
.pj-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pj-card { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #0f2a3f; color: #fff; text-decoration: none; aspect-ratio: 4 / 3; box-shadow: 0 8px 24px rgba(18,63,94,.10); transition: transform .25s ease, box-shadow .25s ease; }
.pj-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18,63,94,.18); }
.pj-card__img { position: absolute; inset: 0; } .pj-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.pj-card:hover .pj-card__img img { transform: scale(1.04); }
.pj-card__img--empty { background: linear-gradient(135deg, #2f5f86, #4b86b4); }
.pj-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.pj-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pj-card__t h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.2; }
.pj-card__t span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.82); margin-top: 3px; }
.pj-card__t svg { width: 13px; height: 13px; }
.pj-card__arr { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); display: grid; place-items: center; transition: background .2s, transform .2s; }
.pj-card__arr svg { width: 18px; height: 18px; stroke-width: 2; }
.pj-card:hover .pj-card__arr { background: #fff; color: var(--brand-navy); transform: translateX(2px); }
.pj-pag { text-align: center; margin: 28px 0 10px; }
.pj-pag__btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--brand-blue); color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; }
.pj-empty { text-align: center; color: #64748b; padding: 40px 0; }

/* ───── proiect: galerie ───── */
.pj-gal { position: relative; border-radius: 18px; overflow: hidden; background: #e9eef4; margin-bottom: 14px; }
.pj-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pj-gal__track::-webkit-scrollbar { display: none; }
.pj-gal__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.pj-gal__slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.pj-gal__arr { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--brand-navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 3; }
.pj-gal__arr svg { width: 20px; height: 20px; stroke-width: 2.2; }
.pj-gal__arr--l { left: 10px; } .pj-gal__arr--r { right: 10px; }
.pj-gal__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.pj-gal__dots button { width: 7px; height: 7px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.pj-gal__dots button.on { width: 20px; background: var(--brand-blue); }
/* puncte */
.pj-pt { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; z-index: 2; display: grid; place-items: center; }
/* pin ca la Combo (mobil): cerc alb 28px cu numărul, inel care pulsează; activ/hover → albastru */
.pj-pt__dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand-navy); font-weight: 800; font-size: 12px; line-height: 28px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.45); position: relative; transition: background .2s, color .2s, transform .2s; }
.pj-pt__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); animation: pjPulse 2s ease-out infinite; }
@keyframes pjPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.pj-pt.act .pj-pt__dot, .pj-pt:hover .pj-pt__dot { background: #0090d7; color: #fff; transform: scale(1.12); }
.pj-pt.act .pj-pt__dot::before, .pj-pt:hover .pj-pt__dot::before { border-color: rgba(0,144,215,.9); }
.pj-pt__card { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pj-pt__card { display: block; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) translateY(6px); width: 150px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.22); text-align: left; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5; }
  .pj-pt:hover .pj-pt__card { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
  .pj-pt__card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #f6f8fb; display: block; margin-bottom: 6px; }
  .pj-pt__name { display: block; font-size: 11px; font-weight: 700; color: #1f2937; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
  .pj-pt__price { display: block; font-size: 12px; font-weight: 900; color: var(--brand-navy); margin-top: 3px; }
  .pj-pt__btn { display: block; margin-top: 7px; text-align: center; background: var(--brand-blue); color: #fff; font-size: 10px; font-weight: 800; padding: 6px 8px; border-radius: 999px; }
  .pj-gal__slide .pj-pt[style*="top:1"] .pj-pt__card, .pj-gal__slide .pj-pt[style*="top:2"] .pj-pt__card { bottom: auto; top: calc(100% + 6px); transform: translateX(-50%) translateY(-6px); }
  .pj-gal__slide .pj-pt[style*="top:1"]:hover .pj-pt__card, .pj-gal__slide .pj-pt[style*="top:2"]:hover .pj-pt__card { transform: translateX(-50%) translateY(0); }
}
/* card sticlă (touch) */
.pj-glass { position: fixed; left: 12px; right: 12px; bottom: calc(var(--mbn-h, 64px) + 12px); z-index: 60; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 12px 40px rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.7); opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s; }
.pj-glass.on { opacity: 1; transform: none; }
.pj-glass img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; flex: none; }
.pj-glass__b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pj-glass__b b { font-size: 13px; color: #1f2937; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-glass__b small { font-size: 11px; color: #64748b; } .pj-glass__b span { font-size: 14px; font-weight: 900; color: var(--brand-navy); }
.pj-glass__btn { align-self: flex-start; margin-top: 4px; background: var(--brand-blue); color: #fff; font-size: 11px; font-weight: 800; padding: 7px 12px; border-radius: 999px; text-decoration: none; }
.pj-glass__x { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: #64748b; cursor: pointer; }

/* ───── proiect: descriere + specificații ───── */
.pj-info { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 20px 0 8px; }
.pj-intro { font-size: 14px; line-height: 1.65; color: #5b6775; margin: 12px 0 0; }
.pj-prose { font-size: 14px; line-height: 1.7; color: #374151; margin-top: 10px; } .pj-prose p { margin: 0 0 12px; } .pj-prose h3 { font-size: 17px; font-weight: 800; color: var(--brand-navy); margin: 18px 0 6px; }
.pj-prose ul { padding-left: 20px; margin: 0 0 12px; } .pj-prose img { max-width: 100%; border-radius: 12px; }
.pj-specs { background: #f7f9fc; border: 1px solid #e8edf3; border-radius: 16px; padding: 6px 16px; align-self: start; }
.pj-specs__row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid #e8edf3; font-size: 13px; }
.pj-specs__row:last-child { border-bottom: 0; } .pj-specs__row span { color: #94a3b8; } .pj-specs__row b { color: #334155; font-weight: 600; }

/* ───── produse folosite (carusel) ───── */
.pj-used { background: #f5f7fb; padding: 28px 0 32px; margin: 28px 0; }
.pj-strip { position: relative; }
.pj-strip__row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.pj-strip__row::-webkit-scrollbar { display: none; }
.pj-strip__row { align-items: stretch; }
.pj-strip__item { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; display: flex; }
.pj-strip__item > .card-tile { width: 100%; height: 100%; } /* v3.40: toate cardurile la aceeași înălțime (CTA aliniat jos) */
.pj-strip__arr { display: none; }
.pj-others { margin-top: 10px; }

/* pagina toate produsele folosite */
.pj--products { padding-top: 4px; }
.pj-allgrid { margin-top: 18px; }

/* ≥640px */
@media (min-width: 640px) {
  .pj-h1 { font-size: 36px; } .pj-h2 { font-size: 28px; }
  .pj-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .pj-hero__text { padding: 40px 32px; }
  .pj-strip__item { flex-basis: 46%; }
  .pj-specs__row { grid-template-columns: 150px 1fr; gap: 10px; }
  .pj-gal__slide { aspect-ratio: 16 / 10; }
}
/* ≥1024px */
@media (min-width: 1024px) {
  .pj-h1 { font-size: 44px; } .pj-h2 { font-size: 32px; }
  .pj-hero { grid-template-columns: 1fr 1.25fr; border-radius: 28px; margin: 16px 0 36px; }
  .pj-hero__photo { aspect-ratio: auto; min-height: 420px; }
  .pj-hero__text { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
  .pj-hero__p { font-size: 15px; }
  .pj-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .pj-card__t h3 { font-size: 20px; } .pj-card__t span { font-size: 13px; } .pj-card__arr { width: 42px; height: 42px; }
  .pj-gal { border-radius: 24px; } .pj-gal__slide { aspect-ratio: 16 / 9; }
  .pj-gal__arr { width: 48px; height: 48px; } .pj-gal__arr--l { left: 16px; } .pj-gal__arr--r { right: 16px; }
  .pj-info { grid-template-columns: 1.4fr 1fr; gap: 40px; margin: 32px 0 16px; }
  .pj-intro, .pj-prose { font-size: 15px; }
  .pj-specs { padding: 8px 22px; } .pj-specs__row { grid-template-columns: 170px 1fr; padding: 12px 0; font-size: 14px; }
  .pj-used { padding: 44px 0 48px; margin: 40px 0; border-radius: 0; }
  .pj-strip { padding: 0 56px; }
  .pj-strip__item { flex-basis: calc((100% - 48px) / 4); max-width: none; }
  .pj-strip__arr { display: grid; place-items: center; position: absolute; top: 40%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #dbe4ee; background: #fff; color: var(--brand-blue); cursor: pointer; z-index: 2; }
  .pj-strip__arr svg { width: 20px; height: 20px; stroke-width: 2.2; }
  .pj-strip__arr--l { left: 0; } .pj-strip__arr--r { right: 0; }
  .pj-pag__btn { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pj-card, .pj-card__img img { transition: none; } } /* v3.40.3: inelul pinurilor pulsează și cu „reduce motion” (Windows cu efecte oprite) — cerut explicit */
