/* =========================
   RESET & BASE
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* پالت AIFEN */
:root {
  --color-navy: #1b3c53;   /* آبی تیره */
  --color-steel: #395e75;  /* آبی خاکستری */
  --color-sand: #d4c2b6;   /* بژ */
  --color-ivory: #f8f1ec;  /* کرم روشن */

  --text-main: #1b3c53;
  --text-muted: #6b7280;

  --bg-card: #ffffff;
  --bg-card-soft: #f3f4f7;
  --border-subtle: rgba(148, 163, 184, 0.35);

  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Vazirmatn", sans-serif;
  background: var(--color-ivory); /* بک‌گراند روشن */
  color: var(--text-main);
  direction: rtl;
}

/* صفحه اصلی */
.page {
  width: 100%;
  min-height: 100vh;
  padding: 24px 40px 56px;
}

/* موبایل: هدر و لوگو درشت و خوانا */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
    border-radius: 18px;
  }

  .brand-badge {
    order: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .brand-logo-circle {
    width: 72px;
    height: 72px;
  }

  .brand-logo-img {
    width: 92%;
    height: auto;
  }

  .brand-badge-text {
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
    white-space: normal;
  }

  .main-nav {
    order: 1;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .main-nav a {
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
  }
}

/* =========================
   HEADER
   ========================= */

.site-header {
  margin-bottom: 20px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(
    135deg,
    rgba(232, 236, 240, 0.98),
    rgba(212, 194, 182, 0.95)
  );
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(212, 194, 182, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(18px);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* دایره لوگو */

.brand-logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 20%,
    #ffffff,
    #f8f1ec 40%,
    #c9b9ae 80%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px rgba(212, 194, 182, 0.7),
    0 16px 30px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.brand-logo-img {
  width: 88%;
  height: auto;
  display: block;
}

.brand-badge-text {
  font-size: 12px;
  color: var(--text-muted);
}

.brand-badge-text span {
  color: var(--text-main);
  font-weight: 600;
}

/* منو */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(248, 241, 236, 0.9);
  border: 1px solid rgba(212, 194, 182, 0.8);
}

.main-nav a:hover {
  color: var(--color-navy);
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.8);
}

@media (max-width: 800px) {
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .main-nav {
    justify-content: space-between;
  }

  .main-nav a {
    flex: 1;
    text-align: center;
  }
}

/* =========================
   HERO
   ========================= */

.hero {
  margin-bottom: 36px;
}

.hero-card {
  position: relative;
  background: radial-gradient(
      circle at top left,
      rgba(57, 94, 117, 0.16),
      transparent 55%
    ),
    #ffffff;
  border-radius: 32px;
  padding: 26px;
  border: 1px solid rgba(212, 194, 182, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 80% 0, rgba(212, 194, 182, 0.28), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(248, 241, 236, 0.3), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-overline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(248, 241, 236, 0.95);
  border: 1px solid rgba(212, 194, 182, 0.9);
  color: var(--text-main);
}

.pill-ghost {
  background: rgba(248, 241, 236, 0.6);
  border-style: dashed;
  border-color: rgba(212, 194, 182, 0.8);
  color: var(--text-muted);
}

.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
  padding-inline-end: 8px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.4;
  color: var(--text-main);
}

.hero-title-highlight {
  display: block;
  font-size: 20px;
  color: var(--color-steel);
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* دکمه‌ها */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-navy), var(--color-steel));
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.btn-ghost {
  background: rgba(248, 241, 236, 0.7);
  border-color: rgba(212, 194, 182, 0.9);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text-main);
  background: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.85);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(248, 241, 236, 0.7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(248, 241, 236, 0.8);
  border: 1px solid rgba(212, 194, 182, 0.9);
  color: var(--text-muted);
}

/* =========================
   HERO SLIDER
   ========================= */

.hero-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 170px;
}

/* هر اسلاید روی هم قرار می‌گیرد */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-out;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* پِل محصول */

.hero-pill {
  position: relative;
  width: 100%;
  border-radius: 999px;
  padding: 18px 28px 18px 30px;
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 194, 182, 0.5), transparent 55%),
    #ffffff;
  border: 1px solid rgba(212, 194, 182, 0.9);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-height: 120px;
}

.hero-pill-image {
  flex: 0 0 190px;
  height: 110px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(212, 194, 182, 0.9);
}

.hero-pill-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pill-content {
  flex: 1;
  min-width: 0;
}

.hero-pill-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hero-pill-meta {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.95;
  line-height: 1.8;
}

.hero-pill-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-steel);
  text-decoration: none;
}

.hero-pill-link:hover {
  text-decoration: underline;
}

.hero-pill-badge {
  position: absolute;
  right: 28px;
  top: 14px;
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 999px;
  background: #fff7d6;
  border: 1px solid rgba(234, 179, 8, 0.9);
  color: #854d0e;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

/* فلش‌ها */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #ffffff;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  padding: 0;
}

.hero-arrow--prev {
  right: -46px;
}

.hero-arrow--next {
  left: -46px;
}

/* دات‌ها */

.hero-dots {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.hero-dot.is-active {
  width: 18px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-steel));
}

/* ریسپانسیو هِرو */

@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    padding: 22px 16px 24px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-title-highlight {
    font-size: 18px;
  }

  .hero-slider {
    height: 150px;
  }

  .hero-pill {
    padding: 14px 18px;
    min-height: 110px;
  }

  .hero-pill-image {
    flex: 0 0 140px;
    height: 90px;
  }

  .hero-pill-name {
    font-size: 13px;
  }

  .hero-pill-meta {
    font-size: 11px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: -16px;
  }
}

/* =========================
   SECTIONS BASE
   ========================= */

.section {
  margin-top: 40px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text-main);
}

.section-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* =========================
   PRODUCTS GRID
   ========================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 1150px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.product-image-link {
  display: block;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 70%;
  background: linear-gradient(to bottom, #edf2f7, #d0d9e2);
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.03);
  transition: transform 0.25s ease-out;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.06) translateY(-4px);
}

.product-body {
  padding: 10px 12px 12px;
}

.product-title {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-main);
}

.product-desc {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.product-price {
  font-size: 12px;
  color: var(--color-navy);
  white-space: nowrap;
}

.product-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  background: #f3f4f6;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: var(--text-muted);
}

.product-link {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--color-steel);
  text-decoration: none;
}

.product-link:hover {
  text-decoration: underline;
}

.section-footer {
  margin-top: 18px;
}

/* =========================
   INFO GRIDS
   ========================= */

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.info-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1150px) {
  .info-grid,
  .info-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .info-grid,
  .info-grid-compact {
    grid-template-columns: minmax(0, 1fr);
  }
}

.info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 14px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-main);
}

.info-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* =========================
   FOOT CTA
   ========================= */

.section-last {
  margin-top: 44px;
}

.section-cta {
  background:
    radial-gradient(circle at top left, rgba(57, 94, 117, 0.35), transparent 55%),
    var(--color-navy);
  border-radius: 28px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.7);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.55);
  max-width: 900px;
}

.section-cta h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #ffffff;
}

.section-cta p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.9;
}

.section-cta .btn-primary {
  font-size: 13px;
}
