/* Salazar Homes project pages (/projects/ and each project). Loaded after /styles.css (tokens, cards).
   The home page's CSS is inline, so the page shell lives here: base, nav, footer, lightbox. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--dark); color: var(--text-on-dark-2);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 15, 0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(193, 160, 92, 0.18);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 36px; width: auto; }
.call-btn-nav {
  display: inline-flex; align-items: center; gap: 8px; color: #ffffff; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: color 0.2s;
}
.call-btn-nav:hover { color: var(--accent); }
.call-btn-nav .lbl { display: none; }

.footer { background: #0f0f0f; padding: 40px 0; border-top: 1px solid var(--rule-dark); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer-brand { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: #ffffff; }
.footer-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14.5px; }
.footer-info a { color: #ffffff; font-weight: 500; text-decoration: none; }
.footer-info a:hover { color: var(--accent); }
.footer-legal { font-size: 13px; color: var(--text-on-dark-muted); }

/* Project page. Mobile first: headline, then the video capped so the
   start of the write-up shows under it; desktop puts the video in a
   sticky column beside the text. */
.pj-head { padding: 40px 0 0; }
.pj-crumb { font-size: 13px; color: var(--text-on-dark-muted); margin-bottom: 18px; }
.pj-crumb a { color: var(--text-on-dark-2); text-decoration: none; }
.pj-crumb a:hover { color: var(--text-on-dark); }
.pj-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-on-dark-2); margin-bottom: 14px;
}
.pj-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text-on-dark); max-width: 22ch;
}
.pj-sub { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--text-on-dark-2); max-width: 60ch; }

.pj-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.pj-facts li {
  font-size: 14px; line-height: 1.3; padding: 9px 14px; border: 1px solid var(--rule-dark);
  background: var(--dark-2); border-radius: var(--r-md); color: var(--text-on-dark);
}
.pj-facts strong { font-weight: 600; }

.pj-layout { display: grid; gap: 36px; padding: 28px 0 72px; }
.pj-video {
  width: min(100%, calc(64svh * 9 / 16)); margin: 0 auto; aspect-ratio: 9 / 16;
  border-radius: var(--r-lg); overflow: hidden; background: #000;
}
.pj-video mux-player { display: block; width: 100%; height: 100%; --media-object-fit: cover; }
.pj-video-label { text-align: center; font-size: 13px; color: var(--text-on-dark-muted); margin-top: 10px; }

.pj-story section + section { margin-top: 40px; }
.pj-story h2 {
  font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2;
  letter-spacing: -0.01em; color: var(--text-on-dark); margin-bottom: 14px;
}
.pj-story p { color: var(--text-on-dark-2); max-width: 62ch; }
.pj-story p + p { margin-top: 12px; }
.pj-story ul { list-style: none; margin-top: 4px; max-width: 62ch; }
.pj-story li { position: relative; padding-left: 22px; color: var(--text-on-dark-2); }
.pj-story li + li { margin-top: 10px; }
.pj-story li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--text-on-dark);
}
.pj-story li strong { color: var(--text-on-dark); font-weight: 600; }
.pj-story .pj-facts li { padding: 9px 14px; margin: 0; color: var(--text-on-dark); }
.pj-story .pj-facts li::before { display: none; }
.pj-quote {
  margin-top: 28px; padding: 20px 22px; background: var(--dark-2); border-radius: var(--r-lg);
  color: var(--text-on-dark); font-size: 17px; line-height: 1.6;
}
.pj-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13.5px; color: var(--text-on-dark-muted); }

.pj-band { background: var(--dark-2); padding: 72px 0; }
.pj-band h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.15;
  letter-spacing: -0.015em; color: var(--text-on-dark); margin-bottom: 10px;
}
.pj-band .pj-lede { color: var(--text-on-dark-2); max-width: 60ch; margin-bottom: 28px; }

.pj-reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); gap: 18px; }
.pj-reel { margin: 0; }
.pj-reel .pj-video { width: 100%; }
.pj-reel figcaption { font-size: 14px; color: var(--text-on-dark-2); margin-top: 10px; }

.pj-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 44px; }
.pj-photos img {
  width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border-radius: var(--r-md); cursor: zoom-in; background: var(--dark-3);
}
.pj-photos img.wide { grid-column: span 2; aspect-ratio: 16 / 10; }

.pj-cta { background: var(--paper); color: var(--text-on-light); padding: 72px 0; text-align: center; }
.pj-cta h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.15;
  letter-spacing: -0.015em; max-width: 24ch; margin: 0 auto 14px;
}
.pj-cta p { color: var(--text-on-light-2); max-width: 54ch; margin: 0 auto 26px; }
.pj-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pj-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-sm); font-weight: 600; font-size: 16px; text-decoration: none;
}
.pj-btn.primary { background: var(--text-on-light); color: var(--paper); }
.pj-btn.ghost { border: 1px solid var(--rule-light); color: var(--text-on-light); }

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .pj-head { padding-top: 28px; }
  .pj-sub { font-size: 16px; line-height: 1.55; }
  .pj-head h1 { font-size: 28px; }
  .pj-layout { padding-top: 22px; gap: 28px; }
  .pj-facts li { font-size: 13px; padding: 7px 11px; }
  .pj-band, .pj-cta { padding: 56px 0; }
  .pj-reels { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
  .pj-layout { grid-template-columns: minmax(300px, calc(78vh * 9 / 16)) 1fr; gap: 56px; align-items: start; padding-top: 40px; }
  .pj-video-col { position: sticky; top: 90px; }
  .pj-layout .pj-video { width: 100%; max-height: 78vh; }
  .pj-photos { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .pj-photos img.wide { grid-column: span 2; aspect-ratio: auto; }
  /* A short page (video, no write-up): the video alone, centred. */
  .pj-layout-solo { grid-template-columns: 1fr; justify-items: center; }
  .pj-layout-solo .pj-video-col { position: static; width: max(300px, calc(78vh * 9 / 16)); max-width: 100%; }
}

/* Salazar: Fraunces runs 400-600, gold accents, gold primary button. */
.pj-head h1, .pj-story h2, .pj-band h2, .pj-cta h2 { font-weight: 500; letter-spacing: -0.3px; }
.pj-eyebrow { color: var(--accent); letter-spacing: 1.5px; font-size: 13px; }
.pj-story li::before { background: var(--accent); }
.pj-band .pj-more { color: var(--accent); font-weight: 600; text-decoration: none; }
.pj-btn.primary { background: var(--accent); color: #141414; }
.pj-btn.primary:hover { background: var(--accent-dark); }

/* Lightbox (photos on a project page). */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 11, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  user-select: none;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -42px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 12px;
}

.lightbox-btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
}

.lightbox-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.06);
}

.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-close { top: 24px; right: 24px; }

.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-counter { top: 16px; left: 16px; font-size: 11px; }
  .lightbox-caption { bottom: -36px; font-size: 12px; }
  .lightbox-image { max-height: 72vh; }
}

