/* مخزن IBC — استایل اصلی سایت
   توکن‌های رنگ و تایپوگرافی مطابق فایل‌های طراحی (design_handoff_ibc_makhzan_site/README.md) */

:root{
  --brand: oklch(0.55 0.16 250);
  --brand-hover: oklch(0.42 0.16 250);
  --bg: oklch(0.99 0.003 250);
  --bg-secondary: oklch(0.96 0.02 250);
  --bg-badge: oklch(0.94 0.03 250);
  --text: oklch(0.22 0.02 260);
  --text-secondary: oklch(0.4 0.02 260);
  --text-secondary-2: oklch(0.45 0.02 260);
  --text-muted: oklch(0.5 0.02 260);
  --border: oklch(0.9 0.01 260);
  --border-2: oklch(0.93 0.01 260);
  --dark-bg: oklch(0.14 0.02 260);
  --dark-bg-2: oklch(0.16 0.02 260);
  --dark-card: oklch(0.22 0.02 260);
  --dark-card-2: oklch(0.3 0.02 260);
  --accent-warm: oklch(0.7 0.15 70);
  --font-main: 'Vazirmatn', sans-serif;
}

html{ scroll-behavior:smooth; }

/* ===== Icon system (see /assets/icons.svg) ===== */
.icon{
  display:inline-block;
  vertical-align:middle;
  flex-shrink:0;
}

body{
  font-family: var(--font-main);
  direction: rtl;
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--brand); text-decoration:none; }
a:hover{ color: var(--brand-hover); }

h1,h2,h3,h4,h5,h6{ font-weight:800; }

p{ color: var(--text-secondary-2); }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.site-header .navbar-brand{
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.site-header .navbar-brand span{ color: var(--brand); }
.main-nav{
  display:flex;
  gap: 28px;
  font-size: 15px;
  color: oklch(0.35 0.02 260);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a{ color: inherit; }
.main-nav .active a{
  color: var(--brand);
  font-weight: 700;
}
.btn-call{
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.btn-call:hover{ background: var(--brand-hover); color:#fff; }

.nav-toggle-btn{
  display:none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
}
.btn-call .icon{ margin-inline-end:8px; }
@media (max-width: 991.98px){
  .nav-toggle-btn{ display:inline-flex; align-items:center; justify-content:center; }
  .main-nav{
    display:none;
    flex-direction: column;
    gap: 14px;
    width:100%;
    padding: 16px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
  }
  .main-nav.open{ display:flex; }
  .header-inner{ flex-wrap: wrap; }
}

/* ===== Breadcrumb ===== */
.breadcrumb-bar{
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-bar a{ color: inherit; }
.breadcrumb-bar a:hover{ color: var(--brand); }

/* ===== Buttons ===== */
.btn-brand{
  background: var(--brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  display: inline-block;
}
.btn-brand:hover{ background: var(--brand-hover); color:#fff; }
.btn-outline-brand{
  background: #fff;
  border: 1.5px solid oklch(0.85 0.01 260);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}
.btn-outline-brand:hover{ background: var(--bg-secondary); color: var(--text); }
.btn-soft{
  background: var(--bg-secondary);
  color: var(--text);
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  display:block;
}
.btn-soft:hover{ background: var(--bg-badge); color: var(--text); }

/* ===== Hero ===== */
.hero-badge{
  display:inline-block;
  background: var(--bg-badge);
  color: var(--brand-hover);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-media, .placeholder-media{
  background: repeating-linear-gradient(45deg, oklch(0.94 0.02 250), oklch(0.94 0.02 250) 10px, oklch(0.97 0.01 250) 10px, oklch(0.97 0.01 250) 20px);
  border-radius: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 12px;
  text-align:center;
  padding: 16px;
}
.media-photo{ width:100%; height:100%; object-fit:cover; display:block; }
.page-hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* Product/karbord page hero image with dark gradient + title overlay */
.page-hero{
  position: relative;
  height: 360px;
  background: repeating-linear-gradient(45deg, oklch(0.94 0.02 250), oklch(0.94 0.02 250) 12px, oklch(0.97 0.01 250) 12px, oklch(0.97 0.01 250) 24px);
  display:flex;
  align-items:flex-end;
}
.page-hero-caption{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color: oklch(0.55 0.02 260);
  font-family: monospace;
  font-size: 12px;
  text-align:center;
  padding: 16px;
}
.page-hero-overlay{
  position: relative;
  width:100%;
  background: linear-gradient(0deg, oklch(0.14 0.02 260 / 0.82), transparent);
  padding: 60px 0 24px;
}
.page-hero-overlay .breadcrumb-bar{ color: oklch(0.85 0.01 260); }
.page-hero-overlay h1{ color:#fff; margin:0; font-size: 32px; }

/* ===== Cards ===== */
.icon-badge{
  width:48px; height:48px; border-radius:12px;
  background: var(--bg-badge);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.card-simple{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:28px;
  display:block;
  height:100%;
}
.card-simple:hover{ border-color: var(--brand); }
.card-simple .card-title{
  font-size:18px; font-weight:700; color:var(--text); margin-bottom:8px;
}
.card-simple .card-text{
  font-size:14px; color: var(--text-secondary-2); line-height:1.7;
}

/* Products catalog grid */
.product-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
}
.product-card:hover{ border-color: var(--brand); }
.product-card .placeholder-media{ height:200px; border-radius:0; }
.product-card .product-card-body{ padding:24px; flex:1; display:flex; flex-direction:column; }
.product-card .icon-badge{ margin-bottom:14px; }
.product-card .product-card-title{ font-size:18px; font-weight:700; color:var(--text); margin-bottom:8px; }
.product-card .product-card-text{ font-size:14px; color:var(--text-secondary-2); line-height:1.8; }

.spec-card{
  position: sticky;
  top: 96px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
}
.spec-row{
  display:flex; justify-content:space-between;
  padding:11px 0; border-bottom:1px solid var(--border-2);
  font-size:13.5px;
}
.spec-row:last-child{ border-bottom:none; }
.spec-row span:first-child{ color: var(--text-muted); }
.spec-row span:last-child{ font-weight:600; }

.why-box{
  background: var(--bg-secondary);
  border-radius:14px;
  padding:24px;
}
.why-box .why-item{
  display:flex; align-items:flex-start; gap:8px;
  font-size:14px; color: var(--text-secondary); line-height:1.8;
}
.why-box .why-item .icon{ color: var(--brand); margin-top:3px; }

.faq-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:22px 26px;
}
.faq-card .faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  font-weight:700; margin-bottom:8px; cursor:pointer;
}
.faq-card .faq-q .icon{ color: var(--text-muted); transition: transform .18s ease; }
.faq-card .faq-q.open .icon{ transform: rotate(180deg); }
.faq-card .faq-a{ font-size:14px; color: var(--text-secondary-2); line-height:1.8; }

/* Home FAQ (no border version) */
.faq-flat{
  background:#fff; border-radius:12px; padding:20px 24px;
}

/* ===== Dark sections (karbord home block, footer) ===== */
.section-dark{
  background: var(--dark-bg-2);
}
.karbord-card{
  background: var(--dark-card);
  border-radius:14px;
  padding:24px;
  color:#fff;
  display:block;
  height:100%;
}
.karbord-card:hover{ background: var(--dark-card-2); }
.karbord-card .icon-circle{
  width:34px; height:34px; border-radius:50%;
  background: var(--dark-card-2);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.karbord-card .kb-title{ font-weight:700; margin-bottom:8px; }
.karbord-card .kb-text{ font-size:13px; color: oklch(0.75 0.01 260); line-height:1.7; }

/* ===== Site footer ===== */
.site-footer{
  background: var(--dark-bg);
  color: oklch(0.75 0.01 260);
  padding: 56px 0 32px;
}
.site-footer.footer-simple{ padding: 40px 0; }
.site-footer a{ color: inherit; }
.site-footer a:hover{ color:#fff; }
.footer-brand{ font-size:20px; font-weight:800; color:#fff; margin-bottom:12px; }
.footer-col-title{ font-weight:700; color:#fff; margin-bottom:14px; }
.footer-links{ display:flex; flex-direction:column; gap:10px; font-size:14px; }
.footer-bottom{
  max-width:1280px; margin:40px auto 0; border-top:1px solid oklch(0.25 0.01 260);
  padding-top:20px; font-size:13px;
}

/* ===== Trust bar / numbered list ===== */
.trust-icon{
  width:40px; height:40px; border-radius:50%;
  background: var(--bg-badge);
  display:flex; align-items:center; justify-content:center;
}
.why-us-num{
  font-size:15px; font-weight:700; color: var(--brand); margin-bottom:10px;
}

/* ===== CTA band ===== */
.cta-band{
  background: var(--brand);
  color:#fff;
}
.cta-band .btn-light-cta{
  background:#fff; color: var(--brand-hover);
  padding:16px 32px; border-radius:10px; font-weight:700;
}
.cta-band .btn-light-cta:hover{ color: var(--brand-hover); opacity:.9; }

/* ===== Article (blog) ===== */
.article-body p{ font-size:15px; line-height:1.9; color: var(--text-secondary); }
.article-body h2{ font-size:20px; margin:32px 0 14px; }
.article-body h3{ font-size:17px; margin:24px 0 10px; }
.article-lead{
  font-size:16px; line-height:1.95; color: oklch(0.3 0.02 260); font-weight:600;
}
.article-body table{ width:100%; border-collapse:collapse; font-size:14px; }
.article-body table td{ padding:10px; border-bottom:1px solid var(--border); }
.article-body table tr:first-child{ background: var(--bg-secondary); font-weight:700; }
.summary-box{
  background: var(--bg-secondary); border-radius:14px; padding:24px;
}
.tip-box{
  font-size:14px; line-height:1.8; color: var(--text-muted);
  background: var(--bg-secondary); border-radius:10px; padding:16px 20px;
}

/* ===== Utilities ===== */
.section-py{ padding-top:72px; padding-bottom:72px; }
@media (max-width: 767.98px){
  .section-py{ padding-top:40px; padding-bottom:40px; }
  .page-hero{ height: 260px; }
  .page-hero-overlay h1{ font-size:24px; }
  .spec-card{ position: static; }
}

/* Contact form (used on contact page for lead capture, optional per design) */
.contact-item{
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:20px 24px;
  display:flex; align-items:flex-start; gap:14px;
}
.contact-item .icon-badge{ width:40px; height:40px; margin-bottom:0; flex-shrink:0; }
.contact-item .icon-badge .icon{ color: var(--brand); }

/* ===== Blog meta (reading time) ===== */
.blog-meta{ display:flex; align-items:center; gap:6px; }
.blog-meta .icon{ color: var(--text-muted); }

/* Phone icon used inside CTA text/buttons */
.cta-phone-icon{ color: var(--brand); margin-inline-end:6px; }
.btn-brand .icon, .btn-outline-brand .icon, .btn-soft .icon, .btn-light-cta .icon{ margin-inline-end:8px; }

/* ===== Floating call button ===== */
.floating-call{
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px oklch(0.22 0.02 260 / 0.25);
  z-index: 1040;
  transition: transform .15s ease, background .15s ease;
}
.floating-call:hover{ background: var(--brand-hover); transform: scale(1.08); }
.floating-call .icon{ width:26px; height:26px; color:#fff; }
.floating-call::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  box-shadow: 0 0 0 0 oklch(0.55 0.16 250 / 0.45);
  animation: floating-call-pulse 2.2s ease-out infinite;
}
@keyframes floating-call-pulse{
  0%{ box-shadow: 0 0 0 0 oklch(0.55 0.16 250 / 0.45); }
  100%{ box-shadow: 0 0 0 16px oklch(0.55 0.16 250 / 0); }
}
@media (max-width: 767.98px){
  .floating-call{ width:52px; height:52px; bottom:16px; left:16px; }
}
