/* GYMINFO — طراحی اپل: شیشه‌ای (Glassmorphism)، گرادیانت‌های نرم، لبه‌های گرد، فاصله‌های سخاوتمند */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #f5f5f7;                 /* خاکستری امضای اپل */
  --ink: #1d1d1f;                /* مشکی نرم */
  --ink-2: #6e6e73;
  --hairline: rgba(0,0,0,.08);   /* خطوط مویی */
  --accent: #ffcc00;             /* یادگار زرد جیم‌اینفو */
  --accent-deep: #b07e00;
  --glass: rgba(255,255,255,.62);
  --glass-strong: rgba(255,255,255,.8);
  --glass-border: rgba(255,255,255,.65);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --header-h: 60px;
  --shadow-soft: 0 12px 40px rgba(0,0,0,.08);
  --shadow-lift: 0 24px 60px rgba(0,0,0,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button, input, optgroup, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .88rem;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
}
.h-display { font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; margin: .6rem 0 .4rem; }
.sub { color: var(--ink-2); font-size: 1.02rem; line-height: 1.95; }

/* ----------دکمه‌ها: قرصی، شیشه‌ای ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .98rem;
  padding: .8rem 1.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(29,29,31,.25); transform: translateY(-1px); }
.btn-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
}
.btn-glass:hover { background: var(--glass-strong); box-shadow: var(--shadow-soft); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { box-shadow: 0 14px 30px rgba(255,204,0,.4); transform: translateY(-1px); }
.btn-link { color: #0071e3; font-weight: 700; padding: .4rem 0; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: .55rem 1.25rem; font-size: .9rem; }

/* ----------هدر شیشه‌ای ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--hairline);
}
.site-header.scrolled { background: rgba(255,255,255,.78); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #ffe34f, #f4b400);
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.05rem; color: var(--ink);
  box-shadow: 0 4px 14px rgba(255,204,0,.45);
}
.logo-word { font-weight: 800; font-size: 1.12rem; }
.logo-word span { color: var(--ink-2); font-weight: 600; }
.main-nav ul { display: flex; gap: 1.5rem; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.main-nav a { padding: .3rem 0; transition: color .15s; }
.main-nav a:hover { color: var(--ink); }
.header-cta { display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 4px; }

/* ----------نوار اطلاع شیشه‌ای ---------- */
.promobar {
  margin: 10px auto 0; max-width: 640px; width: calc(100% - 44px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  padding: .55rem 2.6rem; text-align: center; position: relative;
  font-weight: 600; font-size: .9rem; color: var(--ink-2);
  box-shadow: 0 8px 26px rgba(0,0,0,.06);
}
.promobar a { color: #0071e3; }
.promobar .close {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(0,0,0,.05); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; font-size: .75rem; line-height: 1; color: var(--ink-2);
}

/* ----------هیرو: گرادیانت مِش + شیشه ---------- */
.hero { position: relative; padding: 5.5rem 0 6rem; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  pointer-events: none; z-index: 0;
}
.blob.b1 { width: 480px; height: 480px; background: radial-gradient(circle, #ffe36e, transparent 70%); top: -160px; right: -120px; }
.blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, #a8d8ff, transparent 70%); bottom: -140px; left: -100px; }
.blob.b3 { width: 340px; height: 340px; background: radial-gradient(circle, #ffc1d8, transparent 70%); top: 30%; left: 40%; opacity: .4; }
.hero-in { position: relative; z-index: 2; max-width: 720px; text-align: center; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  font-weight: 900; line-height: 1.4;
  margin: 1.1rem 0 1.3rem;
  letter-spacing: -.015em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #ffb100, #ffcc00 40%, #7cc2ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.18rem; line-height: 2; color: var(--ink-2); max-width: 36rem; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* جستجوی سریع شیشه‌ای */
.quick-search {
  position: relative; z-index: 2;
  margin: 2.6rem auto 0; max-width: 640px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--radius-pill);
  display: grid; grid-template-columns: 1fr 1.2fr auto;
  align-items: stretch;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.quick-search select, .quick-search input {
  border: 0; outline: none; padding: 1rem 1.4rem;
  font: inherit; font-weight: 600; background: transparent; color: var(--ink);
}
.quick-search input { border-right: 1px solid var(--hairline); }
.quick-search .btn { border-radius: var(--radius-pill); }
@media (max-width: 640px) {
  .quick-search { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .quick-search input { border-right: 0; border-top: 1px solid var(--hairline); }
}

/* ----------اعداد، در کارت شرکت ---------- */
.usp { padding: 3.5rem 0 5.5rem; }
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 860px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
.usp-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.usp-num { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.1; }
.usp-label { color: var(--ink-2); margin-top: .45rem; font-size: .92rem; font-weight: 500; }

/* ----------بخش معرفی (کارت بزرگ شیشه‌ای) ---------- */
.band { padding: 2.5rem 0 1rem; }
.band-card {
  position: relative; overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255,236,140,.55), rgba(168,216,255,.45) 60%, rgba(255,193,216,.4));
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3.5rem 2.5rem; text-align: center;
  box-shadow: var(--shadow-soft);
}
.band-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 85% 110%, rgba(255,255,255,.5), transparent 60%);
}
.band-card h2 {
  position: relative; z-index: 2;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.5;
  max-width: 46rem; margin: .7rem auto 1.6rem;
}

/* ----------کارت‌های باشگاه ---------- */
.gyms { padding: 5.5rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.gym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 960px) { .gym-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .gym-grid { grid-template-columns: 1fr; } }
.gym-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 44px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gym-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.gym-media {
  height: 190px; position: relative; overflow: hidden;
  background:
    radial-gradient(130% 140% at 15% 115%, rgba(255,224,110,.75), transparent 55%),
    radial-gradient(120% 140% at 100% 90%, rgba(150,205,255,.8), transparent 60%),
    linear-gradient(160deg, #dfe4ea, #cfd5db);
}
.gym-media img {
  width: 100%; height: 100%; object-fit: cover; display: none;
}
.gym-media img[src]:not([src=""]) { display: block; }
.gym-media .tag {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink); font-weight: 700; font-size: .8rem;
  padding: .35rem .8rem; border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.gym-media .city {
  position: absolute; bottom: 14px; right: 14px;
  color: #fff; font-weight: 700; font-size: .9rem;
  padding: .35rem .8rem; border-radius: var(--radius-pill);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cover-disclaimer {
  display: block;
  margin: 0;
  padding: 9px 14px;
  border-radius: 0;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}
[data-theme="dark"] .cover-disclaimer {
  background: var(--surface);
  border-top-color: var(--hairline);
}
.cover-disclaimer--card {
  position: absolute;
  bottom: 14px;
  left: 14px;
  margin: 0;
  max-width: calc(100% - 28px);
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .55);
  border: none;
  color: #fff;
}
.generic-note {
  margin: 0;
  padding: 7px 14px;
  background: rgba(255, 204, 0, .14);
  border-bottom: 1px solid rgba(255, 204, 0, .28);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.6;
}
[data-theme="dark"] .generic-note {
  background: rgba(255, 204, 0, .1);
  border-color: rgba(255, 204, 0, .22);
  color: var(--ink);
}
.gym-body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.gym-name { font-weight: 800; font-size: 1.18rem; }
.gym-city-row { color: var(--ink-2); font-size: .92rem; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  background: rgba(29,29,31,.055);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: .8rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
}
.gym-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: #0071e3;
}
.gym-link .arrow {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,113,227,.1); color: #0071e3;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  transition: transform .2s;
}
.gym-card:hover .gym-link .arrow { transform: translateX(-4px); }

/* ----------نحوه کار ---------- */
.steps { padding: 1rem 0 5.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.step .n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, #ffe36e, #f4b400);
  font-weight: 900; font-size: 1.2rem; color: var(--ink);
  box-shadow: 0 6px 16px rgba(255,204,0,.35);
}
.step h3 { font-weight: 800; margin: .9rem 0 .4rem; font-size: 1.08rem; }
.step p { color: var(--ink-2); line-height: 1.9; font-size: .93rem; }

/* ----------CTA ---------- */
.cta-band { padding: 0 0 6.5rem; }
.cta-card {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 3.2rem 2.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
}
.cta-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.5; }
.cta-card .sub { font-size: .98rem; }

/* ----------فوتر روشن اپلی ---------- */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--hairline);
  padding: 2.8rem 0 2.2rem;
  color: var(--ink-2); font-size: .88rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink); font-weight: 700; margin-bottom: .8rem; font-size: .95rem; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a:hover { color: #0071e3; }
.footer-logo { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.footer-logo .logo-word span { color: var(--ink-2); }
.footer-note {
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}

/* ----------موبایل ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); right: 0; left: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--hairline);
    padding: .5rem 1.4rem 1.2rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--hairline); }
  .main-nav a { display: block; padding: .85rem 0; font-size: 1.02rem; color: var(--ink); }
  .header-cta .btn-glass { display: none; }
  .hero { padding-top: 4rem; }
}

/* فشرده‌سازی هدر در موبایل تا لوگو زیر دکمهٔ ثبت نرود */
@media (max-width: 640px) {
  .header-in { gap: .45rem; }
  .header-cta { gap: .4rem; }
  .header-cta .btn { padding: .55rem .8rem; font-size: .82rem; }
  .logo { gap: .4rem; min-width: 0; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
  .logo-word { font-size: 1rem; }
  .nav-toggle { padding: .3rem; }
}
@media (max-width: 360px) {
  .logo-word { display: none; }
}

/* حرکت نرم ورود (سبک اپل) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}
