/* ============================================
   PROJECTS.CSS — Editorial · 2026
   ============================================ */

body[data-page="proiecte"] {
  --pj-ink: #1C2340;
  --pj-ink-soft: rgba(28, 35, 64, 0.78);
  --pj-ink-mute: rgba(28, 35, 64, 0.55);
  --pj-rule: rgba(28, 35, 64, 0.14);
  --pj-rule-soft: rgba(28, 35, 64, 0.08);
  --pj-sage: #7A9B92;
  --pj-pebble: #FAF8F2;
  --pj-linen: #F1F0EC;
  --pj-stone: #D6D2C7;
  --pj-gold: #C8A96E;
  background: var(--pj-linen);
  position: relative;
  font-feature-settings: "kern", "liga";
}

.pj-bg-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.14 0 0 0 0 0.25 0 0 0 0.03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* v1.1 — gold radial scos */
.pj-bg-light {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 700px at 0% 100%, rgba(122, 155, 146, 0.05), transparent 60%);
}

.pj-masthead, .pj-hero, .pj-filters, .pj-grid-section {
  position: relative;
  z-index: 1;
}

.pj-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pj-sage);
  margin-bottom: 16px;
  line-height: 1;
}
.pj-h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.014em;
  color: var(--pj-ink);
  margin: 0 0 20px;
}
.pj-h1 em { font-style: italic; color: var(--pj-sage); }

/* MASTHEAD */
.pj-masthead {
  border-top: 1px solid var(--pj-rule);
  border-bottom: 1px solid var(--pj-rule);
  padding: 16px 0;
  background: rgba(241, 240, 236, 0.7);
  backdrop-filter: blur(6px);
}
.pj-masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.pj-mast-mark {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--pj-sage);
  justify-self: start;
}
.pj-mast-title {
  justify-self: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: var(--pj-ink);
}
.pj-mast-edition {
  justify-self: end;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--pj-ink-mute);
}

/* HERO */
.pj-hero {
  padding: 72px 0 56px;
}
.pj-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.pj-lede {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--pj-ink-soft);
  line-height: 1.78;
  max-width: 560px;
  margin: 0 auto;
}

/* FILTERS */
.pj-filters {
  padding: 24px 0 48px;
}
.pj-filters-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.pj-filters-inner .pj-eyebrow {
  display: block;
  margin-bottom: 18px;
}
.pj-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--pj-rule);
  border-bottom: 1px solid var(--pj-rule);
}
.pj-field { display: flex; flex-direction: column; }
.pj-field label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pj-ink-mute);
  margin-bottom: 8px;
}
.pj-field input,
.pj-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--pj-rule);
  border-radius: 0;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--pj-ink);
}
.pj-field input::placeholder { color: rgba(28, 35, 64, 0.35); }
.pj-field input:focus, .pj-field select:focus {
  outline: none;
  border-color: var(--pj-ink);
}
.pj-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231C2340' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
  cursor: pointer;
}

/* GRID */
.pj-grid-section { padding: 0 0 96px; }
.pj-grid-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
}

/* Project card extends prop-card */
.pj-card .prop-card-media { aspect-ratio: 16 / 10; }
.pj-card-dev {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--pj-ink-mute);
  margin: -2px 0 12px;
  letter-spacing: 0.005em;
}
.pj-progress-bar {
  width: 100%;
  height: 2px;
  background: var(--pj-rule);
  margin: 0 0 18px;
  position: relative;
  overflow: hidden;
}
.pj-progress-bar span {
  display: block;
  height: 100%;
  background: var(--pj-sage);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.pj-grid .empty-state {
  background: var(--pj-pebble);
  padding: 96px 40px;
  text-align: center;
}
.pj-grid .empty-state h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--pj-ink);
  margin: 0 0 8px;
}
.pj-grid .empty-state p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--pj-ink-soft);
  margin: 0;
}

/* ============================================
   PROJECT DETAIL — refresh of legacy classes
   ============================================ */
body[data-subpage="project-detail"] {
  background: var(--pj-linen);
}
.project-hero {
  position: relative;
  height: 64vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--pj-ink);
}
.project-hero .img-placeholder {
  background: linear-gradient(135deg, #1C2340, #2a3358);
}
.project-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28, 35, 64, 0.4) 0%, rgba(28, 35, 64, 0.85) 100%);
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 40px 0 56px;
  color: var(--pj-stone);
  z-index: 2;
}
.project-hero-content .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.project-hero .dev-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--pj-gold);
  margin-bottom: 12px;
}
.project-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.014em;
  color: var(--pj-stone);
  margin: 0 0 14px;
}
.project-hero .project-loc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(214, 210, 199, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-hero .project-loc i { color: var(--pj-gold); font-size: 12px; }

.project-detail .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

#projectSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--pj-rule);
  border-bottom: 1px solid var(--pj-rule);
  margin: 32px 0 56px;
}
.summary-item {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--pj-rule-soft);
}
.summary-item:last-child { border-right: none; }
.summary-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pj-ink-mute);
  margin-bottom: 12px;
}
.summary-val {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--pj-ink);
  letter-spacing: -0.005em;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.status-dot.status-pre-vanzare { background: #3e6b8c; }
.status-dot.status-construire { background: #d88c2a; }
.status-dot.status-finalizat { background: var(--pj-sage); }

#projectDescription, #projectGallery, #developerBlock,
#timelineWrap, #paymentPlanWrap, #unitsWrap, #interestForm {
  padding: 40px 0;
  border-top: 1px solid var(--pj-rule);
}
#projectDescription:first-of-type { border-top: none; }
#projectDescription h2,
#projectGallery h2,
#developerBlock h2,
#timelineWrap h2,
#paymentPlanWrap h2,
#unitsWrap h2,
#interestForm h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pj-ink);
  margin: 0 0 24px;
}
#projectDescription p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--pj-ink-soft);
  line-height: 1.78;
  max-width: 720px;
}
#projectDescription h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pj-sage);
  margin: 32px 0 16px;
}
.facilitati-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.facilitati-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--pj-rule-soft);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--pj-ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.facilitati-list i { color: var(--pj-sage); font-size: 11px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 8px;
  border-radius: 2px;
  overflow: hidden;
}
.gallery-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  background: var(--pj-pebble);
}
.gallery-main .img-placeholder { width: 100%; height: 100%; }
.gallery-thumb {
  position: relative;
  background: var(--pj-pebble);
  overflow: hidden;
}
.gallery-thumb .img-placeholder { width: 100%; height: 100%; }
.gallery a { display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main { overflow: hidden; }
.gallery-thumb .more-overlay {
  position: absolute; inset: 0;
  background: rgba(28, 35, 64, 0.7);
  color: var(--pj-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Developer */
.dev-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.dev-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pj-ink);
  color: var(--pj-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.dev-block h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--pj-ink);
  margin: 0 0 8px;
}
.badge.badge-proiect {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--pj-rule);
  border-radius: 999px;
  color: var(--pj-ink-soft);
  background: transparent;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 32px 0;
}
.timeline-line, .timeline-progress {
  position: absolute;
  top: 50px;
  left: 5%;
  right: 5%;
  height: 1px;
}
.timeline-line { background: var(--pj-rule); }
.timeline-progress {
  background: var(--pj-sage);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-items {
  display: grid;
  position: relative;
  z-index: 1;
}
.timeline-item {
  text-align: center;
  padding: 0 8px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pj-pebble);
  border: 1px solid var(--pj-rule);
  margin: 0 auto;
  position: relative;
  top: 36px;
}
.timeline-item.done .timeline-dot {
  background: var(--pj-sage);
  border-color: var(--pj-sage);
}
.timeline-item.in-curs .timeline-dot {
  background: var(--pj-gold);
  border-color: var(--pj-gold);
}
.t-etapa {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pj-ink);
  margin-top: 56px;
}
.t-data {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 13px;
  color: var(--pj-ink-mute);
  margin-top: 4px;
}

/* Payment plan */
.payment-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid var(--pj-rule);
  border-bottom: 1px solid var(--pj-rule);
}
.payment-step {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--pj-rule-soft);
}
.payment-step:last-child { border-right: none; }
.step-pct {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--pj-gold);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-variant-numeric: lining-nums;
}
.step-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pj-ink-soft);
}

/* Units table */
.units-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--pj-rule);
  border-bottom: 1px solid var(--pj-rule);
  margin-bottom: 0;
}
.units-filters input,
.units-filters select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--pj-rule);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--pj-ink);
}
.units-filters select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%231C2340' stroke-width='1.5' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 18px;
  cursor: pointer;
}
.units-table {
  width: 100%;
  border-collapse: collapse;
}
.units-table th {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pj-ink-mute);
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--pj-rule);
}
.units-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--pj-rule-soft);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--pj-ink-soft);
}
.units-table td strong {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--pj-ink);
}
.unit-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid;
}
.unit-status.disponibil { color: var(--pj-sage); border-color: var(--pj-sage); }
.unit-status.rezervat { color: #d88c2a; border-color: #d88c2a; }
.unit-status.vandut { color: var(--pj-ink-mute); border-color: var(--pj-rule); }

/* Interest form */
#interestForm form .form-group label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pj-ink-mute);
  margin-bottom: 6px;
}
#interestForm form input,
#interestForm form select,
#interestForm form textarea {
  background: rgba(241, 240, 236, 0.6);
  border: 1px solid var(--pj-rule);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--pj-ink);
}
#interestForm form input:focus,
#interestForm form select:focus,
#interestForm form textarea:focus {
  outline: none;
  border-color: var(--pj-ink);
  box-shadow: none;
}
#interestForm .btn-gold {
  background: var(--pj-ink) !important;
  color: var(--pj-stone) !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  border: none !important;
}
#interestForm .btn-gold:hover {
  background: #131932 !important;
  color: var(--pj-stone) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 880px) {
  .pj-masthead-inner { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .pj-mast-mark, .pj-mast-title, .pj-mast-edition { justify-self: center; }
  .pj-filter-grid { grid-template-columns: repeat(2, 1fr); }
  .pj-grid { grid-template-columns: 1fr; }
  .summary-item { border-right: none; border-bottom: 1px solid var(--pj-rule-soft); }
  .summary-item:last-child { border-bottom: none; }
  #interestForm form { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .pj-filter-grid { grid-template-columns: 1fr; }
  .project-detail .container { padding: 32px 22px 64px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 240px; }
  .gallery-thumb:not(:nth-child(2)) { display: none; }
}
