@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansXFaNum-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansXFaNum-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansXFaNum-DemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansXFaNum-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansXFaNum-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2a65a1;
  --blue-dark: #1f4f80;
  --red: #ec2f2b;
  --red-dark: #d1221e;
  --yellow: #ffeb3b;
  --ink: #1d1d1d;
  --muted: #767676;
  --text: #555;
  --bg: #fff;
  --soft: #f5f8fc;
  --line: #e6eef6;
  --shadow: 0 10px 60px rgb(0 0 0 / 0.16);
  --shadow-blue: 0 10px 70px rgb(42 101 161 / 0.28);
  --container: 1170px;
  --header-h: 78px;
  --topbar-h: 42px;
  --font: IRANSans, Tahoma, sans-serif;
  --space: clamp(70px, 9vw, 110px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h));
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 14px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-lg {
  min-height: 58px;
  padding-inline: 34px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px rgb(236 47 43 / 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgb(255 255 255 / 0.75);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--blue);
}

.btn-light {
  background: var(--yellow);
  color: #1d1d1d;
}

.btn-light:hover {
  background: #fff;
  color: var(--blue);
}

.text-link {
  font-weight: 800;
  color: var(--red);
}

.topbar {
  background: var(--blue);
  color: #fff;
  min-height: var(--topbar-h);
  font-size: 0.92rem;
}

.topbar-inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar p {
  margin: 0;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 118px;
}

.nav-desktop {
  display: none;
  margin-inline-start: auto;
  gap: 20px;
}

.nav-desktop a {
  color: var(--ink);
  font-weight: 700;
}

.nav-desktop a:hover {
  color: var(--red);
}

.header-cta {
  display: none;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-btn {
  position: relative;
  z-index: 55;
  margin-inline-start: auto;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  cursor: pointer;
}

.menu-btn-bars,
.menu-btn-bars::before,
.menu-btn-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-btn-bars::before {
  position: absolute;
  transform: translateY(-6px);
}

.menu-btn-bars::after {
  position: absolute;
  transform: translateY(6px);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-mobile {
  position: fixed;
  top: 0;
  bottom: 0;
  /* در RTL کنار دکمه همبرگر (چپ) باز می‌شود */
  left: 0;
  right: auto;
  width: min(320px, 86vw);
  max-width: 100%;
  background: #fff;
  z-index: 70;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s ease;
  box-shadow: var(--shadow);
}

.nav-toggle:checked ~ .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-toggle:checked ~ .nav-mobile {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  color: var(--ink);
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.nav-mobile a:last-of-type,
.nav-mobile a.btn {
  border-bottom: 0;
  margin-top: 12px;
  text-align: center;
}

.nav-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.nav-mobile-title {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.nav-close {
  cursor: pointer;
  color: var(--red);
  font-weight: 700;
  padding: 6px 4px;
}

/* HERO */
.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center / cover no-repeat;
  animation: heroZoom 16s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgb(42 101 161 / 0.92) 12%, rgb(42 101 161 / 0.7) 50%, rgb(236 47 43 / 0.45) 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding-block: 48px 72px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 16px;
  background: var(--yellow);
  color: #1d1d1d;
  font-size: 0.88rem;
  font-weight: 800;
}

.section-kicker {
  background: rgb(236 47 43 / 0.1);
  color: var(--red);
}

.hero h1 {
  color: #fff;
}

.hero-lead {
  color: rgb(255 255 255 / 0.92);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.book-card,
.contact-card {
  background: #fff;
  color: var(--ink);
  padding: clamp(22px, 5vw, 36px) clamp(16px, 4vw, 32px);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.book-card {
  margin-top: 4px;
  border-radius: 4px;
}

.book-card h2,
.contact-card h2 {
  margin-bottom: 8px;
}

.book-card p,
.contact-card p {
  color: var(--muted);
}

.book-card label,
.contact-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #898989;
  font-size: 0.95rem;
}

.book-card input,
.book-card select,
.book-card textarea,
.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

.book-card .btn,
.contact-card .btn {
  width: 100%;
  margin-top: 6px;
}

.book-row {
  display: grid;
  gap: 12px;
}

.jalali-field {
  position: relative;
}

.jalali-date-input {
  cursor: pointer;
}

.jalali-picker {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 40;
  width: min(292px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
  color: var(--ink);
}

.jalali-picker[hidden] {
  display: none !important;
}

.jalali-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.jalali-picker-head strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.jalali-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.jalali-nav:hover {
  background: var(--soft);
  color: var(--blue);
}

.jalali-weekdays,
.jalali-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.jalali-weekdays span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 0;
}

.jalali-days button {
  border: 0;
  background: transparent;
  min-height: 34px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
}

.jalali-days button:hover:not(:disabled) {
  background: rgb(42 101 161 / 0.1);
  color: var(--blue);
}

.jalali-days button.is-today {
  box-shadow: inset 0 0 0 1px var(--blue);
}

.jalali-days button.is-selected {
  background: var(--blue);
  color: #fff;
}

.jalali-days button:disabled {
  opacity: 0.25;
  cursor: default;
}

.jalali-picker-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.jalali-picker-actions button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 4px;
}

.jalali-picker-actions button.is-clear {
  color: var(--red);
}

/* SECTIONS */
.section {
  padding-block: var(--space);
}

.section-soft {
  background: var(--soft);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.about-grid,
.skills-grid,
.home-way-grid,
.feature-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.about-frame,
.feature-media,
.home-way-media {
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid var(--yellow);
  z-index: 1;
  pointer-events: none;
}

.about-frame img,
.feature-media img,
.home-way-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.about-copy {
  background: var(--blue);
  color: #fff;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-blue);
}

.about-copy h2,
.about-copy p,
.about-copy li {
  color: #fff;
}

.about-copy .section-kicker {
  background: var(--yellow);
  color: #1d1d1d;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.check-list li::before {
  content: "✓";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: 0.2s ease;
}

.check-list li:hover::before {
  background: var(--yellow);
  color: var(--red);
}

.process-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.process-item {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.process-num {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 10px 40px rgb(236 47 43 / 0.3);
}

.process-num-outline {
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
  box-shadow: none;
}

.feature-copy {
  background: #fff;
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.package-grid {
  display: grid;
  gap: 22px;
}

.package {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease;
}

.package:hover {
  transform: translateY(-8px);
}

.package-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(236 47 43 / 0.1);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.package-featured {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 50px rgb(236 47 43 / 0.35);
}

.package-featured h3,
.package-featured p {
  color: #fff;
}

.package-featured .package-icon {
  background: rgb(255 255 255 / 0.15);
}

.home-way-card {
  background: var(--red);
  color: #fff;
  padding: clamp(32px, 5vw, 60px);
  box-shadow: 0 10px 50px rgb(236 47 43 / 0.35);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.home-way-card h2,
.home-way-card p {
  color: #fff;
}

.skill-bars {
  display: grid;
  gap: 22px;
}

.skill-row strong {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink);
}

.skill-row b {
  color: var(--red);
}

.skill-track {
  height: 8px;
  background: #dde6f0;
  overflow: hidden;
}

.skill-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(-90deg, var(--red), var(--blue));
  transition: width 1.2s ease;
}

.stats-band {
  background: var(--blue);
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 10px;
}

.stats-grid span {
  color: #fff;
  font-weight: 600;
}

.stats-grid article {
  transition: margin-top 0.25s ease;
}

.stats-grid article:hover {
  margin-top: -8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 10px 40px rgb(42 101 161 / 0.18);
  transition: transform 0.25s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.review-grid {
  display: grid;
  gap: 20px;
}

.review {
  margin: 0;
  background: var(--blue);
  color: #fff;
  padding: 42px 34px;
  box-shadow: var(--shadow);
}

.review blockquote {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.05rem;
}

.review strong {
  color: var(--yellow);
}

.review span {
  color: rgb(255 255 255 / 0.8);
  font-size: 0.9rem;
}

.contact-wrap {
  display: grid;
  gap: 24px;
}

.contact-info-grid {
  display: grid;
  gap: 16px;
}

.contact-info-grid article {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  border-top: 3px solid var(--blue);
}

.contact-card {
  margin-top: -10px;
}

.site-footer {
  background: #173a5d;
  color: #d7e5f3;
  padding: 70px 0 calc(90px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
}

.footer-brand {
  font-size: 1.4rem !important;
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer span {
  color: #c8d9ea;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.nap {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.copyright {
  text-align: center;
  margin: 36px 0 0;
  opacity: 0.8;
}

.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

@media (min-width: 720px) {
  .hero {
    min-height: 720px;
  }

  .hero-layout {
    padding-block: 90px 120px;
  }

  .book-row {
    grid-template-columns: 1fr 1fr;
  }

  .check-list,
  .process-grid,
  .package-grid,
  .review-grid,
  .contact-info-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .about-grid,
  .skills-grid,
  .home-way-grid,
  .feature-split,
  .hero-layout,
  .contact-wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .book-card {
    margin-top: -40px;
  }

  .home-way-card {
    margin-inline-start: -30px;
  }
}

@media (min-width: 980px) {
  .menu-btn,
  .nav-mobile,
  .nav-backdrop,
  .mobile-cta {
    display: none !important;
  }

  body {
    overflow: auto !important;
  }

  .nav-desktop,
  .header-cta {
    display: flex;
  }

  .site-footer {
    padding-bottom: 40px;
  }

  .stats-grid,
  .package-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-copy {
    margin-top: 60px;
  }

  .hero-layout {
    padding-block: 110px 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .reveal,
  .btn,
  .skill-fill {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
