/* =====================================================
   NUVITA — استایل اصلی (RTL, Mobile-first)
   ===================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

:root {
  /* فیروزه‌ای (نام متغیرها برای سازگاری حفظ شده؛ مقدارها از تنظیمات ادمین هم override می‌شوند) */
  --nv-green-900: #0a4a52;
  --nv-green-800: #0f8a94;
  --nv-green-700: #3ba3ab;
  --nv-green-200: #d3f0f1;
  --nv-green-100: #e9f8f8;
  --nv-green-50:  #f4fbfb;
  --nv-cream:     #f3fbfb;
  --nv-card:      #ffffff;
  --nv-white:     #ffffff;
  --nv-text:      #073c43;
  --nv-muted:     #3d6c72;
  --nv-border:    #cfe9ea;
  /* طلایی */
  --nv-gold:      #c9a24a;
  --nv-gold-soft: #e9d6a6;
  --nv-gold-deep: #8d6f27;
  --nv-gold-grad: linear-gradient(120deg, var(--nv-gold-deep) 0%, var(--nv-gold-soft) 28%, var(--nv-gold) 52%, var(--nv-gold-soft) 74%, var(--nv-gold-deep) 100%);
  --nv-radius:    18px;
  --nv-radius-lg: 34px;
  --nv-shadow:    0 10px 35px rgba(15, 138, 148, .14);
  --nv-shadow-sm: 0 4px 14px rgba(15, 138, 148, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--nv-cream);
  color: var(--nv-text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* پس‌زمینه: سفید مایل به نعنایی، سرشاخه‌های برگ در دو گوشه، خطوط طلایی روان و لکه‌های فیروزه‌ای محو */
.nv-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    url('../img/bg-lines-light.svg') center / cover no-repeat,
    radial-gradient(540px 440px at 0% 100%, rgba(63, 190, 198, .26), transparent 70%),
    radial-gradient(440px 540px at 100% 60%, rgba(63, 190, 198, .20), transparent 70%),
    radial-gradient(560px 400px at 0% 0%, rgba(150, 226, 226, .30), transparent 70%),
    linear-gradient(180deg, #fdfffe 0%, #f3fbfa 100%);
}
.nv-bg::before, .nv-bg::after {
  content: ''; position: absolute; width: clamp(190px, 34vw, 430px); aspect-ratio: 480 / 600;
  background: url('../img/bg-sprig-light.svg') no-repeat center / contain; pointer-events: none; opacity: .6;
}
.nv-bg::before { top: -24px; left: -36px; }
.nv-bg::after  { bottom: -30px; right: -36px; transform: scaleX(-1) rotate(8deg); }

/* ---------- کارت مرکزی موبایل ---------- */
.nv-shell {
  max-width: 480px; margin: 24px auto; padding: 40px 26px 34px;
  border: 1.5px solid rgba(201, 162, 74, .55);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow), inset 0 0 0 1px rgba(255, 255, 255, .6);
  min-height: calc(100vh - 48px);
}
@media (max-width: 520px) {
  /* موبایل: کارت شفاف می‌شود تا برگ‌ها و خطوط طلایی پس‌زمینه دیده شوند */
  .nv-shell { margin: 0; border-radius: 0; min-height: 100vh; border-color: transparent; background: transparent;
              -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
}

/* ---------- لوگو ---------- */
.nv-logo { text-align: center; margin-bottom: 18px; }
.nv-logo img { width: 96px; height: auto; }
.nv-logo .brand {
  display: block; font-size: 30px; font-weight: 700; letter-spacing: .45em;
  margin-top: 2px; padding-right: .45em;
  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, var(--nv-green-800), var(--nv-green-900));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nv-logo .tagline {
  display: block; font-size: 10.5px; letter-spacing: .28em; color: var(--nv-gold-deep);
  padding-right: .28em;
}
.nv-logo::after {            /* خط طلایی زیر لوگو */
  content: ''; display: block; width: 150px; height: 2px; margin: 16px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--nv-gold) 25%, var(--nv-gold-soft) 50%, var(--nv-gold) 75%, transparent);
}

/* ---------- تیترها ---------- */
.nv-title { text-align: center; font-size: 22px; font-weight: 700; color: var(--nv-green-900); margin: 18px 0 6px; }
.nv-title::after { content: ''; display: block; width: 64px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: var(--nv-gold-grad); }
.nv-sub   { text-align: center; color: var(--nv-muted); font-size: 14.5px; margin: 0 0 26px; }

.nv-icon-badge {
  width: 58px; height: 58px; margin: 8px auto 0; border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, var(--nv-gold-grad) border-box;
  box-shadow: var(--nv-shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--nv-green-800);
}

/* ---------- دکمه‌های منوی اصلی ---------- */
.nv-menu { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.nv-menu-btn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 20px; min-height: 58px; border-radius: var(--nv-radius);
  font-size: 16px; line-height: 1.6; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.nv-menu-btn:hover { transform: translateY(-2px); box-shadow: var(--nv-shadow); }
.nv-menu-btn svg { flex: 0 0 auto; }
.nv-menu-btn { position: relative; }
.nv-menu-btn.primary {
  background: linear-gradient(135deg, var(--nv-green-700), var(--nv-green-800) 55%, var(--nv-green-900));
  color: #fff; box-shadow: var(--nv-shadow), inset 0 0 0 1.5px var(--nv-gold);
}
.nv-menu-btn.soft {
  background: linear-gradient(135deg, var(--nv-green-100), var(--nv-green-200));
  color: var(--nv-green-900); box-shadow: inset 0 0 0 1px var(--nv-gold-soft);
}
.nv-menu-btn.outline {
  background: #fff; color: var(--nv-green-900);
  border: 1.5px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, var(--nv-gold-grad) border-box;
}
.nv-menu-btn.soft:hover, .nv-menu-btn.outline:hover { box-shadow: var(--nv-shadow), inset 0 0 0 1.5px var(--nv-gold); }
.nv-badge-gold {
  position: absolute; top: -9px; left: 14px; font-size: 11px; font-weight: 700; padding: 2px 11px; border-radius: 99px;
  background: var(--nv-gold-grad); color: #3d2c00; box-shadow: 0 2px 6px rgba(141,111,39,.35);
}

.nv-footer-call { text-align: center; margin-top: 26px; color: var(--nv-green-900); }
.nv-footer-call .num { font-size: 19px; font-weight: 700; letter-spacing: .06em; direction: ltr; display: inline-block; }

/* ---------- فرم ---------- */
.nv-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.nv-field label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 8px; color: var(--nv-text); }
.nv-input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--nv-white); border: 1px solid var(--nv-border);
  border-radius: 14px; box-shadow: var(--nv-shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nv-input-wrap:focus-within { border-color: var(--nv-green-700); box-shadow: 0 0 0 3px rgba(15,138,148,.14); }
.nv-input-wrap .icon { position: absolute; right: 14px; color: var(--nv-green-800); display: flex; }
.nv-input-wrap input, .nv-input-wrap textarea, .nv-input-wrap select {
  width: 100%; border: 0; outline: 0; background: transparent;
  padding: 14px 46px 14px 14px; font: inherit; color: var(--nv-text);
  border-radius: 14px;
}
.nv-input-wrap textarea { min-height: 96px; resize: vertical; }
.nv-error { color: #b3261e; font-size: 13px; margin-top: 5px; display: none; }
.nv-field.invalid .nv-error { display: block; }
.nv-field.invalid .nv-input-wrap { border-color: #d66; }

.nv-submit {
  width: 100%; padding: 17px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--nv-green-700), var(--nv-green-800) 55%, var(--nv-green-900)); color: #fff; font: inherit; font-size: 17px; font-weight: 700;
  box-shadow: var(--nv-shadow), inset 0 0 0 1.5px var(--nv-gold); transition: background .15s ease, transform .1s ease;
}
.nv-submit:hover { filter: brightness(1.06); }
.nv-submit:active { transform: scale(.99); }
.nv-submit[disabled] { opacity: .6; cursor: wait; }

.nv-privacy { text-align: center; font-size: 13px; color: var(--nv-muted); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.nv-privacy svg { color: var(--nv-green-800); }

.nv-alert { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; margin-bottom: 6px; display: none; }
.nv-alert.ok  { display: block; background: #dcf2e3; color: #15522e; border: 1px solid #b9e2c8; }
.nv-alert.err { display: block; background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }

.nv-back { display: inline-flex; align-items: center; gap: 6px; color: var(--nv-green-800); text-decoration: none; font-size: 14px; margin-bottom: 6px; }
.nv-back:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.nv-faq { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.nv-faq-item { background: var(--nv-white); border: 1px solid var(--nv-border); border-radius: 14px; box-shadow: var(--nv-shadow-sm); overflow: hidden; }
.nv-faq-q {
  width: 100%; text-align: right; background: none; border: 0; cursor: pointer;
  padding: 15px 18px; font: inherit; font-weight: 500; color: var(--nv-green-900);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.nv-faq-q .chev { transition: transform .2s ease; color: var(--nv-green-700); flex: 0 0 auto; }
.nv-faq-item.open .chev { transform: rotate(180deg); }
.nv-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.nv-faq-a > div { padding: 0 18px 16px; color: var(--nv-muted); font-size: 14.5px; }

/* ---------- Spinner ---------- */
.nv-spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: nvspin .7s linear infinite; vertical-align: -4px; margin-left: 8px; }
@keyframes nvspin { to { transform: rotate(360deg); } }

/* ---------- بخش‌های صفحه فوندایو ---------- */
.nv-sec { padding: 0; border: 1.5px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--nv-gold-grad) border-box; }
.nv-sec.highlight { background: linear-gradient(var(--nv-green-100),var(--nv-green-100)) padding-box, var(--nv-gold-grad) border-box; }
.nv-sec-img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.nv-sec-body { padding: 20px 22px; }
.nv-sec-body h2 { margin: 0 0 12px; font-size: 16.5px; color: var(--nv-green-900); }
.nv-sec-body p { margin: 0; font-size: 14.5px; line-height: 2; color: var(--nv-text); }
.nv-sec-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }


/* =====================================================
   بهبود تجربه کاربری (v5)
   ===================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--nv-green-200); color: var(--nv-green-900); }

/* فوکوس واضح برای کیبورد */
:focus-visible { outline: 3px solid var(--nv-gold); outline-offset: 3px; border-radius: 10px; }
.nv-input-wrap input:focus-visible, .nv-input-wrap textarea:focus-visible { outline: 0; }

/* لینک «رفتن به محتوا» برای کیبورد و صفحه‌خوان */
.nv-skip { position: absolute; top: -60px; right: 12px; z-index: 100; background: var(--nv-green-900); color: #fff;
  padding: 10px 16px; border-radius: 0 0 12px 12px; text-decoration: none; transition: top .15s ease; }
.nv-skip:focus { top: 0; }

/* پایین صفحه: دکمه تماس */
.nv-footer-call { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; }
.nv-footer-call .lbl { font-size: 13.5px; color: var(--nv-muted); }
.nv-call-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px; border-radius: 999px;
  color: var(--nv-green-900); text-decoration: none; direction: ltr;
  border: 1.5px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, var(--nv-gold-grad) border-box;
  box-shadow: var(--nv-shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.nv-call-pill:hover { transform: translateY(-2px); box-shadow: var(--nv-shadow); }
.nv-call-pill svg { width: 22px; height: 22px; color: var(--nv-green-800); }
.nv-call-pill .num { font-size: 19px; font-weight: 700; letter-spacing: .06em; }

/* ورود صفحه: یک حرکت هماهنگ، آرام (دکمه‌ها پشت سر هم) */
@keyframes nvRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nv-menu .nv-menu-btn { animation: nvRise .45s cubic-bezier(.22,.9,.36,1) both; }
.nv-menu .nv-menu-btn:nth-child(1) { animation-delay: .05s; }
.nv-menu .nv-menu-btn:nth-child(2) { animation-delay: .10s; }
.nv-menu .nv-menu-btn:nth-child(3) { animation-delay: .15s; }
.nv-menu .nv-menu-btn:nth-child(4) { animation-delay: .20s; }
.nv-menu .nv-menu-btn:nth-child(n+5) { animation-delay: .25s; }

/* فشار دادن دکمه‌ها (بازخورد لمسی) */
.nv-menu-btn:active, .nv-submit:active, .nv-call-pill:active { transform: scale(.985); }

/* صفحه‌های کوچک */
@media (max-width: 380px) {
  .nv-shell { padding: 30px 16px 26px; }
  .nv-title { font-size: 20px; }
  .nv-menu-btn { font-size: 15px; padding: 14px 14px; gap: 10px; }
}

/* احترام به تنظیم «کاهش حرکت» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* پیام‌های فرم: خوانا و بدون پرش */
.nv-alert { line-height: 1.8; }
.nv-error { font-weight: 500; }


/* ---------- بخش‌های اعتماد: نتایج مشتریان و درباره مشاور ---------- */
.nv-results, .nv-about { margin-top: 34px; }
.nv-h2 { text-align: center; font-size: 18px; font-weight: 700; color: var(--nv-green-900); margin: 0 0 6px; }
.nv-h2::after { content: ''; display: block; width: 48px; height: 2px; margin: 8px auto 0; border-radius: 2px; background: var(--nv-gold-grad); }
.nv-h2-sub { text-align: center; color: var(--nv-muted); font-size: 13px; margin: 8px 0 14px; line-height: 1.9; }

.nv-res-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px; margin: 0 -4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--nv-gold) transparent; }
.nv-res-card { flex: 0 0 74%; max-width: 280px; margin: 0; scroll-snap-align: center; border-radius: 18px; overflow: hidden;
  border: 1.5px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--nv-gold-grad) border-box; box-shadow: var(--nv-shadow-sm); }
.nv-res-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--nv-green-100); cursor: zoom-in; }
.nv-res-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nv-res-card figcaption { padding: 10px 14px 12px; font-size: 13.5px; line-height: 1.8; color: var(--nv-text); display: flex; flex-direction: column; gap: 2px; }
.nv-res-card figcaption span { color: var(--nv-muted); font-size: 12.5px; }

.nv-about-card { text-align: center; padding: 22px 20px; border-radius: 20px; border: 1.5px solid transparent;
  background: linear-gradient(var(--nv-green-50),#fff) padding-box, var(--nv-gold-grad) border-box; box-shadow: var(--nv-shadow-sm); }
.nv-about-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--nv-gold); }
.nv-about-name { font-weight: 700; font-size: 17px; color: var(--nv-green-900); }
.nv-about-role { color: var(--nv-gold-deep); font-size: 13.5px; margin-top: 2px; }
.nv-about-card p { margin: 12px 0 0; font-size: 14.5px; line-height: 2; color: var(--nv-text); }
.nv-badges { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; text-align: right; }
.nv-badges li { position: relative; padding: 8px 38px 8px 12px; background: #fff; border: 1px solid var(--nv-border); border-radius: 12px; font-size: 14px; }
.nv-badges li::before { content: '✓'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%;
  background: var(--nv-gold-grad); color: #3d2c00; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.nv-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 40, 46, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 12px; }
.nv-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.nv-lb-x { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--nv-gold); background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }
.nv-lb-cap { color: #fff; font-size: 14px; text-align: center; }
