@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:        #0e0e10;
  --ink-2:      #52525b;
  --ink-3:      #a1a1aa;
  --surface:    #ffffff;
  --bg:         #f6f3ec;
  --line:       rgba(16,24,43,.08);
  --gold:       #b8960c;
  --gold-deep:  #8a6c12;
  --gold-light: #fdf8e7;
  --gold-mid:   #e8cc6a;
  --gold-glow:  rgba(184,150,12,.30);
  --navy:       #0d1526;
  --navy-2:     #1e2d4a;
  --navy-3:     #2c4068;
  --r:          10px;
  --r-lg:       18px;
  --ease:       cubic-bezier(.16,1,.3,1);
  --shadow-sm:  0 1px 3px rgba(13,21,38,.07);
  --shadow-md:  0 14px 34px rgba(13,21,38,.10);
  --shadow-lg:  0 28px 60px rgba(13,21,38,.16);
  --shadow-gold: 0 14px 32px rgba(184,150,12,.28);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(184,150,12,.05), transparent 40%),
    radial-gradient(circle at 92% 60%, rgba(13,21,38,.04), transparent 45%);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP NAV (legacy / fallback) ── */
.top-nav {
  background: var(--navy);
  padding: .6rem 2.5rem;
  text-align: left;
  display: flex;
  justify-content: flex-start;
}
.top-nav a {
  color: var(--gold-mid);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: .8;
  transition: opacity .2s;
}
.top-nav a:hover { opacity: 1; }

/* ── HEADER ── */
header {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 5.5rem 2rem 6.5rem;
  border-bottom: none;
  overflow: hidden;
}
/* مات و عمیق‌تر کردن پس‌زمینه با لایه‌ی گرادیانت روی رنگ ثابت فعلی (سازگار با استایل inline موجود) */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(232,204,106,.16), transparent 55%),
    linear-gradient(180deg, rgba(13,21,38,.0) 0%, rgba(13,21,38,.35) 100%);
  pointer-events: none;
}
/* موتیف امضا: حلقه‌ی طلایی شبیه صفحه‌ی یک کرنومتر، اشاره به وعده‌ی «۳۰ دقیقه» */
header::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  border: 1px dashed rgba(232,204,106,.18);
  pointer-events: none;
}
header h1,
header p {
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .7rem;
  text-shadow: 0 2px 24px rgba(232,204,106,.25);
}
header h1 span {
  color: var(--gold-mid);
}
header p {
  color: rgba(255,255,255,.6);
  font-size: 1.02rem;
  letter-spacing: .01em;
}
header p::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-mid));
  border-radius: 3px;
}

/* ── SEARCH (پنل شناور روی هدر) ── */
.search-container {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-width: 1040px;
  margin: -3.4rem auto 0;
  padding: 1.8rem 2rem;
}
.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}
.search-row select {
  flex: 1;
  min-width: 160px;
  font-family: inherit;
  font-size: 14px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-row select:focus,
.search-row select:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.search-row button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: .85rem 2.6rem;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold));
  color: var(--navy);
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  letter-spacing: .03em;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.search-row button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(184,150,12,.36);
}
.search-row button:active { transform: translateY(-1px); }

/* ── STEPS ── */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  max-width: 980px;
  margin: 4.5rem auto 3rem;
  padding: 0 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.step-card {
  background: var(--surface);
  padding: 2.2rem 1.5rem;
  text-align: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
  position: relative;
}
.step-card:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), #fff);
  border: 1px solid var(--gold-mid);
  box-shadow: 0 6px 16px rgba(184,150,12,.16);
}
.step-card h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.step-card p {
  font-size: .82rem;
  color: var(--ink-2);
}

/* ── BRANDS ── */
.brands-section {
  position: relative;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  padding: 2.8rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.brands-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(232,204,106,.10), transparent 50%);
  pointer-events: none;
}
.brands-section h3 {
  position: relative;
  color: var(--gold-mid);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.brands-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.brand-badge {
  color: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: 12px;
  letter-spacing: .02em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  cursor: default;
}
.brand-badge:hover {
  color: var(--navy);
  border-color: var(--gold-mid);
  background: var(--gold-mid);
}

/* ── SERVICES TITLE ── */
.services-section-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 4rem 0 1.8rem;
  letter-spacing: -.01em;
}
.services-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: .8rem auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-mid));
  border-radius: 3px;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}
.service-clickable-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.2rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-clickable-card::before {
  content: "";
  position: absolute;
  top: 0; right: 18%; left: 18%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-mid));
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.service-clickable-card:hover::before { transform: scaleX(1); }
.service-clickable-card:hover {
  border-color: var(--gold-mid);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-size: 1.7rem;
  margin-bottom: .85rem;
  width: 52px;
  height: 52px;
  line-height: 52px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--gold-light);
}
.service-clickable-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.service-clickable-card p {
  font-size: .78rem;
  color: var(--ink-2);
  margin-bottom: 1.1rem;
}
.card-action {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: .03em;
  border-bottom: 1.5px solid var(--gold-mid);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.service-clickable-card:hover .card-action {
  border-color: var(--gold);
  transform: translateX(-3px);
}

/* ── FAQ ── */
.faq-section {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}
.faq-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.3rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--gold-mid);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 10px;
  padding: 0 1.2rem;
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item.active {
  border-color: var(--gold-mid);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  padding: 1.15rem 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-item.active .faq-question {
  color: var(--gold-deep);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: .87rem;
  color: var(--ink-2);
  line-height: 1.9;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
  padding: 0;
}
.faq-item.active .faq-answer {
  padding-bottom: 1.3rem;
}

/* ── CALLBACK ── */
.request-callback-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, var(--navy-3), var(--navy) 65%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.5rem;
  border-top: none;
  overflow: hidden;
}
.request-callback-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}
.request-callback-section h3 {
  position: relative;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .55rem;
  letter-spacing: -.02em;
}
.request-callback-section p {
  position: relative;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  margin-bottom: 2.2rem;
}
.request-callback-section form {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.request-callback-section input {
  flex: 1;
  min-width: 170px;
  font-family: inherit;
  font-size: 14px;
  padding: .85rem 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  color: #fff;
  outline: none;
  backdrop-filter: blur(2px);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.request-callback-section input::placeholder {
  color: rgba(255,255,255,.35);
}
.request-callback-section input:focus {
  border-color: var(--gold-mid);
  background: rgba(255,255,255,.1);
}
.request-callback-section button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: .85rem 2.2rem;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold));
  color: var(--navy);
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.request-callback-section button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(184,150,12,.32);
}

/* ── FOOTER ── */
footer {
  background: linear-gradient(180deg, #08090f, #05060a);
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: .82rem;
  line-height: 2.2;
}
footer a.footer-phone {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-mid);
  text-decoration: none;
  letter-spacing: .06em;
  margin-top: .6rem;
  padding: .3rem 1.4rem;
  border: 1px solid rgba(232,204,106,.3);
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
footer a.footer-phone:hover {
  color: #fff;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 6px rgba(232,204,106,.08);
}

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  header { padding: 3.5rem 1rem 4.5rem; }
  .search-container { margin: -2.2rem 1rem 0; padding: 1.3rem 1.1rem; }
  .search-row { flex-direction: column; }
  .search-row select,
  .search-row button { width: 100%; }
  .steps-container {
    grid-template-columns: 1fr;
    margin: 3rem 1rem 2rem;
    padding: 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
  }
  .request-callback-section form {
    flex-direction: column;
  }
  .request-callback-section input,
  .request-callback-section button { width: 100%; }
}

/* ==========================================================================
   استایل اختصاصی دراپ‌داون‌های سفارشی همراه با باکس سرچ و اسکرول داخلی
   ========================================================================== */
.custom-dropdown {
    position: relative;
    flex: 1;
    min-width: 200px;
    font-family: inherit;
    text-align: right;
}

/* دکمه اصلی فعال‌کننده منو */
.dropdown-trigger {
    background: var(--bg);
    border: 1.5px solid var(--line);
    padding: 12px 15px;
    border-radius: var(--r);
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.dropdown-trigger:after {
    content: "▼";
    font-size: 10px;
    color: var(--gold-deep);
    margin-right: auto;
    margin-left: 5px;
    transition: transform .25s var(--ease);
}

.custom-dropdown.open .dropdown-trigger {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.custom-dropdown.open .dropdown-trigger:after {
    transform: rotate(180deg);
}

/* باکس اصلی نگهدارنده منو - اجبار به باز شدن فقط به سمت پایین */
.dropdown-menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 99999; /* جلوگیری از رفتن به زیر المان‌های دیگر */
}

.custom-dropdown.open .dropdown-menu-wrapper {
    display: block;
    animation: dropdownIn .18s var(--ease);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* اینپوت سرچ درون منو */
.dropdown-search-input {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-bottom: 1px solid var(--line);
    outline: none;
    font-size: 13px;
    box-sizing: border-box;
    border-top-left-radius: var(--r);
    border-top-right-radius: var(--r);
}

/* لیست گزینه‌ها - محدود به ۵ گزینه و فعال‌سازی اسکرول */
.dropdown-options-list {
    max-height: 200px; /* حداکثر ارتفاع معادل حدود ۵ گزینه */
    overflow-y: auto;  /* فعال شدن اسکرول عمودی */
}

/* استایل اسکرول‌بار ظریف و مدرن */
.dropdown-options-list::-webkit-scrollbar {
    width: 6px;
}
.dropdown-options-list::-webkit-scrollbar-thumb {
    background-color: var(--gold-mid);
    border-radius: 4px;
}

/* آيتم‌های تک‌تک درون منو */
.dropdown-option-item {
    padding: 10px 15px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease);
}

.dropdown-option-item:hover {
    background: var(--gold-light);
    color: var(--navy);
}

/* راست‌چین کردن محتویات گرید نوار سرچ اصلی برای همخوانی با تغییرات */
.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* استایل‌های اختصاصی هدر و لوگوی ریسپانسیو الو تکنسین */
.main-site-header {
    background: linear-gradient(180deg, var(--navy), #0a0f1c);
    padding: 13px 20px;
    border-bottom: 1px solid rgba(232,204,106,.18);
}

.top-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-login-btn {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-family: Tahoma, sans-serif;
    padding: 5px 12px;
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 999px;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}

.admin-login-btn:hover {
    color: var(--gold-mid);
    border-color: var(--gold-mid);
}

/* استایل دسکتاپ برند */
.desktop-brand-logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Lalezar', Tahoma, sans-serif;
    letter-spacing: 0.5px;
    transition: text-shadow .25s var(--ease);
}
.desktop-brand-logo:hover {
    text-shadow: 0 0 18px rgba(232,204,106,.45);
}

/* مخفی کردن لوگوی موبایل در حالت پیشفرض دسکتاپ */
.mobile-brand-logo {
    display: none;
}

/* هندل کردن حالت موبایل و رسپانس */
@media (max-width: 767px) {
    .desktop-brand-logo {
        display: none !important; /* متن در موبایل کاملاً مخفی شود */
    }
    .mobile-brand-logo {
        display: block !important; /* تصویر مینی‌مال ابزار در موبایل بالا بیاید */
    }
    .mobile-brand-logo img {
        display: block;
        max-width: 100%;
        height: auto;
    }
}