/* ============================================================
   NAS View Developers — Multi-page section styles
   ============================================================ */

/* ---------- Sub-page hero (editorial header band) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-hero.bg-off { background: var(--offwhite); }
.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--grey); margin-bottom: 26px; letter-spacing: 0.02em;
}
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--royal); }
.crumbs span { color: var(--line-strong); }
.page-hero__title { max-width: 18ch; }
.page-hero__lead { margin-top: 26px; max-width: 52ch; }
.page-hero__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
}

/* ---------- Services (alternating editorial rows) ---------- */
.services { display: flex; flex-direction: column; }
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 76px);
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service__media image-slot { width: 100%; height: 100%; }
.service__media image-slot::part(image) { transition: transform 1.2s var(--ease); }
.service:hover .service__media image-slot::part(image) { transform: scale(1.04); }
.service:nth-child(even) .service__media { order: 2; }
.service__index { font-size: 13px; font-weight: 600; color: var(--grey); letter-spacing: 0.04em; }
.service h3 { font-size: var(--fs-h3); margin-top: 14px; transition: color .35s var(--ease); }
.service:hover h3 { color: var(--royal); }
.service p { color: var(--grey); margin-top: 16px; max-width: 44ch; }
.service .link { margin-top: 26px; }

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  margin-top: clamp(20px, 3vw, 40px);
  padding-left: 0;
}
.timeline__track {
  position: absolute;
  left: 7px; top: 14px; bottom: 14px;
  width: 1px; background: var(--line-strong);
}
.timeline__fill {
  position: absolute;
  left: 7px; top: 14px; bottom: 14px;
  width: 2px; background: var(--royal);
  transform-origin: top; transform: scaleY(0);
  transition: transform .15s linear;
}
.tstep {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding-block: clamp(22px, 3vw, 40px);
}
.tstep__dot {
  position: relative; z-index: 2;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-strong);
  margin-top: 6px;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.tstep.is-in .tstep__dot { border-color: var(--royal); background: var(--royal); box-shadow: 0 0 0 5px var(--royal-tint); }
.tstep__num { position: absolute; left: 26px; top: 4px; font-size: 12px; color: var(--grey); font-weight: 600; }
.tstep h3 { font-size: clamp(20px, 1.8vw, 26px); }
.tstep p { color: var(--grey); margin-top: 10px; max-width: 50ch; }

/* ---------- Project detail ---------- */
.pd-gallery-hero { display: grid; grid-template-columns: 1fr; gap: 14px; }
.gallery__main { position: relative; aspect-ratio: 16 / 9; }
.gallery__main image-slot { width: 100%; height: 100%; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__thumb {
  position: relative; aspect-ratio: 4 / 3; cursor: pointer;
  border: 1px solid transparent; padding: 0; background: none;
  transition: opacity .3s var(--ease);
}
.gallery__thumb image-slot { width: 100%; height: 100%; pointer-events: none; }
.gallery__thumb.is-active { outline: 2px solid var(--royal); outline-offset: 2px; }
.gallery__thumb:not(.is-active) { opacity: 0.6; }
.gallery__thumb:hover { opacity: 1; }

.pd-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.pd-body h2 { font-size: var(--fs-h3); margin-bottom: 18px; }
.pd-body p { color: var(--grey); margin-bottom: 18px; max-width: 60ch; }
.pd-specs {
  position: sticky; top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line); padding: clamp(26px, 3vw, 38px);
}
.pd-specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.pd-specs__row:last-of-type { border-bottom: none; }
.pd-specs__k { font-size: 12.5px; color: var(--grey); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.pd-specs__v { font-size: 15px; font-weight: 600; text-align: right; }
.pd-specs .btn { width: 100%; justify-content: center; margin-top: 24px; }

.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pd-grid image-slot { width: 100%; aspect-ratio: 3 / 4; }
.pd-grid .span2 { grid-column: span 2; }
.pd-grid .span2 image-slot { aspect-ratio: 16 / 10; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story__media { position: relative; aspect-ratio: 4 / 5; }
.story__media image-slot { width: 100%; height: 100%; }
.story__body p { color: var(--grey); margin-top: 18px; max-width: 48ch; }
.story__body p:first-child { margin-top: 0; }

.vmv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.vmv__cell {
  background: var(--white); padding: clamp(28px, 3.4vw, 48px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.vmv__cell:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -30px var(--royal-glow); position: relative; z-index: 1; }
.vmv__cell h3 { font-size: var(--fs-h3); margin-bottom: 16px; }
.vmv__cell p { color: var(--grey); }
.vmv__cell ul { list-style: none; padding: 0; margin: 0; }
.vmv__cell li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.vmv__cell li:last-child { border-bottom: none; }

.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.leader__media {
  position: relative; aspect-ratio: 3 / 4; margin-bottom: 20px; overflow: hidden;
}
.leader__media image-slot { width: 100%; height: 100%; }
.leader__media image-slot::part(image) { transition: transform 1.1s var(--ease); }
.leader:hover .leader__media image-slot::part(image) { transform: scale(1.05); }
.leader h3 { transition: color .35s var(--ease); }
.leader:hover h3 { color: var(--royal); }
.leader h3 { font-size: 19px; }
.leader p { color: var(--grey); font-size: 14px; margin-top: 5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-info { display: flex; flex-direction: column; }
.contact-block { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-block:first-of-type { border-top: none; padding-top: 0; }
.contact-block h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); font-weight: 600; margin-bottom: 12px; }
.contact-block a, .contact-block p { color: var(--ink); text-decoration: none; font-size: 16px; margin: 0 0 6px; display: block; }
.contact-block a:hover { color: var(--royal); }
.map {
  position: relative; aspect-ratio: 16 / 10; margin-top: clamp(40px, 5vw, 70px);
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 38px),
    var(--offwhite);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.map__pin {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  background: var(--royal); transform: rotate(-45deg);
  box-shadow: 0 8px 18px var(--royal-glow);
  position: relative;
}
.map__pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 2px solid var(--royal); opacity: 0;
  animation: pinPulse 2.4s var(--ease) infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}
.map__label {
  position: absolute; bottom: 18px; left: 18px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey); font-weight: 600;
}
.wa-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 13px 22px; border: 1px solid var(--royal);
  text-decoration: none; color: var(--royal); font-weight: 600; font-size: 14.5px;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-cta:hover { background: var(--royal); color: var(--white); box-shadow: 0 8px 20px var(--royal-glow); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-specs { position: static; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 16 / 10; }
  .vmv { grid-template-columns: 1fr; }
  .leaders { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .leaders { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-grid .span2 { grid-column: span 1; }
}
