/* ===== فونت شبنم — میزبانی داخل خود سایت (بدون وابستگی به CDN خارجی) ===== */
@font-face {
  font-family: 'Shabnam';
  src: url('Shabnam.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Shabnam';
  src: url('Shabnam-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ===== متغیرها ===== */
:root {
  --navy: #153B5B;
  --navy-dark: #0E2A42;
  --orange: #E8702A;
  --orange-dark: #C95C1E;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --text: #2A3542;
  --muted: #6B7A8C;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Shabnam', Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 2;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== هدر ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 59, 91, 0.95);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 44px; width: auto; }
.logo-img.hide { display: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
/* وقتی لوگوی واقعی آپلود شد، حرف «ک» پنهان می‌شود */
.logo-img:not(.hide) + .logo-mark { display: none; }
.logo-text { color: #fff; font-weight: 700; font-size: 18px; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 15px; transition: color .2s;
}
.main-nav a:hover { color: var(--orange); }
.header-phone {
  color: #fff; text-decoration: none; font-weight: 700;
  background: rgba(255,255,255,0.12);
  padding: 8px 16px; border-radius: 30px; font-size: 15px;
  transition: background .2s;
}
.header-phone:hover { background: rgba(255,255,255,0.22); }
.menu-btn {
  display: none; background: none; border: none;
  color: #fff; font-size: 26px; cursor: pointer;
}

/* ===== بنر اصلی ===== */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center;
  background: var(--navy) url('granule.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,42,66,0.92), rgba(14,42,66,0.72));
}
.hero-content { position: relative; color: #fff; padding: 80px 20px; }
.hero-content h1 { font-size: 44px; font-weight: 800; margin-bottom: 14px; }
.hero-content p { font-size: 19px; opacity: .9; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 30px; border-radius: 30px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ===== بخش‌ها ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-title {
  text-align: center; font-size: 30px; font-weight: 800;
  color: var(--navy); margin-bottom: 12px; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 64px; height: 4px;
  background: var(--orange); border-radius: 4px;
  margin: 12px auto 0;
}
.section-hint {
  text-align: center; color: var(--muted); font-size: 14.5px;
  margin-bottom: 36px;
}

/* ===== درباره ما ===== */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.about-text p { margin-bottom: 16px; font-size: 16.5px; }
.about-cards { display: grid; gap: 16px; }
.fact-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; text-align: center;
  box-shadow: 0 4px 18px rgba(21,59,91,0.08);
  border-inline-start: 4px solid var(--orange);
}
.fact-num { display: block; font-size: 24px; font-weight: 800; color: var(--navy); }
.fact-label { font-size: 14px; color: var(--muted); }

/* ===== محصولات ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(21,59,91,0.08);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  text-decoration: none; color: var(--text); display: block;
}
.product-card:hover, .product-card:focus-visible {
  transform: translateY(-6px); box-shadow: 0 12px 28px rgba(21,59,91,0.14);
  outline: none;
}
.product-card img { width: 100%; height: 210px; object-fit: cover; display: block; background: #E7EBF0; }
.product-card h3 { color: var(--navy); font-size: 19px; margin: 18px 20px 8px; }
.product-card p { font-size: 14.5px; color: var(--muted); margin: 0 20px 10px; }
.product-more {
  display: inline-block; margin: 0 20px 20px;
  color: var(--orange); font-size: 14px; font-weight: 700;
}

/* ===== بنر نمایشگاه ===== */
.event-banner { padding: 10px 0; }
.event-inner {
  background: linear-gradient(120deg, var(--orange), #F0934F);
  color: #fff; border-radius: 18px;
  padding: 30px 34px; text-align: center;
  box-shadow: 0 10px 30px rgba(232,112,42,0.35);
}
.event-icon { font-size: 34px; display: block; margin-bottom: 8px; }
.event-inner p { font-size: 18px; font-weight: 600; }
.event-inner strong { font-size: 20px; }

/* ===== گالری ===== */
.gallery-subtitle {
  color: var(--navy); font-size: 20px; font-weight: 800;
  margin: 44px 0 18px; text-align: center;
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: #E7EBF0;
}
.gallery-item img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===== ویدیو ===== */
.video-box {
  max-width: 820px; margin: 0 auto;
  background: var(--bg); border: 2px dashed #C7D2DE;
  border-radius: var(--radius);
  padding: 60px 30px; text-align: center;
  color: var(--muted); font-size: 16px;
}
.video-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }

/* ===== صفحات محصول ===== */
.page-hero {
  background: var(--navy) url('granule.jpg') center/cover no-repeat;
  position: relative; padding: 60px 0 46px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(14,42,66,0.9);
}
.page-hero .container { position: relative; color: #fff; }
.page-hero h1 { font-size: 34px; font-weight: 800; margin: 12px 0 4px; }
.page-hero p { opacity: .85; }
.back-link { color: var(--orange); text-decoration: none; font-size: 14.5px; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.product-page-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px;
  align-items: center; margin-bottom: 50px;
}
.product-page-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(21,59,91,0.14);
  background: #E7EBF0;
}
.feature-list { list-style: none; margin: 16px 0 24px; }
.feature-list li { padding-inline-start: 26px; position: relative; font-size: 15px; }
.feature-list li::before {
  content: '✔'; position: absolute; inset-inline-start: 0;
  color: var(--orange); font-weight: 800;
}
.pdf-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(21,59,91,0.08);
}
.pdf-table th {
  background: var(--navy); color: #fff;
  padding: 14px 20px; text-align: right; font-size: 15px;
}
.pdf-table td { padding: 14px 20px; border-top: 1px solid #EDF1F5; font-size: 14.5px; }
.pdf-table tr:hover td { background: #F4F7FA; }
.pdf-link { color: var(--orange); text-decoration: none; font-weight: 700; }
.pdf-link:hover { text-decoration: underline; }

/* ===== ارتباط با ما ===== */
.contact-subtitle {
  color: var(--navy); font-size: 20px; font-weight: 800;
  margin: 44px 0 18px; text-align: center;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-bottom: 26px;
}
.contact-card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
  box-shadow: 0 4px 18px rgba(21,59,91,0.08);
  border-top: 4px solid var(--orange);
  color: var(--text); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.contact-icon { font-size: 30px; }
.contact-card strong { color: var(--navy); font-size: 16px; word-break: break-all; }
.contact-card small { color: var(--muted); font-size: 13.5px; }
.person-tel, .person-mail {
  color: var(--orange); text-decoration: none; font-size: 14px; font-weight: 700;
  margin-top: 4px; word-break: break-all;
}
.person-tel:hover, .person-mail:hover { text-decoration: underline; }

/* ===== فرم تماس ===== */
.contact-form {
  max-width: 640px; margin: 40px auto 0;
  background: var(--white); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 4px 18px rgba(21,59,91,0.08);
  display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 15px;
  border: 1px solid #D6DEE7; border-radius: 10px;
  padding: 12px 16px; background: var(--bg); color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange);
}
.form-msg { color: #1B8A4B; font-weight: 700; font-size: 14.5px; min-height: 22px; }

/* ===== فوتر ===== */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.8);
  padding: 40px 0; text-align: center; font-size: 14.5px;
}
.site-footer strong { color: #fff; }
.site-footer .copyright { margin-top: 10px; font-size: 13px; opacity: .7; }

/* ===== لایت‌باکس ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 24, 38, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 26px;
  background: none; border: none; color: #fff;
  font-size: 32px; cursor: pointer;
}

/* ===== مودال محصول ===== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 24, 38, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius);
  max-width: 680px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 34px 30px; position: relative;
}
.modal-box h3 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.modal-desc { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.modal-subtitle { color: var(--navy); font-size: 17px; margin: 20px 0 8px; }
.modal-close {
  position: absolute; top: 14px; inset-inline-end: 16px;
  background: none; border: none; font-size: 24px;
  color: var(--muted); cursor: pointer;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 14px; border-top: 1px solid #EDF1F5; font-size: 14.5px; }
.spec-table td:first-child { font-weight: 700; color: var(--navy); width: 40%; }

/* ===== انیمیشن ظاهرشدن ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== ریسپانسیو ===== */
@media (max-width: 900px) {
  .about-grid, .product-page-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline-start: 0;
    width: 100%; background: var(--navy-dark);
    flex-direction: column; gap: 0; padding: 10px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; }
  .menu-btn { display: block; }
  .header-phone { display: none; }
  .products-grid, .gallery-grid, .gallery-grid.two, .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 440px; }
  .hero-content h1 { font-size: 28px; }
  .event-inner { padding: 24px 20px; }
  .event-inner p { font-size: 16px; }
}