/**
 * Ayandeh Sazan — main stylesheet (from index.html design).
 * Customizer overrides --accent-* via wp_add_inline_style (Ayandeh_Theme_Options).
 */

/* ========== 1. Design tokens ========== */
:root {
  /* —— Brand / Customizer (Ayandeh_Theme_Options) —— */
  --accent-color: #ff6fa8;
  --accent-secondary: #ffb46f;
  --accent-deep: #d93678;
  --accent-soft: #ffb8d8;
  --accent-rgb: 255, 111, 168;

  /* —— DS-aligned surfaces & type (hybrid light) —— */
  --bg: #f8fafc;
  --bg-warm: #fff7f2;
  --cream: #fff8f3;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --navy: #0f172a;
  --muted: #64748b;
  --text-subtle: #94a3b8;
  --coral: #ff7d67;
  --sun: #ffd66b;
  --mint: #8de0c2;
  --container: min(1320px, calc(100% - 48px));
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);

  /* Legacy aliases (index.html) */
  --purple: var(--accent-color);
  --purple-deep: var(--accent-deep);
  --purple-soft: var(--accent-soft);
  --peach: var(--accent-secondary);
  --peach-soft: #ffe4c2;
  --line: color-mix(in srgb, var(--border) 70%, rgba(var(--accent-rgb), 0.28));

  /* —— Glassmorphism —— */
  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-border-accent: rgba(var(--accent-rgb), 0.22);
  --glass-blur: 12px;
  --glass-blur-nav: 14px;
  --glass-saturate: 140%;
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --glass-shadow: var(--shadow-md);
  --glass-shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.1);
  --shadow: var(--shadow-md);
  --shadow-warm: 0 14px 32px rgba(var(--accent-rgb), 0.18);
  --glass: var(--glass-bg);

  /* Header offset for in-page anchors */
  --header-offset: 72px;
}

/* ========== 2. Glass utilities ========== */
.glass-surface,
.header-cta,
.header-login,
.header-user__toggle,
.site-nav,
.brand,
.brand.brand--has-logo,
.mobile-nav {
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

.glass-surface {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-accent);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background:
    radial-gradient(ellipse 90% 55% at 100% -8%, rgba(255, 180, 111, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 80% 58% at 0% 18%, rgba(var(--accent-rgb), 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 18% 100%, rgba(255, 214, 107, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 42%, var(--bg) 100%);
  color: var(--navy);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
button,
input,
select,
textarea,
.site-nav,
.header-cta,
.header-login,
.header-user {
  font-family: "Vazirmatn", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* —— هدر چسبان مدرن —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 10px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(var(--accent-rgb), 0.36);
  filter: saturate(1.05);
}

.header-cta i {
  font-size: 1rem;
}

.header-login {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-login:hover {
  background: color-mix(in srgb, var(--accent-soft) 28%, #fff);
  border-color: color-mix(in srgb, var(--accent-color) 35%, var(--border));
  color: var(--accent-deep);
}

.header-login i {
  font-size: 1.15rem;
}

.header-user {
  position: relative;
}

.header-user__toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  color: var(--navy);
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.header-user__toggle:hover,
.header-user.is-open .header-user__toggle {
  background: #fff;
  border-color: color-mix(in srgb, var(--accent-color) 30%, var(--border));
  box-shadow: var(--shadow-sm);
}

.header-user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-soft) 50%, #fff);
  color: var(--accent-deep);
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.header-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-user__name {
  font-size: 0.82rem;
  font-weight: 700;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user__caret {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.header-user.is-open .header-user__caret {
  transform: rotate(180deg);
}

.header-user__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 2px;
  z-index: 60;
}

/* Invisible hover bridge across the gap between toggle and menu. */
.header-user__menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.header-user__menu[hidden] {
  display: none;
}

.header-user__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.header-user__menu a:hover {
  background: var(--surface-muted);
}

.header-user__menu a i {
  font-size: 1.15rem;
  color: var(--muted);
}

.header-user__menu a.is-logout {
  color: #b42318;
}

.header-user__menu a.is-logout i {
  color: #e11d48;
}

.header-user__menu a.is-logout:hover {
  background: rgba(225, 29, 72, 0.08);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: var(--navy);
  background: transparent;
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  background: color-mix(in srgb, var(--accent-soft) 40%, transparent);
}

.menu-button__bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.menu-button__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] .menu-button__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__bars span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 0;
  white-space: nowrap;
  font-size: clamp(0.8rem, 0.92vw, 0.92rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--navy);
  background: transparent;
  transform: none;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--navy);
  background: transparent;
  box-shadow: none;
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.68);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
  text-align: right;
  line-height: 1.15;
}

.brand-copy small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.brand-copy strong {
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(145deg, #ffd66b 0%, #ffb46f 28%, var(--accent-color) 70%, var(--accent-deep) 100%);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.28);
}

.brand-mark i {
  color: inherit;
}

.menu-button:focus-visible,
.header-user__toggle:focus-visible,
.header-login:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.68);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .menu-button {
    display: none !important;
  }

  .mobile-nav,
  .mobile-nav.is-open {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .site-nav a {
    padding: 8px 10px;
    font-size: clamp(0.76rem, 1.6vw, 0.86rem);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: clamp(0.98rem, 2vw, 1.16rem);
  }
}

.mobile-nav {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--navy);
  background: var(--surface-muted);
}

.mobile-nav a.active {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
}

.mobile-nav a i {
  margin-inline-end: 8px;
  width: 1.1em;
  text-align: center;
}

.mobile-nav__actions {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.mobile-nav__actions a {
  font-weight: 700;
}

.mobile-nav a.mobile-nav__portal {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
}

.mobile-nav a.mobile-nav__logout {
  color: #b42318;
}

/* —— اسلاید + نوار سفید: یک بلوک تمام‌ارتفاع صفحه —— */
.hero-viewport {
  min-height: calc(100vh - var(--header-offset));
  min-height: calc(100dvh - var(--header-offset));
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 22% center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1.15s ease,
    transform 8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 90% at 100% 0%,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.55) 38%,
      rgba(255, 255, 255, 0) 62%
    ),
    linear-gradient(
      to left,
      rgba(255, 255, 255, 0.995) 0%,
      rgba(255, 250, 241, 0.98) 9%,
      rgba(255, 244, 231, 0.94) 20%,
      rgba(255, 236, 232, 0.76) 34%,
      rgba(255, 222, 236, 0.44) 48%,
      rgba(255, 255, 255, 0.16) 64%,
      transparent 86%
    ),
    linear-gradient(
      to top,
      rgba(66, 32, 54, 0.12) 0%,
      transparent 34%
    );
  pointer-events: none;
}

.hero-ui {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 76px;
  gap: clamp(10px, 2vw, 22px);
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(14px, 3.2vw, 36px);
  padding-block: clamp(102px, 15vh, 132px) clamp(26px, 5vh, 52px);
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-rail--tools {
  justify-content: flex-end;
  padding-bottom: 10px;
}

.hero-tool-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(66, 32, 54, 0.54), rgba(217, 54, 120, 0.3));
  border: 1px solid rgba(255, 214, 107, 0.2);
  box-shadow: 0 18px 40px rgba(66, 32, 54, 0.24);
  backdrop-filter: blur(12px);
}

.hero-social {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 16px rgba(66, 32, 54, 0.14);
  font-size: 0.82rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(18, 10, 36, 0.16);
}

.hero-rail--meta {
  justify-content: center;
  gap: 18px;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #986072;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.38em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  direction: ltr;
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 180, 111, 0.18), rgba(var(--accent-rgb), 0.72));
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-deep);
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.14);
}

.hero-progress-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.hero-progress-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 180, 111, 0.42);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-progress-dots button[aria-selected="true"] {
  background: var(--purple-deep);
  transform: scale(1.25);
}

.hero-stage {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-copy {
  width: min(560px, 100%);
  padding-inline: clamp(0px, 2vw, 18px);
  text-align: right;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.ayandeh-motion .hero-copy:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.hero-copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.2vw, 5.05rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-copy p,
.hero-subtitle {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  font-weight: 500;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ffd66b 0%, #ffb46f 26%, var(--accent-color) 68%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-warm);
}

.btn-primary i {
  font-size: 0.78rem;
  opacity: 0.95;
}

.btn-outline {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 45%, var(--border));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.btn-outline i {
  color: var(--purple-deep);
  font-size: 1rem;
}

/* —— نوار سفید آیکن‌دار (زیر اسلاید، هم‌ارتفاع با viewport) —— */
.quick-strip {
  flex: 0 0 auto;
  width: 100%;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg-warm));
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.quick-strip__scroller {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 2.8vw, 40px);
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 22px clamp(18px, 4vw, 40px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(var(--accent-rgb), 0.4) transparent;
}

.quick-strip__scroller::-webkit-scrollbar {
  height: 6px;
}

.quick-strip__scroller::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.36);
  border-radius: 999px;
}

.quick-strip__link {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  min-width: 108px;
  max-width: 168px;
  padding: 6px 12px 16px;
  border-radius: 20px;
  color: #4a3548;
  font-size: clamp(0.78rem, 1.05vw, 0.88rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.quick-strip__link:hover {
  background: rgba(255, 180, 111, 0.16);
  color: #3d2838;
  transform: translateY(-2px);
}

.quick-strip__link:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.68);
  outline-offset: 3px;
}

.quick-strip__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #fff0d9 42%, #ffe4f0 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent-deep);
  font-size: 1.2rem;
  box-shadow:
    0 10px 22px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quick-strip__link:nth-child(2n) .quick-strip__icon {
  background: linear-gradient(145deg, #ffffff 0%, #ffe4c2 52%, #fff8e3 100%);
  color: #c86e1f;
}

.quick-strip__link:nth-child(3n) .quick-strip__icon {
  background: linear-gradient(145deg, #ffffff 0%, #ffe4f0 48%, #ffd7e7 100%);
  color: var(--accent-deep);
}

/* —— معرفی مدرسه: ۶۰٪ ویدیو فول‌بلید + ۴۰٪ متن —— */
.about-split {
  padding: 0;
  background: var(--cream);
}

.about-split__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.about-split__media {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: #f5e4ec;
}

.about-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-split__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(20, 14, 36, 0.08) 0%, rgba(20, 14, 36, 0.22) 100%);
  color: inherit;
  transition: background 0.2s ease;
}

.about-split__play:hover {
  background: linear-gradient(180deg, rgba(20, 14, 36, 0.12) 0%, rgba(20, 14, 36, 0.32) 100%);
}

.about-split__play:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: -6px;
}

.about-split__play span {
  width: clamp(64px, 12vw, 88px);
  height: clamp(64px, 12vw, 88px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--purple-deep);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: 0 16px 40px rgba(70, 28, 45, 0.18);
}

.about-split__content {
  display: flex;
  align-items: center;
  min-height: 400px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 214, 107, 0.2), transparent 34%),
    linear-gradient(135deg, #fffaf1 0%, #fff0df 52%, #ffedf5 100%);
}

.about-split__content-inner {
  position: relative;
  width: 100%;
  padding: clamp(36px, 4.5vw, 56px) clamp(28px, 4vw, 56px);
  text-align: right;
}

.about-split__content-inner::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  inset-inline-end: 0;
  width: min(96px, 28%);
  border-radius: 20px;
  background-image: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.42) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}

.about-split__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--purple-deep);
  letter-spacing: 0.02em;
}

.about-split__eyebrow i {
  font-size: 0.72rem;
  opacity: 0.9;
}

.about-split__title {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.about-split__text {
  margin: 0 0 22px;
  font-size: clamp(0.92rem, 1.25vw, 1.02rem);
  font-weight: 500;
  line-height: 2;
  color: var(--muted);
}

.about-split__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--purple-deep);
  transition: gap 0.2s ease, color 0.2s ease;
}

.about-split__more:hover {
  gap: 14px;
  color: #a83568;
}

.about-split__more i {
  font-size: 0.75rem;
}

/* —— امکانات آموزشی: گرید آجری ۲ ردیف × ۹ سلول —— */
.facilities {
  padding: clamp(44px, 5.5vw, 72px) 0 clamp(52px, 6vw, 80px);
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
}

.facilities__wrap {
  width: 80%;
  max-width: 1280px;
  margin-inline: auto;
}

.facilities__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(22px, 3vw, 32px);
  text-align: right;
}

.facilities__head-copy {
  flex: 1;
  min-width: 0;
}

.facilities__title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.facilities__lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  font-weight: 500;
  line-height: 1.9;
  color: var(--muted);
}

.facilities__all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--purple-deep);
  white-space: nowrap;
}

.facilities__all:hover {
  color: #a83568;
}

.facilities__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 14px;
}

.facility-tile {
  position: relative;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  border-radius: 16px;
  overflow: hidden;
}

.facility-tile--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-tile--info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 38px 14px 14px;
  background: color-mix(in srgb, var(--surface) 70%, var(--bg-warm));
  border: 1px solid var(--border);
  text-align: right;
  box-shadow: var(--shadow-sm);
}

.facility-tile--c4,
.facility-tile--c7 {
  background: color-mix(in srgb, var(--bg-warm) 75%, var(--accent-secondary));
}

.facility-tile--c6,
.facility-tile--c9 {
  background: color-mix(in srgb, var(--surface) 55%, var(--accent-soft));
}

.facility-tile__icon {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--purple-deep);
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(70, 28, 45, 0.08);
}

.facility-tile__title {
  margin: 0;
  width: 100%;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 800;
  color: #3d2a38;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facility-tile__text {
  margin: 0;
  width: 100%;
  font-size: clamp(0.68rem, 0.85vw, 0.74rem);
  font-weight: 500;
  line-height: 1.55;
  color: #8a7080;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.facility-tile--c1 { grid-column: 9 / 13; grid-row: 1; }
.facility-tile--c2 { grid-column: 7 / 9; grid-row: 1; }
.facility-tile--c3 { grid-column: 4 / 7; grid-row: 1; }
.facility-tile--c4 { grid-column: 1 / 4; grid-row: 1; }
.facility-tile--c5 { grid-column: 10 / 13; grid-row: 2; }
.facility-tile--c6 { grid-column: 8 / 10; grid-row: 2; }
.facility-tile--c7 { grid-column: 6 / 8; grid-row: 2; }
.facility-tile--c8 { grid-column: 3 / 6; grid-row: 2; }
.facility-tile--c9 { grid-column: 1 / 3; grid-row: 2; }

/* —— ۱. بنر شعار —— */
.motto-banner {
  width: 100%;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 214, 107, 0.18), transparent 30%),
    linear-gradient(135deg, #4b213e 0%, #7d2b58 52%, var(--accent-deep) 100%);
  overflow: hidden;
}

.motto-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  height: 100%;
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.motto-banner__text {
  margin: 0;
  max-width: 36em;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
}

.motto-banner__headline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
}

.motto-banner__headline .line {
  display: block;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.motto-banner__headline .line--sm {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
}

.motto-banner__headline .line--md {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.motto-banner__headline .line--accent {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: #ffd66b;
}

.motto-banner__decor {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-42%);
  width: clamp(100px, 12vw, 140px);
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.motto-banner__decor svg {
  width: 100%;
  height: auto;
  stroke: #ffd66b;
  fill: none;
  stroke-width: 1.2;
}

/* —— ۲. آمار —— */
.stats {
  padding: 40px 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 227, 0.7), rgba(255, 239, 246, 0.86)),
    #ffffff;
  border-block: 1px solid #ffe2d0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 20px;
  text-align: center;
  transition: background 0.22s ease;
}

.stats__item:hover {
  background: rgba(255, 180, 111, 0.12);
}

.stats__item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    #f5c8d8 18%,
    #f5c8d8 82%,
    transparent 100%
  );
}

.stats__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(165deg, #ffffff 0%, #fff0d9 48%, #ffd7e7 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-deep);
  font-size: 1.18rem;
  line-height: 1;
  box-shadow:
    0 8px 20px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stats__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stats__value {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #3a2838;
  direction: ltr;
}

.stats__label {
  margin: 0;
  max-width: 12rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
  color: #9a8088;
}

/* —— ۳. برنامه‌های آموزشی (تایم‌لاین) —— */
.programs-strip {
  padding: 40px 0 48px;
  background: #fffaf4;
}

.programs-strip__wrap {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.programs-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.programs-strip__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  font-weight: 900;
  color: #3a2838;
}

.programs-strip__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-deep);
  white-space: nowrap;
}

.programs-strip__all i {
  font-size: 0.7rem;
}

.programs-strip__timeline {
  position: relative;
  padding: 0 8px;
}

.programs-strip__line {
  position: absolute;
  top: 36px;
  right: 8%;
  left: 8%;
  height: 0;
  border-top: 2px dashed #ffc5d8;
  z-index: 0;
  pointer-events: none;
}

.programs-strip__steps {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.programs-strip__step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.programs-strip__circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(165deg, #ffd66b 0%, #ffb46f 34%, var(--accent-color) 72%, var(--accent-deep) 100%);
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow:
    0 9px 22px rgba(var(--accent-rgb), 0.24),
    0 0 0 7px rgba(255, 255, 255, 0.82);
}

.programs-strip__label {
  margin: 0;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 700;
  line-height: 1.45;
  color: #3d2a38;
}

.programs-strip__index {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #d58ca8;
  direction: ltr;
}

/* —— گالری تصاویر —— */
.gallery-strip {
  padding: 44px 0 52px;
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.gallery-strip__wrap {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.gallery-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-strip__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  font-weight: 900;
  color: #3a2838;
}

.gallery-strip__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
}

.gallery-strip__all i {
  font-size: 0.7rem;
}

.gallery-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.gallery-strip__item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #ffe4f0;
}

.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-strip__item:hover img {
  transform: scale(1.04);
}

/* —— نظرات والدین —— */
.testimonials {
  padding: 48px 0 40px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 214, 107, 0.22), transparent 30%),
    linear-gradient(180deg, #fff3e0 0%, #ffeaf4 58%, #fff8ef 100%);
}

.testimonials__wrap {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.testimonials__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.testimonials__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  font-weight: 900;
  color: #3a2838;
}

.testimonials__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
}

.testimonials__all i {
  font-size: 0.7rem;
}

.testimonials__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: stretch;
}

.testimonials__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: clamp(120px, 14vw, 185px);
  padding-bottom: 8px;
}

.testimonials__art svg {
  width: 100%;
  height: auto;
  max-height: 200px;
}

.testimonials__slider {
  min-width: 0;
}

.testimonials__viewport {
  overflow: hidden;
  width: 100%;
}

.testimonials__track {
  display: flex;
  direction: ltr;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonials__slide {
  flex: 0 0 100%;
  min-width: 100%;
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 26px 22px 20px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 245, 0.98));
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 14px 36px rgba(105, 40, 70, 0.08);
}

.testimonial-card__quote {
  position: absolute;
  top: 14px;
  inset-inline-end: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: #ffe1eb;
  pointer-events: none;
  user-select: none;
}

.testimonial-card__text {
  flex: 1;
  margin: 0;
  padding: 32px 6px 0;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
  color: #7a6575;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 18px;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ffd7e7;
}

.testimonial-card__meta {
  text-align: right;
}

.testimonial-card__name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: #3d2a38;
  line-height: 1.35;
}

.testimonial-card__role {
  margin: 3px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #a67a8c;
  line-height: 1.4;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.testimonials__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffc8d8;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.testimonials__dots button[aria-current="true"] {
  background: var(--accent-color);
  transform: scale(1.2);
}

/* —— فوتر —— */
.site-footer {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 214, 107, 0.18), transparent 28%),
    linear-gradient(135deg, #3f2036 0%, #642448 48%, #8f2e5c 100%);
  border-top: 2px solid #ffd66b;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 44px 0 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.site-footer__heading {
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.site-footer__text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 10px;
}

.site-footer__links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #ffd66b;
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__contact li + li {
  margin-top: 12px;
}

.site-footer__contact i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 107, 0.34);
  font-size: 0.72rem;
  color: #ffd66b;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.site-footer__logo i {
  color: #ffd66b;
  font-size: 1.5rem;
}

.site-footer__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__tagline i {
  font-size: 0.65rem;
  color: #ffd66b;
}

.site-footer__social-title {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__social {
  display: flex;
  gap: 10px;
}

.site-footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 107, 0.32);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.site-footer__social a:hover {
  background: rgba(255, 214, 107, 0.16);
  border-color: rgba(255, 214, 107, 0.7);
  transform: translateY(-2px);
}

.anchor,
.anchor-alias {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  scroll-margin-top: var(--header-offset);
}

/* In-page section targets clear the fixed/absolute header */
#home,
#about,
#facilities,
#programs,
#activities,
#gallery,
#news,
#contact,
#cta,
[id^="pillar-"] {
  scroll-margin-top: var(--header-offset);
}

.reveal-on-scroll {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.ayandeh-motion .reveal-on-scroll:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .hero-ui {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    display: none;
  }

  .hero-stage {
    justify-content: center;
    padding-block: 0 8px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

}

@media (max-width: 960px) {
  .about-split__grid {
    grid-template-columns: 1fr;
  }

  .about-split__media {
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
  }

  .about-split__content {
    min-height: auto;
  }

  .about-split__content-inner::before {
    display: none;
  }

  .facilities__wrap {
    width: 92%;
  }
}

@media (max-width: 720px) {
  .facilities__wrap {
    width: min(100% - 24px, 100%);
  }

  .facilities__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .facilities__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 200px;
  }

  .facility-tile,
  .facility-tile--c1,
  .facility-tile--c2,
  .facility-tile--c3,
  .facility-tile--c4,
  .facility-tile--c5,
  .facility-tile--c6,
  .facility-tile--c7,
  .facility-tile--c8,
  .facility-tile--c9 {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .facility-tile__title {
    white-space: normal;
  }

  .gallery-strip__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .testimonials__main {
    grid-template-columns: 1fr;
  }

  .testimonials__art {
    display: none;
  }

  .testimonial-card {
    min-height: auto;
  }

  .testimonials__slide {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .motto-banner {
    height: auto;
    min-height: 150px;
    max-height: none;
  }

  .motto-banner__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 20px;
    height: auto;
    min-height: 150px;
  }

  .motto-banner__headline {
    align-items: flex-end;
    text-align: right;
    white-space: normal;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats__item::before {
    display: none;
  }

  .stats__item {
    padding: 18px 14px;
  }

  .stats__item:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    inset-inline-end: 0;
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      #f0d4e0 18%,
      #f0d4e0 82%,
      transparent 100%
    );
  }

  .stats__item:nth-child(n + 3) {
    border-top: 1px solid #ebe8f0;
    margin-top: 4px;
    padding-top: 22px;
  }

  .programs-strip__steps {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 28px;
  }

  .programs-strip__step {
    flex: 0 0 calc(33.333% - 12px);
  }

  .programs-strip__line {
    display: none;
  }

  .gallery-strip__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonials__slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .site-header {
    padding-block: 8px;
  }

  .header-inner {
    gap: 10px;
  }

  .site-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .header-login span,
  .header-user__name,
  .header-user__caret {
    display: none;
  }

  .header-login {
    padding: 0;
    width: 40px;
    justify-content: center;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 8.5vw, 3.6rem);
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 24px, 1280px);
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .brand-mark {
    font-size: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .quick-strip__scroller {
    justify-content: flex-start;
    padding-block: 18px;
    gap: 14px;
  }

  .quick-strip__icon {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }

  .quick-strip__link {
    min-width: 96px;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.35s ease;
  }

  .hero-slide.is-active {
    transform: none;
  }

  .testimonials__track {
    transition: none;
  }
}

/* ========== 3. WordPress integration (header/footer markup) ========== */
.brand.brand--has-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand--has-logo .custom-logo-link {
  display: grid;
  place-items: center;
  line-height: 0;
}

.brand--has-logo .custom-logo {
  max-height: 44px;
  width: auto;
  border-radius: 12px;
}

.site-footer__logo--image .custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
}

.site-footer__logo--image .custom-logo {
  max-height: 44px;
  width: auto;
}

.site-footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 214, 107, 0.22);
  text-align: center;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__copyright a {
  color: var(--sun);
}

.news-strip {
  padding: 44px 0 52px;
  background: var(--white);
}

.news-strip__wrap {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.news-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.news-strip__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  font-weight: 900;
  color: #3a2838;
}

.news-strip__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.news-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.post-card {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 245, 0.98));
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 14px 36px rgba(105, 40, 70, 0.08);
}

.post-card__more {
  color: var(--accent-deep);
}

.page-layout--sidebar-right,
.page-layout--sidebar-left {
  display: grid;
  gap: 24px;
  padding: 48px 0 64px;
  align-items: start;
}

@media (min-width: 960px) {
  .page-layout--sidebar-right {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  }

  .page-layout--sidebar-left {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }
}


/* Phase 1 � admission UI fallback (Core off) */
.contact-section { padding: 48px 0 64px; }
.contact-section .section-title { margin-bottom: 1.25rem; }
.contact-grid { display: grid; gap: 24px; margin-bottom: 28px; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.contact-admission { max-width: 560px; }
.ayandeh-admission-fallback__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent-secondary) 18%, var(--surface));
  border-right: 3px solid var(--accent-secondary);
  color: var(--navy);
  font-size: 0.92rem;
}
.ayandeh-admission-fallback__form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.85rem; }
.ayandeh-admission-fallback__form input,
.ayandeh-admission-fallback__form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 12px;
}
.ayandeh-admission-fallback__form .ltr { direction: ltr; text-align: left; }
.ayandeh-admission-fallback__form button[disabled] { opacity: 0.65; cursor: not-allowed; }
