/* Khayam Mall v4 — Industrial Editorial */

:root {
  --bg: #121212;
  --bg-band: #1a1a1a;
  --bg-amber: #2a1f0a;
  --surface: #222222;
  --text: #f0ebe3;
  --text-muted: #9a9088;
  --amber: #e67e22;
  --amber-bright: #f39c12;
  --amber-dim: #b35c00;
  --gold: #c9a227;
  --border: #333333;
  --sidebar-w: 260px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--sidebar-w);
  background: #0a0a0a; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 1.5rem 1.25rem; z-index: 100;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.brand-block {
  width: 48px; height: 48px; background: var(--amber);
  display: grid; place-items: center; font-weight: 900; font-size: 1.25rem; color: #000;
}
.sidebar-brand strong { display: block; font-size: clamp(0.72rem, 1.8vw, 0.88rem); line-height: 1.35; }
.sidebar-brand span { font-size: 0.7rem; color: var(--text-muted); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.sidebar-nav a {
  padding: 0.65rem 0.85rem; border-radius: 8px; font-size: 0.9rem;
  color: var(--text-muted); transition: background 0.2s, color 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--surface); color: var(--amber-bright); }
.sidebar-phones { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-phone {
  padding: 0.65rem 0.75rem; text-align: center;
  background: var(--amber-dim); color: #fff; border-radius: 8px; font-weight: 700;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.sidebar-phone .tel-label { font-size: 0.65rem; font-weight: 600; opacity: 0.9; }
.sidebar-phone .tel-num { font-size: 0.9rem; }
.sidebar-phone--office { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.cta-phones { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 0.5rem; }
.phone-ltr { direction: ltr; unicode-bidi: isolate; text-align: center; }

.content-shell { margin-right: var(--sidebar-w); flex: 1; min-width: 0; }
.fab-menu {
  display: none; position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber); color: #000; font-size: 1.25rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
}

.split-hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2.5rem;
}
.tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-copy h1 { margin: 0 0 1.25rem; line-height: 0.95; }
.hero-copy h1 .line { display: block; font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; }
.hero-copy h1 .outline {
  color: transparent; -webkit-text-stroke: 2px var(--amber);
}
.lead { color: var(--text-muted); max-width: 38ch; margin-bottom: 2rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-amber {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.75rem; background: var(--amber); color: #000;
  font-weight: 800; border-radius: 4px; transition: background 0.2s, transform 0.2s;
}
.btn-amber:hover { background: var(--amber-bright); transform: translateY(-2px); }
.btn-amber.large { font-size: 1.15rem; padding: 1rem 2.25rem; }
.btn-ghost {
  display: inline-flex; padding: 0.85rem 1.75rem;
  border: 2px solid var(--border); color: var(--text); border-radius: 4px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-bright); }

.hero-visual {
  position: relative; background: var(--bg-band);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 2rem;
  border-right: 1px solid var(--border);
}
.hero-photo-frame {
  width: 100%; max-width: 420px; border: 2px solid var(--amber-dim);
  border-radius: 4px; overflow: hidden; aspect-ratio: 16/10;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-scroll {
  display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}
.gallery-scroll img {
  flex: 0 0 260px; height: 180px; object-fit: cover;
  border: 1px solid var(--border); scroll-snap-align: start;
}
.gallery-credit { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }
.gallery-credit a { color: var(--amber-bright); }
.metric-stack { display: flex; flex-direction: column; gap: 1rem; z-index: 1; }
.metric {
  padding: 1.25rem 1.5rem; background: var(--surface);
  border-right: 4px solid var(--border); min-width: 200px;
}
.metric.highlight { border-right-color: var(--amber); background: var(--bg-amber); }
.metric span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.metric strong { display: block; font-size: 2.5rem; font-weight: 900; color: var(--amber-bright); line-height: 1.1; }
.metric small { font-size: 0.75rem; color: var(--text-muted); }
.grid-deco {
  position: absolute; inset: 0; opacity: 0.15;
  background-image:
    linear-gradient(var(--amber) 2px, transparent 2px),
    linear-gradient(90deg, var(--amber) 2px, transparent 2px);
  background-size: 80px 80px;
}

.band { position: relative; padding: 4rem 2.5rem; border-bottom: 1px solid var(--border); overflow: hidden; }
.band-cta .float-img { opacity: 0.28; }
.band-dark { background: var(--bg-band); }
.band-amber { background: var(--bg-amber); }
.band-cta { background: linear-gradient(135deg, #1a1208, #2a1f0a); text-align: center; }
.band-inner { max-width: 1100px; margin: 0 auto; }
.band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900;
  margin: 0 0 1.5rem; border-right: 4px solid var(--amber); padding-right: 1rem;
}
.cols-2 { display: grid; gap: 1.5rem; color: var(--text-muted); }
@media (min-width: 768px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); }
.spec-grid article {
  background: var(--bg); padding: 1.5rem;
  transition: background 0.25s;
}
.spec-grid article:hover { background: var(--surface); }
.spec-grid .num { font-size: 0.75rem; font-weight: 800; color: var(--amber); letter-spacing: 0.1em; }
.spec-grid h3 { margin: 0.5rem 0; font-size: 1rem; }
.spec-grid p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.floor-table { border: 1px solid var(--border); margin-bottom: 1.5rem; }
.floor-row {
  display: grid; grid-template-columns: 1fr 80px 2fr; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.floor-row:last-child { border-bottom: none; }
.floor-row.head { background: rgba(0,0,0,0.3); font-weight: 700; color: var(--amber); }
.floor-row span:nth-child(2) { font-weight: 900; color: var(--amber-bright); font-size: 1.25rem; }
.product-line { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-line span {
  padding: 0.4rem 0.9rem; border: 1px solid var(--amber-dim);
  font-size: 0.82rem; color: var(--text-muted);
}

.access-split { display: grid; gap: 2rem; }
@media (min-width: 768px) { .access-split { grid-template-columns: 1fr 1.2fr; } }
.route { margin: 0; padding-right: 1.25rem; color: var(--text-muted); line-height: 2.2; }
.map-box { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }

.cta-center h2 { border: none; padding: 0; }
.cta-center p { color: var(--text-muted); }
.cta-center .meta { margin-top: 1.25rem; font-size: 0.85rem; }

.page-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 2.5rem; font-size: 0.82rem; color: var(--text-muted);
}
.page-footer a { color: var(--amber); }

@media (max-width: 900px) {
  .sidebar {
    translate: 100% 0;
    transition: translate 0.3s ease, visibility 0.3s;
    visibility: hidden;
    pointer-events: none;
  }
  .sidebar.is-open {
    translate: 0 0;
    visibility: visible;
    pointer-events: auto;
  }
  .content-shell { margin-right: 0; }
  .fab-menu { display: grid; place-items: center; }
  .split-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 2.5rem 1.25rem; }
  .hero-visual { min-height: 300px; border-right: none; border-top: 1px solid var(--border); padding: 1.25rem; }
  .metric-stack { width: 100%; max-width: 280px; }
  .metric strong { font-size: 2rem; }
  .band { padding: 3rem 1.25rem; }
  .floor-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .floor-row.head { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-amber, .hero-actions .btn-ghost { width: 100%; min-height: 48px; }
  .page-footer { padding: 1.25rem; flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .hero-copy h1 .line { font-size: clamp(2.5rem, 14vw, 3.5rem); }
  .lead { font-size: 0.95rem; }
  .hero-photo-frame { max-width: 100%; }
  .spec-grid { grid-template-columns: 1fr; }
  .gallery-scroll img { flex: 0 0 220px; height: 150px; }
  .band-inner h2 { font-size: 1.35rem; }
  .cta-center .btn-amber.large { width: 100%; max-width: 300px; }
}

@media (max-width: 380px) {
  .tag { font-size: 0.68rem; }
  .fab-menu { width: 48px; height: 48px; bottom: 1rem; left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
