/* ═══════════════════════════════════════════════
   VANDA SCHOOL — style.css (مشترک همه صفحات)
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --p:   #82539A;
  --pd:  #5C3570;
  --pl:  #EDE0F5;
  --pm:  #B07DCC;

  --y:   #E5CA2E;
  --yd:  #C4AA10;
  --yl:  #FDF9DC;

  --k:   #111111;
  --w:   #FFFFFF;
  --g7:  #2E2E2E;
  --g5:  #6B6B6B;
  --g2:  #E5E5E5;
  --g1:  #F7F7F5;

  --f:     'Vazirmatn', sans-serif;
  --r:     20px;
  --trans: all .45s cubic-bezier(0.16, 1, 0.3, 1);

  --elev1: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --elev2: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --elev3: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --elev4: 0 24px 64px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; }
body {
  font-family: var(--f);
  background: var(--w);
  color: var(--k);
  overflow-x: hidden;
  width: 100%;
  direction: rtl;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Layout ── */
.inner { width: min(1080px, 90vw); margin: 0 auto; }

/* ── Snap Scroll ── */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .snap-container {
    height: auto !important;
    overflow-y: auto !important;
    scroll-snap-type: none !important;
  }
  .snap-section {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    scroll-snap-stop: unset !important;
    padding: 80px 0;
  }
}

/* ── Typography ── */
.h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.h2 em { font-style: normal; color: var(--pd); }
.section-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 12px;
  display: block;
}
.subtitle {
  font-size: .95rem;
  color: var(--g5);
  line-height: 1.9;
}
.em-underline {
  position: relative;
  display: inline-block;
  color: var(--pd);
  font-style: normal;
}
.em-underline::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 0; left: 0;
  height: 6px;
  background: var(--y);
  border-radius: 3px;
  z-index: -1;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f);
  font-size: .9rem;
  font-weight: 800;
  padding: 15px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 11px 22px; font-size: .82rem; }
.btn-yellow { background: var(--y); color: var(--k); }
.btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(229,202,46,.45); }
.btn-purple { background: var(--p); color: var(--w); }
.btn-purple:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(130,83,154,.45); }
.btn-dark { background: var(--k); color: var(--w); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.btn-outline-w {
  background: transparent;
  color: var(--w);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline-w:hover { border-color: var(--w); background: rgba(255,255,255,.08); }
.btn-outline-k {
  background: transparent;
  color: var(--k);
  border: 2px solid rgba(0,0,0,.18);
}
.btn-outline-k:hover { border-color: var(--k); transform: translateY(-2px); }

/* ── Chips ── */
.chip {
  font-size: .75rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--g2);
  transition: var(--trans);
  display: inline-block;
}
.chip-purple { background: var(--pl); color: var(--pd); border-color: rgba(130,83,154,.2); }
.chip-yellow { background: var(--yl); color: var(--yd); border-color: rgba(229,202,46,.35); }
.chip-gray   { background: var(--g1); color: var(--g7); border-color: var(--g2); }
.chip-dark   { background: rgba(255,255,255,.06); color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.1); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-size: .82rem; font-weight: 700; color: var(--g7); }
.form-input {
  font-family: var(--f);
  font-size: .95rem;
  padding: 14px 18px;
  border: 1.5px solid var(--g2);
  border-radius: 12px;
  background: var(--g1);
  outline: none;
  transition: var(--trans);
  text-align: right;
  direction: rtl;
  width: 100%;
  color: var(--k);
}
.form-input:focus { border-color: var(--p); background: var(--w); box-shadow: 0 0 0 4px rgba(130,83,154,.1); }
.form-input.error { border-color: #E53935; background: #FFF5F5; }
.form-error-msg { font-size: .75rem; color: #E53935; font-weight: 700; display: none; }
.form-error-msg.show { display: block; }
.success-msg {
  display: none;
  background: rgba(76,175,80,.1);
  border: 1px solid rgba(76,175,80,.3);
  color: #2E7D32;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .88rem;
  font-weight: 700;
  margin-top: 14px;
  text-align: center;
}
.success-msg.show { display: block; }

/* ── Fade Animation ── */
.fade {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s ease, transform .75s ease;
}
.fade.in { opacity: 1; transform: none; }
.fade-d1.in { transition-delay: .1s; }
.fade-d2.in { transition-delay: .2s; }
.fade-d3.in { transition-delay: .3s; }
.fade-d4.in { transition-delay: .4s; }

/* ── Animations ── */
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,202,46,.4); }
  50%       { box-shadow: 0 0 0 10px rgba(229,202,46,0); }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

/* ── Scroll Cue ── */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(0,0,0,.22);
  text-transform: uppercase;
  animation: cue-bob 2.5s ease-in-out infinite;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.scroll-cue.w { color: rgba(255,255,255,.25); }
.arrow-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .4s, background .4s;
  gap: 24px;
}
nav.scrolled {
  box-shadow: 0 2px 32px rgba(0,0,0,.08);
  background: rgba(255,255,255,.97);
}
nav.dark-bg {
  background: rgba(17,17,17,.92) !important;
  border-bottom-color: rgba(255,255,255,.06) !important;
}
nav.dark-bg .nav-links a { color: rgba(255,255,255,.6); }
nav.dark-bg .nav-links a:hover { color: var(--y); }
nav.dark-bg .nav-logo-text { color: var(--w); }
nav.dark-bg .btn-outline-k {
  color: var(--w);
  border-color: rgba(255,255,255,.25);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--p);
  letter-spacing: -1px;
}
.nav-logo-dot { color: var(--y); }

/* Nav Links */
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: .83rem;
  font-weight: 700;
  color: var(--g7);
  text-decoration: none;
  transition: color .25s;
  letter-spacing: .2px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--p); }

/* Nav Actions */
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 400;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--k);
  border-radius: 2px;
  transition: var(--trans);
}
nav.dark-bg .nav-burger span { background: var(--w); }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Drawer Overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 350;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { display: block; }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--k);
  z-index: 360;
  padding: 80px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: right .45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.drawer-close {
  position: absolute;
  top: 22px; left: 22px;
  background: rgba(255,255,255,.08);
  border: none;
  color: var(--w);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.drawer-close:hover { background: rgba(255,255,255,.15); }
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.drawer-links a {
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255,255,255,.6);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .25s, padding-right .25s;
}
.drawer-links a:hover { color: var(--y); padding-right: 8px; }
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.drawer-actions .btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 60px 0 0;
}
.footer-inner {
  width: min(1080px, 90vw);
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-brand { flex: 2; min-width: 220px; }
.footer-brand-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--w);
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.footer-brand p {
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  line-height: 1.8;
  margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: var(--trans);
}
.footer-social-btn:hover {
  border-color: var(--y);
  color: var(--y);
  transform: scale(1.1);
}
.footer-col { flex: 1; min-width: 140px; }
.footer-col h4 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a,
.footer-col ul li span {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  transition: color .25s;
}
.footer-col ul li a:hover { color: var(--y); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1080px, 90vw);
  margin: 0 auto;
}
.footer-bottom span {
  font-size: .75rem;
  color: rgba(255,255,255,.22);
  font-weight: 600;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 16px 22px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; }

  .footer-inner { flex-direction: column; gap: 32px; padding: 0 22px 40px; }
  .footer-bottom { padding: 16px 22px; width: 100%; }
  .scroll-cue { display: none; }
}

@media (max-width: 600px) {
  .h2 { font-size: clamp(1.75rem, 5.5vw, 2.1rem); }
  .btn { font-size: .82rem; padding: 13px 22px; }
}
