/* ============================================================
   آتلیه کودک نینو — هدر (header-v14.css)
   RTL، فارسی، نسخه تمیز
   ============================================================ */

/* ===== هدر + هیرو (راست‌چین) ===== */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  padding: 26px 40px 0;
  background: transparent;
  transition: background .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.97); padding: 12px 40px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  direction: rtl;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .3s ease;
}
.logo:hover { opacity: .85; }
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

/* در RTL: nav-right اول (راست) و nav-left آخر (چپ) */
.nav-right { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-left { display: flex; gap: 28px; margin-inline-end: auto; }
.nav-right a, .nav-left a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--white);
  transition: opacity .2s ease;
  white-space: nowrap;
}
.site-header.scrolled .nav-right a, .site-header.scrolled .nav-left a { color: var(--black); }
.nav-right a:hover, .nav-left a:hover { opacity: .7; }

/* ===== دکمه ورود/ثبت‌نام (Elevated Pill) — Base Styles ===== */
.auth-btn {
  /* Base: elevated pill — shared visual styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s cubic-bezier(.2,.8,.2,1), background .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: 
    0 1px 2px rgba(0,0,0,.18),
    0 4px 12px rgba(0,0,0,.12),
    inset 0 1px 1px rgba(255,255,255,.15);
  will-change: transform, box-shadow;
  border-radius: 999px;
  padding: 8px 18px;
}
.auth-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  box-shadow: 
    0 2px 4px rgba(0,0,0,.2),
    0 8px 20px rgba(0,0,0,.15),
    inset 0 1px 1px rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.auth-btn:active {
  transform: scale(0.96);
  box-shadow: 
    0 1px 2px rgba(0,0,0,.15),
    0 2px 6px rgba(0,0,0,.1),
    inset 0 1px 2px rgba(0,0,0,.1);
  transition-duration: 40ms;
}
.site-header.scrolled .auth-btn {
  color: var(--black);
  border-color: rgba(0,0,0,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  box-shadow: 
    0 1px 2px rgba(0,0,0,.08),
    0 4px 12px rgba(0,0,0,.06),
    inset 0 1px 1px rgba(255,255,255,.5);
}
.site-header.scrolled .auth-btn:hover {
  background: linear-gradient(180deg, var(--black), #222);
  color: var(--white);
  border-color: transparent;
  box-shadow: 
    0 2px 4px rgba(0,0,0,.25),
    0 8px 20px rgba(0,0,0,.18);
}
.site-header.scrolled .auth-btn:active {
  background: linear-gradient(180deg, #111, #000);
}

/* ===== دکمه رزرو وقت (book-btn) — هدر ===== */
.book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s cubic-bezier(.2,.8,.2,1), background .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid rgba(255,255,255,.65);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  box-shadow: 
    0 1px 2px rgba(0,0,0,.18),
    0 4px 12px rgba(0,0,0,.14),
    inset 0 1px 1px rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 8px 18px;
}
.book-btn:hover {
  background: linear-gradient(180deg, var(--black), #222);
  color: var(--white);
  border-color: transparent;
  box-shadow: 
    0 2px 4px rgba(0,0,0,.25),
    0 8px 20px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.book-btn:active {
  transform: scale(0.96);
  box-shadow: 
    0 1px 2px rgba(0,0,0,.15),
    0 2px 6px rgba(0,0,0,.1);
  transition-duration: 40ms;
}
.site-header.scrolled .book-btn {
  color: var(--black);
  border-color: rgba(0,0,0,.25);
  background: linear-gradient(180deg, #fff, #f3f1ec);
  box-shadow: 
    0 1px 2px rgba(0,0,0,.08),
    0 4px 12px rgba(0,0,0,.06);
}
.site-header.scrolled .book-btn:hover {
  background: linear-gradient(180deg, var(--black), #222);
  color: var(--white);
  border-color: transparent;
}
.site-header.light-header .book-btn {
  color: var(--black);
  border-color: rgba(0,0,0,.18);
  background: linear-gradient(180deg, #fff, #f3f1ec);
  box-shadow: 
    0 1px 2px rgba(0,0,0,.1),
    0 4px 12px rgba(0,0,0,.08);
}
.site-header.light-header .book-btn:hover {
  background: linear-gradient(180deg, var(--black), #222);
  color: var(--white);
  border-color: transparent;
}

/* ===== دکمه همبرگری (فقط موبایل) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
}
.site-header.scrolled .hamburger span { background: var(--black); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger.active span { background: var(--black); }

/* ===== منوی تمام‌صفحه موبایل ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  z-index: 150;
  background: var(--beige-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 64px 20px 28px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--black);
  cursor: pointer;
}
.mobile-menu-logo {
  margin-top: 0;
}
.mobile-menu-logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.08));
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 260px;
}
.mobile-menu-nav a {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--black);
  text-decoration: none;
  transition: opacity .2s ease, background .2s ease;
  font-weight: 400;
  width: 100%;
  max-width: 240px;
  text-align: center;
  padding: 12px 0;
  line-height: 1.4;
  position: relative;
  display: block;
}
/* خط جداکننده حذف شد: طبق قرارداد نهایی، آیتم‌های منوی موبایل بدون خط جداکننده هستند */
.mobile-menu-nav a:last-child::after { display: none; }
.mobile-menu-nav a.menu-group::after { display: none; }
.mobile-menu-nav a::after { display: none !important; }
.mobile-menu-nav a::before { display: none !important; }
.mobile-menu-nav a:hover { opacity: .7; background: rgba(0,0,0,.04); }
.mobile-menu-social {
  display: flex;
  gap: 22px;
  margin-top: 24px;
}
.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: rgba(0,0,0,.55);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.07);
  transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease;
}
.mobile-menu-social a svg {
  width: 22px;
  height: 22px;
}
.mobile-menu-social a:hover {
  color: var(--black);
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.15);
  transform: translateY(-2px);
}
.mobile-menu-social a:active {
  transform: scale(0.96);
}

/* ===== موبایل: Overrideهای مخصوص ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 14px; height: 64px; display: flex; align-items: center; }
  .site-header.scrolled { padding: 0 14px; height: 64px; }
  .header-inner { gap: 8px; position: relative; width: 100%; height: 100%; }
  
  /* مخفی کردن منوهای افقی در موبایل */
  .nav-right, .nav-left { display: none; }
  
  /* دکمه رزرو وقت در موبایل مخفی است — داخل منوی همبرگری */
  .book-btn {
    display: none;
  }

  /* دکمه ورود/ثبت‌نام — گوشه چپ */
  .auth-btn {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 10.5px;
    padding: 6px 11px;
    z-index: 250;
    width: auto;
    white-space: nowrap;
  }
  
  /* دکمه همبرگری در گوشه راست */
  .hamburger {
    display: flex;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* لوگو وسط */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .logo-img { width: 56px; height: 56px; }
  .hero { min-height: 100dvh; }
  
  
}

