/* ============================================================
   EIVAA HOMESS — Projects Listing Page · projects.css
   Light Luxury Theme · Editorial Grid Layout
   ============================================================ */

/* ── PAGE BASE ── */
.projects-listing-page {
  background: #F9F8F6;
  color: #1A1A1A;
}

/* Header always visible; starts transparent, becomes frosted on scroll */
.projects-listing-page #site-header {
  opacity: 1 !important;
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.projects-listing-page #site-header.is-scrolled {
  background: rgba(249, 248, 246, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.08);
}

/* Nav links: charcoal on this light page */
.projects-listing-page .nav-link {
  color: #1A1A1A !important;
  mix-blend-mode: normal !important;
}

.projects-listing-page .nav-link::after {
  background: #1A1A1A !important;
}

.projects-listing-page .burger-line {
  background: #1A1A1A !important;
}

/* ── Active link ── */
.projects-listing-page .nav-link.active {
  color: #1A1A1A;
}
.projects-listing-page .nav-link.active::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────
   PAGE INTRO
───────────────────────────────────────────────── */
.pl-intro {
  padding: 160px 64px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pl-intro-inner {
  max-width: 720px;
}

.pl-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.4);
  margin-bottom: 20px;
  display: block;
}

.pl-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.pl-headline span {
  color: var(--gold);
}

.pl-subtext {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.65);
  max-width: 540px;
}

/* Filter Pills */
.pl-filters {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pl-filter-btn {
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.18);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.pl-filter-btn:hover {
  border-color: rgba(26, 26, 26, 0.45);
  color: #1A1A1A;
}

.pl-filter-btn.active {
  background: #1A1A1A;
  border-color: #1A1A1A;
  color: #F9F8F6;
}

/* ─────────────────────────────────────────────────
   PROJECTS GRID — Editorial Masonry-like Layout
───────────────────────────────────────────────── */
.pl-main {
  padding: 0 64px 64px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

/* ── Card Base ── */
.pl-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.01s; /* will be set by JS */
}

/* Default card: 6 cols, tall */
.pl-card {
  grid-column: span 6;
}

/* Wide card: 7 cols */
.pl-card--wide {
  grid-column: span 7;
}

/* The sibling of wide card: 5 cols */
.pl-card--wide + .pl-card {
  grid-column: span 5;
}

/* Hero card: full-width */
.pl-card--hero {
  grid-column: span 12;
  min-height: min(55vw, 680px);
}

/* Centered card: 10 cols */
.pl-card--center {
  grid-column: 2 / 12;
}

/* ── Card Link wrapper ── */
.pl-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* ── Card Image ── */
.pl-card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: min(42vw, 520px);
  overflow: hidden;
}

.pl-card--hero .pl-card-img-wrap {
  min-height: min(55vw, 680px);
}

.pl-card--center .pl-card-img-wrap {
  min-height: min(50vw, 600px);
}

.pl-card-img {
  width: 100%;
  height: 125%; /* Give extra height for parallax */
  object-fit: cover;
  object-position: center;
  display: block;
  /* GSAP will animate yPercent. We still allow hover scale. */
  transform: scale(1.04);
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.pl-card:hover .pl-card-img {
  transform: scale(1.0);
}

/* ── Gradient overlay ── */
.pl-card-overlay {
  position: absolute;
  inset: 0;
  /* Stronger, taller scrim so the meta + title + subtitle stay legible
     even over bright skies and light façades. */
  background: linear-gradient(
    to top,
    rgba(8, 7, 5, 0.90) 0%,
    rgba(8, 7, 5, 0.72) 16%,
    rgba(8, 7, 5, 0.34) 40%,
    rgba(8, 7, 5, 0.0) 66%
  );
  transition: opacity 0.5s ease;
}

/* ── Card Content ── */
.pl-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px;
  color: #F9F8F6;
  z-index: 2;
  /* Extra safety over any residual bright patch behind the text */
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);

  /* Translate up on hover */
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pl-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.pl-card-status {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.8);
}

.pl-card-status--upcoming {
  color: #E4BF48; /* gold, brightened for the darker scrim */
}

.pl-card-status--ongoing {
  color: #6FCF97; /* in-progress green, light enough to read on the dark scrim */
}

.pl-card-location {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(249, 248, 246, 0.7);
}

.pl-card-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 52px);
  font-weight: 400;
  color: #F9F8F6;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.pl-card--hero .pl-card-title {
  font-size: clamp(36px, 5vw, 80px);
}

.pl-card-sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 300;
  color: rgba(249, 248, 246, 0.65);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* View Project CTA — hidden by default, slides in on hover */
.pl-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pl-card:hover .pl-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────
   CTA BAND
───────────────────────────────────────────────── */
.pl-cta-band {
  background: #1A1A1A;
  padding: 120px 64px;
  margin-top: 48px;
}

.pl-cta-inner {
  max-width: 860px;
}

.pl-cta-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.35);
  display: block;
  margin-bottom: 24px;
}

.pl-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  color: #F9F8F6;
  margin-bottom: 48px;
}

.pl-cta-headline em {
  font-style: italic;
  color:var(--gold);
}

.pl-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 20px 56px;
  border: 1px solid rgba(249, 248, 246, 0.3);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #F9F8F6;
  position: relative;
  overflow: hidden;
  transition: color 0.5s ease;
}

.pl-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F9F8F6;
  transform: translateY(101%);
  transition: transform 0.55s cubic-bezier(0.87, 0, 0.13, 1);
}

.pl-cta-btn:hover::before {
  transform: translateY(0);
}

.pl-cta-btn:hover {
  color: #1A1A1A;
}

.pl-cta-btn span {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────
   FOOTER OVERRIDE (light footer on this light page)
───────────────────────────────────────────────── */
.projects-listing-page #site-footer {
  background: #F2F0EC;
}



/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pl-intro {
    padding: 140px 40px 48px;
  }

  .pl-main {
    padding: 0 40px 40px;
    gap: 12px;
  }

  .pl-card {
    grid-column: span 6;
  }

  .pl-card--wide {
    grid-column: span 6;
  }

  .pl-card--wide + .pl-card {
    grid-column: span 6;
  }

  .pl-card--hero {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .pl-intro {
    padding: 120px 24px 40px;
  }

  .pl-main {
    padding: 0 24px 32px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pl-card,
  .pl-card--wide,
  .pl-card--wide + .pl-card,
  .pl-card--hero,
  .pl-card--center {
    grid-column: span 1;
  }

  .pl-card-img-wrap {
    min-height: 56vw;
  }

  .pl-card--hero .pl-card-img-wrap {
    min-height: 68vw;
  }

  .pl-filters {
    flex-wrap: wrap;
  }

  .pl-cta-band {
    padding: 80px 24px;
  }
}
