/* ============================================================
   PROJECT PATHWAYS — page-scoped
   services.html · private-cinema-room-planner.html

   One dominant active environment with a compact selector, rather
   than four equal cards. Everything ships stacked and readable; the
   selector only collapses it once the page script has wired it.
   ============================================================ */

.pathways__intro {
  max-width: 52ch;
  margin: clamp(2rem, 4vw, 2.75rem) 0 1.25rem;
  color: var(--text-secondary);
}

.pathways {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.pathways__panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

/* ── The rail, built by the page script ──────────────────── */

.pathways__rail {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.pathways__tab {
  flex: 0 0 auto;
  padding: 0.62rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  scroll-snap-align: start;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.pathways__tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pathways__tab.is-active {
  border-color: var(--bronze-dim);
  background: linear-gradient(
    140deg,
    rgba(201, 169, 110, 0.16),
    rgba(7, 6, 4, 0.7)
  );
  color: var(--bronze-light);
}

/* The specialist environment is reachable, never co-equal. */
.pathways__tab--specialist {
  border-style: dashed;
  color: var(--text-muted);
}

.pathways :focus-visible {
  outline: 2px solid var(--bronze-dim);
  outline-offset: 2px;
}

/* ── One dominant environment ────────────────────────────── */

.pathway {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(150deg, rgba(201, 169, 110, 0.05), transparent 42%),
    linear-gradient(160deg, rgba(17, 16, 9, 0.9), rgba(7, 6, 4, 0.95));
  scroll-margin-top: 6rem;
}

.pathway__content {
  min-width: 0;
}

.service-media-slot {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  background: #080704;
}

.services-page .service-module__image.service-media-slot {
  aspect-ratio: 16 / 10;
}

.services-page .service-module__image:has(.service-media-slot) {
  aspect-ratio: 16 / 10;
}

.service-module__image .image-frame--support,
.service-module__image .service-media-slot {
  height: 100%;
}

.service-media-slot > picture,
.service-media-slot > picture > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.service-media-slot > picture > img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background:
    linear-gradient(135deg, transparent 54%, rgba(201, 169, 110, 0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(201, 169, 110, 0.025) 0 1px,
      transparent 1px 12.5%
    ),
    linear-gradient(155deg, #151109, #070604 72%);
  object-fit: cover;
}

.service-media-slot:has(> picture) > .service-media-fallback {
  display: none;
}

.pathway--primary {
  border-color: rgba(201, 169, 110, 0.28);
}

.pathway--specialist {
  border-style: dashed;
}

.pathway__tier {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 3px;
  color: var(--bronze);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pathway--specialist .pathway__tier {
  border-style: dashed;
  color: var(--text-muted);
}

.pathway__title {
  margin: 0 0 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
}

.pathway__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pathway__goal {
  max-width: 54ch;
  margin: 0 0 1.4rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.45;
}

.pathway__decisions {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: pathway-decision;
}

.pathway__decisions li {
  position: relative;
  counter-increment: pathway-decision;
  max-width: 58ch;
  padding: 0.65rem 0 0.65rem 2.35rem;
  border-top: 1px solid rgba(201, 169, 110, 0.09);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pathway__decisions li::before {
  content: counter(pathway-decision, decimal-leading-zero);
  position: absolute;
  top: 0.78rem;
  left: 0;
  color: var(--bronze-dim);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pathway__boundary {
  max-width: 60ch;
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.1rem;
  border-left: 2px solid var(--bronze-dim);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}

.pathway__cta {
  display: inline-flex;
}

.pathway__more {
  display: inline-block;
  margin-left: 1.1rem;
  color: var(--bronze);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
}

.pathway__more:hover {
  color: var(--bronze-light);
}

@media (max-width: 860px) {
  .pathway {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .service-media-slot,
  .services-page .service-module__image.service-media-slot,
  .services-page .service-module__image:has(.service-media-slot),
  .service-media-slot > picture > img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 480px) {
  .pathway__more {
    display: block;
    margin: 1rem 0 0;
  }
}

/* Enhanced: one environment at a time. */
.pathways.is-enhanced .pathway {
  display: none;
}

.pathways.is-enhanced .pathway.is-active {
  display: grid;
}

/* ── Hero actions (mobile CTA inside the first viewport) ──── */

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

/* ── Room planner routes ─────────────────────────────────── */

.planner-routes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.planner-route {
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
}

.planner-route h3 {
  margin: 0 0 0.55rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
}

.planner-route p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}

.anchor-offset {
  display: block;
  scroll-margin-top: 6rem;
}

@media (min-width: 861px) {
  .planner-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pathways.is-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }

  .pathways.is-enhanced .pathways__rail {
    flex-direction: column;
    margin: 0;
    overflow: visible;
  }

  .pathways.is-enhanced .pathways__tab {
    border-radius: 6px;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .page-hero__actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pathways__tab {
    transition: none;
  }
}
