/* ==========================================================================
   رویارزیدنس — Luxury Persian RTL Landing Page
   Standalone stylesheet · assets/css/main.css
   ========================================================================== */

/* ---------- Fonts (paths relative to assets/css/) ---------- */
@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --black: #080808;
  --black-soft: #111111;
  --black-elevated: #1a1a1a;
  --gold: #c4a574;
  --gold-bright: #d4b896;
  --gold-dim: #8a7350;
  --bronze: #a67c52;
  --pearl: #f7f5f2;
  --pearl-muted: #e8e4de;
  --silver: #9a9a9a;
  --silver-light: #c8c8c8;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(196, 165, 116, 0.25);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --font: "Vazir", Tahoma, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--pearl);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Persian digit helper */
.fa-num {
  font-variant-numeric: normal;
  font-feature-settings: "ss01";
}

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section-inner {
  position: relative;
  z-index: 1;
}

/* ---------- Logo Fix (portrait logos ~350×557 — never distort) ---------- */
.logo-link img,
.hero-brand img,
.footer-brand img,
.footer-bottom img {
  width: auto !important;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
}

.hero-brand img {
  max-height: clamp(64px, 12vw, 100px);
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
}

.footer-brand img {
  max-height: 96px;
}

.footer-bottom img {
  max-height: 48px;
  filter: invert(1) opacity(0.55);
}

.logo-link img {
  transition: opacity 0.3s;
}

.logo-link:hover img {
  opacity: 0.85;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.5s var(--ease-out),
    backdrop-filter 0.5s,
    border-color 0.5s,
    transform 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: rgba(196, 165, 116, 0.15);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  width: min(1200px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--pearl-muted);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-consult {
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}

.btn-consult:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 24px rgba(196, 165, 116, 0.35);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.25) 40%, rgba(8, 8, 8, 0.92) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(196, 165, 116, 0.12), transparent 55%);
  pointer-events: none;
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1200px, 92%);
  margin-inline: auto;
  padding-bottom: clamp(4rem, 12vh, 7rem);
  padding-top: calc(var(--header-h) + 2rem);
}

.hero-brand {
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pearl);
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.45s forwards;
}

.hero-title span {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.42em;
  letter-spacing: 0.28em;
  margin-top: 0.85rem;
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 36ch;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--silver-light);
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.7s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.95s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--silver);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.4s forwards;
}

.scroll-hint .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.3s;
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196, 165, 116, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 2rem;
  border: 1px solid rgba(247, 245, 242, 0.35);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, background 0.3s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(196, 165, 116, 0.08);
}

/* ---------- Section Commons ---------- */
section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-desc {
  max-width: 42ch;
  color: var(--silver);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Ambient Background ---------- */
.bg-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-ambient::before {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.07), transparent 65%);
  top: -20%;
  right: -15%;
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-ambient::after {
  content: "";
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 124, 82, 0.05), transparent 65%);
  bottom: -10%;
  left: -10%;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

/* ---------- Story / About Section ---------- */
#story,
.story-section {
  background: var(--black);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.story-content {
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content .section-desc {
  margin-bottom: 1.5rem;
}

.story-text {
  color: var(--silver-light);
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
}

.story-text p + p {
  margin-top: 1.25rem;
}

.story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.story-stat {
  flex: 1 1 120px;
}

.story-stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.story-stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--silver);
  margin-top: 0.35rem;
}

.story-visual {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 100%;
  overflow: visible;
  border: none;
  background: transparent;
  cursor: pointer;
}

.story-visual img {
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.8s var(--ease-out);
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.story-visual:hover img {
  transform: scale(1.02);
}

.story-visual::after {
  display: none;
}

/* ---------- Virtual Tour ---------- */
#tour {
  background: var(--black-soft);
}

.tour-stage {
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--black);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

#pannellum-viewer {
  width: 100%;
  height: 100%;
}

/* Tour loading overlay */
.tour-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s, visibility 0.4s;
}

.tour-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tour-loader-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(196, 165, 116, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.tour-loader-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--silver-light);
  letter-spacing: 0.04em;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.9));
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.tour-meta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pearl);
}

.tour-meta p {
  font-size: 0.8rem;
  color: var(--silver);
  margin-top: 0.2rem;
}

.tour-hint {
  font-size: 0.72rem;
  color: var(--gold-dim);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tour-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tour-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}

.tour-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  filter: brightness(0.7);
}

.tour-thumb:hover img,
.tour-thumb.active img {
  filter: brightness(1);
  transform: scale(1.06);
}

.tour-thumb.active {
  border-color: var(--gold);
}

.tour-thumb figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--pearl-muted);
}

.tour-thumb .badge-360 {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  background: rgba(8, 8, 8, 0.75);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}

/* ---------- Gallery carousel ---------- */
#gallery {
  overflow: hidden;
}

.gallery-carousel {
  margin-top: 0.5rem;
}

.gallery-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  justify-content: flex-start;
  position: relative;
  z-index: 5;
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--gold);
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
  pointer-events: auto;
}

.gallery-btn:hover {
  background: rgba(196, 165, 116, 0.12);
  border-color: var(--gold);
}

.gallery-btn svg {
  width: 20px;
  height: 20px;
}

.gallery-viewport {
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  padding: 1.5rem 0 1rem;
  cursor: grab;
  touch-action: pan-x pinch-zoom;
  container-type: inline-size;
}

.gallery-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
  direction: ltr;
}

.gallery-track.is-dragging {
  cursor: grabbing;
}

.gallery-track.is-dragging .gallery-card {
  pointer-events: none;
}

.gallery-card {
  flex: 0 0 calc((100cqw - 2.5rem) / 3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition:
    transform 0.55s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.55s;
  aspect-ratio: 4 / 5;
  touch-action: manipulation;
  opacity: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 8, 8, 0.85) 100%);
  pointer-events: none;
}

.gallery-card:hover {
  transform: translateY(-10px) rotateY(-4deg) scale(1.02);
  border-color: var(--gold-dim);
  box-shadow:
    -12px 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(196, 165, 116, 0.2);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pearl);
  direction: rtl;
  text-align: right;
}

.gallery-card .zoom-icon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid rgba(196, 165, 116, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-card:hover .zoom-icon {
  opacity: 1;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.gallery-dot:hover {
  border-color: var(--gold);
  background: rgba(196, 165, 116, 0.25);
}

.gallery-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

/* ---------- Plans (glass cards) ---------- */
#plans {
  background: var(--black-soft);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.plan-card {
  position: relative;
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.08), transparent 50%);
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.plan-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.97);
  padding: 0.5rem;
}

.plan-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pearl);
}

.plan-card p {
  font-size: 0.8rem;
  color: var(--silver);
  margin-top: 0.25rem;
}

/* ---------- Tower full-bleed photo with readable text overlay ---------- */
#tower {
  padding-block: 0;
}

.tower-hero {
  position: relative;
  background: var(--black);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  overflow: visible;
}

.tower-hero-media {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.tower-hero-media img {
  width: auto;
  max-width: min(560px, 90vw);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.5));
  transition: transform 1.2s var(--ease-out);
}

.tower-hero:hover .tower-hero-media img {
  transform: scale(1.015);
}

.tower-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(8, 8, 8, 0.55) 0%,
      rgba(8, 8, 8, 0.2) 28%,
      transparent 50%,
      rgba(8, 8, 8, 0.15) 100%
    );
}

.tower-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(1200px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4rem);
  pointer-events: none;
}

.tower-hero-card {
  max-width: min(420px, 100%);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: rgba(8, 8, 8, 0.42);
  border: 1px solid rgba(196, 165, 116, 0.28);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.tower-hero-card .section-label {
  margin-bottom: 0.85rem;
}

.tower-hero-card h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--pearl);
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.tower-hero-card p {
  color: rgba(247, 245, 242, 0.88);
  font-size: 0.95rem;
  line-height: 1.85;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Legacy alias kept for older markup */
.tower-showcase {
  position: relative;
  min-height: min(80vh, 720px);
  background: var(--black);
  overflow: hidden;
}

/* Tower banner (photo variant) */
.tower-banner {
  position: relative;
  min-height: min(70vh, 640px);
  overflow: hidden;
  cursor: pointer;
}

.tower-banner img {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 640px);
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease-out);
}

.tower-banner:hover img {
  transform: scale(1.04);
}

.tower-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.85) 0%, rgba(8, 8, 8, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: center;
}

.tower-banner-text {
  width: min(1200px, 92%);
  margin-inline: auto;
  max-width: 28ch;
}

.tower-banner-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.tower-banner-text p {
  color: var(--silver-light);
  font-size: 0.95rem;
}

/* ---------- Amenities ---------- */
#amenities,
.amenities-section {
  background: var(--black-soft);
}

.amenities-block + .amenities-block {
  margin-top: 3.5rem;
}

.amenities-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: 1.25rem;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), background 0.35s;
}

.amenity-item:hover {
  border-color: var(--gold-dim);
  background: rgba(196, 165, 116, 0.06);
  transform: translateY(-4px);
}

.amenity-item img,
.amenity-item svg {
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  color: var(--gold);
}

.amenity-item span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pearl-muted);
  line-height: 1.4;
}

/* Namak amenities variant */
.amenities-namak .amenity-item {
  background: rgba(166, 124, 82, 0.06);
  border-color: rgba(166, 124, 82, 0.2);
}

.amenities-namak .amenity-item:hover {
  border-color: var(--bronze);
  background: rgba(166, 124, 82, 0.12);
}

/* ---------- Video Player ---------- */
#video {
  background: var(--black);
}

.video-player {
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--black-elevated);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(transparent 40%, rgba(8, 8, 8, 0.85));
  opacity: 1;
  transition: opacity 0.4s;
  padding: 1.25rem 1.5rem;
  gap: 0.85rem;
  pointer-events: none;
}

.video-overlay-ui .video-controls {
  pointer-events: auto;
}

.video-player.playing .video-overlay-ui:not(:hover):not(:focus-within) {
  opacity: 0;
}

.video-player.playing .video-overlay-ui:hover,
.video-player.playing .video-overlay-ui:focus-within {
  opacity: 1;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--gold);
  pointer-events: auto;
  transition: transform 0.35s, background 0.35s, box-shadow 0.35s;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(196, 165, 116, 0.2);
  box-shadow: 0 0 40px rgba(196, 165, 116, 0.3);
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  margin-inline-start: 3px;
}

.video-player.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--pearl);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.ctrl-btn:hover {
  opacity: 1;
  color: var(--gold);
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  direction: ltr;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pearl);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-wrap:hover .progress-bar::after {
  opacity: 1;
}

.time-display {
  font-size: 0.75rem;
  color: var(--silver-light);
  min-width: 5.5rem;
  text-align: left;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

/* ---------- CTA Strip ---------- */
.cta-strip {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  border-block: 1px solid rgba(196, 165, 116, 0.15);
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.06), transparent 40%),
    var(--black-soft);
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-strip p {
  color: var(--silver);
  margin-bottom: 2rem;
  max-width: 36ch;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3.5rem 2rem;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--silver);
  font-size: 0.9rem;
  max-width: 42ch;
  line-height: 1.9;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col li {
  display: block;
  color: var(--silver-light);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact li {
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.footer-contact strong {
  display: block;
  color: var(--gold-dim);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.footer-contact a[dir="ltr"] {
  display: inline;
  unicode-bidi: embed;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--silver);
}

.footer-bottom-start {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-credit {
  color: var(--silver);
  font-size: 0.78rem;
}

.footer-credit a {
  color: var(--gold-dim);
  transition: color 0.25s;
}

.footer-credit a:hover {
  color: var(--gold-bright);
}

.footer-credit #footerYear {
  color: var(--gold-dim);
}

/* ---------- Lightbox (with zoom) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  touch-action: none;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.05s linear;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.lightbox-img.dragging {
  cursor: grabbing;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(196, 165, 116, 0.4);
  color: var(--pearl);
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 8, 0.6);
  transition: border-color 0.25s, color 0.25s;
}

.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 0;
  text-align: center;
  color: var(--silver-light);
  font-size: 0.9rem;
  pointer-events: none;
}

.lightbox-hint {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  font-size: 0.72rem;
  color: var(--silver);
  letter-spacing: 0.04em;
}

/* ---------- Consult Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(460px, 100%);
  background: var(--black-elevated);
  border: 1px solid var(--glass-border);
  padding: 2.25rem 1.75rem 2rem;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
  text-align: center;
}

.modal.open .modal-panel {
  transform: translateY(0);
}

.consult-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.consult-logo img {
  width: auto !important;
  height: auto;
  max-height: 88px;
  object-fit: contain;
}

.modal-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--pearl);
}

.consult-lead {
  color: var(--silver-light);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  text-align: center;
}

.consult-phones {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.consult-phones a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--glass-border);
  background: rgba(196, 165, 116, 0.06);
  color: var(--gold-bright);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  direction: ltr;
  unicode-bidi: embed;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.consult-phones a:hover {
  border-color: var(--gold);
  background: rgba(196, 165, 116, 0.14);
  color: var(--pearl);
}

.consult-note {
  font-size: 0.8rem;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  color: var(--silver);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  transition: color 0.25s;
}

.modal-close:hover {
  color: var(--gold);
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(4%, 6%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Responsive: 900px ---------- */
@media (max-width: 900px) {
  .goto-top {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-visual {
    order: -1;
    justify-content: center;
    min-height: auto;
  }

  .story-visual img {
    height: auto;
    max-height: min(70vh, 520px);
    object-position: center center;
  }

  .tour-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery carousel: one slide on mobile */
  .gallery-viewport {
    padding: 1rem 0 0.5rem;
  }

  .gallery-track {
    gap: 0;
  }

  .gallery-card {
    flex: 0 0 100cqw;
    width: 100%;
    max-width: 100%;
  }

  .gallery-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.06);
  }

  .gallery-card:hover img {
    transform: none;
  }

  .gallery-card .zoom-icon {
    opacity: 1;
  }

  .gallery-dots {
    margin-top: 1rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tower-hero {
    padding-block: 2rem;
  }

  .tower-hero-content {
    position: relative;
    inset: auto;
    width: 92%;
    padding-block: 1.5rem 0;
  }

  .tower-hero-media img {
    max-width: min(420px, 88vw);
  }

  .tower-hero-card {
    max-width: 100%;
  }
}

/* ---------- Responsive: 600px ---------- */
@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }

  .tour-stage {
    aspect-ratio: 4 / 5;
  }

  .story-stats {
    gap: 1.25rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .amenity-item {
    padding: 1rem 0.5rem;
  }

  .lightbox-hint {
    display: none;
  }

  .modal-panel {
    padding: 2rem 1.25rem;
  }
}

/* ---------- Go to top (desktop) ---------- */
.goto-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 990;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(196, 165, 116, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.92);
  transition:
    opacity 0.4s var(--ease-out),
    visibility 0.4s,
    transform 0.4s var(--ease-out),
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.goto-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.goto-top:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 12px 36px rgba(196, 165, 116, 0.35);
}

.goto-top svg {
  display: block;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-brand,
  .hero-title,
  .hero-lead,
  .hero-cta,
  .scroll-hint {
    opacity: 1;
    animation: none;
  }

  .gallery-track {
    transition: none;
  }
}
