/* ============================================================
   AERO Lifts — Cabin Collections Page
   Full-screen cinematic layout · Dark premium theme
   ============================================================ */

/* ── Collection Hero ── */
.col-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.col-hero::before {
  display: none;
}

.col-hero::after {
  display: none;
}

.col-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.col-hero-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 0.8s var(--ease-smooth) 0.3s forwards;
}

.col-hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease-smooth) 0.5s forwards;
}

.col-hero-title-underline {
  display: block;
  position: relative;
  padding-bottom: 16px;
}

.col-hero-title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--orange) 30%,
    var(--orange) 70%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.8), 0 0 40px rgba(255, 77, 0, 0.4);
  animation: underlineExpand 1s var(--ease-lift) 1.1s forwards;
}

.col-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 300;
  color: var(--silver);
  letter-spacing: 0.05em;
  max-width: 480px;
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 0.8s var(--ease-smooth) 0.9s forwards;
}

.col-hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-smooth) 1.4s forwards;
}

.col-hero-scroll-hint span {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--silver);
}

.col-hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out 2s infinite;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes underlineExpand {
  to { transform: translateX(-50%) scaleX(1); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}


/* ── Model Navigator (fixed right-side) ── */
.model-nav {
  position: fixed;
  right: 28px;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.model-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.model-nav-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
  pointer-events: none;
  user-select: none;
}

.model-nav-item:hover .model-nav-label,
.model-nav-item.active .model-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.model-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--metal);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    background 0.3s var(--ease-smooth),
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
  flex-shrink: 0;
}

.model-nav-item:hover .model-nav-dot {
  background: var(--silver);
  transform: scale(1.3);
}

.model-nav-item.active .model-nav-dot {
  background: var(--orange);
  transform: scale(1.4);
  box-shadow:
    0 0 8px rgba(255, 77, 0, 0.9),
    0 0 20px rgba(255, 77, 0, 0.5),
    0 0 40px rgba(255, 77, 0, 0.2);
  border-color: var(--orange);
}


/* ── Section Divider ── */
.cabin-section-divider {
  width: 100%;
  height: 1px;
  position: relative;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 77, 0, 0.08) 20%,
    rgba(255, 77, 0, 0.4) 45%,
    var(--orange) 50%,
    rgba(255, 77, 0, 0.4) 55%,
    rgba(255, 77, 0, 0.08) 80%,
    transparent 100%
  );
  overflow: visible;
}

.cabin-section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(255, 77, 0, 0.3) 0%, transparent 70%);
  pointer-events: none;
}


/* ── Cabin Section (per model) ── */
.cabin-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--dark);
}

.cabin-section:nth-child(even) {
  flex-direction: row-reverse;
}

/* Per-section ambient background layer */
.cabin-section-bg {
  display: none;
}


/* ── 3D Frame ── */
.cabin-3d-frame {
  position: relative;
  width: 45%;
  flex-shrink: 0;
  perspective: 1200px;
  perspective-origin: center center;
  cursor: none;
  z-index: 1;
  overflow: hidden;
}

.cabin-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.4s var(--ease-smooth);
  will-change: transform;
}

/* While JS is driving tilt, skip transition for real-time tracking */
.tilt-active .cabin-3d-inner {
  transition: none;
}

.cabin-3d-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Depth / parallax overlay layers */
.cabin-depth-layer {
  display: none;
}

/* Edge highlight on 3D frame */
.cabin-3d-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 5;
  transition: border-color 0.4s var(--ease-smooth);
}

.cabin-3d-frame:hover::after {
  border-color: rgba(255, 77, 0, 0.2);
}


/* ── Info Panel ── */
.cabin-info-panel {
  flex: 1;
  position: relative;
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  z-index: 1;
  overflow: hidden;
}

/* Large faded model number watermark */
.cabin-model-num {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 1;
  color: rgba(255, 77, 0, 0.05);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.02em;
}

/* Animated entrance: info panel slides in from right */
.cabin-info-panel > * {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.7s var(--ease-smooth);
}

.cabin-section.visible .cabin-info-panel > *:nth-child(1)  { transition-delay: 0.05s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(2)  { transition-delay: 0.12s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(3)  { transition-delay: 0.19s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(4)  { transition-delay: 0.26s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(5)  { transition-delay: 0.33s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(6)  { transition-delay: 0.40s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(7)  { transition-delay: 0.47s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(8)  { transition-delay: 0.54s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(9)  { transition-delay: 0.61s;  }
.cabin-section.visible .cabin-info-panel > *:nth-child(10) { transition-delay: 0.68s;  }

.cabin-section.visible .cabin-info-panel > * {
  opacity: 1;
  transform: translateX(0);
}

/* Reversed section layout — panel on the right so slides from left */
.cabin-section:nth-child(even) .cabin-info-panel > * {
  transform: translateX(-40px);
}

.cabin-section:nth-child(even).visible .cabin-info-panel > * {
  transform: translateX(0);
}

/* The watermark (#) is not a child panel item, keep it always visible */
.cabin-model-num {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}


/* ── Panel Typography ── */
.cabin-series-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabin-series-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

.cabin-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
}

.cabin-tagline {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
  max-width: 440px;
}

.cabin-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 77, 0, 0.5);
  border-radius: 100px;
  background: rgba(255, 77, 0, 0.06);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  width: fit-content;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.cabin-theme-badge:hover {
  background: rgba(255, 77, 0, 0.14);
  border-color: var(--orange);
}

.cabin-theme-badge-icon {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}


/* ── Spec Grid ── */
.cabin-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 480px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  transition:
    border-left-color 0.25s var(--ease-smooth),
    transform 0.25s var(--ease-smooth),
    background 0.25s var(--ease-smooth);
  cursor: default;
}

.spec-item:hover {
  border-left-color: var(--orange);
  transform: translateX(4px);
  background: rgba(255, 77, 0, 0.04);
}

.spec-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.spec-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.spec-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.spec-key {
  font-family: var(--font-label);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

/* Stagger spec-items within visible sections */
.cabin-section.visible .spec-item {
  opacity: 1;
  transform: translateX(0);
}

.cabin-section .spec-item {
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity 0.5s var(--ease-smooth),
    transform 0.5s var(--ease-smooth),
    border-left-color 0.25s var(--ease-smooth),
    background 0.25s var(--ease-smooth);
}

/* hover override for visible spec items */
.cabin-section.visible .spec-item:hover {
  transform: translateX(4px);
}


/* ── Material Strip ── */
.cabin-material-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cabin-material-strip-label {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
  width: 100%;
  margin-bottom: 4px;
}

.material-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.material-swatch-block {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.material-swatch:hover .material-swatch-block {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.swatch-label {
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver);
  text-align: center;
  white-space: nowrap;
}


/* ── CTA Button ── */
.cabin-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: fit-content;
  transition:
    background 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth),
    transform 0.2s var(--ease-smooth);
}

.cabin-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s var(--ease-smooth);
}

.cabin-cta:hover {
  background: var(--orange-dim);
  box-shadow: 0 8px 32px rgba(255, 77, 0, 0.35), 0 2px 8px rgba(255, 77, 0, 0.2);
  transform: translateY(-1px);
}

.cabin-cta:hover::before {
  background: rgba(255, 255, 255, 0.06);
}

.cabin-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.25);
}

.cabin-cta-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s var(--ease-smooth);
}

.cabin-cta:hover .cabin-cta-arrow {
  transform: translateX(4px);
}


/* ── Ambient Page Overlay (JS-driven) ── */
.ambient-overlay {
  display: none;
}


/* ── Responsive ── */
@media (max-width: 1100px) {
  .cabin-3d-frame {
    width: 50%;
  }

  .cabin-info-panel {
    padding: 48px 40px;
    gap: 22px;
  }

  .cabin-model-num {
    font-size: 140px;
  }
}

@media (max-width: 768px) {
  /* Hide model navigator on small screens */
  .model-nav {
    display: none;
  }

  /* Stack sections vertically */
  .cabin-section,
  .cabin-section:nth-child(even) {
    flex-direction: column;
  }

  .cabin-3d-frame {
    width: 100%;
    height: 55vw;
    min-height: 280px;
    max-height: 420px;
    flex-shrink: 0;
  }

  .cabin-info-panel {
    padding: 40px 24px 56px;
    gap: 20px;
  }

  .cabin-model-num {
    font-size: 100px;
    top: -10px;
    right: 8px;
  }

  .cabin-spec-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .cabin-name {
    font-size: clamp(40px, 10vw, 60px);
  }

  /* Panel animation resets for mobile */
  .cabin-info-panel > *,
  .cabin-section:nth-child(even) .cabin-info-panel > * {
    transform: translateY(20px);
  }

  .cabin-section.visible .cabin-info-panel > *,
  .cabin-section:nth-child(even).visible .cabin-info-panel > * {
    transform: translateY(0);
  }

  .col-hero-title {
    font-size: clamp(56px, 16vw, 100px);
  }
}

@media (max-width: 480px) {
  .cabin-spec-grid {
    grid-template-columns: 1fr;
  }

  .cabin-info-panel {
    padding: 32px 20px 48px;
    gap: 18px;
  }

  .cabin-3d-frame {
    min-height: 240px;
  }
}


/* ── Footer CTA ── */
.col-footer-cta {
  position: relative;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 100px 60px;
  text-align: center;
  overflow: hidden;
}

.col-footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255,77,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.col-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.col-footer-eyebrow {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
}

.col-footer-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--white);
  line-height: 1;
  margin: 0;
}

.col-footer-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
  max-width: 480px;
}

.col-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  margin-top: 10px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.col-footer-btn:hover {
  background: #e04400;
  box-shadow: 0 8px 32px rgba(255,77,0,0.35);
  transform: translateY(-2px);
}

/* ── nav-active highlight ── */
.nav-active {
  color: var(--orange) !important;
}
