/* ==========================================================================
   مطب دندانپزشکی دکتر زهرا کنویسی
   استایل اصلی — RTL / Mobile-first
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. فونت
   -------------------------------------------------------------------------- */
@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-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. متغیرها
   -------------------------------------------------------------------------- */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-darker: #075985;
  --primary-light: #e0f2fe;
  --teal: #06b6d4;
  --accent: #f59e0b;
  --accent-dark: #d97706;

  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 12px 24px -8px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 18px 45px -12px rgba(2, 132, 199, 0.28);

  --spring: cubic-bezier(0.34, 1.46, 0.54, 1);

  --header-h: 74px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. پایه
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", Tahoma, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

img,
svg {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   4. کمکی‌ها
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
  position: relative;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -100px;
  transform: translateX(50%);
  z-index: 200;
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* عنوان بخش‌ها */
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(34px, 5vw, 60px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.section-title {
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  margin-bottom: 0.5em;
}

.section-subtitle {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. دکمه‌ها
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 22px 45px -12px rgba(2, 132, 199, 0.45);
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(217, 119, 6, 0.55);
}

.btn--accent:hover {
  color: #fff;
  box-shadow: 0 20px 40px -12px rgba(217, 119, 6, 0.6);
}

.btn--outline {
  background: var(--surface);
  color: var(--primary-darker);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. هدر و ناوبار
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* لوگو */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--teal) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -6px rgba(2, 132, 199, 0.55);
  flex: none;
}

.brand__mark svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand__name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.brand__role {
  font-size: 0.72rem;
  color: var(--muted);
}

/* منو */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--primary-light);
  color: var(--primary-darker);
}

.header-cta {
  display: none;
}

/* دکمه همبرگری */
.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex: none;
}

.nav-toggle__bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* منوی موبایل */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.25);
  padding: 16px 20px 26px;
  transform: translateY(-115%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}

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

.mobile-nav__list {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: var(--primary-light);
  color: var(--primary-darker);
}

.mobile-nav__link svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + 44px) 72px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #0c4a6e 0%, #0369a1 42%, #0891b2 100%);
  color: #e0f2fe;
}

/* تصویر پس‌زمینه اختیاری: مقدار --hero-photo را در index.html ست کنید */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--hero-photo, none);
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: saturate(0.85);
}

.hero__glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__glow--a {
  width: 420px;
  height: 420px;
  background: #22d3ee;
  top: -140px;
  inset-inline-start: -120px;
  animation: float-slow 14s ease-in-out infinite;
}

.hero__glow--b {
  width: 360px;
  height: 360px;
  background: #38bdf8;
  bottom: -160px;
  inset-inline-end: -100px;
  animation: float-slow 18s ease-in-out infinite reverse;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image: radial-gradient(#fff 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #f0f9ff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  margin-bottom: 22px;
}

.hero__badge svg {
  width: 17px;
  height: 17px;
  color: #a5f3fc;
}

.hero__title {
  font-size: clamp(1.85rem, 6.2vw, 3.35rem);
  line-height: 1.32;
  color: #fff;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero__title span {
  background: linear-gradient(90deg, #fde68a, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(0.98rem, 2.7vw, 1.16rem);
  color: #cbeafe;
  max-width: 40ch;
  margin-bottom: 30px;
}

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 480px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 22px;
}

.fact__value {
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.fact__label {
  font-size: 0.76rem;
  color: #a8d8f5;
  line-height: 1.5;
}

/* کارت تصویری Hero */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-card {
  position: relative;
  width: min(100%, 400px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -25px rgba(2, 44, 68, 0.7);
}

.hero-card__art {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 25%, #7dd3fc 0%, #0ea5e9 45%, #0369a1 100%);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}

.hero-card__art svg {
  width: 58%;
  height: 58%;
  color: #fff;
  filter: drop-shadow(0 12px 22px rgba(3, 40, 68, 0.4));
  animation: float-slow 7s ease-in-out infinite;
}

.hero-card__list {
  display: grid;
  gap: 11px;
}

.hero-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #f0f9ff;
}

.hero-card__item svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #6ee7b7;
}

.hero__wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  width: 100%;
  height: 60px;
  color: var(--bg);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   8. خدمات
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid--2,
.grid--3,
.grid--4 {
  grid-template-columns: 1fr;
}

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #bae6fd;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--primary-light), #f0fdfa);
  color: var(--primary-dark);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease);
}

.service-card:hover .service-card__icon {
  transform: scale(1.06) rotate(-4deg);
}

.service-card__icon svg {
  width: 33px;
  height: 33px;
}

.service-card__title {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.service-card__text {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 0.76rem;
  color: var(--primary-darker);
  background: var(--primary-light);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* --------------------------------------------------------------------------
   9. درباره ما
   -------------------------------------------------------------------------- */
.about__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about__figure {
  position: relative;
  isolation: isolate;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
  margin-block: 0;
}

.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #e0f2fe 0%, #cffafe 55%, #f0fdfa 100%);
  border: 1px solid #bae6fd;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

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

.about__photo-placeholder {
  width: 62%;
  height: auto;
  color: var(--primary);
  opacity: 0.9;
}

.about__figure::before {
  content: "";
  position: absolute;
  inset-inline-start: -18px;
  inset-block-end: -18px;
  width: 130px;
  height: 130px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--teal), var(--primary));
  opacity: 0.16;
  z-index: -1;
}

.about__license {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-end: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 16px;
  box-shadow: var(--shadow);
}

.about__license svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

.about__license-label {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.about__license-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.about__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.about__text {
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
}

.check-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--teal);
  margin-top: 5px;
}

/* --------------------------------------------------------------------------
   10. چرا ما
   -------------------------------------------------------------------------- */
.why {
  background: linear-gradient(180deg, var(--surface) 0%, #f0f9ff 100%);
}

.feature {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--primary) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(2, 132, 199, 0.6);
}

.feature__icon svg {
  width: 31px;
  height: 31px;
}

.feature__title {
  font-size: 1.03rem;
  margin-bottom: 8px;
}

.feature__text {
  font-size: 0.89rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. نوار CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, var(--primary-darker) 0%, var(--primary-dark) 55%, var(--teal) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
  display: grid;
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  inset-inline-end: -90px;
  inset-block-start: -120px;
}

.cta-band__title {
  color: #fff;
  font-size: clamp(1.3rem, 3.6vw, 1.85rem);
  margin-bottom: 10px;
}

.cta-band__text {
  color: #d8f1fe;
  margin: 0;
  font-size: 0.97rem;
}

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

/* --------------------------------------------------------------------------
   12. فوتر
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0c1c2e;
  color: #b6c6d8;
  padding-block: clamp(44px, 6vw, 68px) 0;
  font-size: 0.93rem;
}

.footer__grid {
  display: grid;
  gap: 34px;
  padding-bottom: 38px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.site-footer .brand__name,
.site-footer .brand:hover {
  color: #fff;
}

.site-footer .brand__role {
  color: #8fa6bd;
}

.footer__about {
  color: #93a8bf;
  margin: 18px 0 0;
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  color: #b6c6d8;
}

.footer__links a:hover {
  color: #67e8f9;
}

.footer__contact {
  display: grid;
  gap: 14px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #b6c6d8;
}

.footer__contact-item svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #38bdf8;
  margin-top: 4px;
}

.footer__contact-item a {
  color: #b6c6d8;
}

.footer__contact-item a:hover {
  color: #67e8f9;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.social-btn svg {
  width: 21px;
  height: 21px;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(140deg, var(--primary), var(--teal));
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: #8399b1;
}

.footer__bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. دکمه شناور تماس (موبایل)
   -------------------------------------------------------------------------- */
.fab-call {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.93rem;
  box-shadow: 0 14px 30px -10px rgba(180, 83, 9, 0.65);
  transition: transform 0.25s var(--ease);
}

.fab-call:hover {
  color: #fff;
  transform: translateY(-3px);
}

.fab-call svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   14. صفحه تماس — داشبورد تک‌نگاه (بدون اسکرول)
   -------------------------------------------------------------------------- */
.page-contact {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(6, 182, 212, 0.1), transparent 50%),
    var(--bg);
}

html:has(body.page-contact) {
  height: 100%;
  overflow: hidden;
}

.page-contact .site-header {
  flex: none;
  position: relative;
  inset: auto;
}

.page-contact .fab-call,
.page-contact .skip-link:not(:focus) {
  display: none;
}

.contact-desk {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 10px 14px 12px;
}

.contact-desk__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.contact-desk__intro {
  text-align: center;
}

.contact-desk__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.contact-desk__eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.contact-desk__title {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  line-height: 1.35;
}

.contact-desk__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* کانال‌های ارتباطی — سه دکمه فشرده */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.channel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #bae6fd;
  color: inherit;
}

.channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--teal));
  box-shadow: 0 8px 16px -8px rgba(2, 132, 199, 0.65);
}

.channel__icon svg {
  width: 20px;
  height: 20px;
}

.channel--instagram .channel__icon {
  background: linear-gradient(140deg, #f9ce34, #ee2a7b 55%, #6228d7);
  box-shadow: 0 8px 16px -8px rgba(238, 42, 123, 0.65);
}

.channel--telegram .channel__icon {
  background: linear-gradient(140deg, #37bbfe, #007dbb);
}

.channel__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.channel__label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.channel__value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 859px) {
  .channel__value {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

  .channel--phone .channel__value {
    font-size: 0.72rem;
    letter-spacing: -0.02em;
  }
}

/* آدرس فشرده */
.contact-address {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-address__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
}

.contact-address__icon svg {
  width: 18px;
  height: 18px;
}

.contact-address__body {
  min-width: 0;
  flex: 1;
}

.contact-address__label {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
}

.contact-address__text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}

.contact-address__copy {
  flex: none;
}

/* دکمه‌های مسیریابی */
.route-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
}

.route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--primary-darker);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.route-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.route-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.route-btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.route-btn--primary:hover {
  color: #fff;
  border-color: transparent;
}

.contact-desk__foot {
  margin: 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

/* نقشه — فضای باقی‌ماندهٔ صفحه را پر می‌کند */
.contact-desk__map {
  min-height: 0;
  display: flex;
  position: relative;
}

.map-wrap--fill {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.map-wrap--fill #map {
  flex: 1;
  min-height: 160px;
  height: auto !important;
  width: 100%;
}

.map-wrap--fill .map-fallback {
  flex: 1;
  display: none;
  place-content: center;
}

.map-wrap--fill.has-error .map-fallback {
  display: grid;
}

/* در موبایل: دکمه‌های مسیریابی روی نقشه می‌نشینند تا همه در یک قاب بمانند */
@media (max-width: 859px) {
  .contact-desk__panel .route-bar {
    display: none;
  }

  .contact-desk__foot {
    display: none;
  }

  .contact-desk__map .route-bar--overlay {
    display: grid;
  }
}

.route-bar--overlay {
  display: none;
  position: absolute;
  inset-inline: 10px;
  inset-block-end: 10px;
  z-index: 500;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 6px;
  padding: 0;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.22));
}

.route-bar--overlay .route-btn {
  min-height: 40px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
}

.route-bar--overlay .route-btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
}

@media (max-width: 859px) {
  .page-contact .leaflet-bottom {
    bottom: 54px;
  }

  .page-contact .leaflet-control-attribution {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.75) !important;
  }
}

/* انیمیشن ورود برای کانال‌ها */
[data-reveal="zoom"] .channel__icon,
[data-reveal="zoom"] .contact-address__icon {
  opacity: 0;
  transform: scale(0.4) rotate(-25deg);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--spring);
  transition-delay: calc(var(--reveal-delay, 0ms) + 120ms);
}

[data-reveal="zoom"].is-visible .channel__icon,
[data-reveal="zoom"].is-visible .contact-address__icon {
  opacity: 1;
  transform: none;
}

/* دسکتاپ: پنل کنار نقشه، همه در یک قاب */
@media (min-width: 860px) {
  .contact-desk {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 18px;
    padding: 14px 22px 16px;
    align-items: stretch;
  }

  .contact-desk__panel {
    gap: 14px;
    justify-content: center;
    padding: 8px 4px;
  }

  .contact-desk__intro {
    text-align: right;
  }

  .contact-channels {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .channel {
    flex-direction: row;
    text-align: right;
    padding: 14px 16px;
    gap: 14px;
  }

  .channel__icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .channel__icon svg {
    width: 22px;
    height: 22px;
  }

  .channel__label {
    font-size: 0.78rem;
  }

  .channel__value {
    font-size: 0.98rem;
  }

  .contact-address {
    padding: 14px 16px;
  }

  .contact-address__text {
    font-size: 0.9rem;
  }

  .route-bar {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .route-btn {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .contact-desk__foot {
    text-align: right;
    margin-top: auto;
  }

  .map-wrap--fill {
    border-radius: var(--radius-lg);
  }

  .map-wrap--fill #map {
    min-height: 0;
  }
}

/* ارتفاع خیلی کوتاه (موبایل افقی / لپ‌تاپ کوتاه) */
@media (max-height: 700px) {
  .contact-desk {
    gap: 6px;
    padding-block: 6px 8px;
  }

  .contact-desk__lead {
    display: none;
  }

  .contact-desk__eyebrow {
    margin-bottom: 2px;
    padding: 3px 10px;
    font-size: 0.7rem;
  }

  .contact-desk__title {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  .channel {
    padding: 7px 5px;
    gap: 5px;
  }

  .channel__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .channel__icon svg {
    width: 16px;
    height: 16px;
  }

  .channel__label {
    font-size: 0.66rem;
  }

  .channel__value {
    font-size: 0.7rem;
  }

  .contact-address {
    padding: 7px 9px;
  }

  .contact-address__text {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .contact-address__icon {
    width: 30px;
    height: 30px;
  }

  .route-bar--overlay .route-btn {
    min-height: 34px;
    font-size: 0.72rem;
    padding: 6px 8px;
  }

  .map-wrap--fill #map {
    min-height: 120px;
  }
}

@media (min-width: 860px) and (max-height: 700px) {
  .contact-desk__lead {
    display: block;
    font-size: 0.8rem;
  }

  .channel {
    padding: 10px 12px;
  }
}

/* استایل‌های قدیمی صفحه تماس (برای سازگاری) */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + 52px) 68px;
  background: linear-gradient(155deg, #0c4a6e 0%, #0369a1 55%, #0891b2 100%);
  color: #d9f0fe;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.contact-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-darker);
  background: var(--primary-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mini-btn svg {
  width: 15px;
  height: 15px;
}

.mini-btn:hover {
  background: #bae6fd;
  color: var(--primary-darker);
}

.mini-btn.is-done {
  background: #d1fae5;
  color: #065f46;
}

/* نقشه */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #e2e8f0;
}

#map {
  height: clamp(300px, 52vw, 460px);
  width: 100%;
  background: #dbeafe;
}

.map-fallback {
  display: none;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

.map-wrap.has-error #map {
  display: none;
}

.map-wrap.has-error .map-fallback {
  display: block;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  direction: rtl;
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.8;
}

.map-pin {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  border: 3px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(2, 44, 68, 0.6);
  display: grid;
  place-items: center;
}

.map-pin svg {
  width: 20px;
  height: 20px;
  color: #fff;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   15. انیمیشن‌ها
   -------------------------------------------------------------------------- */
@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* حالت دوم: ورود فنری کارت‌ها همراه با محو شدن تاری و پرش آیکون.
   از translate/scale مستقل استفاده شده تا transform مربوط به hover دست‌نخورده بماند. */
[data-reveal="zoom"] {
  transform: none;
  translate: 0 24px;
  scale: 0.9;
  filter: blur(7px);
  /* تأخیر پله‌ای فقط روی خودِ انیمیشن ورود اعمال می‌شود تا hover کارت بی‌درنگ بماند */
  transition: opacity 0.55s var(--ease) var(--reveal-delay, 0ms),
    translate 0.75s var(--spring) var(--reveal-delay, 0ms),
    scale 0.75s var(--spring) var(--reveal-delay, 0ms),
    filter 0.55s var(--ease) var(--reveal-delay, 0ms),
    transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

[data-reveal="zoom"].is-visible {
  translate: none;
  scale: none;
  filter: none;
}

[data-reveal="zoom"] .contact-card__icon {
  opacity: 0;
  transform: scale(0.4) rotate(-25deg);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--spring);
  transition-delay: calc(var(--reveal-delay, 0ms) + 160ms);
}

[data-reveal="zoom"].is-visible .contact-card__icon {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  [data-reveal="zoom"] .contact-card__icon,
  [data-reveal="zoom"] .channel__icon,
  [data-reveal="zoom"] .contact-address__icon {
    opacity: 1;
    transform: none;
    translate: none;
    scale: none;
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 859px) {
  /* فضای لازم برای دکمهٔ شناور تماس */
  .footer__bottom {
    padding-bottom: 84px;
  }
}

@media (max-width: 599px) {
  .hero-card {
    padding: 20px;
  }

  .hero-card__art {
    aspect-ratio: 16 / 11;
    margin-bottom: 18px;
  }

  .hero-card__art svg {
    width: 44%;
    height: 74%;
  }
}

@media (min-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  :root {
    --header-h: 82px;
  }

  .nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav,
  .nav-backdrop,
  .fab-call {
    display: none;
  }

  .brand__name {
    font-size: 1.06rem;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
  }

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

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .about__inner {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }

  .about__license {
    inset-inline-end: -12px;
  }

  .cta-band {
    grid-template-columns: 1fr auto;
    gap: 34px;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 42px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-block: calc(var(--header-h) + 66px) 96px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 0.9fr 1.2fr;
  }
}

/* --------------------------------------------------------------------------
   17. چاپ
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-nav,
  .nav-backdrop,
  .fab-call,
  .hero__actions,
  .map-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
