/* ============================================
   PROJECTS PAGE — /projects.html
   ============================================ */

/* Page hero */
.page-hero {
  padding: 160px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--accent);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 16px 0 24px;
}
.page-hero h1 span {
  font-style: italic;
  color: var(--accent);
}
.page-hero .lead {
  max-width: 720px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
}

/* Filters */
.filters {
  padding: 40px 0 24px;
  background: var(--bg);
  position: sticky;
  top: 72px;
  z-index: 50;
  border-bottom: 1px solid var(--surface);
  backdrop-filter: blur(8px);
}
.filters__group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters__group:last-child { margin-bottom: 0; }
.filters__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
  min-width: 100px;
}
.chip {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover {
  background: var(--accent);
  color: var(--bg);
}
.chip.is-active {
  background: var(--accent);
  color: var(--bg);
}

/* Projects grid */
.projects-grid {
  padding: 64px 0 100px;
  background: var(--surface);
}
.projects-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.project {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 36, 33, 0.12);
}
.project.is-hidden {
  display: none;
}
.project__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.project:hover .project__media img {
  transform: scale(1.04);
}
.project__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project__badge--gold {
  background: var(--gold);
  color: var(--ink);
}
.project__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface);
}
.project__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin: 0 0 4px;
  font-weight: 500;
}
.project__head h3 {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
}
.project__area {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.project__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.project__specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface);
}
.project__specs li span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}
.project__specs li strong {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.project__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
  flex: 1;
}
.project__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
}
.project__price-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project__price-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}
.project__btn {
  width: 100%;
  justify-content: center;
}
.projects-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--muted);
}
.projects-empty p {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.projects-note {
  margin-top: 64px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* CTA */
.cta {
  background: var(--accent);
  color: var(--bg);
  padding: 96px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bg);
  margin-bottom: 20px;
}
.cta p {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.85);
}
.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--ghost-light {
  background: transparent;
  color: var(--bg);
  border: 1px solid var(--bg);
}
.btn--ghost-light:hover {
  background: var(--bg);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 40px; }
  .filters { position: static; }
  .projects-grid .grid { grid-template-columns: 1fr; gap: 32px; }
  .project__specs { grid-template-columns: 1fr; }
  .cta { padding: 64px 0; }
}

/* Estimate CTA */
.project-estimate-cta { padding: 60px 0; background: linear-gradient(180deg, #f4f4ef 0%, #e8e6dc 100%); }
.project-estimate-cta__box { max-width: 720px; margin: 0 auto; text-align: center; background: #fff; padding: 40px 32px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.project-estimate-cta__box h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: #1a3028; margin: 0 0 12px; }
.project-estimate-cta__box p { color: #6a6a64; font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
