/* ==========================================================================
   ۱. تنظیم فونت و پالت رنگی استخراج شده از تصویر طرح
   ========================================================================== */

/* فونت محلی در صورت آپلود در پوشه fonts/ */
@font-face {
  font-family: 'LocalCustomFont';
  src: url('../fonts/YekanBakh-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'LocalCustomFont';
  src: url('../fonts/YekanBakh-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* پالت استخراج شده از تصویر: سبز کنگره‌ای و بژ/طلایی کرافت */
  --bg-deep-green: #082d1c;
  --bg-dark-green: #0c3924;
  --bg-card: #0e442b;
  --green-ribbed-line: rgba(5, 27, 17, 0.95);
  
  --kraft-gold: #f5cca0;
  --kraft-light: #fbe6cd;
  --kraft-dark: #cfa374;
  
  --text-white: #ffffff;
  --text-light: #e8f2ec;
  --text-muted: #a4c7b7;

  --border-gold: rgba(245, 204, 160, 0.35);
  --border-gold-strong: #f5cca0;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-family: 'LocalCustomFont', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   ۲. ساختار و بافت کنگره‌ای کارتن (Corrugated Texture)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-deep-green);
  color: var(--text-light);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  /* پترن راه‌راه بافت کنگره‌ای کارتن فلوت */
  background-image: repeating-linear-gradient(
    0deg,
    var(--bg-deep-green) 0px,
    var(--bg-deep-green) 8px,
    var(--green-ribbed-line) 8px,
    var(--green-ribbed-line) 16px
  );
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ==========================================================================
   ۳. سربرگ (Header)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 45, 28, 0.88);
  border-bottom: 1px solid var(--border-gold);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--kraft-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--kraft-gold);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 26px;
  height: 3px;
  background: var(--kraft-gold);
  border-radius: 2px;
}

/* ==========================================================================
   ۴. دکمه‌ها (Buttons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--kraft-gold);
  color: var(--bg-deep-green);
}

.btn-primary:hover {
  background: var(--kraft-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 204, 160, 0.3);
}

.btn-gold {
  background: var(--kraft-gold);
  color: var(--bg-deep-green);
}

.btn-gold:hover {
  background: #ffffff;
}

.btn-outline {
  border-color: var(--kraft-gold);
  color: var(--kraft-gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(245, 204, 160, 0.1);
  color: var(--text-white);
}

/* ==========================================================================
   ۵. بخش هیرو (Hero Section)
   ========================================================================== */
.hero-section {
  padding: 70px 0 90px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 204, 160, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--kraft-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  margin-bottom: 20px;
}

.badge-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--kraft-gold);
  border-radius: 50%;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text-white);
}

.hero-title .highlight {
  color: var(--kraft-gold);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
  max-width: 580px;
}

.license-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-gold-strong);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 34px;
}

.license-icon {
  width: 28px;
  height: 28px;
  background: var(--kraft-gold);
  color: var(--bg-deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.license-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.license-number {
  font-size: 19px;
  color: var(--text-white);
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* المان دایره‌ای وسط پوستر */
.hero-visual {
  display: flex;
  justify-content: center;
}

.circular-badge {
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e442b 0%, #062415 100%);
  border: 7px solid var(--kraft-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 204, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.circle-inner {
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.circle-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circle-ribbon-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 4px;
}

.circle-brand {
  font-size: 54px;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.circle-tagline {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 12px;
}

.city-pill {
  background: var(--kraft-gold);
  color: var(--bg-deep-green);
  display: inline-block;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 12px;
}

.circle-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.circle-phone {
  font-size: 17px;
  font-weight: 800;
  color: var(--kraft-light);
  border-top: 1px solid rgba(245, 204, 160, 0.3);
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
  direction: ltr;
}

/* ==========================================================================
   ۶. بخش مزایا و استانداردها
   ========================================================================== */
.features-section {
  padding: 80px 0;
  background: rgba(6, 34, 21, 0.65);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 32px;
  color: var(--text-white);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--kraft-gold);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--kraft-gold);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.f-icon {
  font-size: 38px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 19px;
  color: var(--kraft-gold);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================================================
   ۷. بخش معرفی محصولات
   ========================================================================== */
.products-section {
  padding: 90px 0;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.p-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.p-card:hover {
  border-color: var(--kraft-gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.p-pattern {
  height: 110px;
  background: linear-gradient(135deg, #10492e, #062215);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.p-badge-type {
  font-size: 11px;
  background: rgba(245, 204, 160, 0.2);
  color: var(--kraft-gold);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.p-body {
  padding: 26px;
}

.p-category {
  font-size: 12px;
  color: var(--kraft-gold);
  font-weight: 700;
}

.p-body h3 {
  font-size: 20px;
  color: var(--text-white);
  margin: 8px 0 10px;
}

.p-body p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
}

.p-specs {
  border-top: 1px solid rgba(245, 204, 160, 0.15);
  padding-top: 14px;
}

.p-specs li {
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  padding-right: 18px;
  margin-bottom: 6px;
}

.p-specs li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--kraft-gold);
  font-size: 18px;
  line-height: 1;
}

/* ==========================================================================
   ۸. بخش تماس و شبکه‌های اجتماعی (Social Media Hub)
   ========================================================================== */
.contact-section {
  padding: 80px 0 100px;
  background: rgba(6, 34, 21, 0.7);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  color: var(--kraft-gold);
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-light);
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(6, 34, 21, 0.85);
  border: 1px solid var(--border-gold);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  direction: ltr;
  text-align: right;
  transition: var(--transition);
}

.phone-item:hover {
  background: var(--bg-dark-green);
  border-color: var(--kraft-gold);
  transform: translateX(-4px);
}

.p-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kraft-gold);
  color: var(--bg-deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-item strong {
  display: block;
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--text-white);
}

.phone-item small {
  font-size: 12px;
  color: var(--text-muted);
}

.license-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 16px;
  background: rgba(245, 204, 160, 0.08);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--kraft-light);
}

.license-badge-inline .chk {
  color: var(--kraft-gold);
  font-weight: 900;
}

.license-badge-inline strong {
  color: var(--kraft-gold);
}

.social-channels-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-head h3 {
  font-size: 22px;
  color: var(--text-white);
  margin-bottom: 6px;
}

.social-head p {
  font-size: 14px;
  color: var(--text-muted);
}

/* شبکه دو ستونه کارت‌های شبکه‌های اجتماعی */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(6, 34, 21, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--kraft-gold);
  background: rgba(14, 68, 43, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.social-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(245, 204, 160, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kraft-gold);
  transition: var(--transition);
}

.social-icon-box svg,
.social-icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-card:hover .social-icon-box {
  background: var(--kraft-gold);
  color: var(--bg-deep-green);
}

.social-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.social-meta .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

.social-meta .handle {
  font-size: 12px;
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.social-card .arrow-icon {
  margin-right: auto;
  opacity: 0.4;
  transition: 0.3s ease;
  color: var(--kraft-gold);
}

.social-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(-4px);
}

/* ==========================================================================
   ۹. فوتر (Footer)
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(245, 204, 160, 0.2);
  padding: 24px 0 90px;
  background: #04170e;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom strong {
  color: var(--kraft-gold);
}

/* ==========================================================================
   ۱۰. نوار تماس شناور موبایل
   ========================================================================== */
.floating-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 34, 21, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px;
  z-index: 999;
  justify-content: space-around;
  gap: 12px;
}

.float-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
}

.float-btn.call {
  background: var(--kraft-gold);
  color: var(--bg-deep-green);
}

.float-btn.wa {
  background: #25d366;
  color: #ffffff;
}

/* ==========================================================================
   ۱۱. استایل‌های ریسپانسیو (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 28px;
  }
  .hero-actions {
    justify-content: center;
  }
  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 20px;
    border-bottom: 1px solid var(--border-gold);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .btn-call-header {
    display: none;
  }
  .hero-title {
    font-size: 30px;
  }
  .circular-badge {
    width: 310px;
    height: 310px;
  }
  .circle-brand {
    font-size: 42px;
  }
  .circle-phone {
    font-size: 14px;
    flex-direction: column;
    gap: 4px;
  }
  .floating-call-bar {
    display: flex;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}