/* ============================================================
   PROJECT PAGE STYLES — shared by all project-*.html files
   ============================================================ */

/* Project Hero */
.proj-hero {
  padding: 9rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.proj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom left, rgba(255,107,53,0.15) 0%, transparent 60%);
}

.proj-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.proj-back:hover { color: rgba(255,255,255,1); }

.proj-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.proj-subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem !important;
  line-height: 1.2;
}

/* Hero image / video */
.proj-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* Hero video embed (YouTube / Vimeo) */
.proj-video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.proj-video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Placeholder */
.proj-hero-img-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--navy) 0%, #004e7c 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proj-hero-img-placeholder svg { opacity: 0.4; }

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.proj-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

/* ============================================================
   CONTENT COLUMN
   ============================================================ */
.proj-section-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.01em;
}

.proj-section-heading:first-child { margin-top: 0; }

.proj-content p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

/* Findings / results list */
.proj-findings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.proj-findings-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.proj-findings-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.proj-gallery-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}

/* Placeholder tile */
.proj-gallery-placeholder {
  aspect-ratio: 4/5;
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
}

/* Social embed block inside gallery */
.proj-social-embed {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0.5rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.proj-sidebar {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.proj-sidebar-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.proj-sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* KPI grid */
.kpi-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.3;
}

.proj-sidebar-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  line-height: 1.5;
  font-style: italic;
}

/* Details definition list */
.proj-details-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: start;
}

.proj-details-list dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 0.1rem;
}

.proj-details-list dd {
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   PROJECT NAV ROW
   ============================================================ */
.proj-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .proj-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .proj-sidebar {
    position: static;
  }

  .kpi-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .proj-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .proj-hero {
    padding: 8rem 1.25rem 3rem;
  }

  .kpi-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-gallery {
    grid-template-columns: 1fr;
  }

  .proj-hero-img-placeholder {
    aspect-ratio: 4/3;
  }
}

/* ============================================================
   INSTAGRAM EMBED GALLERY
   Used on project pages where posts are embedded directly
   ============================================================ */
.ig-embed-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  justify-content: flex-start;
}

.ig-embed-item {
  /* Instagram embeds render at exactly 326px — give each item
     enough room and let the row wrap naturally */
  flex: 0 0 auto;
  max-width: 326px;
  width: 100%;
}

/* On small screens, allow embeds to fill available width */
@media (max-width: 768px) {
  .ig-embed-gallery {
    justify-content: center;
  }
  .ig-embed-item {
    max-width: 100%;
  }
}
