:root {
  --ivory: #faf7f6;
  --paper: #fffdfc;
  --blush: #f6eaec;
  --rose: #c42b3d;
  --rose-deep: #8f1624;
  --ink: #1a1012;
  --muted: #6d5c60;
  --line: rgba(26, 16, 18, 0.1);
  --shadow: 0 18px 50px rgba(80, 16, 24, 0.1);
  --radius: 22px;
  --container: 1160px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.85;
  text-align: right;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: fixed;
  top: -80px;
  right: 16px;
  z-index: 9999;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 64px 0; }
.section-soft { background: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rose-deep);
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow-light { color: #f0c9ce; }
.eyebrow-on-media { color: #f0c9ce; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.4; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.55rem, 6.2vw, 3.35rem); font-weight: 900; margin-bottom: 14px; text-wrap: balance; }
h1 .hero-highlight { color: #f0c9ce; }
h2 { font-size: clamp(1.55rem, 5.5vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
h3 { font-size: 1.12rem; margin-bottom: 8px; }
p { color: var(--muted); }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: .2s ease;
}
.btn-primary, .btn-accent { background: var(--rose-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); background: transparent; color: #fff; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .88rem; }
.btn-block { width: 100%; }

.site-header { color: #fff; }
.header-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  min-height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .25s ease, border-color .25s ease;
}
.header-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(8, 6, 7, .42);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header .brand-text small { color: rgba(255,255,255,.7); }
.site-header.scrolled,
body.menu-open .site-header {
  color: var(--ink);
}
.site-header.scrolled .header-bar,
body.menu-open .header-bar {
  border-bottom-color: var(--line);
}
.site-header.scrolled .header-bar::before,
body.menu-open .header-bar::before {
  background: rgba(250, 247, 246, .92);
  box-shadow: 0 10px 28px rgba(80, 16, 24, .08);
}
.site-header.scrolled .brand-text small,
body.menu-open .site-header .brand-text small { color: var(--muted); }
.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-lead { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.nav-end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1012;
  border: 1px solid rgba(143, 22, 36, .22);
}
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: .95rem; }
.brand-text small {
  color: var(--muted);
  font-size: .68rem;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-cta { display: none; }
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  z-index: 2;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.site-header.scrolled .menu-toggle span,
body.menu-open .site-header .menu-toggle span { background: var(--ink); }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.primary-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 8px 16px 24px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: .2s ease;
  overflow: auto;
}
.primary-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.primary-nav a {
  padding: 14px 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #53484b;
  border-bottom: 1px solid var(--line);
}
.primary-nav a:last-child { border-bottom: 0; }
.primary-nav a.active { color: var(--rose-deep); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #000;
}
.hero-media, .hero-veil { position: absolute; inset: 0; top: var(--header-h); }
.hero-media { overflow: hidden; padding: 28px 16px 0; }
.hero-photo, .hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #000;
}
.hero-video { position: absolute; inset: 0; }
.hero-veil {
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.22) 42%, rgba(0,0,0,.82) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 0 20px;
}
.hero-content p { color: rgba(255,255,255,.88); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 720px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 0;
  list-style: none;
}
.hero-stats li {
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  text-align: center;
}
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: .92rem; }
.hero-stats span { color: rgba(255,255,255,.7); font-size: .7rem; }

.specialty-bar { background: #fff; border-bottom: 1px solid var(--line); }
.specialty-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.specialty-row::-webkit-scrollbar { display: none; }
.specialty-row span {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  background: var(--ivory);
  white-space: nowrap;
}

.section-heading { max-width: 720px; }
.section-heading.centered { margin: 0 auto 32px; text-align: center; }
.about-grid { display: grid; gap: 22px; }
.about-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #3a2a24;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-copy p { margin-bottom: 14px; }
.about-copy p:last-of-type { margin-bottom: 0; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 18px; }
.skill-list li {
  padding: 7px 12px;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.services-grid, .process-grid, .gallery-grid, .testimonial-grid { display: grid; gap: 12px; }
.service-card, .process-grid li, .testimonial-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.process-grid { list-style: none; }
.process-grid h3 { margin-bottom: 8px; }
.process-grid li:nth-child(1) h3::before,
.process-grid li:nth-child(2) h3::before,
.process-grid li:nth-child(3) h3::before,
.process-grid li:nth-child(4) h3::before {
  display: block;
  color: var(--rose-deep);
  font-size: .82rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.process-grid li:nth-child(1) h3::before { content: "۰۱"; }
.process-grid li:nth-child(2) h3::before { content: "۰۲"; }
.process-grid li:nth-child(3) h3::before { content: "۰۳"; }
.process-grid li:nth-child(4) h3::before { content: "۰۴"; }
.service-index { display: block; color: var(--rose-deep); font-weight: 900; margin-bottom: 16px; }
.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--rose-deep);
  font-weight: 800;
  font-size: .88rem;
}

.course-section { background: var(--ink); color: #fff; }
.course-grid { display: grid; gap: 28px; }
.course-copy p { color: #cfc4c6; }
.course-benefits { display: grid; gap: 12px; margin-top: 22px; }
.course-benefits div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.course-benefits span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: #f0c9ce;
  font-size: .75rem;
}
.course-benefits p { margin: 0; }
.course-benefits strong { color: #fff; }
.course-card {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.course-card ul { list-style: none; margin: 0 0 18px; display: grid; gap: 2px; }
.course-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 0;
  color: #5c4f52;
}
.course-card li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-deep);
}
.course-form, .booking-form { display: grid; gap: 12px; }
.course-form { border-top: 1px solid var(--line); padding-top: 18px; }
label span { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
input, select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  background: #fff;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(143, 22, 36, .12);
}
.course-form small, .form-note { text-align: center; color: #8d7f82; font-size: .72rem; }
.form-lead { margin: 0 0 4px; font-size: .88rem; }
.booking-form .form-lead { color: var(--muted); }
.course-form .form-lead { color: var(--muted); }

.gallery-item { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: #2a1518; }
.gallery-item img,
.gallery-skeleton .skeleton-frame { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.gallery-skeleton .skeleton-frame {
  background: linear-gradient(110deg, #3a2428 18%, #534045 38%, #3a2428 58%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.8s ease-in-out infinite;
}
@keyframes gallery-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 10px 10px;
  padding: 8px 12px;
  background: rgba(26, 16, 18, .72);
  color: #fff;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 700;
}

.testimonial-card p { color: #5b4f52; }
.testimonial-card span { color: var(--rose-deep); font-size: .8rem; font-weight: 800; }

.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px;
}
.faq-item summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.faq-item p { margin: 0 0 12px; }

.contact-grid { display: grid; gap: 22px; }
.contact-list { display: grid; gap: 8px; margin-top: 18px; }
.contact-list a,
.contact-list .contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blush);
  color: var(--rose-deep);
  font-weight: 900;
}
.contact-list small, .contact-list strong { display: block; }
.contact-list small { color: var(--muted); font-size: .7rem; }
.contact-list strong { min-width: 0; }
.phone-num {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  letter-spacing: .04em;
}
.booking-form { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }

.site-footer {
  padding: 28px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.footer-inner { display: grid; gap: 16px; justify-items: center; }
.footer-brand-block { max-width: 36rem; }
.footer-brand { align-items: flex-start; }
.footer-brand .brand-mark { background: transparent; border-color: rgba(255,255,255,.14); }
.footer-brand .brand-text { text-align: right; }
.footer-brand .brand-text strong { font-size: .9rem; line-height: 1.55; }
.footer-brand .brand-text small { color: #a99da0; font-size: .7rem; line-height: 1.7; }
.footer-credit { opacity: .72; font-size: .7rem; }
.footer-bottom {
  display: grid;
  gap: 6px;
  color: #95898c;
  font-size: .75rem;
}
.footer-credit a { color: #f0c9ce; font-weight: 700; }

.floating-actions {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: grid;
  gap: 8px;
}
.fab {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.contact-icon .icon,
.fab .icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
}
.fab-call { background: var(--rose-deep); }
.fab-whatsapp { background: #25d366; }

.reveal { opacity: 0; transform: translateY(16px); transition: .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .06s; }
.delay-2 { transition-delay: .12s; }
.delay-3 { transition-delay: .18s; }

@media (min-width: 721px) {
  :root { --header-h: 84px; }
  .container { width: min(calc(100% - 40px), var(--container)); }
  .section { padding: 88px 0; }
  .nav-wrap { justify-content: space-between; }
  .nav-lead { flex: 0 0 auto; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  body.menu-open { overflow: auto; }
  .primary-nav,
  .primary-nav.open {
    top: 0;
    bottom: auto;
    height: var(--header-h);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px 10px;
    padding: 0 168px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    overflow: visible;
    z-index: 1002;
  }
  .primary-nav a {
    padding: 0;
    border: 0;
    font-size: .74rem;
    line-height: 1;
    height: var(--header-h);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    pointer-events: auto;
  }
  .hero { align-items: center; }
  .hero-photo { object-position: left top; }
  .hero-media { padding: 40px 5% 20px 3%; }
  .hero-veil {
    background: linear-gradient(to left, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 34%, rgba(0,0,0,.12) 56%, transparent 72%);
  }
  .site-header:not(.scrolled) .primary-nav a { color: rgba(255,255,255,.9); }
  .site-header:not(.scrolled) .primary-nav a.active { color: #f0c9ce; }
  .site-header.scrolled .primary-nav a { color: #53484b; }
  .site-header.scrolled .primary-nav a.active { color: var(--rose-deep); }
  .hero-grid { padding: 48px 0 56px; }
  .hero-content { max-width: 34rem; }
  .specialty-row { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; text-align: center; }
  .specialty-row span { background: transparent; border: 0; border-radius: 0; }
  .about-grid { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 48px; }
  .services-grid, .process-grid, .gallery-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid, .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .course-card ul { grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .site-footer { padding: 32px 0 28px; }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
    text-align: right;
    gap: 24px;
  }
  .footer-bottom { justify-self: end; text-align: left; }
  .floating-actions { left: 20px; bottom: 20px; }
}

@media (min-width: 1021px) {
  .services-grid, .process-grid, .testimonial-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { max-width: 38rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .primary-nav { gap: 16px; padding: 0 200px; }
  .primary-nav a { font-size: .86rem; }
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover, .btn-accent:hover { background: #6f101c; }
  .footer-credit a:hover { color: #fff; }
  .fab:hover { transform: translateY(-2px); }
  .contact-list a:hover { border-color: rgba(143, 22, 36, .28); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .gallery-skeleton .skeleton-frame { animation: none; }
}
