﻿/* برندهای هوشمندسازی — اسلایدر ویدئویی با هات‌اسپات */

:root {
  --brands-bg: #0a0a0c;
  --ink: #f4f1ea;
  --ink-dim: rgba(244, 241, 234, 0.6);
  --brands-gold: #c9a227;
  --ease-lux: cubic-bezier(0.87, 0, 0.13, 1);
}

/* Embedded brands experience (from 150) — scoped, no global resets */

/* ---------- ویدئوی اختصاصی هر سکشن ---------- */
.section-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.section-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ---------- Brand tabs (below HDL header) ---------- */
.brands-head {
  position: fixed;
  inset-inline: 0;
  top: 88px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 4vw, 56px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.brands-head.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.brand-tabs {
  display: flex;
  gap: 6px;
  background: rgba(10, 8, 16, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 40px;
  padding: 5px;
  pointer-events: auto;
}
.brand-tabs button {
  border: none;
  background: none;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.35s, color 0.35s var(--ease-lux);
  white-space: nowrap;
}
.brand-tabs button.is-active {
  background: #ffffff;
  color: #6d147c;
}
.brand-tabs button:hover:not(.is-active) {
  color: var(--ink);
}

/* ---------- سکشن‌های برند ---------- */
.brand-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(20px, 5vw, 72px) 110px;
  z-index: 10;
  overflow: hidden;
}
.section-spots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- جداکننده سیاه بین طبقات ---------- */
.floor-gap {
  position: relative;
  height: 55vh;
  background: #ffffff;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
}
/* سایه لبه‌ها — انگار دال بتنی بین دو طبقه است */
.floor-gap::before,
.floor-gap::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 70px;
  pointer-events: none;
}
.floor-gap::before {
  top: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 90%), transparent);
}
.floor-gap::after {
  bottom: 0;
  background: linear-gradient(0deg, rgb(255 255 255 / 90%), transparent);
}
.gap-line {
  width: 1px;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.55), transparent);
}
.gap-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(244, 241, 234, 0.4);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gap-label::before {
  content: '↓';
  color: rgba(201, 162, 39, 0.7);
  animation: gapDown 1.8s var(--ease-lux) infinite;
}
@keyframes gapDown {
  0%, 100% { transform: translateY(-3px); opacity: 0.5; }
  50% { transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gap-label::before { animation: none; }
}

/* ---------- هات‌اسپات‌ها ---------- */
.hotspot {
  position: absolute;
  /* سنترینگ با margin تا transform با animate.css تداخل نکند */
  margin: -15px 0 0 -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #16121e;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.3s;
  /* مخفی تا فعال شدن سکشن؛ با is-live دیده می‌شود و zoomIn از حالت مخفی شروع می‌کند */
  opacity: 0;
  pointer-events: none;
}
.hotspot.is-live {
  opacity: 1;
  pointer-events: auto;
}
.hotspot::before { content: '+'; margin-top: -1px; }
.hotspot::after {
  /* موج پالس */
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  animation: pulse 2.2s var(--ease-lux) infinite;
}
.hotspot:hover {
  background: #fff;
}
@keyframes pulse {
  0% { transform: scale(0.75); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- tooltip دایره‌ای روی موس ---------- */
.spot-tip {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  /* مرکزش دقیقا بالای اشاره‌گر */
  transform: translate(-50%, calc(-100% - 22px));
  will-change: top, left;
}
.spot-tip.is-on { opacity: 1; }
.spot-tip-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #17131f;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  scale: 0.6;
  transition: scale 0.35s var(--ease-lux);
}
.spot-tip.is-on .spot-tip-circle { scale: 1; }
.spot-tip-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spot-tip-name {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 12px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(0deg, rgba(5, 3, 10, 0.9), transparent);
}

/* ---------- جزئیات محصول (باز شدن دایره‌ای از نقطه کلیک) ---------- */
.product-detail {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  clip-path: circle(0px at 50% 50%);
  transition: clip-path 0.85s var(--ease-lux), visibility 0.85s;
}
.product-detail.is-open {
  visibility: visible;
}
.detail-inner {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 24px clamp(20px, 6vw, 90px);
  max-width: 1100px;
  width: 100%;
}
.detail-media {
  flex: 0 0 clamp(220px, 34vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.5);
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-copy { flex: 1; min-width: 0; }
.detail-brand {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--brands-gold);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.detail-title {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.detail-desc {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  line-height: 2.1;
  color: #000;
  max-width: 460px;
}
.detail-close {
  position: absolute;
  top: 26px;
  inset-inline-start: clamp(20px, 4vw, 56px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 30%);
  background: none;
  color: #000000;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease-lux), background 0.3s;
}
.detail-close:hover {
  border-color: var(--brands-gold);
  background: rgba(201, 162, 39, 0.12);
  transform: rotate(90deg);
}
.detail-inner > * { will-change: transform, opacity; }

@media (max-width: 767.98px) {
  .detail-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .detail-media { flex-basis: auto; width: min(240px, 60vw); }
  .detail-desc { margin-inline: auto; }
}

/* ---------- متن سکشن ---------- */
.slide-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  pointer-events: none;
}
.slide-eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--brands-gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.slide-copy h1,
.slide-title {
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #ffffff;
}
.slide-desc {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  line-height: 2;
  color: var(--ink-dim);
  max-width: 470px;
}
.slide-copy > * { will-change: transform, opacity; }

/* ---------- Nav (ثابت پایین صفحه) ---------- */
.slide-nav {
  position: fixed;
  bottom: 36px;
  inset-inline-start: clamp(20px, 5vw, 72px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.slide-nav.is-visible {
  opacity: 1;
  visibility: visible;
}
.slide-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.3);
  background: rgba(10, 8, 16, 0.35);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-lux);
}
.slide-arrow:hover {
  border-color: var(--brands-gold);
  background: rgba(201, 162, 39, 0.15);
  transform: scale(1.06);
}
.slide-dots {
  display: flex;
  gap: 9px;
}
.slide-dots button {
  width: 24px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: rgba(244, 241, 234, 0.25);
  cursor: pointer;
  transition: background 0.35s, width 0.35s var(--ease-lux);
  padding: 0;
}
.slide-dots button.is-active {
  width: 42px;
  background: var(--brands-gold);
}

.scroll-hint {
  position: fixed;
  bottom: 46px;
  inset-inline-end: clamp(20px, 5vw, 72px);
  z-index: 30;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  pointer-events: none;
}
.scroll-hint.is-visible {
  opacity: 1;
  visibility: visible;
  animation: hint 2.4s var(--ease-lux) infinite;
}
@keyframes hint {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .scroll-hint { display: none; }
  .brand-tabs { order: 3; width: 100%; justify-content: center; }
  .brand-tabs button { padding: 7px 12px; font-size: 12px; }
  .spot-tip-circle { width: 140px; height: 140px; }
  .hotspot { width: 28px; height: 28px; font-size: 16px; margin: -14px 0 0 -14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot::after { animation: none; }
  .scroll-hint { animation: none; }
}


