/* ==== قالب صفحه کسب‌وکار + تم‌ها ==== */
/* هر تم فقط متغیرهای رنگ را عوض می‌کند؛ ساختار یکی است. */

.tenant {
  --t-bg: #0f1226;
  --t-surface: #191d3a;
  --t-text: #f2f4ff;
  --t-muted: #a6adcf;
  --t-primary: #6c5ce7;
  --t-primary-2: #00d2ff;
  --t-on-primary: #ffffff;
  --t-radius: 20px;
  --t-shadow: 0 20px 50px rgba(0,0,0,.4);
}
/* --- تم‌های تیره --- */
.theme-sunrise  { --t-bg:#1a0f1e; --t-surface:#2a1626; --t-text:#fff5ef; --t-muted:#e0b7a8; --t-primary:#ff6a3d; --t-primary-2:#ffb020; }
.theme-ocean    { --t-bg:#071a2b; --t-surface:#0e2a44; --t-text:#eaf6ff; --t-muted:#9fc3dd; --t-primary:#0077ff; --t-primary-2:#00d2ff; }
.theme-midnight { --t-bg:#08080f; --t-surface:#15151f; --t-text:#f4f4f7; --t-muted:#9a9ab0; --t-primary:#b8933f; --t-primary-2:#e8c877; }
.theme-forest   { --t-bg:#0a1a12; --t-surface:#12281c; --t-text:#effcf3; --t-muted:#a5cbb2; --t-primary:#17b978; --t-primary-2:#8ee000; }
.theme-candy    { --t-bg:#170f26; --t-surface:#251638; --t-text:#fbf0ff; --t-muted:#cdb0e0; --t-primary:#c724b1; --t-primary-2:#7b2ff7; }
.theme-royal    { --t-bg:#120a26; --t-surface:#1e123f; --t-text:#f4efff; --t-muted:#bda9e6; --t-primary:#7b4bd6; --t-primary-2:#e0b64a; }
.theme-sunset   { --t-bg:#1c0d1a; --t-surface:#2c1226; --t-text:#fff0f4; --t-muted:#e6a9bd; --t-primary:#ff4d6d; --t-primary-2:#ff9e2c; }
.theme-neon     { --t-bg:#05070d; --t-surface:#0c1220; --t-text:#eafffb; --t-muted:#7fb8b0; --t-primary:#00ffc3; --t-primary-2:#00a3ff; }
.theme-coffee   { --t-bg:#1a120b; --t-surface:#271b10; --t-text:#f7efe6; --t-muted:#cbb49b; --t-primary:#b07d4f; --t-primary-2:#e0a866; }
/* زرشکی — فقط رنگ دکمه‌ها/تأکید عوض می‌شود؛ پس‌زمینه پیش‌فرض می‌ماند */
.theme-burgundy      { --t-primary:#420f0f; --t-primary-2:#7d1f1f; }
.theme-burgundy-gold { --t-primary:#420f0f; --t-primary-2:#b8912f; }

/* --- تم‌های روشن --- */
.theme-snow  { --t-bg:#f4f7ff; --t-surface:#ffffff; --t-text:#141a2e; --t-muted:#5c6885; --t-primary:#3b82f6; --t-primary-2:#06b6d4; --t-shadow:0 18px 40px rgba(40,60,120,.12); }
.theme-mint  { --t-bg:#f0fbf6; --t-surface:#ffffff; --t-text:#0f2a1e; --t-muted:#4d7a66; --t-primary:#10b981; --t-primary-2:#3bd6a0; --t-shadow:0 18px 40px rgba(20,120,80,.12); }
.theme-sand  { --t-bg:#fbf6ee; --t-surface:#ffffff; --t-text:#2c2113; --t-muted:#8a765a; --t-primary:#d19a4c; --t-primary-2:#e6b86a; --t-shadow:0 18px 40px rgba(150,110,50,.14); }

* { box-sizing: border-box; }
.tenant {
  margin: 0;
  font-family: 'IRANSans', "Segoe UI", Tahoma, sans-serif;
  background: var(--t-bg); color: var(--t-text); direction: rtl; line-height: 1.9;
  overflow-x: hidden;
}
.tenant a { color: inherit; text-decoration: none; }
.t-container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* --- هیرو --- */
.t-hero {
  position: relative; text-align: center; padding: 84px 20px 70px;
  background: radial-gradient(760px 420px at 50% -10%, color-mix(in srgb, var(--t-primary) 42%, transparent), transparent 70%), var(--t-bg);
  background-size: cover; background-position: center;
}
.t-hero-inner { position: relative; z-index: 2; }
.t-logo {
  width: 112px; height: 112px; border-radius: 28px; object-fit: cover; margin: 0 auto 22px;
  display: block; box-shadow: var(--t-shadow); border: 3px solid color-mix(in srgb, var(--t-primary) 55%, #fff);
}
.t-logo-text {
  display: grid; place-items: center; font-size: 48px; font-weight: 800; color: var(--t-on-primary);
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
}
.t-hero h1 { font-size: clamp(30px, 6vw, 46px); margin: 0 0 10px; }
.t-tagline { color: var(--t-muted); font-size: clamp(15px, 2.5vw, 19px); margin: 0 auto 28px; max-width: 620px; }
.t-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.t-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; color: var(--t-on-primary); border: 0; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--t-primary) 42%, transparent);
  transition: transform .15s;
}
.t-btn:hover { transform: translateY(-2px); }
.t-btn.ghost { background: transparent; color: var(--t-text); border: 1px solid color-mix(in srgb, var(--t-text) 25%, transparent); box-shadow: none; }

/* --- چیدمان spotlight: هیرو تمام‌قد و بزرگ --- */
.layout-spotlight .t-hero { padding: 130px 20px 110px; min-height: 78vh; display: grid; align-items: center; }
.layout-spotlight .t-hero h1 { font-size: clamp(36px, 8vw, 64px); }
.layout-spotlight .t-logo { width: 132px; height: 132px; }

/* --- چیدمان showcase: هیرو جمع‌وجور، محصولات بزرگ‌تر --- */
.layout-showcase .t-hero { padding: 60px 20px 46px; }
.layout-showcase .t-logo { width: 90px; height: 90px; margin-bottom: 16px; }
.layout-showcase .t-products { grid-template-columns: repeat(2, 1fr); }
.layout-showcase .t-product-img { height: 240px; }

/* --- بخش‌ها --- */
.t-section { padding: 60px 0; }
.t-section h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 30px; text-align: center; position: relative; }
.t-section h2::after {
  content: ""; display: block; width: 60px; height: 4px; margin: 12px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--t-primary), var(--t-primary-2));
}
.t-about { color: var(--t-muted); max-width: 720px; margin: 0 auto; text-align: center; font-size: 17px; }

/* --- آمار و دستاوردها --- */
.t-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t-stat {
  background: var(--t-surface); border-radius: var(--t-radius); padding: 26px 16px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent);
}
.t-stat .ico { font-size: 30px; margin-bottom: 8px; }
.t-stat .num {
  font-size: clamp(26px, 5vw, 40px); font-weight: 800; line-height: 1.2;
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-stat .lbl { color: var(--t-muted); font-size: 15px; margin-top: 4px; }

/* --- محصولات --- */
.t-products-section { background: color-mix(in srgb, var(--t-surface) 45%, transparent); }
.t-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-product {
  background: var(--t-surface); border-radius: var(--t-radius); overflow: hidden; display: block;
  border: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent);
  transition: transform .18s, box-shadow .18s;
}
.t-product:hover { transform: translateY(-4px); box-shadow: var(--t-shadow); }
.t-product-img { height: 190px; background-size: cover; background-position: center; }
.t-noimg { display: grid; place-items: center; font-size: 52px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--t-primary) 30%, var(--t-surface)), var(--t-surface)); }
.t-product-body { padding: 20px; }
.t-product-body h3 { margin: 0 0 8px; font-size: 19px; }
.t-product-body p { margin: 0 0 12px; color: var(--t-muted); font-size: 15px; }
.t-price {
  display: inline-block; font-weight: 800; color: var(--t-on-primary);
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
  padding: 6px 16px; border-radius: 999px; font-size: 15px;
}

/* --- گالری --- */
.t-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.t-gallery .g-item {
  position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center; border: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent);
  transition: transform .18s;
}
.t-gallery .g-item:hover { transform: scale(1.03); }
.t-gallery .g-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 8px 10px; font-size: 13px;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); color: #fff;
}
/* لایت‌باکس */
.t-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; place-items: center; z-index: 999; padding: 20px;
}
.t-lightbox.on { display: grid; }
.t-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.t-lightbox .close { position: fixed; top: 20px; left: 24px; font-size: 34px; color: #fff; cursor: pointer; }

/* --- نظرات مشتریان --- */
.t-testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-testi {
  background: var(--t-surface); border-radius: var(--t-radius); padding: 24px;
  border: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent);
}
.t-testi .stars { color: #ffb020; margin-bottom: 10px; letter-spacing: 2px; }
.t-testi .body { color: var(--t-muted); margin: 0 0 14px; }
.t-testi .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.t-testi .av {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--t-on-primary);
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
}

/* --- ساعات کاری --- */
.t-hours { max-width: 560px; margin: 0 auto; background: var(--t-surface); border-radius: var(--t-radius);
  padding: 10px 24px; border: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent); }
.t-hours .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--t-text) 7%, transparent); }
.t-hours .row:last-child { border-bottom: 0; }
.t-hours .day { font-weight: 600; }
.t-hours .time { color: var(--t-muted); direction: ltr; }

/* --- تماس + فرم پیام --- */
.t-contact { text-align: center; background: color-mix(in srgb, var(--t-surface) 45%, transparent); }
.t-socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 auto 8px; max-width: 640px; }
.t-social {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px;
  background: var(--t-surface); border: 1px solid color-mix(in srgb, var(--t-text) 10%, transparent);
  font-weight: 700; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.t-social:hover { transform: translateY(-2px); border-color: var(--t-primary); box-shadow: 0 10px 24px color-mix(in srgb, var(--t-primary) 20%, transparent); }
.t-social span { font-size: 20px; }
.t-address {
  color: var(--t-muted); margin: 16px auto 0; display: inline-block;
  background: var(--t-surface); padding: 10px 20px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent);
}

.t-lead {
  max-width: 580px; margin: 34px auto 0; background: var(--t-surface); border-radius: var(--t-radius);
  padding: 32px 30px; text-align: right;
  border: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent); box-shadow: var(--t-shadow);
}
.t-lead h3 { margin: 0 0 6px; text-align: center; font-size: 21px; }
.t-lead .sub { text-align: center; color: var(--t-muted); margin: 0 0 22px; font-size: 14px; }
.t-lead .fld { margin-bottom: 16px; }
.t-lead label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.t-lead input, .t-lead textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 15px;
  background: var(--t-bg); border: 1px solid color-mix(in srgb, var(--t-text) 15%, transparent); color: var(--t-text);
  transition: border-color .15s, box-shadow .15s;
}
.t-lead input:focus, .t-lead textarea:focus {
  outline: none; border-color: var(--t-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-primary) 22%, transparent);
}
.t-lead textarea { min-height: 96px; resize: vertical; }
.t-lead .t-btn { width: 100%; justify-content: center; margin-top: 4px; font-size: 17px; padding: 15px; }
.t-note {
  text-align: center; margin: 0 auto 18px; font-weight: 700; max-width: 560px;
  color: var(--t-on-primary); background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
  padding: 12px 18px; border-radius: 12px;
}

/* --- دکمه شناور واتساپ --- */
.t-fab {
  position: fixed; bottom: 22px; left: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.5);
  animation: fab-pulse 2.4s infinite;
}
@keyframes fab-pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 18px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* --- انیمیشن ظاهرشدن هنگام اسکرول --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- فوتر --- */
.t-footer { text-align: center; padding: 30px 20px; color: var(--t-muted);
  border-top: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent); }
.t-footer a { font-weight: 700; color: var(--t-text); }
.t-views { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; opacity: .8; }

@media (max-width: 900px) {
  .t-stats { grid-template-columns: repeat(2, 1fr); }
  .t-gallery { grid-template-columns: repeat(3, 1fr); }
  .t-products, .t-testis { grid-template-columns: 1fr 1fr; }
  .layout-showcase .t-products { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .t-products, .t-testis, .t-gallery { grid-template-columns: 1fr 1fr; }
  .t-products { grid-template-columns: 1fr; }
}

/* ============================================================
   ارتقای پریمیوم (فاز ۱) — هدر چسبان، سربخش‌ها، تماس دو‌ستونه
   ============================================================ */
html { scroll-behavior: smooth; }
#top, #products, #gallery, #contact { scroll-margin-top: 78px; }

/* --- هدر چسبان بالای صفحه --- */
.t-topbar {
  position: sticky; top: 0; z-index: 800;
  background: color-mix(in srgb, var(--t-bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--t-text) 8%, transparent);
}
.t-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.t-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.t-brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.t-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--t-on-primary); font-weight: 800;
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
}
.t-brand-name { white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.t-topnav { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--t-muted); }
.t-topnav a:hover { color: var(--t-text); }
.t-topcta {
  color: var(--t-on-primary) !important; padding: 9px 18px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--t-primary) 35%, transparent);
}
.t-topcta:hover { transform: translateY(-1px); }

/* --- سربخش حرفه‌ای (آی‌برو + عنوان) --- */
.t-head { text-align: center; margin-bottom: 36px; }
.t-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 3px;
  color: var(--t-primary); margin-bottom: 12px; padding: 5px 15px; border-radius: 999px;
  background: color-mix(in srgb, var(--t-primary) 13%, transparent);
}
.t-head h2 { margin: 0 !important; }

/* --- هیرو پریمیوم‌تر --- */
.t-hero { padding-top: 96px; padding-bottom: 88px; }
.t-hero h1 { font-weight: 800; letter-spacing: -.5px; }
.t-tagline { line-height: 1.8; }

/* --- ریتم بخش‌ها و کارت‌ها --- */
.t-section { padding: 74px 0; }
.t-product { border-radius: 18px; }
.t-product:hover {
  box-shadow: 0 24px 50px color-mix(in srgb, var(--t-primary) 20%, rgba(0,0,0,.45));
  border-color: color-mix(in srgb, var(--t-primary) 40%, transparent);
}
.t-product-body h3 { font-weight: 800; }

/* --- بخش تماس دو‌ستونه --- */
.t-contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start;
  max-width: 900px; margin: 0 auto; text-align: right;
}
.t-contact-info { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.t-contact .t-socials { flex-direction: column; align-items: stretch; max-width: none; margin: 0; }
.t-contact .t-social { justify-content: flex-start; }
.t-contact .t-address { margin: 0; text-align: right; }
.t-contact .t-lead { margin: 0; }

@media (max-width: 760px) {
  .t-topnav a:not(.t-topcta) { display: none; }
  .t-contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   قالب صنفی: فروشگاه (industry-shop)
   ============================================================ */
.t-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.t-product-foot .t-price { margin: 0; }
.t-order {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--t-on-primary); white-space: nowrap;
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--t-primary) 32%, transparent);
  transition: transform .15s;
}
.t-order:hover { transform: translateY(-2px); }

/* فروشگاه: ویترین منظم‌تر و کالا‌محور */
.industry-shop .t-products { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-shop .t-product-img { aspect-ratio: 4 / 3; height: auto; }
.industry-shop .t-product-body { padding: 18px; }
.industry-shop .t-product-body h3 { font-size: 17px; }
.industry-shop .t-price { font-size: 16px; }
/* در فروشگاه بخش محصولات کمی برجسته‌تر */
.industry-shop .t-products-section { border-top: 1px solid color-mix(in srgb, var(--t-primary) 18%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--t-primary) 18%, transparent); }

@media (max-width: 900px) { .industry-shop .t-products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .industry-shop .t-products { grid-template-columns: 1fr 1fr; } }
