@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

:root {
  --bg: #f7fbff;
  --card: #ffffff;
  --ink: #102033;
  --muted: #5d6b7a;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #f59e0b;
  --line: #dbe7f2;
  --shadow: 0 18px 45px rgba(15, 42, 71, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: #0b2f3a;
  color: #e8fbff;
  font-size: .92rem;
}

.topbar .container,
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar .container { padding-block: 8px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar .container { padding-block: 14px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--primary-dark);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #0891b2);
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: .95rem;
}

.nav-links a { color: #21364a; }
.nav-links a:hover { color: var(--primary); }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: #21364a;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "⌄";
  margin-right: 6px;
  color: var(--primary);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: min(960px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.mega-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
}

.mega-menu-column {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.mega-menu-column h3 {
  margin: 0 0 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 1rem;
}

.mega-menu-column a {
  min-width: 0;
  padding: 7px 10px;
  font-size: .88rem;
  line-height: 1.65;
}

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

.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid transparent;
  font-weight: 700;
}

.dropdown-menu a:hover {
  border-color: var(--line);
  background: #e8fbf8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0891b2);
  box-shadow: 0 12px 25px rgba(15,118,110,.25);
}

.btn-light {
  color: var(--primary-dark);
  background: #e8fbf8;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(8,145,178,.18), transparent 32%),
    linear-gradient(135deg, #eefcff, #ffffff 55%, #fff7e6);
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: .9rem;
}

h1, h2, h3 { line-height: 1.45; margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 14px; color: var(--muted); }

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-card,
.card,
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-card { padding: 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat {
  padding: 14px;
  border-radius: 18px;
  background: #f1f8fb;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.35rem;
}

section { padding: 64px 0; }
.section-soft { background: #eef7fb; }

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.experts-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.experts-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.experts-carousel::-webkit-scrollbar {
  height: 10px;
}

.experts-carousel::-webkit-scrollbar-thumb {
  background: #bfd8e3;
  border-radius: 999px;
}

.expert-card {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.expert-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef7fb;
}

.expert-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.expert-review-summary {
  min-height: 24px;
  color: var(--primary-dark);
  font-size: .88rem;
  font-weight: 800;
}

.expert-reviews {
  display: grid;
  gap: 8px;
}

.review-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fcfe;
}

.review-item p {
  margin: 4px 0 0;
  font-size: .88rem;
  line-height: 1.7;
}

.review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .88rem;
}

.review-item-stars,
.star-rating-input label {
  color: var(--accent);
  letter-spacing: 1px;
}

.review-empty {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b45309;
  font-weight: 800;
}

.rating span {
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.footer-phones {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(183, 215, 222, .35);
  border-radius: 999px;
  color: #e8fbff !important;
  font-weight: 800;
  font-size: .86rem;
}

.social-link span:first-child {
  font-size: 1.15rem;
  line-height: 1;
}

.social-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.review-source-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
}

.review-expert-card {
  scroll-margin-top: 96px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.review-expert-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 24px 55px rgba(15, 118, 110, .2);
  transform: translateY(-3px);
}

.review-card-header,
.review-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card-meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .9rem;
}

.review-card-stars {
  color: var(--accent);
  letter-spacing: 1px;
  white-space: nowrap;
}

.review-database-card h2 {
  font-size: 1.2rem;
}

.review-database-card small,
.review-database-expert {
  color: var(--muted);
  font-size: .9rem;
}

.review-database-expert {
  margin-bottom: 4px;
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-list-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fcfe;
}

.review-list-item p {
  margin: 5px 0 0;
  font-size: .9rem;
  line-height: 1.75;
}

.review-list-item small {
  color: var(--muted);
}

.review-filter-note {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .9rem;
  font-weight: 800;
}

.expert-reviews-page .grid > *,
.expert-reviews-page .grid-2 > *,
.expert-reviews-page .review-form-grid > *,
.expert-reviews-page .review-card-header > *,
.expert-reviews-page .review-card-meta > * {
  min-width: 0;
}

.expert-reviews-page .review-list-item,
.expert-reviews-page .review-card-header,
.expert-reviews-page .review-card-meta {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.review-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.footer-phones p {
  margin: 0;
}

.expert-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.expert-modal[hidden] {
  display: none;
}

.expert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 33, .55);
}

.expert-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.expert-modal-meta {
  margin-bottom: 16px;
}

.expert-feedback-form {
  display: grid;
  gap: 10px;
}

.expert-feedback-form input,
.expert-feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  background: #f8fcfe;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef7fb;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .experts-shell {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    display: none;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card img {
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #eef7fb;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 42, 71, .14);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 1.35rem;
}

.list {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-right: 26px;
  margin-bottom: 10px;
  color: #334155;
}

.list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 900;
}

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.area-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 800;
}

.review-stars { color: var(--accent); font-size: 1.2rem; }

.form-card { padding: 24px; }

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

input, textarea, select {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: #fbfdff;
}

textarea { min-height: 130px; resize: vertical; }

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.work-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef7fb;
}

.work-gallery-card figcaption {
  padding: 12px 14px 16px;
  color: var(--muted);
  font-size: .9rem;
}

.review-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.expert-review-form {
  display: grid;
  gap: 12px;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.review-form-grid .full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.star-rating-input {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.star-rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating-input label {
  margin: 0;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: var(--accent);
  transform: translateY(-1px);
}

.review-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.review-status {
  color: var(--primary-dark);
  font-weight: 800;
}

.review-status.is-error {
  color: #b91c1c;
}

.footer {
  padding: 36px 0 92px;
  background: #0b2f3a;
  color: #dff7fa;
}

.footer p,
.footer a { color: #b7d7de; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 24px;
}

.floating-call {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #059669);
  box-shadow: 0 18px 40px rgba(22,163,74,.35);
  font-weight: 900;
}

.mobile-menu-btn { display: none; }

@media (max-width: 860px) {
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .navbar .container { align-items: flex-start; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }
  .nav-links.is-open { display: flex; }
  .nav-dropdown-toggle {
    width: 100%;
    padding: 10px 0;
    text-align: right;
    font-weight: 800;
  }
  .dropdown-menu {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 4px;
    max-height: 0;
    padding: 0 12px;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    overflow: hidden;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease, visibility .3s ease;
  }
  .nav-dropdown.is-open .dropdown-menu {
    max-height: 1500px;
    padding: 12px;
    opacity: 1;
    visibility: visible;
  }
  .mega-menu { gap: 10px; }
  .mega-menu-column h3 { margin-top: 4px; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .navbar .container { flex-wrap: wrap; }
  .hero-grid, .split, .grid, .grid-2, .footer-grid, .work-gallery-grid, .review-form-grid {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: 1fr; }
  section { padding: 46px 0; }
  .floating-call {
    right: 16px;
    left: 16px;
    justify-content: center;
  }
}


.media-showcase .section-head,
.sample-gallery .section-head {
  max-width: 820px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.media-card,
.process-step,
.series-card {
  margin: 0;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.media-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0b2f3a;
}

.media-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.media-card strong,
.series-head h3,
.process-step figcaption {
  color: var(--ink);
}

.media-card span,
.series-head p,
.process-step figcaption {
  color: var(--muted);
}

.sample-series {
  display: grid;
  gap: 22px;
}

.series-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.series-head {
  margin-bottom: 18px;
}

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

.compact-gallery {
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
}

.compact-gallery .process-step {
  max-width: 320px;
}

.process-step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f8fcfe;
}

.process-step img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #eef7fb;
}

.process-step figcaption {
  padding: 14px;
  font-size: .94rem;
}

.step-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0891b2);
  box-shadow: 0 10px 24px rgba(15,118,110,.25);
  font-size: .85rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .video-grid,
  .step-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .video-grid,
  .step-gallery,
  .compact-gallery {
    grid-template-columns: 1fr;
  }

  .series-card {
    padding: 18px;
  }
}
