/* ============================================================
   CASE STUDIES PAGE — case-studies-page.css
   Supplements style.css. Variables inherited from :root.
   ============================================================ */

/* =====================
   ACTIVE NAV
===================== */
.nav-links a.active {
  color: var(--gold);
}

/* =====================
   PAGE HERO
===================== */
.cs-page-hero {
  min-height: 58vh;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #1c1810 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 100px;
  border-bottom: 1px solid #2a2a2a;
  overflow: hidden;
}

.cs-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(197,160,89,0.018) 60px,
      rgba(197,160,89,0.018) 61px
    );
  pointer-events: none;
}

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 40%, rgba(197,160,89,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.cs-hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 0 70px;
}

.page-label {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.cs-hero-title {
  font-size: 52px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 600px;
}

.cs-hero-title span {
  font-weight: 600;
  color: var(--gold);
}

.cs-hero-text {
  font-size: 16px;
  color: #ccc;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 40px;
}

/* Filter Pills */
.cs-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  background: none;
  border: 1px solid #3a3a3a;
  color: #888;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 8px 18px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197,160,89,0.06);
}

/* =====================
   STATS STRIP
===================== */
.stats-strip {
  background: #0f0f0f;
  border-bottom: 1px solid #2a2a2a;
  padding: 36px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 50px;
}

.stat-number {
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #2a2a2a;
  flex-shrink: 0;
}

/* =====================
   PROJECT SECTIONS
===================== */
.cs-project {
  padding: 100px 0;
  border-top: 1px solid #2a2a2a;
}

.cs-project--alt {
  background: rgba(255,255,255,0.012);
}

/* Project Header */
.cs-project-header {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 50px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a2a2a;
}

.cs-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cs-number {
  font-size: 48px;
  font-weight: 300;
  color: #252525;
  line-height: 1;
  letter-spacing: 2px;
}

.cs-system-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 600;
  display: inline-block;
}

.deck-tag   { color: #8fba74; border: 1px solid rgba(143,186,116,0.3); background: rgba(143,186,116,0.06); }
.clad-tag   { color: #7ab3d4; border: 1px solid rgba(122,179,212,0.3); background: rgba(122,179,212,0.06); }
.slat-tag   { color: #d4a96a; border: 1px solid rgba(212,169,106,0.3); background: rgba(212,169,106,0.06); }
.struct-tag { color: #c47a7a; border: 1px solid rgba(196,122,122,0.3); background: rgba(196,122,122,0.06); }

.cs-title-block {
  flex: 1;
}

.cs-project-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cs-location {
  font-size: 13px;
  color: #888;
  letter-spacing: 1px;
}

.cs-location i {
  color: var(--gold);
  margin-right: 6px;
}

/* Project Body — 2 columns */
.cs-project-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.cs-project-body--reverse {
  direction: rtl;
}

.cs-project-body--reverse > * {
  direction: ltr;
}

/* Gallery */
.cs-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 100px;
}

.cs-img-placeholder {
  background: #1c1c1c;
  border: 1px dashed #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #444;
}

.cs-img-placeholder i {
  font-size: 22px;
  color: #333;
}

.cs-img-placeholder span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #3a3a3a;
  text-align: center;
  padding: 0 12px;
}

.cs-img-placeholder.large {
  aspect-ratio: 16 / 10;
}

.cs-img-placeholder.small {
  aspect-ratio: 16 / 9;
}

.cs-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* Project Info */
.cs-project-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Specs Grid */
.cs-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #2a2a2a;
  margin-bottom: 32px;
}

.cs-spec {
  padding: 14px 16px;
  border-right: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.cs-spec:nth-child(2n) {
  border-right: none;
}

.cs-spec:nth-last-child(-n+2) {
  border-bottom: none;
}

.cs-spec-label {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.cs-spec-value {
  display: block;
  font-size: 13px;
  color: #ddd;
  font-weight: 500;
}

/* Narrative */
.cs-narrative {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.cs-narrative-block h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-narrative-block h4 i {
  color: var(--gold);
  font-size: 11px;
}

.cs-narrative-block p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.85;
}

/* =====================
   TIMELINE
===================== */
.cs-timeline {
  padding: 28px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 28px;
}

.timeline-heading {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 400;
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical connecting line */
.timeline-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #2a2a2a;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 20px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #333;
  background: var(--charcoal);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s;
}

.timeline-step.completed .timeline-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 0;
}

.timeline-phase {
  font-size: 13px;
  color: #ddd;
  font-weight: 500;
  line-height: 1.2;
}

.timeline-date {
  font-size: 11px;
  color: #666;
  letter-spacing: 1px;
}

/* Enquire Button */
.cs-enquire-btn {
  align-self: flex-start;
  font-size: 12px;
  padding: 13px 24px;
  letter-spacing: 2px;
}

/* =====================
   CTA BAND
===================== */
.cta-band {
  background: #0f0f0f;
  border-top: 1px solid #2a2a2a;
  padding: 70px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band-title {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 8px;
}

.cta-band-text {
  color: #aaa;
  font-size: 15px;
  max-width: 520px;
  line-height: 1.7;
}

.cta-band-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 16px 32px;
  font-size: 13px;
}

/* =====================
   TABLET — 768px to 1024px
===================== */
@media (min-width: 768px) and (max-width: 1024px) {

  .cs-hero-title {
    font-size: 38px;
  }

  .cs-project-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cs-project-body--reverse {
    direction: ltr;
  }

  .cs-gallery {
    position: static;
  }

  .cs-project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cs-number {
    font-size: 36px;
  }

  .cs-project-title {
    font-size: 28px;
  }

  .stat-item {
    padding: 10px 28px;
  }

  .stat-number {
    font-size: 26px;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cta-band-text {
    max-width: 100%;
  }
}

/* =====================
   MOBILE — up to 767px
===================== */
@media (max-width: 767px) {

  /* Hero */
  .cs-page-hero {
    min-height: auto;
    padding-top: 90px;
  }

  .cs-hero-content {
    padding: 40px 0 50px;
  }

  .cs-hero-title {
    font-size: 26px;
  }

  .cs-hero-text {
    font-size: 14px;
  }

  .cs-filter-pills {
    gap: 8px;
  }

  .filter-pill {
    font-size: 10px;
    padding: 7px 12px;
  }

  /* Stats Strip */
  .stats-strip {
    padding: 28px 0;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 16px 10px;
    border-bottom: 1px solid #2a2a2a;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid #2a2a2a;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .stat-number {
    font-size: 22px;
  }

  .stat-label {
    font-size: 9px;
  }

  /* Projects */
  .cs-project {
    padding: 56px 0;
  }

  .cs-project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 32px;
    padding-bottom: 22px;
  }

  .cs-number {
    font-size: 32px;
  }

  .cs-project-title {
    font-size: 22px;
  }

  .cs-location {
    font-size: 12px;
  }

  /* Stack columns */
  .cs-project-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cs-project-body--reverse {
    direction: ltr;
  }

  .cs-gallery {
    position: static;
  }

  .cs-img-placeholder.large {
    aspect-ratio: 16 / 10;
  }

  .cs-img-placeholder.small {
    aspect-ratio: 4 / 3;
  }

  .cs-img-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  /* Specs */
  .cs-specs-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
  }

  .cs-spec {
    padding: 10px 12px;
  }

  .cs-spec-value {
    font-size: 12px;
  }

  /* Narrative */
  .cs-narrative-block p {
    font-size: 13px;
  }

  /* Timeline */
  .timeline-phase {
    font-size: 12px;
  }

  .timeline-date {
    font-size: 10px;
  }

  /* Enquire btn */
  .cs-enquire-btn {
    width: 100%;
    text-align: center;
  }

  /* CTA Band */
  .cta-band {
    padding: 50px 0;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 20px;
  }

  .cta-band-title {
    font-size: 22px;
  }

  .cta-band-text {
    font-size: 14px;
    max-width: 100%;
  }

  .cta-band-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 14px 20px;
  }
}

/* =====================
   REAL PROJECT IMAGES
===================== */
.cs-real-img--large {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.cs-real-img--small {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;

}
.cs-real-img--large {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.cs-real-img--small {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}