/* ============================================
   Project Detail Pages
   ============================================ */

/* ---------- Hero ---------- */
.proj-hero {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height, 80px) + 4rem) 0 3.5rem;
  color: #fff;
  position: relative;
}

.proj-hero__inner {
  position: relative;
  z-index: 2;
}

.proj-breadcrumb {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
}

.proj-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.proj-breadcrumb a:hover { color: var(--color-gold, #d9a627); }
.proj-breadcrumb span { margin: 0 0.4rem; opacity: 0.6; }
.proj-breadcrumb span[aria-current] { margin: 0; opacity: 1; color: #fff; }

.proj-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold, #d9a627);
  margin-bottom: 0.75rem;
}

.proj-hero__title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 18ch;
}

.proj-hero__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Without an explicit size the pin stretches to fill the flex line. */
.proj-hero__location svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- At a glance ---------- */
.proj-stats {
  background: var(--color-navy, #16213e);
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.proj-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
}

.proj-stat {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.proj-stat:last-child { border-right: none; }

.proj-stat__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold, #d9a627);
}

.proj-stat__value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

/* ---------- Body copy ---------- */
.proj-narrow { max-width: 820px; }

.proj-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
  color: var(--color-text, #2c3244);
}

.proj-body:last-child { margin-bottom: 0; }

.section-header--left {
  text-align: left;
  margin-left: 0;
}

/* ---------- Inline CTA band ---------- */
.proj-cta-inline {
  background: var(--color-gold, #d9a627);
  padding: 2.25rem 0;
}

.proj-cta-inline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.proj-cta-inline h3 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
  color: var(--color-navy, #16213e);
}

.proj-cta-inline p {
  margin: 0;
  color: rgba(22, 33, 62, 0.82);
  max-width: 52ch;
  font-size: 0.9375rem;
}

.proj-cta-inline .btn--primary {
  background: var(--color-navy, #16213e);
  border-color: var(--color-navy, #16213e);
  color: #fff;
  flex-shrink: 0;
}

.proj-cta-inline .btn--primary:hover {
  background: #0f1730;
  border-color: #0f1730;
}

/* ---------- Challenges ---------- */
.proj-challenges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.proj-challenges li {
  position: relative;
  padding-left: 2.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text, #2c3244);
}

.proj-challenges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.35rem;
  height: 2px;
  background: var(--color-gold, #d9a627);
}

/* ---------- Scope grid ---------- */
.proj-scope-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.proj-scope {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.proj-scope li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.65;
  color: var(--color-text, #2c3244);
}

.proj-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border: 2px solid var(--color-gold, #d9a627);
  border-radius: 50%;
}

/* ---------- Sidebar ---------- */
.proj-side {
  background: var(--color-off-white, #f6f5f1);
  border: 1px solid rgba(22, 33, 62, 0.09);
  border-radius: 4px;
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-height, 80px) + 1.5rem);
}

.proj-side h3 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  color: var(--color-navy, #16213e);
}

.proj-side > p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(44, 50, 68, 0.8);
  margin: 0 0 1.25rem;
}

.proj-trades {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.proj-trades li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(22, 33, 62, 0.12);
  border-radius: 2px;
  color: var(--color-navy, #16213e);
}

.proj-side__cta { display: grid; gap: 0.75rem; }

.btn--block { width: 100%; text-align: center; }

.proj-side__phone {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-navy, #16213e);
  text-decoration: none;
  font-weight: 600;
}

.proj-side__phone:hover { color: var(--color-gold, #d9a627); }

/* ---------- Quote ---------- */
.proj-quote {
  margin: 0;
  text-align: center;
}

.proj-quote blockquote {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-style: italic;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 1.5rem;
  border: none;
  padding: 0;
}

.proj-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.proj-quote figcaption strong {
  color: var(--color-gold, #d9a627);
  font-size: 1rem;
}

.proj-quote figcaption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* ---------- Gallery ---------- */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.proj-gallery__item {
  margin: 0;
}

/* The 4:3 crop lives on an inner frame so the caption below it is not
   clipped by the figure's overflow. */
.proj-gallery__frame {
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  background: rgba(22, 33, 62, 0.06);
  position: relative;
}

.proj-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.proj-gallery__item:hover img { transform: scale(1.05); }

.proj-gallery__caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray-600, #55607a);
}

/* ---------- Related ---------- */
.proj-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.proj-related__card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(22, 33, 62, 0.1);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proj-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(22, 33, 62, 0.14);
}

.proj-related__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.proj-related__body { padding: 1.25rem; }

.proj-related__body span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold, #d9a627);
}

.proj-related__body h3 {
  font-size: 1.0625rem;
  margin: 0.4rem 0 0;
  color: var(--color-navy, #16213e);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .proj-scope-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .proj-side { position: static; }
}

@media (max-width: 640px) {
  .proj-hero { min-height: 50vh; padding-bottom: 2.5rem; }
  .proj-stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 1.25rem; }
  .proj-stat:last-child { border-bottom: none; }
  .proj-cta-inline__inner { flex-direction: column; align-items: flex-start; }
  .proj-cta-inline .btn { width: 100%; text-align: center; }
  .proj-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.65rem; }
}

/* ---- Gallery items are lightbox triggers ---- */
.proj-gallery__item { cursor: pointer; }

.proj-gallery__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 62, 0) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3Cline x1='16.2' y1='16.2' x2='21' y2='21'/%3E%3C/svg%3E") center no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  pointer-events: none;
}

.proj-gallery__item:hover .proj-gallery__frame::after,
.proj-gallery__item:focus-visible .proj-gallery__frame::after {
  opacity: 1;
  background-color: rgba(22, 33, 62, 0.45);
}

.proj-gallery__item:focus-visible { outline: 3px solid var(--color-gold, #d9a627); outline-offset: 3px; }
