/* =========================================================================
   DARNELL POOLS — Inner pages stylesheet (builds, process, about, contact)
   ========================================================================= */

/* Inner-page hero ---------------------------------------------------------*/
.page-hero {
  background: var(--aqua-deep);
  color: var(--bone);
  padding: clamp(140px, 14vw, 200px) var(--gutter) clamp(72px, 9vw, 120px);
  position: relative;
}
.page-hero h1 { color: var(--bone); font-size: clamp(40px, 6vw, 84px); max-width: 22ch; }
.page-hero h1 em { color: var(--brass-soft); font-style: italic; font-family: "Cormorant Garamond", Georgia, serif; }
.page-hero .eyebrow { color: var(--brass-soft); margin-bottom: 18px; }
.page-hero p { color: rgba(245,240,230,0.75); max-width: 60ch; margin-top: 28px; font-size: 17px; line-height: 1.7; }

.page-crumbs {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,240,230,0.55);
  margin-bottom: 28px;
}
.page-crumbs a { color: var(--brass-soft); }
.page-crumbs span { margin: 0 10px; color: rgba(245,240,230,0.3); }

/* Builds page (gallery + filters) -----------------------------------------*/
.filter-bar {
  margin-top: 36px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-chip:hover { border-color: var(--brass); color: var(--ink); }
.filter-chip.is-active { background: var(--aqua-deep); color: var(--bone); border-color: var(--aqua-deep); }

/* Build detail page (project case) ----------------------------------------*/
.build-detail-hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: flex-end;
  color: var(--bone);
}
.build-detail-hero .hero-media img { animation: none; }
.build-detail-hero .hero-content { padding-bottom: 60px; }
.build-detail-hero h1 { font-size: clamp(40px, 5.5vw, 76px); }

.build-spec-strip {
  background: var(--bone-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter);
}
.build-spec-strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.build-spec .mono { color: var(--brass); display: block; margin-bottom: 6px; }
.build-spec strong { font-family: var(--f-display); font-size: 18px; font-weight: 400; }
@media (max-width: 700px) {
  .build-spec-strip .wrap { grid-template-columns: 1fr 1fr; }
}

/* Before/After slider component -------------------------------------------*/
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  user-select: none;
  background: var(--aqua-deep);
  cursor: ew-resize;
  margin: clamp(40px, 5vw, 64px) 0;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); transition: clip-path 0.08s ease-out; }
.ba-slider .ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--bone);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-slider .ba-handle::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--brass);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.ba-slider .ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: 14px; color: var(--brass); letter-spacing: 0.05em;
}
.ba-label {
  position: absolute; top: 18px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone);
  padding: 6px 12px; background: rgba(47,58,43,0.7); backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba-label--before { left: 18px; }
.ba-label--after  { right: 18px; }

/* Process page deep dive --------------------------------------------------*/
.process-flow {
  display: grid; gap: clamp(48px, 6vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
}
.flow-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.flow-card:first-child { padding-top: 0; border-top: 0; }
.flow-card__num {
  font-family: var(--f-display); font-size: clamp(80px, 12vw, 180px); line-height: 0.9;
  color: var(--bone-2); text-align: right; padding-right: 14px;
}
.flow-card__body h3 { font-size: clamp(24px, 3vw, 40px); margin-bottom: 18px; }
.flow-card__body .duration {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px; display: block;
}
.flow-card__body p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16px; line-height: 1.7; }
.flow-card__deliv {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.flow-card__deliv strong { color: var(--brass); display: block; margin-bottom: 6px; }
@media (max-width: 800px) {
  .flow-card { grid-template-columns: 1fr; }
  .flow-card__num { text-align: left; padding-right: 0; }
}

/* About page --------------------------------------------------------------*/
.about-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.about-spread__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--aqua-deep);
}
.about-spread__media img { width: 100%; height: 100%; object-fit: cover; }
.about-spread__copy h2 { margin-bottom: 18px; }
.about-spread__copy h2 em { color: var(--brass); }
.about-spread__copy .lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--ink-soft);
}
.about-spread__copy p { color: var(--ink-soft); margin-bottom: 18px; }

.about-values {
  margin-top: clamp(60px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.value-tile {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bone-2);
  border-left: 2px solid var(--brass);
}
.value-tile .mono { color: var(--brass); display: block; margin-bottom: 8px; }
.value-tile h4 { margin-bottom: 10px; font-size: 20px; }
.value-tile p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
@media (max-width: 1000px) { .about-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .about-values { grid-template-columns: 1fr; } .about-spread { grid-template-columns: 1fr; } }

/* Contact page ------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5vw, 80px);
}
.contact-info-card {
  background: var(--bone-2);
  padding: clamp(28px, 4vw, 48px);
}
.contact-info-card .row { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 18px; }
.contact-info-card .row:first-child { border-top: 0; padding-top: 0; }
.contact-info-card .row .mono { color: var(--brass); }
.contact-info-card .row strong { font-family: var(--f-display); font-size: 19px; font-weight: 400; display: block; margin-bottom: 4px; }
.contact-info-card .row a, .contact-info-card .row span { color: var(--ink-soft); font-size: 15px; line-height: 1.6; display: block; }
.contact-info-card .row a:hover { color: var(--aqua-deep); }

.map-card {
  margin-top: 32px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #2F3A2B, #51624A);
  position: relative;
  overflow: hidden;
}
.map-card svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* 404 ---------------------------------------------------------------------*/
.notfound {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--aqua-deep); color: var(--bone);
  padding: 120px var(--gutter);
  text-align: center;
}
.notfound h1 { color: var(--bone); font-size: clamp(60px, 12vw, 160px); }
.notfound h1 em { color: var(--brass-soft); }
.notfound p { color: rgba(245,240,230,0.65); margin: 20px 0 36px; max-width: 50ch; margin-inline: auto; }

/* About — team cards ------------------------------------------------------*/
.about-team {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.team-card {
  display: grid; grid-template-columns: 140px 1fr; gap: clamp(20px, 2.5vw, 32px);
  align-items: center;
  background: var(--bone-2); border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  padding: clamp(20px, 2.5vw, 32px);
}
.team-card__photo { aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--aqua-deep); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-card__body .mono { color: var(--brass); display: block; margin-bottom: 6px; }
.team-card__body h3 { font-size: 24px; margin-bottom: 10px; }
.team-card__body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
@media (max-width: 900px) { .about-team { grid-template-columns: 1fr; } }
@media (max-width: 440px) {
  .team-card { grid-template-columns: 1fr; text-align: left; }
  .team-card__photo { width: 110px; }
}

/* Build-detail gallery ----------------------------------------------------*/
.detail-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 56px);
}
.detail-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--line);
}
@media (max-width: 640px) { .detail-gallery { grid-template-columns: 1fr; } }
