/* فونت وزیرمتن - Self-Hosted */
@import url('../fonts/vazirmatn.css');

:root {
  --navy-900: #0e1a2f;
  --navy-800: #14233d;
  --navy-700: #1c3358;
  --navy-600: #2a4a7a;
  --navy-500: #3a5f96;
  --gold-500: #c9982f;
  --gold-400: #dcb257;
  --gold-100: #faf1de;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #16202f;
  --ink-soft: #55606f;
  --ink-faint: #8a93a1;
  --border: #e7eaef;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(14, 26, 47, .05);
  --shadow-md: 0 14px 40px rgba(14, 26, 47, .10);
  --shadow-lg: 0 24px 60px rgba(14, 26, 47, .16);
  --container: 1180px;

  /* رنگ‌های مکمل برای گرادیان‌ها و افکت‌های پرمیوم (در کنار سرمه‌ای/طلایی برند) */
  --accent-violet: #6a5acd;
  --accent-blue: #3a5f96;
  --grad-premium: linear-gradient(115deg, var(--navy-900) 0%, var(--accent-violet) 48%, var(--gold-500) 100%);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Container responsive */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 450px) {
  .container {
    padding: 0 16px;
  }
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.01em; color: var(--navy-900); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--gold-500);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); display: inline-block; }

.section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 34px; line-height: 1.35; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.bg-alt { background: var(--surface); }

/* ===================== دکمه‌ها ===================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 50px; font-size: 14.5px; font-weight: 700;
  border: none; isolation: isolate; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, color .35s ease, border-color .35s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* لایه پرشونده از بالا/پایین */
.btn-navy::before,
.btn-outline::before,
.btn-outline-light::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.btn-navy.fill-from-bottom::before,
.btn-outline.fill-from-bottom::before,
.btn-outline-light.fill-from-bottom::before {
  top: auto; bottom: 0; transform-origin: bottom center;
}
.btn-navy.fill-from-top::before,
.btn-outline.fill-from-top::before,
.btn-outline-light.fill-from-top::before {
  top: 0; bottom: auto; transform-origin: top center;
}
.btn-navy:hover::before,
.btn-outline:hover::before,
.btn-outline-light:hover::before { transform: scaleY(1); }

.btn-navy {
  background: var(--navy-800); color: #fff;
  box-shadow: 0 10px 24px rgba(14, 26, 47, .18);
}
.btn-navy::before { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); }
.btn-navy:hover { color: var(--navy-900); box-shadow: 0 14px 30px rgba(201, 152, 47, .35); }

.btn-outline {
  background: transparent; border: 1.5px solid var(--navy-800); color: var(--navy-800);
}
.btn-outline::before { background: var(--navy-800); }
.btn-outline:hover { color: #fff; border-color: var(--navy-800); }

.btn-outline-light {
  background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff;
}
.btn-outline-light::before { background: #fff; }
.btn-outline-light:hover { color: var(--navy-900); border-color: #fff; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(201,152,47,.35);
  will-change: transform;
}
.btn-gold:hover { box-shadow: 0 16px 34px rgba(201,152,47,.48); }
.btn-gold.magnetic-btn,
.magnetic-cta {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.btn-gold.magnetic-btn.is-magnetic,
.magnetic-cta.is-magnetic {
  transition: transform .12s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.magnetic-btn-inner,
.magnetic-cta-inner {
  display: inline-flex; align-items: center; gap: 8px;
  will-change: transform;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.is-magnetic .magnetic-btn-inner,
.is-magnetic .magnetic-cta-inner {
  transition: transform .12s cubic-bezier(.22, 1, .36, 1);
}

/* ===================== هدر / نوبار ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-header .inner-centered { justify-content: space-between; gap: 10px; }

.nav-cluster { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-cluster.nav-right { justify-content: flex-start; }
.nav-cluster.nav-left { justify-content: center; padding-left: 8px; }
.nav-cluster a { display: inline-flex; align-items: center; gap: 7px; }
.nav-cluster a svg { width: 15px; height: 15px; opacity: .75; }

.brand-center { flex-shrink: 0; }
.cta-pill { display: inline-flex; align-items: center; }

/* دکمه مغناطیسی درخواست مشاوره — فاصله از منو + افکت کشش */
.header-actions { margin-right: 28px; flex-shrink: 0; }
.magnetic-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.magnetic-cta:hover {
  box-shadow: 0 14px 32px rgba(201, 152, 47, .42);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); font-weight: 800; font-size: 16px;
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.brand .text { line-height: 1.4; }
.brand .text b { display: block; font-size: 15.5px; font-weight: 800; color: var(--navy-900); }
.brand .text span { display: block; font-size: 11.5px; color: var(--ink-faint); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px; border-radius: 30px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--navy-800); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .phone { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.header-actions .phone b { color: var(--navy-900); font-size: 14.5px; }

@media (max-width: 780px) {
  .header-actions { margin-right: 0; }
}

/* موبایل خیلی کوچک - header دو ردیفه */
@media (max-width: 450px) {
  .site-header .inner {
    height: auto;
    padding: 12px 0;
  }
  
  .site-header .inner-centered {
    flex-direction: column;
    gap: 12px;
  }
  
  .brand-center {
    order: -1; /* لوگو بره بالا */
  }
  
  .nav-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  
  .header-actions {
    order: 1; /* دکمه مشاوره بره پایین */
    width: 100%;
    justify-content: center;
  }
  
  .header-actions .phone {
    display: none; /* شماره رو مخفی کن */
  }
  
  .magnetic-cta {
    width: 100%;
  }
  
  .magnetic-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.nav-toggle { display: none; background: none; border: none; padding: 8px; }

/* ===================== مگا منو ===================== */
.nav-mega-wrapper {
  position: relative;
}

.main-nav a.has-mega {
  position: relative;
  padding-left: 30px;
}

.main-nav a.has-mega .mega-arrow {
  width: 14px;
  height: 14px;
  opacity: .6;
  transition: transform .3s ease, opacity .3s ease;
  margin-right: -4px;
}

.nav-mega-wrapper:hover .mega-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: -80px;
  width: 920px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(14, 26, 47, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1), 
              transform .35s cubic-bezier(.22, 1, .36, 1),
              visibility .35s;
  z-index: 200;
  overflow: hidden;
}

.nav-mega-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 480px;
}

/* لیست خدمات سمت راست */
.mega-services-list {
  padding: 28px 16px 28px 24px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  max-height: 540px;
  direction: rtl;
}

.mega-services-list::-webkit-scrollbar {
  width: 6px;
}

.mega-services-list::-webkit-scrollbar-track {
  background: transparent;
}

.mega-services-list::-webkit-scrollbar-thumb {
  background: rgba(14, 26, 47, .15);
  border-radius: 10px;
  transition: background .2s;
}

.mega-services-list::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 26, 47, .3);
}

.mega-service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
  position: relative;
  cursor: pointer;
}

.mega-service-item:hover {
  background: linear-gradient(110deg, rgba(14, 26, 47, .04) 0%, rgba(14, 26, 47, .02) 100%);
  transform: translateX(-4px);
}

.mega-service-item.active {
  background: linear-gradient(110deg, rgba(14, 26, 47, .08) 0%, rgba(14, 26, 47, .04) 100%);
  border-right: 3px solid var(--gold-500);
}

.mega-service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-400);
  transition: all .3s ease;
  overflow: hidden;
}

.mega-service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-service-icon svg {
  width: 20px;
  height: 20px;
}

.mega-service-item:hover .mega-service-icon,
.mega-service-item.active .mega-service-icon {
  background: linear-gradient(145deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(201, 152, 47, .3);
}

.mega-service-text {
  flex: 1;
  min-width: 0;
}

.mega-service-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 4px 0;
  transition: color .25s ease;
}

.mega-service-text p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s ease;
}

.mega-service-item:hover .mega-service-text h4,
.mega-service-item.active .mega-service-text h4 {
  color: var(--gold-500);
}

.mega-service-arrow {
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateX(8px);
  transition: all .25s ease;
  flex-shrink: 0;
}

.mega-service-item:hover .mega-service-arrow,
.mega-service-item.active .mega-service-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-500);
}

/* پیش‌نمایش خدمت سمت چپ */
.mega-service-preview {
  background: linear-gradient(125deg, var(--navy-900) 0%, var(--navy-800) 55%, #1a2d4d 100%);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: opacity .3s ease;
}

.mega-service-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(201,152,47,.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201,152,47,.12), transparent 40%);
  pointer-events: none;
}

.preview-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.preview-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s ease;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s ease, transform .4s ease;
}

.preview-image img.loaded {
  opacity: 1;
  transform: scale(1);
}

.preview-details h3 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 14px 0;
  line-height: 1.4;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-details p {
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
  line-height: 1.9;
  margin: 0 0 24px 0;
  min-height: 110px;
  max-height: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-align: justify;
}

.preview-details .btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(201,152,47,.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.preview-details .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  opacity: 0;
  transition: opacity .3s ease;
}

.preview-details .btn:hover::before {
  opacity: 1;
}

.preview-details .btn:hover {
  box-shadow: 0 12px 28px rgba(201,152,47,.55);
  transform: translateY(-2px);
}

.preview-details .btn span {
  position: relative;
  z-index: 1;
}

.preview-details .btn svg {
  position: relative;
  z-index: 1;
  transition: transform .3s ease;
}

.preview-details .btn:hover svg {
  transform: translateX(-4px);
}

/* حالت پیش‌فرض (بدون هاور) */
.mega-service-preview.empty .preview-image {
  background: rgba(255, 255, 255, .05);
}

.mega-service-preview.empty .preview-image::after {
  content: "⚡";
  font-size: 48px;
  opacity: .2;
}

/* انیمیشن ورود */
@keyframes megaFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu.active {
  animation: megaFadeIn .35s cubic-bezier(.22, 1, .36, 1);
}

/* ===================== مگا منوی نمونه‌کارها - طراحی ردیفی ===================== */
.portfolio-mega-full {
  width: 1100px !important;
  max-height: 680px;
  overflow-y: auto;
  padding: 0;
}

.portfolio-mega-full::-webkit-scrollbar {
  width: 8px;
}

.portfolio-mega-full::-webkit-scrollbar-track {
  background: transparent;
}

.portfolio-mega-full::-webkit-scrollbar-thumb {
  background: rgba(14, 26, 47, .12);
  border-radius: 10px;
}

.portfolio-mega-full::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 26, 47, .22);
}

.portfolio-mega-categories {
  padding: 20px 24px 12px;
}

/* هر دسته‌بندی */
.portfolio-category-row {
  margin-bottom: 16px;
  padding: 24px 24px 16px;
  background: linear-gradient(135deg, rgba(14, 26, 47, .02) 0%, rgba(14, 26, 47, .01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .4s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: visible;
}

.portfolio-category-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, var(--navy-900) 0%, var(--navy-800) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity .4s ease;
  border-radius: var(--radius-lg);
}

.portfolio-category-row:hover {
  border-color: var(--gold-500);
  box-shadow: 0 18px 45px rgba(14, 26, 47, .15);
  transform: translateY(-4px);
}

.portfolio-category-row:hover::before {
  opacity: 1;
}

/* هدر دسته */
.category-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-400);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(14, 26, 47, .18);
  transition: all .4s cubic-bezier(.22, 1, .36, 1);
}

.portfolio-category-row:hover .category-icon {
  background: linear-gradient(145deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 14px 32px rgba(201, 152, 47, .4);
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

.category-info {
  flex: 1;
  min-width: 0;
}

.category-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 6px 0;
  transition: color .3s ease;
}

.portfolio-category-row:hover .category-info h3 {
  color: #fff;
}

.category-count {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 600;
  transition: color .3s ease;
}

.portfolio-category-row:hover .category-count {
  color: rgba(255, 255, 255, .75);
}

.category-link-btn {
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--navy-800);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all .35s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.category-link-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  opacity: 0;
  z-index: -1;
  transition: opacity .35s ease;
}

.portfolio-category-row:hover .category-link-btn {
  border-color: var(--gold-400);
  color: var(--navy-900);
  transform: translateX(-4px);
}

.portfolio-category-row:hover .category-link-btn::before {
  opacity: 1;
}

.category-link-btn svg {
  transition: transform .3s ease;
}

.portfolio-category-row:hover .category-link-btn svg {
  transform: translateX(-3px);
}

/* کارت‌های کوچک پروژه‌ها - ساده و تمیز */
.category-projects-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  transform: translateY(-10px);
  transition: all .5s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 1;
}

.portfolio-category-row:hover .category-projects-cards {
  opacity: 1;
  max-height: 400px;
  margin-top: 24px;
  padding-top: 16px;
  transform: translateY(0);
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.portfolio-mini-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .35s cubic-bezier(.22, 1, .36, 1);
  display: block;
  box-shadow: 0 6px 18px rgba(14, 26, 47, .15);
  aspect-ratio: 4/3;
}

.portfolio-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(14, 26, 47, .25);
}

.portfolio-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  display: block;
}

.portfolio-mini-card:hover img {
  transform: scale(1.08);
}

.mini-card-title {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px 16px;
  background: linear-gradient(0deg, rgba(14, 26, 47, .95) 0%, rgba(14, 26, 47, .8) 60%, transparent 100%);
  transform: translateY(0);
  transition: all .35s cubic-bezier(.22, 1, .36, 1);
}

.portfolio-mini-card:hover .mini-card-title {
  background: linear-gradient(0deg, rgba(201, 152, 47, .92) 0%, rgba(201, 152, 47, .75) 60%, transparent 100%);
}

.mini-card-title h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all .3s ease;
}

.portfolio-mini-card:hover .mini-card-title h4 {
  color: var(--navy-900);
  text-shadow: none;
  font-size: 16px;
}

/* فوتر مگا منو */
.portfolio-mega-footer {
  padding: 20px 24px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(14, 26, 47, .02) 100%);
}

.portfolio-mega-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portfolio-mega-footer .btn svg {
  transition: transform .3s ease;
}

.portfolio-mega-footer .btn:hover svg {
  transform: translateX(-4px);
}

/* انیمیشن ورود تدریجی کارت‌ها */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-category-row:hover .portfolio-mini-card {
  animation: fadeInUp .4s cubic-bezier(.22, 1, .36, 1) backwards;
}

.portfolio-category-row:hover .portfolio-mini-card:nth-child(1) {
  animation-delay: .05s;
}

.portfolio-category-row:hover .portfolio-mini-card:nth-child(2) {
  animation-delay: .1s;
}

.portfolio-category-row:hover .portfolio-mini-card:nth-child(3) {
  animation-delay: .15s;
}

/* Responsive */
@media (max-width: 1200px) {
  .mega-menu:not(.portfolio-mega-full) {
    width: 780px;
    right: -40px;
  }
  
  .mega-inner {
    grid-template-columns: 1fr 340px;
  }
  
  .portfolio-mega-full {
    width: 900px !important;
  }
  
  .category-projects-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-mini-card:nth-child(3) {
    display: none;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .mega-menu {
    position: fixed;
    top: 84px;
    right: 0;
    left: 0;
    width: 100% !important;
    max-width: 100%;
    border-radius: 0;
    border-right: none;
    border-left: none;
  }
  
  .mega-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .mega-service-preview {
    display: none;
  }
  
  .mega-services-list {
    border-left: none;
    max-height: 70vh;
  }
  
  .portfolio-mega-full {
    max-height: 75vh;
  }
  
  .portfolio-mega-categories {
    padding: 12px 16px;
  }
  
  .portfolio-category-row {
    padding: 16px;
  }
  
  .category-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .category-link-btn {
    width: 100%;
    justify-content: center;
  }
  
  .category-projects-cards {
    grid-template-columns: 1fr;
  }
  
  .portfolio-mini-card:nth-child(n+3) {
    display: none;
  }
}

/* منوی موبایل */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--navy-900);
  padding: 80px 30px 30px;
  z-index: 999;
  transition: right .35s cubic-bezier(.22, 1, .36, 1);
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 0, 0, .3);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.mobile-nav .close-btn:hover {
  background: rgba(255, 255, 255, .2);
}

.mobile-nav a {
  display: block;
  padding: 14px 20px;
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: background .2s, color .2s;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* منوی موبایل با زیرمنو */
.mobile-menu-item-wrapper {
  margin-bottom: 8px;
}

.mobile-menu-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .2s, color .2s;
  user-select: none;
}

.mobile-menu-item-header:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.mobile-menu-item-header.active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.mobile-menu-arrow {
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.mobile-menu-item-header.active .mobile-menu-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22, 1, .36, 1);
  padding-right: 12px;
}

.mobile-submenu.open {
  max-height: 1000px;
}

.mobile-submenu-link {
  display: block;
  padding: 12px 20px !important;
  color: rgba(255, 255, 255, .7) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 4px !important;
  transition: background .2s, color .2s, padding-right .2s !important;
}

.mobile-submenu-link:hover {
  background: rgba(255, 255, 255, .06) !important;
  color: rgba(255, 255, 255, .95) !important;
  padding-right: 24px !important;
}

/* ===================== هیرو / اسلایدر ===================== */
.hero-slider { position: relative; overflow: hidden; height: 640px; }

/* Reduce hero height on mobile for better visibility */
@media (max-width: 780px) {
  .hero-slider { height: 480px!important; }
}

@media (max-width: 600px) {
  .hero-slider { height: 420px!important; }
}

@media (max-width: 450px) {
  .hero-slider { height: 380px!important; }
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }

/* تصویر بک‌گراند به صورت <img> برای بهبود LCP */
.hero-slide .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* لایه تیره روی تصویر */
.hero-slide .hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,26,47,.92) 0%, rgba(14,26,47,.75) 45%, rgba(14,26,47,.35) 100%);
  z-index: 1;
}

/* پشتیبانی از کد قدیمی (برای صفحاتی که هنوز background-image دارند) */
.hero-slide .bg-img {
  position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0;
}
.hero-slide .bg-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,26,47,.92) 0%, rgba(14,26,47,.75) 45%, rgba(14,26,47,.35) 100%);
}

.hero-content { position: relative; z-index: 3; max-width: 620px; color: #fff; }
.hero-content .eyebrow { color: var(--gold-400); }
.hero-content .eyebrow::before { background: var(--gold-400); }
.hero-content h1 { font-size: 24px; color: #fff; line-height: 1.35; margin-bottom: 18px; }
.hero-content p { font-size: 16.5px; color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* موقعیت‌های مختلف محتوا */
.hero-slide.content-center .hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-slide.content-center .hero-content .eyebrow {
  justify-content: center;
}

.hero-slide.content-center .hero-content p {
  max-width: 100%;
}

.hero-slide.content-center .hero-actions {
  justify-content: center;
}

.hero-slide.content-left .hero-content {
  margin-right: 0;
  margin-left: auto;
}

/* تراز چپ برای متن‌های انگلیسی در موقعیت چپ */
.hero-slide.content-left .hero-content {
  direction: ltr;
  text-align: left;
}

.hero-slide.content-left .hero-content .eyebrow {
  flex-direction: row-reverse;
}

.hero-slide.content-left .hero-actions {
  justify-content: flex-start;
}

/* اصلاح overlay برای موقعیت‌های مختلف */
.hero-slide.content-center .hero-overlay {
  background: linear-gradient(180deg, rgba(14,26,47,.45) 0%, rgba(14,26,47,.85) 100%);
}

.hero-slide.content-left .hero-overlay {
  background: linear-gradient(-90deg, rgba(14,26,47,.92) 0%, rgba(14,26,47,.75) 45%, rgba(14,26,47,.35) 100%);
}

/* Hero content responsive */
@media (max-width: 780px) {
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 24px;
  }
  
  .hero-content p {
    font-size: 15px;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 14px;
    line-height: 1.4;
  }
  
  .hero-content p {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
  }
  
  .hero-content .eyebrow {
    font-size: 11px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 450px) {
  .hero-content h1 {
    font-size: 24px;
  }
  
  .hero-content p {
    font-size: 13px;
    line-height: 1.6;
  }
}

.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 10px;
}
.hero-dots button {
  width: 15px; 
  height: 15px; 
  border-radius: 50%; 
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform .25s ease;
  position: relative;
  padding: 0;
}
.hero-dots button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.4);
  transition: background-color .25s ease, transform .25s ease;
}
.hero-dots button:hover::before { 
  background-color: rgba(255,255,255,.7);
}
.hero-dots button.active::before { 
  background-color: var(--gold-400);
  transform: translate(-50%, -50%) scale(1.15); 
}

/* ===================== نوار آمار ===================== */
.stats-bar {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, #1a2d4d 100%);
  padding: 0; position: relative; overflow: hidden;
  margin-top: 40px;
}
.stats-bar::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(201,152,47,.16), transparent 40%),
    radial-gradient(circle at 88% 50%, rgba(201,152,47,.1), transparent 42%);
  pointer-events: none;
}
.stats-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats-grid .stat {
  padding: 48px 22px; text-align: center;
  border-left: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.stats-grid .stat:last-child { border-left: none; }
.stats-grid .stat-icon {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(201,152,47,.12);
  border: 1px solid rgba(201,152,47,.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
}
.stats-grid .stat-icon svg { width: 22px; height: 22px; }
.stats-grid .num {
  font-size: 40px; font-weight: 800; color: #fff; line-height: 1.1;
  letter-spacing: -.02em;
}
.stats-grid .num::after {
  content: "+"; color: var(--gold-400); font-size: .72em; margin-right: 2px;
}
.stats-grid .lbl {
  font-size: 13.5px; color: rgba(255,255,255,.62); margin-top: 10px; font-weight: 600;
}
.stats-grid .stat::after {
  content: ""; position: absolute; bottom: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0; transform: scaleX(.6); transition: opacity .35s, transform .35s;
}
.stats-grid .stat:hover::after { opacity: 1; transform: scaleX(1); }

/* ===================== درباره ما (خلاصه) ===================== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.about-media .badge-float {
  position: absolute; bottom: -60px; left: 100px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 20px 26px; display: flex; align-items: center; gap: 14px;
}
.about-media .badge-float .n { font-size: 26px; font-weight: 800; color: var(--navy-800); }
.about-media .badge-float .l { font-size: 12px; color: var(--ink-faint); }
.about-text p { color: var(--ink-soft); margin-bottom: 26px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--navy-800); }
.check-list li svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; }

/* ===================== خدمات ===================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(14,26,47,.97) 0%, rgba(20,35,61,.94) 55%, rgba(42,74,122,.9) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity .45s ease;
}
.service-card .service-index {
  position: absolute; top: 18px; left: 20px;
  font-size: 34px; font-weight: 800; line-height: 1;
  color: rgba(14, 26, 47, .07);
  letter-spacing: -.03em;
  transition: color .35s ease;
}
.service-card .icon-wrap {
  width: 58px; height: 58px; border-radius: 18px; margin-bottom: 22px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(14, 26, 47, .18);
  position: relative;
}
.service-card .icon-wrap::before {
  content: ""; position: absolute; inset: -5px; border-radius: 22px;
  border: 1px solid rgba(201, 152, 47, .35);
  opacity: 0; transform: scale(.92);
  transition: opacity .35s, transform .35s;
}
.service-card .icon-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.service-card .icon-wrap svg { stroke: currentColor; }
.service-card .service-body { position: relative; z-index: 1; margin-top: auto; }
.service-card h3 {
  font-size: 18px; margin-bottom: 10px;
  transition: color .35s ease;
}
.service-card p {
  color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px;
  transition: color .35s ease;
}
.service-card .more {
  font-size: 13.5px; font-weight: 700; color: var(--gold-500);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .3s ease, color .35s ease;
}
.service-card .more svg { width: 16px; height: 16px; transition: transform .3s ease; }
.service-card:hover {
  border-color: transparent;
  transform: translateY(-10px);
  box-shadow: 0 28px 55px rgba(14, 26, 47, .22);
}
.service-card:hover::after { opacity: 1; }
.service-card:hover .service-index { color: rgba(220, 178, 87, .18); }
.service-card:hover .icon-wrap {
  background: linear-gradient(145deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 14px 30px rgba(201, 152, 47, .35);
}
.service-card:hover .icon-wrap::before { opacity: 1; transform: scale(1); }
.service-card:hover h3,
.service-card:hover .more { color: #fff; }
.service-card:hover p { color: rgba(255,255,255,.72); }
.service-card:hover .more { gap: 12px; }
.service-card:hover .more svg { transform: translateX(-4px); }

/* ===================== نمونه‌کارها ===================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter-bar a { padding: 10px 20px; border-radius: 30px; font-size: 13.5px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); }
.filter-bar a.active, .filter-bar a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); background: var(--navy-900); }
.portfolio-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; background: linear-gradient(0deg, rgba(14,26,47,.92) 0%, rgba(14,26,47,.1) 60%, transparent 100%);
}
.portfolio-card .cat { font-size: 11.5px; font-weight: 700; color: var(--gold-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.portfolio-card h3 { color: #fff; font-size: 17px; }
.portfolio-card .loc { color: rgba(255,255,255,.7); font-size: 12.5px; margin-top: 4px; }

/* =========================================================
   TEAM SECTION
   ========================================================= */

.team-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;

    min-height: 500px;
    padding: 40px 0;

    overflow: visible;
}

/* wrapper مخصوص reveal */
.team-reveal-wrap {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
}

/* کارت */
.team-card {
    position: relative;

    width: 180px;
    height: 400px;

    flex: 0 0 auto;

    overflow: hidden;
    cursor: pointer;

    border-radius: 120px;

    /*
     * حرکت نرم و طبیعی
     */
    transition:
        width 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.75s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: width, border-radius;
}

/* کارت کوچک */
.team-card.small {
    width: 180px;
    border-radius: 120px;
}

/* کارت بزرگ */
.team-card.large {
    width: 350px;
    border-radius: 24px;
}

/* عکس */
.team-card .photo {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

/* تصویر */
.team-card .photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* overlay */
.team-card .team-overlay {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2;

    padding: 30px 20px;

    text-align: center;

    opacity: 0;
    transform: translateY(20px);

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* overlay کارت فعال */
.team-card.large .team-overlay {
    opacity: 1;
    transform: translateY(0);

    pointer-events: auto;
}

/* نام */
.team-card .team-overlay h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;

    color: #fff;

    font-size: 20px;
    font-weight: 700;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.4);
}

/* سمت */
.team-card .team-overlay .role {
    display: inline-block;

    color: #fff;

    font-size: 13px;
    font-weight: 600;

    text-shadow:
        0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card .team-overlay {
        transition: none !important;
    }
}

/* Responsive */
@media (max-width: 1100px) {

    .team-grid {
        gap: 16px;
    }

    .team-card.small {
        width: 150px;
    }

    .team-card.large {
        width: 300px;
    }
}

@media (max-width: 850px) {

    .team-grid {
        flex-wrap: wrap;
        min-height: auto;
        padding: 30px 0;
    }

    .team-card {
        width: 160px;
        height: 320px;
    }

    .team-card.small {
        width: 140px;
    }

    .team-card.large {
        width: 280px;
    }
}

@media (max-width: 600px) {

    .team-grid {
        gap: 12px;
    }

    .team-card {
        height: 280px;
    }

    .team-card.small {
        width: 100px;
        border-radius: 70px;
    }

    .team-card.large {
        width: 220px;
        border-radius: 20px;
    }

    .team-card .team-overlay {
        padding: 20px 12px;
    }

    .team-card .team-overlay h3 {
        font-size: 16px;
    }

    .team-card .team-overlay .role {
        font-size: 11px;
    }
}
/* ===================== نظرات مشتریان (اسلایدر) ===================== */
.testimonials-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(201,152,47,.08), transparent 42%),
    var(--bg);
}
.testimonial-slider {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(14, 26, 47, .08);
  min-height: 340px;
}
.testimonial-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  direction: ltr;
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 52px 56px 46px;
  text-align: center;
  box-sizing: border-box;
  direction: rtl;
}
.testimonial-slide .quote-mark {
  width: 52px; height: 52px; margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(14, 26, 47, .2);
}
.testimonial-slide .quote-mark svg { width: 22px; height: 22px; }
.testimonial-slide .stars {
  color: var(--gold-500); font-size: 15px; letter-spacing: 3px; margin-bottom: 18px;
}
.testimonial-slide .comment {
  font-size: 18.5px; line-height: 2; color: var(--ink-soft);
  margin: 0 auto 28px; max-width: 640px; font-weight: 500;
}
.testimonial-slide .who {
  display: inline-flex; align-items: center; gap: 14px; text-align: right;
}
.testimonial-slide .who img,
.testimonial-slide .who svg {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-400);
  box-shadow: 0 8px 20px rgba(14, 26, 47, .12);
  background: var(--border);
  flex-shrink: 0;
}
.testimonial-slide .who svg {
  display: block;
}
.testimonial-slide .who b { display: block; font-size: 15.5px; color: var(--navy-900); }
.testimonial-slide .who span { font-size: 12.5px; color: var(--ink-faint); }

.testimonial-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--navy-800); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 3;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.testimonial-nav:hover {
  background: var(--navy-800); color: #fff; border-color: var(--navy-800);
}
.testimonial-nav.prev { right: -18px; }
.testimonial-nav.next { left: -18px; }
.testimonial-nav svg { width: 18px; height: 18px; }

.testimonial-dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 28px;
}
.testimonial-dots button {
  width: 15px; 
  height: 15px; 
  border-radius: 50%; 
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform .25s;
  position: relative;
}
.testimonial-dots button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(14, 26, 47, .18);
  transition: background-color .25s, transform .25s;
}
.testimonial-dots button.active::before {
  background-color: var(--gold-500);
  transform: translate(-50%, -50%) scale(1.15);
}


/* ===================== اینستاگرام ===================== */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.insta-item { aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.insta-item:hover img { transform: scale(1.1); }
.insta-item .ig-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(14,26,47,0); transition: background .2s; opacity: 0;
}
.insta-item:hover .ig-icon { background: rgba(14,26,47,.45); opacity: 1; }
.insta-item .ig-icon svg { width: 26px; height: 26px; color: #fff; }

/* ===================== CTA ===================== */
.cta-section {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-xl); padding: 60px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,152,47,.25), transparent 45%);
}
.cta-section h2 { color: #fff; font-size: 27px; margin-bottom: 10px; position: relative; }
.cta-section p { color: rgba(255,255,255,.75); margin: 0; position: relative; }
.cta-section .cta-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* CTA Responsive */
@media (max-width: 600px) {
  .cta-section {
    padding: 40px 24px;
    flex-direction: column;
    text-align: center;
  }
  
  .cta-section h2 {
    font-size: 22px;
  }
  
  .cta-section p {
    font-size: 14px;
  }
  
  .cta-section .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-section .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 450px) {
  .cta-section {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }
  
  .cta-section h2 {
    font-size: 19px;
    margin-bottom: 8px;
  }
  
  .cta-section p {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* ===================== فوتر ===================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h3 { color: #fff; font-size: 15px; margin-bottom: 22px; font-weight: 700; }
.footer-grid p { font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,.6); }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-grid ul a:hover { color: var(--gold-400); }
.footer-grid .social { display: flex; gap: 10px; margin-top: 18px; }
.footer-grid .social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.footer-grid .social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-grid .contact-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin-bottom: 14px; color: rgba(255,255,255,.7); transition: all .2s ease; }
.footer-grid .contact-line svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--gold-400); transition: transform .2s ease; }
.footer-grid a.contact-line { cursor: pointer; border-radius: 8px; padding: 8px; margin: 0 -8px 6px -8px; }
.footer-grid a.contact-line:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-grid a.contact-line:hover svg { transform: translateX(-3px); }
.footer-bottom { text-align: center; padding: 22px 0; font-size: 12.5px; color: rgba(255,255,255,.65); }

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  
  .footer-grid > div:first-child {
    grid-column: 1 / -1; /* اولین ستون (لوگو) تمام عرض را بگیرد */
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 50px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* دو ستون */
    gap: 35px 15px;
  }
  
  .footer-grid > div:first-child {
    grid-column: 1 / -1; /* لوگو و توضیحات تمام عرض */
    text-align: center;
    margin-bottom: 10px;
  }
  
  .footer-grid > div:first-child .brand {
    justify-content: center;
  }
  
  .footer-grid > div:first-child .social {
    justify-content: center;
  }
  
  .footer-grid h3 {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .footer-grid ul a,
  .footer-grid .contact-line {
    font-size: 12.5px;
  }
  
  .footer-grid ul li {
    margin-bottom: 10px;
  }
  
  .footer-bottom {
    font-size: 11.5px;
    padding: 18px 0;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr; /* یک ستون برای موبایل های خیلی کوچک */
    gap: 30px;
  }
  
  .footer-grid > div {
    text-align: center;
  }
  
  .footer-grid .contact-line {
    justify-content: center;
    text-align: right;
  }
}


/* ===================== صفحات داخلی: هدر عنوان ===================== */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  padding: 76px 0 66px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 0%, rgba(201,152,47,.2), transparent 50%); }
.page-hero .eyebrow { justify-content: center; color: var(--gold-400); }
.page-hero .eyebrow::before { background: var(--gold-400); }
.page-hero h1 { color: #fff; font-size: 36px; position: relative; }
.page-hero .hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  max-width: 600px;
  margin: 16px auto 0;
  position: relative;
}
.breadcrumbs { display: flex; gap: 8px; justify-content: center; font-size: 13px; color: rgba(255,255,255,.55); margin-top: 14px; position: relative; }
.breadcrumbs a { color: rgba(255,255,255,.75); }

/* ===================== فرم تماس ===================== */
.contact-wrap { display: grid; grid-template-columns: .95fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--navy-900); border-radius: var(--radius-xl); padding: 40px 34px; color: #fff;
  position: relative; overflow: hidden;
}
.contact-info-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 90% 100%, rgba(201,152,47,.22), transparent 50%); }
.contact-info-card h3 { color: #fff; font-size: 20px; margin-bottom: 24px; position: relative; }
.contact-info-card .item { display: flex; gap: 14px; margin-bottom: 22px; position: relative; }
.contact-info-card .item .ic {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-400);
}
.contact-info-card .item .t { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 3px; }
.contact-info-card .item .v { 
  font-size: 14.5px; 
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Contact page responsive */
@media (max-width: 600px) {
  .contact-wrap {
    gap: 30px;
  }
  
  .contact-info-card {
    padding: 32px 24px;
  }
  
  .contact-info-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .contact-info-card .item {
    gap: 12px;
    margin-bottom: 18px;
  }
  
  .contact-info-card .item .v {
    font-size: 13.5px;
  }
  
  .contact-form-card {
    padding: 28px 22px;
  }
}

@media (max-width: 450px) {
  .contact-info-card {
    padding: 28px 20px;
  }
  
  .contact-info-card .item {
    gap: 10px;
  }
  
  .contact-info-card .item .ic {
    width: 38px;
    height: 38px;
  }
  
  .contact-info-card .item .v {
    font-size: 12.5px;
    line-height: 1.6;
  }
  
  .contact-form-card {
    padding: 24px 18px;
  }
}

.contact-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; text-align: right; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--navy-800); }
.form-control {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; background: #fbfbfc; transition: border-color .15s, background .15s;
}
.form-control:focus { outline: none; border-color: var(--gold-500); background: #fff; }
textarea.form-control { min-height: 140px; resize: vertical; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 30px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: none; display: block; }

/* ===================== کارت خدمت (صفحه لیست خدمات) ===================== */
.service-list-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 24px;
}
.service-list-card .img-box { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.service-list-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.service-list-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-list-card p { color: var(--ink-soft); margin-bottom: 16px; }

.sub-items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sub-item-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.sub-item-card .img-box { aspect-ratio: 4/3; }
.sub-item-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.sub-item-card .body { padding: 16px 18px; }
.sub-item-card h4 { font-size: 15px; margin-bottom: 6px; }
.sub-item-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ===================== صفحه دیتیل خدمت ===================== */
.service-detail-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 80px;
}
.service-hero-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  box-shadow: var(--shadow-lg);
}

.service-main-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-900);
}

.service-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(201, 152, 47, .4);
  z-index: 10;
}

.service-hero-badge svg {
  width: 28px;
  height: 28px;
}

/* گالری تامبنیل‌ها */
.service-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}

.service-gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.service-gallery-thumbs::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 10px;
}

.service-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: 10px;
}

.gallery-thumb {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(14, 26, 47, .1);
}

.gallery-thumb:hover {
  border-color: var(--gold-400);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(201, 152, 47, .25);
}

.gallery-thumb.active {
  border-color: var(--gold-500);
  box-shadow: 0 8px 24px rgba(201, 152, 47, .4);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.1);
}

.thumb-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.service-hero-content {
  padding-top: 20px;
}
.service-hero-content h2 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--navy-900);
}
.service-description {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.service-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.service-variants-section {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--border);
}
.service-variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-variant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-variant-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 26, 47, .15);
  border-color: rgba(201, 152, 47, .3);
}
.variant-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.variant-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-variant-card:hover .variant-img img {
  transform: scale(1.08);
}
.variant-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 26, 47, .7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.service-variant-card:hover .variant-overlay {
  opacity: 1;
}
.variant-badge {
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.variant-body {
  padding: 24px;
}
.variant-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--navy-900);
}
.variant-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ===================== گالری صفحه پروژه ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; cursor: pointer; }

/* ===================== واکنش‌گرا ===================== */
@media (max-width: 1050px) {
  .services-grid, .team-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list-card { grid-template-columns: 1fr; }
  .testimonial-nav.prev { right: 8px; }
  .testimonial-nav.next { left: 8px; }
}

@media (max-width: 780px) {
  .nav-cluster { display: none; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 24px!important; }
  .section { padding: 60px 0; }
  .services-grid, .team-grid, .portfolio-grid, .sub-items-grid, .gallery-grid { grid-template-columns: 1fr; }
  .service-variants-grid { grid-template-columns: 1fr; }
  .service-detail-header { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .service-variants-section { margin-top: 50px; padding-top: 50px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-section { flex-direction: column; text-align: center; padding: 42px 26px; }
  .check-list { grid-template-columns: 1fr; }
  .stats-grid .stat { padding: 36px 16px; }
  .stats-grid .num { font-size: 32px; }
  .testimonial-slide { padding: 40px 28px 36px; }
  .testimonial-slide .comment { font-size: 16px; }
  .testimonial-nav { width: 40px; height: 40px; }
  .testimonial-nav.prev { right: 6px; }
  .testimonial-nav.next { left: 6px; }
}

/* ===================== منوی موبایل ===================== */
.mobile-nav {
  position: fixed; inset: 0; background: var(--navy-900); z-index: 200;
  display: flex; flex-direction: column; padding: 26px; transform: translateX(100%); transition: transform .25s;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .close-btn { align-self: flex-start; color: #fff; background: none; border: none; margin-bottom: 30px; }
.mobile-nav a { color: #fff; font-size: 18px; padding: 16px 6px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 700; }

/* ==========================================================================
   افکت‌های پرمیوم — گرادیان انیمیشنی، ولوهای موجی، اسلایدر پیشرفته، ریویل
   ========================================================================== */

/* ---------- بلاب‌های گرادیان متحرک (پس‌زمینه هیرو / CTA) ---------- */
.gradient-blobs { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.gradient-blobs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: blobFloat 16s ease-in-out infinite;
}
.gradient-blobs span:nth-child(1) { width: 420px; height: 420px; background: var(--accent-violet); top: -120px; right: -80px; animation-duration: 18s; }
.gradient-blobs span:nth-child(2) { width: 380px; height: 380px; background: var(--gold-500); bottom: -140px; left: -60px; animation-duration: 22s; animation-delay: -6s; }
.gradient-blobs span:nth-child(3) { width: 260px; height: 260px; background: var(--accent-blue); top: 40%; left: 30%; animation-duration: 14s; animation-delay: -3s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ---------- سیستم کارت پرمیوم (خدمات، تیم، نمونه‌کار، اینستاگرام) ---------- */
.premium-card {
  position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .35s ease;
}
.premium-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0; transition: opacity .4s ease;
}
.premium-card:hover::before { opacity: 1; }
.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(14, 26, 47, .12);
  border-color: rgba(201, 152, 47, .35);
}
.premium-card .icon-wrap { transition: transform .35s ease, box-shadow .35s ease; }
.premium-card:hover .icon-wrap {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px rgba(201, 152, 47, .28);
}

/* نسخه تیره (روی زمینه سرمه‌ای) */
.premium-card.on-dark {
  border: 1px solid rgba(255,255,255,.08);
}
.premium-card.on-dark::before {
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.premium-card.on-dark:hover {
  border-color: rgba(201, 152, 47, .4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .35), 0 0 0 1px rgba(201, 152, 47, .15);
}


/* ---------- ریویل هنگام اسکرول ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.reveal-in { transition-delay: .08s; }
.reveal-delay-2.reveal-in { transition-delay: .16s; }
.reveal-delay-3.reveal-in { transition-delay: .24s; }
.reveal-delay-4.reveal-in { transition-delay: .32s; }
.reveal-delay-5.reveal-in { transition-delay: .4s; }
.reveal-delay-6.reveal-in { transition-delay: .48s; }

/* ---------- ولوهای موجی متحرک (اتصال به باند تیره) ---------- */
.ocean-waves {
  position: relative;
  width: 100%;
  height: 96px;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}

/* پل رنگی نرم — بدون درز سفید */
.ocean-waves--top {
  margin-bottom: -3px;
  background: linear-gradient(180deg, var(--surface) 0%, #d5dde8 35%, #8fa0b5 62%, var(--navy-900) 100%);
}
.ocean-waves--bottom {
  margin-top: -3px;
  background: linear-gradient(180deg, var(--navy-900) 0%, #8fa0b5 38%, #d5dde8 68%, var(--surface) 100%);
}

/* نوار سرمه‌ای ثابت تا موقع بالا/پایین شدن درز نیفتد */
.ocean-waves--top::after,
.ocean-waves--bottom::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  z-index: 0;
  background: var(--navy-900);
}
.ocean-waves--top::after {
  bottom: 0;
  height: 42%;
}
.ocean-waves--bottom::before {
  top: 0;
  height: 42%;
}

.ow-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* پایین = برعکس کامل بالا */
.ocean-waves--bottom .ow-stack {
  transform: scaleY(-1);
  transform-origin: center center;
}

.ow-layer {
  position: absolute;
  left: -3%;
  width: 106%;
  bottom: -36px;
  height: calc(100% + 60px);
  display: block;
  shape-rendering: geometricPrecision;
  will-change: transform;
}
.ow-layer path {
  stroke: none;
}

.ow-silver {
  z-index: 1;
  animation: waveBobSoft 6.5s ease-in-out infinite;
}
.ow-mid {
  z-index: 2;
  animation: waveBobSoft 8s ease-in-out infinite;
  animation-delay: -2.2s;
}
.ow-navy {
  z-index: 3;
  animation: waveBobSoft 9.5s ease-in-out infinite;
  animation-delay: -4.4s;
}

.ow-silver path { fill: #c2cedb; }
.ow-mid path { fill: #3a5478; }
.ow-navy path { fill: #0e1a2f; }

/* فقط بالا/پایین — نرم و کم‌دامنه، بدون چپ/راست */
@keyframes waveBobSoft {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(0, -16px, 0); }
  50%  { transform: translate3d(0, -5px, 0); }
  75%  { transform: translate3d(0, -20px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ow-layer { animation: none !important; }
}

.wave-badge-wrap { position: relative; }
.wave-badge {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%; background: var(--navy-900);
  display: flex; align-items: center; justify-content: center; z-index: 5;
  border: 4px solid var(--surface); box-shadow: var(--shadow-md);
  pointer-events: auto;
}
.wave-badge svg { width: 22px; height: 22px; color: var(--gold-400); }

/* سازگاری با کلاس قدیمی در صورت استفاده */
.wave-divider { display: block; width: 100%; line-height: 0; position: relative; z-index: 2; }
.wave-divider svg { width: 100%; height: 90px; display: block; }
.wave-top-to-navy { margin-bottom: -1px; }
.wave-navy-to-bottom { margin-top: -2px; position: relative; }
.wave-navy-to-bottom svg { transform: rotate(180deg); }

/* ---------- باند تیره «نتایج و افتخارات» ---------- */
.results-band {
  background: linear-gradient(180deg, var(--navy-900) 0%, #101f38 45%, var(--navy-900) 100%);
  position: relative;
  overflow: visible;
}
.results-band::before {
  content: ""; position: absolute; inset: 0;
}
.results-band::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,152,47,.3) 20%, rgba(201,152,47,.6) 50%, rgba(201,152,47,.3) 80%, transparent 100%);
  box-shadow: 0 0 20px rgba(201,152,47,.4);
}
.results-band .inner-pad { position: relative; z-index: 2; padding: 30px 0 60px; }
.results-heading { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.results-heading .script-title {
  font-size: 30px; font-weight: 800; color: var(--gold-400); margin-bottom: 12px;
  font-style: italic; letter-spacing: .01em;
}
.results-heading h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.results-heading p { color: rgba(255,255,255,.62); margin: 0; }

/* کارت‌های نمونه‌کار — اسلایدر سه‌بعدی Coverflow */
.coverflow {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  user-select: none;
}
.coverflow-viewport {
  perspective: 1600px;
  perspective-origin: 50% 45%;
  height: 520px;
  margin: 0 auto 32px;
  overflow: visible;
}
.coverflow-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  direction: ltr;
}
.coverflow-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(340px, 72vw);
  height: 420px;
  margin: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, filter .5s ease;
  will-change: transform, opacity, filter;
  cursor: pointer;
}
.coverflow-card:not(.is-active) {
  cursor: pointer;
}
.coverflow-card:not(.is-active):hover {
  filter: brightness(1.12) !important;
}
.coverflow-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0a1322;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255,255,255,.1);
  transition: box-shadow .45s ease, border-color .45s ease;
}
.coverflow-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.coverflow-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 20px 20px;
  background: linear-gradient(0deg, rgba(10,19,34,.95) 0%, rgba(14,26,47,.85) 60%, transparent 100%);
  color: #fff;
  text-align: center;
  direction: rtl;
  transition: opacity .35s ease, transform .35s ease;
}
.coverflow-caption .cat {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.coverflow-caption strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.coverflow-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 19, 34, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(35%);
  pointer-events: none;
  transition: opacity .45s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
  direction: rtl;
  text-align: center;
  border-radius: 22px;
}
.coverflow-hover-inner { max-width: 92%; }
.coverflow-hover .cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.coverflow-hover h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.4;
}
.coverflow-hover .loc {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  margin-bottom: 12px;
}
.coverflow-hover p {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.coverflow-hover .btn { pointer-events: auto; }
.coverflow-hover a { pointer-events: auto; }

.coverflow-card.is-active {
  cursor: default;
  z-index: 20 !important;
}
.coverflow-card.is-active .coverflow-media {
  border-color: rgba(201, 152, 47, .55);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, .6),
    0 0 0 2px rgba(201, 152, 47, .3),
    0 0 50px rgba(201, 152, 47, .18);
}
.coverflow-card.is-active:hover .coverflow-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.coverflow-card.is-active:hover .coverflow-caption {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}
.coverflow-card.is-active:hover .coverflow-media img {
  transform: scale(1.08);
}

.coverflow-ui { text-align: center; direction: ltr; }
.coverflow-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  direction: ltr;
}
.coverflow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.coverflow-btn svg { width: 18px; height: 18px; }
.coverflow-btn:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}
.coverflow-play .ico-play { display: none; }
.coverflow-play[data-playing="0"] .ico-pause { display: none; }
.coverflow-play[data-playing="0"] .ico-play { display: block; }

.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  direction: ltr;
}
.coverflow-dots button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
}
.coverflow-dots button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.28);
  transition: all .3s ease;
}
.coverflow-dots button.active::before {
  background-color: var(--gold-500);
  width: 28px;
  border-radius: 8px;
}

@media (max-width: 780px) {
  .coverflow-viewport { height: 440px; }
  .coverflow-card { width: min(280px, 75vw); height: 360px; }
  .coverflow-btn { width: 42px; height: 42px; }
}

/* لوگوهای برند روی زمینه تیره */
.brands-strip { margin-top: 66px; padding-top: 50px; border-top: 1px solid rgba(255,255,255,.08); }
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; align-items: center; margin-bottom: 44px; }
.brands-grid a, .brands-grid .logo-box { display: flex; align-items: center; justify-content: center; height: 54px; opacity: .55; transition: opacity .25s, transform .25s; filter: grayscale(1) brightness(2.2); }
.brands-grid a:hover, .brands-grid .logo-box:hover { opacity: 1; transform: scale(1.06); filter: grayscale(0) brightness(1); }
.brands-grid img { max-height: 100%; max-width: 100%; object-fit: contain; }

.happy-counter { text-align: center; }
.happy-counter .n { font-size: 46px; font-weight: 800; color: var(--gold-400); }
.happy-counter .n::before { content: "+"; }
.happy-counter .l { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ---------- اسلایدر پرمیوم صفحه اول ---------- */
.hero-slider { position: relative; overflow: hidden; height: 800px; }

/* افکت زوم برای تصویر بک‌گراند جدید */
.hero-slide .hero-bg-img { transform: scale(1.06); transition: transform 7s ease; }
.hero-slide.active .hero-bg-img { transform: scale(1); }

/* غیرفعال کردن انیمیشن زوم در موبایل */
@media (max-width: 780px) {
  .hero-slide .hero-bg-img { transform: scale(1); transition: none; }
  .hero-slide.active .hero-bg-img { transform: scale(1); }
}

/* پشتیبانی از کد قدیمی */
.hero-slide .bg-img { transform: scale(1.06); transition: transform 7s ease; }
.hero-slide.active .bg-img { transform: scale(1); }

/* غیرفعال کردن انیمیشن زوم در موبایل */
@media (max-width: 780px) {
  .hero-slide .bg-img { transform: scale(1); transition: none; }
  .hero-slide.active .bg-img { transform: scale(1); }
}


.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-nav-btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.hero-nav-btn.prev { right: 36px; }
.hero-nav-btn.next { left: 36px; }
.hero-nav-btn svg { width: 20px; height: 20px; }

/* Hero nav buttons responsive */
@media (max-width: 780px) {
  .hero-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .hero-nav-btn.prev {
    right: 14px;
  }
  
  .hero-nav-btn.next {
    left: 14px;
  }
}

@media (max-width: 600px) {
  .hero-nav-btn {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 36px;
    height: 36px;
    background: rgba(14,26,47,.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
  }
  
  .hero-nav-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .hero-nav-btn.prev {
    right: 50%;
    margin-right: 25px;
  }
  
  .hero-nav-btn.next {
    left: 50%;
    margin-left: 25px;
  }
}

@media (max-width: 450px) {
  .hero-nav-btn {
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: none;
    visibility: hidden;
  }
  
  .hero-nav-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .hero-nav-btn.prev {
    margin-right: 20px;
  }
  
  .hero-nav-btn.next {
    margin-left: 20px;
  }
}

/* نوار پیشرفت پایین اسلایدر */
.hero-progress-line {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  height: 3px; background: rgba(255,255,255,.18); overflow: hidden;
  display: flex; justify-content: flex-start;
}
.hero-progress-line .fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  will-change: width;
}

@media (max-width: 780px) {
  .hero-nav-btn { width: 40px; height: 40px; }
  .hero-nav-btn.prev { right: 14px; } .hero-nav-btn.next { left: 14px; }
  .hero-dots { bottom: 22px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .results-heading h2, .results-heading .script-title { font-size: 24px; }
}
a[href="team.php"] {
    display: none !important;
}