/* =========================================================
   انبار عمومی کالا فرقانی — استایل اصلی
   ========================================================= */

/* ---------- متغیرها و تم‌ها ---------- */
:root {
  --font: "Vazirmatn", Vazir, Tahoma, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* حالت شب (پیش‌فرض) */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090e1a;
  --bg-alt: #0d1424;
  --surface: #121a2d;
  --surface-2: #18223a;
  --line: rgba(226, 181, 76, .2);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f4efe4;
  --muted: #9aa3b6;
  --gold: #e2b54c;
  --gold-light: #f7dc90;
  --gold-deep: #b88a2c;
  --gold-text: #ecc463;
  --on-gold: #1a1305;
  --glow: rgba(226, 181, 76, .14);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --header-bg: rgba(9, 14, 26, .78);
  --grid-line: rgba(255, 255, 255, .04);
}

/* حالت روز */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f5ee;
  --bg-alt: #f0eadd;
  --surface: #ffffff;
  --surface-2: #fcfaf5;
  --line: rgba(168, 122, 20, .22);
  --line-soft: rgba(17, 26, 46, .08);
  --text: #111a2e;
  --muted: #586174;
  --gold: #c9972a;
  --gold-light: #ebc767;
  --gold-deep: #9c7314;
  --gold-text: #946a0b;
  --on-gold: #1a1305;
  --glow: rgba(201, 151, 42, .13);
  --shadow: 0 24px 50px -28px rgba(17, 26, 46, .3);
  --header-bg: rgba(248, 245, 238, .82);
  --grid-line: rgba(17, 26, 46, .05);
}

:root {
  --gold-grad: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
}

/* ---------- پایه ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, .88rem + .2vw, 17px);
  line-height: 1.9;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .4s, color .4s;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.5; }
::selection { background: var(--gold); color: var(--on-gold); }

.i {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(var(--container), 100% - 3rem); } }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.skip-link {
  position: absolute; top: -100px; right: 1rem; z-index: 100;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--gold); color: var(--on-gold); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* متن طلایی براق */
.gold-text {
  background: linear-gradient(110deg, var(--gold-deep) 0%, var(--gold) 22%, var(--gold-light) 40%, var(--gold) 60%, var(--gold-deep) 80%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }

/* ---------- دکمه‌ها ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, color .25s, background-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: .8rem 2rem; font-size: 1.1rem; }

.btn-gold {
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: 0 10px 28px -12px var(--gold);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-gold:hover { box-shadow: 0 16px 36px -12px var(--gold); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost {
  border: 1.5px solid var(--line);
  background: var(--glow);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-text); }
.icon-btn:active { transform: scale(.94); }

/* ---------- هدر ---------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.header.scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line-soft);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .5);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.brand-text small {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .03em;
  line-height: 1.3;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
}

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-call { display: none; }

/* آیکن‌های تغییر تم */
.theme-toggle .i { position: absolute; transition: transform .5s var(--ease), opacity .3s; }
[data-theme="dark"] .theme-toggle .i-moon,
[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle .i-sun { color: var(--gold-text); }

/* دکمه منو */
.menu-toggle .i { position: absolute; transition: transform .35s var(--ease), opacity .25s; }
.menu-toggle .i-close { opacity: 0; transform: rotate(-90deg); }
.menu-toggle[aria-expanded="true"] .i-open { opacity: 0; transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .i-close { opacity: 1; transform: none; }

/* منو - موبایل */
.nav {
  position: fixed;
  top: calc(var(--header-h) + 6px);
  inset-inline: 12px;
  max-height: calc(100vh - var(--header-h) - 24px);
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow-y: auto;
  padding: .75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(.98);
  transform-origin: top center;
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.nav.open { opacity: 1; visibility: visible; transform: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.nav a:not(.btn) {
  display: block;
  padding: .8rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav a:not(.btn):hover,
.nav a.active { color: var(--gold-text); background: var(--glow); }
.nav-call { width: 100%; margin-top: .75rem; }

@media (min-width: 768px) {
  .header-call { display: inline-flex; }
}

/* منو - دسکتاپ */
@media (min-width: 1100px) {
  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav ul { flex-direction: row; gap: .15rem; }
  .nav a:not(.btn) { padding: .45rem .85rem; font-size: .95rem; }
  .nav-call, .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 15%, var(--glow), transparent 40%),
    radial-gradient(circle at 10% 85%, var(--glow), transparent 40%);
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glow);
  color: var(--gold-text);
  font-weight: 700;
  font-size: .88rem;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 181, 76, .55); }
  70% { box-shadow: 0 0 0 10px rgba(226, 181, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 181, 76, 0); }
}

.hero h1 {
  margin: 1.1rem 0 1rem;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.4;
}
.brand-word {
  display: block;
  padding-bottom: .1em;
  font-size: clamp(3.4rem, 2rem + 7vw, 6.4rem);
  line-height: 1.3;
  filter: drop-shadow(0 8px 24px var(--glow));
}
.lead {
  margin: 0 0 2rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-badges {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
}
.hero-badges li { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .92rem; }
.hero-badges .i { color: var(--gold-text); }

.hero-media { position: relative; width: min(100%, 470px); margin-inline: auto; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 16px 16px -14px -14px;
  z-index: -1;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius-lg) + 4px);
  opacity: .45;
}
.hero-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 14, 26, .7), transparent 45%);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .9rem;
  border-radius: 16px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: var(--on-gold);
}
.float-card strong { display: block; font-size: .92rem; line-height: 1.5; }
.float-card small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.fc-1 { top: 14px; right: 14px; }
.fc-2 { bottom: 14px; left: 14px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (min-width: 576px) {
  .hero-frame { aspect-ratio: 4 / 5; }
}
@media (min-width: 992px) {
  .hero { padding: calc(var(--header-h) + 3.5rem) 0 4.5rem; min-height: min(100vh, 920px); display: flex; align-items: center; }
  .hero > .container { width: min(var(--container), 100% - 3rem); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}
@media (min-width: 1200px) {
  .fc-1 { top: 10%; right: -34px; }
  .fc-2 { bottom: 12%; left: -34px; }
}

/* ---------- آمار ---------- */
.stats { padding-bottom: clamp(2rem, 1rem + 4vw, 4rem); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem .75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .3s var(--ease);
}
.stat:hover { border-color: var(--line); transform: translateY(-4px); }
.stat-ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: .6rem;
  border-radius: 14px;
  background: var(--glow);
  color: var(--gold-text);
}
.stat-num { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 900; line-height: 1.3; }
.stat-label { color: var(--muted); font-size: .9rem; }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .stat { padding: 1.75rem 1rem; }
}

/* ---------- بخش‌ها ---------- */
.section { position: relative; padding: clamp(4rem, 2.8rem + 5vw, 7rem) 0; }
.section.alt { background: var(--bg-alt); transition: background-color .4s; }

.section-head { max-width: 680px; margin: 0 auto clamp(2.25rem, 1.5rem + 2vw, 3.5rem); text-align: center; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
  color: var(--gold-text);
  font-weight: 800;
  font-size: .92rem;
}
.section-tag::before,
.section-tag::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-grad);
}
.section-title { margin: 0 0 .9rem; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 900; }
.section-desc { margin: 0; color: var(--muted); }

/* ---------- درباره ما ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  bottom: -18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 1rem .55rem 1.2rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  direction: ltr;
}
.about-badge .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: var(--on-gold);
}
.about-badge strong { display: block; font-size: .95rem; line-height: 1.3; }
.about-badge small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }

.about-text .section-tag::after { display: none; }
.about-text p { color: var(--muted); margin: 0 0 1.5rem; }
.checks {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.checks li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.check {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glow);
  border: 1px solid var(--line);
  color: var(--gold-text);
}
.check .i { width: 15px; height: 15px; stroke-width: 2.6; }

@media (min-width: 576px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- کارت خدمات ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-num {
  position: absolute;
  top: .9rem;
  left: 1.3rem;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line);
}
.card-ic {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  background: var(--glow);
  border: 1px solid var(--line);
  color: var(--gold-text);
  transition: transform .4s var(--ease), background .4s, color .4s;
}
.card-ic .i { width: 28px; height: 28px; }
.card:hover .card-ic { background: var(--gold-grad); color: var(--on-gold); transform: rotate(-6deg) scale(1.05); }
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- انواع انبارداری ---------- */
.types {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.type-card {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.type-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(.25);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.type-card:hover::before { transform: scaleX(1); }
.type-bg {
  position: absolute;
  left: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  stroke-width: 1;
  color: var(--gold);
  opacity: .08;
  transition: transform .8s var(--ease);
}
.type-card:hover .type-bg { transform: rotate(-12deg) scale(1.08); }
.type-ic {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 20px;
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: 0 12px 28px -12px var(--gold);
}
.type-ic .i { width: 30px; height: 30px; }
.type-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 800; }
.type-card > p { margin: 0 0 1.25rem; color: var(--muted); font-size: .95rem; }
.type-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; position: relative; }
.type-list li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; font-weight: 600; }
.type-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--glow);
}

/* ---------- روند کار ---------- */
.steps {
  --ring: var(--bg-alt);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: 27px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--line));
}
.step { position: relative; display: flex; align-items: flex-start; gap: 1.1rem; }
.step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
  color: var(--gold-text);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 0 0 6px var(--ring);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.step:hover .step-num { background: var(--gold-grad); color: var(--on-gold); transform: scale(1.08); }
.step h3 { margin: .5rem 0 .3rem; font-size: 1.1rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

@media (min-width: 992px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps::before {
    top: 27px;
    bottom: auto;
    right: 12.5%;
    left: 12.5%;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--line), var(--gold), var(--line));
  }
  .step { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- سؤالات متداول ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .3s;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: .9rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.plus {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--glow);
  transition: transform .35s var(--ease), background .3s;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-text);
  transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--gold); }
.faq details[open] .plus::before,
.faq details[open] .plus::after { background: var(--on-gold); }
.faq details p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-wrap { padding-bottom: clamp(4rem, 2.8rem + 5vw, 7rem); }
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(226, 181, 76, .22), transparent 45%),
    linear-gradient(135deg, #131d36, #090e1a);
  border: 1px solid rgba(226, 181, 76, .3);
  color: #f4efe4;
  box-shadow: var(--shadow);
}
.cta-logo {
  position: absolute;
  left: -40px;
  bottom: -40px;
  z-index: -1;
  width: 220px;
  opacity: .14;
  border-radius: 40px;
  transform: rotate(-12deg);
}
.cta h2 { margin: 0 0 .4rem; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 900; }
.cta p { margin: 0; color: #b6bdcc; }
.cta { --gold: #e2b54c; --gold-light: #f7dc90; --gold-deep: #b88a2c; }
.cta .btn-gold { background: linear-gradient(135deg, #f7dc90 0%, #e2b54c 45%, #b88a2c 100%); }

@media (min-width: 768px) {
  .cta { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- تماس ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
.phones {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.phone-card,
.info-list a,
.info-list address {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.phone-card:hover,
.info-list a:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.phone-card .ic,
.info-list .ic {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gold-grad);
  color: var(--on-gold);
}
.info-list .ic { background: var(--glow); color: var(--gold-text); border: 1px solid var(--line); }
.phone-card small,
.info-list small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.phone-card strong { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.5; letter-spacing: .02em; }
.info-list strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.5; word-break: break-word; }

.info-list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .9rem; }

.contact-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
  .contact-media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- فوتر ---------- */
.footer {
  padding: 3.5rem 0 calc(6rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.footer-grid { display: grid; gap: 2.25rem; }
.footer-about p { margin: 1rem 0 1.25rem; color: var(--muted); font-size: .95rem; max-width: 40ch; }
.socials { display: flex; gap: .5rem; }
.footer-title { margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 800; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--muted); }
address { font-style: normal; }
.footer-links a { color: var(--muted); transition: color .25s; }
.footer-links a:hover { color: var(--gold-text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .85rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer { padding-bottom: 1.5rem; }
}

/* ---------- دکمه شناور تماس ---------- */
.fab {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
}
.fab-btn {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: 0 12px 30px -8px var(--gold);
}
.fab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 2.2s infinite;
}
.fab-btn .i { position: absolute; width: 24px; height: 24px; transition: transform .35s var(--ease), opacity .25s; }
.fab-btn .i-close { opacity: 0; transform: rotate(-90deg); }
.fab.open .fab-btn .i-open { opacity: 0; transform: rotate(90deg); }
.fab.open .fab-btn .i-close { opacity: 1; transform: none; }
.fab.open .fab-btn::before { animation: none; }

.fab-menu {
  position: absolute;
  left: 0;
  bottom: 70px;
  display: grid;
  gap: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.fab.open .fab-menu { opacity: 1; visibility: visible; transform: none; }
.fab-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
  white-space: nowrap;
  direction: ltr;
}
.fab-menu .i { color: var(--gold-text); }

@media (min-width: 1100px) { .fab { display: none; } }

/* ---------- بازگشت به بالا ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 55;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gold-text);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, border-color .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); }

/* ---------- انیمیشن ظاهر شدن ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* انتقال نرم رنگ‌ها هنگام تغییر تم (وقتی View Transition پشتیبانی نشود) */
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition: background-color .4s, border-color .4s, color .4s, fill .4s, stroke .4s !important;
}

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- صفحه‌های خیلی کوچک ---------- */
@media (max-width: 380px) {
  .brand-text small { display: none; }
  .brand img { width: 42px; height: 42px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { padding: .5rem .7rem; }
  .float-card .ic { width: 34px; height: 34px; }
  .phone-card strong { font-size: 1.1rem; }
}

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
