/* ==========================================================================
   نماپایدار (Namapaydar) — استایل پایه
   پالت آبی نفتی صنعتی | راست‌به‌چپ | واکنش‌گرا
   ========================================================================== */

:root {
  /* رنگ‌های پایه (آبی نفتی) */
  --c-primary: #0e4b5e;
  --c-primary-600: #0a3a48;
  --c-primary-700: #072a34;
  --c-primary-50: #eaf2f4;
  --c-primary-100: #d7e6ea;

  /* رنگ تاکیدی */
  --c-accent: #e8a33d;
  --c-accent-600: #cf8c27;

  /* خنثی */
  --c-bg: #ffffff;
  --c-bg-alt: #f4f7f8;
  --c-text: #1c2b33;
  --c-text-muted: #5a6b73;
  --c-border: #dce5e8;
  --c-white: #ffffff;

  /* ابعاد و سایه */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(7, 42, 52, 0.06);
  --shadow: 0 10px 30px rgba(7, 42, 52, 0.10);
  --shadow-lg: 0 20px 50px rgba(7, 42, 52, 0.16);

  --container: 1200px;
  --transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   Reset و پایه
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-primary-600);
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--c-primary-700);
  font-weight: 800;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 64px;
}

.section--alt {
  background: var(--c-bg-alt);
}

/* عنوان بخش */
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-primary-50);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   دکمه‌ها
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(14, 75, 94, 0.25);
}

.btn--primary:hover {
  background: var(--c-primary-600);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-primary-700);
  box-shadow: 0 8px 20px rgba(232, 163, 61, 0.3);
}

.btn--accent:hover {
  background: var(--c-accent-600);
  color: var(--c-primary-700);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary-100);
}

.btn--ghost:hover {
  background: var(--c-primary-50);
  color: var(--c-primary-600);
}

.btn--light {
  background: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-border);
}

.btn--light:hover {
  background: var(--c-bg-alt);
}

/* --------------------------------------------------------------------------
   هدر و ناوبری
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-primary-700);
}

.brand:hover {
  color: var(--c-primary-600);
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c-primary);
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  background: var(--c-primary-50);
  color: var(--c-primary);
}

.nav__cta {
  margin-inline-start: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-primary-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--c-primary-700);
  color: var(--c-white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 42, 52, 0.55) 0%,
    rgba(7, 42, 52, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 96px;
  max-width: 760px;
}

.hero__content h1 {
  color: var(--c-white);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 18px;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero__badges span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   کارت خدمات
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-primary-50);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__body h3 {
  font-size: 1.2rem;
}

.card__body h3 a {
  color: var(--c-primary-700);
}

.card__body h3 a:hover {
  color: var(--c-primary);
}

.card__body p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card__link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   ویژگی‌ها / چرا ما
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-primary-50);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   درباره / متن و تصویر
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--c-text);
}

.checklist li::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-primary-50);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-700) 100%);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.cta h2 {
  color: var(--c-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 26px;
}

/* --------------------------------------------------------------------------
   بنر صفحه داخلی (بغیر از خانه)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--c-primary-700);
  color: var(--c-white);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 42, 52, 0.6), rgba(7, 42, 52, 0.9));
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 64px;
  max-width: 820px;
}

.page-hero__content h1 {
  color: var(--c-white);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.page-hero__content p {
  color: rgba(255, 255, 255, 0.9);
}

/* breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   محتوای صفحه خدمت
   -------------------------------------------------------------------------- */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.prose h2 {
  font-size: 1.4rem;
  margin-block: 28px 12px;
}

.prose p {
  color: var(--c-text-muted);
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin-bottom: 16px;
  color: var(--c-text-muted);
}

.prose li {
  margin-bottom: 8px;
}

/* جدول مشخصات */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 20px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.95rem;
}

.spec-table th {
  background: var(--c-primary-50);
  color: var(--c-primary-700);
  width: 180px;
  font-weight: 700;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

/* سایدبار */
.sidebar {
  position: sticky;
  top: 92px;
}

.sidebar__box {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar__box h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.sidebar__list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.sidebar__list a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.sidebar__list a:hover,
.sidebar__list a.active {
  background: var(--c-white);
  border-color: var(--c-border);
  color: var(--c-primary);
}

.sidebar__cta {
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.sidebar__cta h3 {
  color: var(--c-white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.sidebar__cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   تماس
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary-50);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex: none;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   فوتر
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-primary-700);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 56px 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h4 {
  color: var(--c-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.site-footer p {
  font-size: 0.92rem;
  line-height: 1.9;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--c-white);
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   واکنش‌گرایی
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 20px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 12px 16px;
  }

  .nav__cta {
    margin-inline-start: 0;
    margin-top: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-block: 72px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 32px 22px;
  }
}

@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }
}
