/* ============================================================
   ZENITH MOTORWORKS — Context-Aware Animated Section Backgrounds
   & Ultra-Luxury Editorial Stream (Haute Horlogerie Standard)
   ============================================================ */

.home-stream {
  position: relative;
  z-index: 20;
  background: #06070a;
  box-shadow: 0 -40px 100px rgba(0, 0, 0, 0.98);
  overflow: hidden;
}

/* Common Section Container */
.stream-section {
  padding: clamp(5rem, 10vh, 8.5rem) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.section-3d-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.stream-container {
  width: 90%;
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Stream Section Header */
.stream-header {
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.stream-header-text {
  max-width: 720px;
}

.stream-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: kickerPulse 2s infinite ease-in-out;
}

@keyframes kickerPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.stream-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.12;
  letter-spacing: 0.03em;
}

.stream-desc {
  font-size: clamp(0.9rem, 1vw, 1.15rem);
  color: #cbd5e1;
  line-height: 1.6;
  margin-top: 0.8rem;
}


/* ============================================================
   1. SECTION 1: ANATOMY — TELEMETRY MATRIX & SCAN GRID
   ============================================================ */
#sectionAnatomy {
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.07) 0%, transparent 65%),
              linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
              linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
              #06070a;
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Glowing Telemetry Scan Ray */
#sectionAnatomy::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), #ffffff, rgba(212, 175, 55, 0.8), transparent);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  animation: telemetryScan 6s linear infinite;
  opacity: 0.6;
}

@keyframes telemetryScan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(800px); opacity: 0; }
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.anatomy-card {
  background: linear-gradient(145deg, rgba(16, 20, 29, 0.85) 0%, rgba(9, 11, 16, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  padding: 2.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: all 0.35s var(--ease-out-expo);
}

.anatomy-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.25);
}

.anatomy-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.anatomy-metric {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.anatomy-metric span {
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-left: 4px;
}

.anatomy-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f1f5f9;
  margin-top: 0.4rem;
}

.anatomy-detail {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
}


/* ============================================================
   2. SECTION 2: ATELIER DIVISIONS — CARBON FIBER SHIMMER
   ============================================================ */
#sectionDivisions {
  background: radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
              repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 2px, transparent 2px, transparent 8px),
              #07080c;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.bento-card {
  background: linear-gradient(145deg, rgba(16, 20, 30, 0.85) 0%, rgba(8, 10, 15, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.35s var(--ease-out-expo);
}

.bento-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.22);
}

.bento-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 65%),
              linear-gradient(145deg, rgba(20, 25, 38, 0.9) 0%, rgba(7, 9, 13, 0.98) 100%);
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  align-self: flex-start;
}

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.6vw, 1.8rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  margin: 0.6rem 0;
}

.bento-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.bento-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bento-features li {
  font-size: 0.82rem;
  color: #e2e8f0;
  position: relative;
  padding-left: 1.2rem;
}

.bento-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 0.7rem;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bento-link:hover {
  color: #ffffff;
}


/* ============================================================
   3. SECTION 3: 3D STUDIO PREVIEW — SPOTLIGHT STAGE
   ============================================================ */
#sectionConfigPreview {
  background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.09) 0%, transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(24, 32, 48, 0.6) 0%, transparent 60%),
              #050608;
}

.stream-3d-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  background: radial-gradient(circle at center, #111520 0%, #06070a 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
}

.stream-3d-canvas-box {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvasHome3D {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  cursor: grab;
}

#canvasHome3D:active {
  cursor: grabbing;
}

.stream-3d-sidebar {
  background: rgba(11, 14, 20, 0.92);
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(20px);
}


/* ============================================================
   4. SECTION 4: MATERIALS & METALLURGY — THERMAL PLASMA
   ============================================================ */
#sectionMaterials {
  background: radial-gradient(ellipse at 20% 40%, rgba(207, 143, 69, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 60%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
              linear-gradient(to bottom, #06070a, #090b10, #06070a);
}

.materials-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.material-card {
  background: linear-gradient(145deg, rgba(16, 20, 30, 0.85) 0%, rgba(8, 10, 15, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.material-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  animation: thermalPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes thermalPulse {
  0% { transform: translate(-10%, -10%); opacity: 0.5; }
  100% { transform: translate(10%, 10%); opacity: 1; }
}

.material-metric-badge {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.material-metric-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}


/* ============================================================
   5. SECTION 5: COMMISSIONING JOURNEY — BESPOKE SALON
   ============================================================ */
#sectionCommission {
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 65%),
              #050608;
}

.journey-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.journey-step-card {
  background: linear-gradient(145deg, rgba(15, 18, 26, 0.85) 0%, rgba(7, 9, 13, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: transform 0.3s ease;
}

.journey-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.journey-step-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.journey-step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.journey-step-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.55;
}

/* Direct VIP Consultation Embed */
.direct-booking-wrap {
  background: linear-gradient(145deg, rgba(18, 23, 34, 0.95) 0%, rgba(7, 9, 14, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.15);
}


/* ============================================================
   6. GLOBAL MASTER LUXURY FOOTER (Available across all pages)
   ============================================================ */
.master-footer {
  background: #030406;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding: 5.5rem 0 3.5rem;
  position: relative;
  z-index: 25;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.9);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-bio {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 340px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  font-size: 0.82rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--accent-gold);
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.footer-newsletter-input {
  flex: 1;
  background: rgba(14, 18, 25, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 100px;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #ffffff;
  outline: none;
}

.footer-newsletter-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.footer-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  margin-top: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-partner-badge:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.footer-partner-badge span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-family: var(--font-display);
}

.footer-partner-badge .partner-link-text {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-email-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-email-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-utc-clock {
  font-family: var(--font-display);
  color: var(--accent-gold);
}


/* ============================================================
   7. RESPONSIVE ADAPTATIONS (HOME STREAM)
   ============================================================ */
@media (max-width: 1024px) {
  .anatomy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .stream-3d-wrapper {
    grid-template-columns: 1fr;
  }
  .stream-3d-canvas-box {
    height: 380px;
  }
  .materials-showcase-grid {
    grid-template-columns: 1fr;
  }
  .journey-steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .stream-section {
    padding: 3.5rem 0;
  }
  .stream-container {
    width: 92%;
  }
  .anatomy-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .anatomy-card {
    padding: 1.5rem;
  }
  .anatomy-metric {
    font-size: 2.2rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .bento-card {
    padding: 1.5rem;
  }
  .stream-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
  }
  .stream-title {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }
  .stream-3d-canvas-box {
    height: 280px;
  }
  .stream-3d-sidebar {
    padding: 1.4rem;
  }
  .journey-steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .journey-step-card {
    padding: 1.5rem;
  }
  .materials-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .material-card {
    padding: 1.5rem;
  }
  .direct-booking-wrap {
    padding: 1.6rem;
    margin-top: 2.5rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-newsletter-form {
    flex-direction: column;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (max-width: 380px) {
  .anatomy-metric {
    font-size: 1.8rem;
  }
  .bento-title {
    font-size: 1.05rem;
  }
  .stream-3d-canvas-box {
    height: 240px;
  }
  .swatches-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
  }
  .swatch-btn {
    width: 32px;
    height: 32px;
  }
}
