/* ============================================================
   دبستان پسرانه همت — Premium RTL Design System
   Full Farsi RTL | Vazirmatn | Mobile-first
   ============================================================ */

/* ============================================================
   1. FONT FACES — Vazirmatn, self-hosted
   ============================================================ */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   2. DESIGN TOKENS / CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Palette */
  --yellow:       #E5A50A;
  --yellow-dark:  #C4880A;
  --yellow-light: #FEF4C0;
  --blue:         #1B4FAD;
  --blue-dark:    #0F3278;
  --blue-deeper:  #0A2356;
  --cream:        #FFF8F0;
  --white:        #FFFFFF;
  --charcoal:     #1A1A2E;
  --gray:         #6B7280;
  --gray-light:   #F3F4F6;

  /* Shadows — multi-stop, brand-tinted */
  --shadow-card:   0 1px 3px rgba(27,79,173,0.06),
                   0 4px 24px rgba(27,79,173,0.10);
  --shadow-hover:  0 2px 8px rgba(27,79,173,0.08),
                   0 8px 40px rgba(27,79,173,0.18),
                   0 20px 60px rgba(27,79,173,0.10);
  --shadow-navbar: 0 2px 20px rgba(10,35,86,0.12);
  --shadow-btn:    0 4px 16px rgba(247,197,42,0.35);

  /* Radii */
  --radius:      16px;
  --radius-sm:   8px;
  --radius-lg:   24px;
  --radius-pill: 50px;

  /* Spacing */
  --section-pad: clamp(72px, 10vw, 120px);
  --container-width: 1200px;
  --container-pad: 24px;

  /* Typography */
  --font-primary: 'Vazirmatn', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Z-index scale */
  --z-base:    1;
  --z-above:   10;
  --z-nav:     100;
  --z-overlay: 200;
  --z-toast:   300;
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) rgba(27,79,173,0.15);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: rgba(27,79,173,0.08); }
html::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}
html::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }

::selection {
  background: var(--yellow);
  color: var(--blue-deeper);
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ============================================================
   4. LAYOUT — CONTAINER
   ============================================================ */
.container {
  max-width: var(--container-width);
  padding: 0 var(--container-pad);
  margin-inline: auto;
  width: 100%;
}

/* ============================================================
   5. UTILITY CLASSES
   ============================================================ */
.text-yellow   { color: var(--yellow); }
.text-blue     { color: var(--blue); }
.text-blue-deep { color: var(--blue-deeper); }
.text-white    { color: var(--white); }
.text-gray     { color: var(--gray); }
.text-charcoal { color: var(--charcoal); }

.bg-yellow  { background-color: var(--yellow); }
.bg-blue    { background-color: var(--blue); }
.bg-cream   { background-color: var(--cream); }
.bg-deep    { background-color: var(--blue-deeper); }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-white,
.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition:
    background-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  outline: none;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline-white:focus-visible,
.btn-outline-blue:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-outline-white:active,
.btn-outline-blue:active { transform: scale(0.97); }

/* Primary — yellow pill */
.btn-primary {
  background: var(--yellow);
  color: var(--blue-deeper);
  border-color: var(--yellow);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  box-shadow: 0 6px 24px rgba(247,197,42,0.45);
  transform: translateY(-2px);
}

/* Secondary — blue pill */
.btn-secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(27,79,173,0.28);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 6px 28px rgba(27,79,173,0.38);
  transform: translateY(-2px);
}

/* Outline white */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Outline blue */
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover,
.btn-outline-blue:focus-visible {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

/* ============================================================
   7. SECTION HEADINGS
   ============================================================ */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(27,79,173,0.08);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--blue-deeper);
  line-height: 1.35;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 56px;
  max-width: 60ch;
}

/* When headings are centered */
.text-center .section-subtitle { margin-inline: auto; }

/* Yellow accent underline for headings */
.section-title--accented {
  position: relative;
  display: inline-block;
}
.section-title--accented::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ============================================================
   8. ANIMATIONS & SCROLL REVEALS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-up-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.fade-up-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.fade-up-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.fade-up-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.fade-up-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.fade-up-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* ============================================================
   9. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: 72px;
  background: var(--white);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-navbar);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Logo — right side in RTL */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
}

.navbar__logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-deeper);
  line-height: 1.2;
}

.navbar__logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.2;
}

/* Desktop nav links — center-right */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.navbar__nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.navbar__nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.navbar__nav-link:hover {
  color: var(--blue);
  background: rgba(27,79,173,0.05);
}

.navbar__nav-link:hover::after {
  transform: scaleX(1);
}

.navbar__nav-link.active {
  color: var(--blue);
  font-weight: 600;
  background: rgba(27,79,173,0.07);
}

.navbar__nav-link.active::after {
  transform: scaleX(1);
}

/* Nav actions — left side in RTL layout */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Cart icon with badge */
.navbar__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--charcoal);
  transition: background var(--transition), color var(--transition);
}

.navbar__cart:hover {
  background: rgba(27,79,173,0.07);
  color: var(--blue);
}

.navbar__cart svg {
  width: 22px;
  height: 22px;
}

.navbar__cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  color: var(--blue-deeper);
  font-size: 0.65rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(247,197,42,0.4);
}

/* Register CTA button in nav */
.navbar__cta {
  background: var(--yellow);
  color: var(--blue-deeper);
  border-color: var(--yellow);
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(247,197,42,0.30);
}

.navbar__cta:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  box-shadow: 0 5px 18px rgba(247,197,42,0.42);
  transform: translateY(-1px);
}

/* Hamburger — hidden on desktop */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  order: -1; /* leftmost in RTL */
}

.navbar__hamburger:hover { background: rgba(27,79,173,0.07); }

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   10. MOBILE NAV OVERLAY
   ============================================================ */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.nav-mobile.open {
  visibility: visible;
  pointer-events: all;
}

/* Dark backdrop */
.nav-mobile__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,35,86,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-mobile.open .nav-mobile__backdrop { opacity: 1; }

/* Slide-in panel from right (RTL: enters from right = start side) */
.nav-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 60px rgba(10,35,86,0.2);
}

.nav-mobile.open .nav-mobile__panel {
  transform: translateX(0);
}

/* Panel header */
.nav-mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(27,79,173,0.08);
}

.nav-mobile__close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
}
.nav-mobile__close:hover {
  background: var(--gray-light);
  color: var(--charcoal);
}
.nav-mobile__close svg { width: 20px; height: 20px; }

/* Panel links */
.nav-mobile__links {
  padding: 16px 0;
  flex: 1;
}

.nav-mobile__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-right: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-mobile__link:hover,
.nav-mobile__link.active {
  background: rgba(27,79,173,0.05);
  color: var(--blue);
  border-right-color: var(--yellow);
}

.nav-mobile__link.active { font-weight: 700; }

/* Panel bottom actions */
.nav-mobile__footer {
  padding: 24px;
  border-top: 1px solid rgba(27,79,173,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   11. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 2fr;
  overflow: hidden;
}

/* Left column — blue panel */
.hero__panel {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

/* Decorative background pattern on blue panel */
.hero__panel::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(247,197,42,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Eyebrow tag in hero */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--yellow-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* Hero heading */
.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* Yellow accent span inside title */
.hero__title span {
  color: var(--yellow);
}

/* Hero subtitle */
.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--yellow-light);
  line-height: 1.7;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* Hero CTA group */
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Hero image column */
.hero__image-col {
  position: relative;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: hero-zoom 14s ease-in-out alternate infinite;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Gradient scrim on image */
.hero__image-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27,79,173,0.35) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Yellow organic blob — between cols */
.hero__blob {
  position: absolute;
  top: 50%;
  left: 33.33%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(80px, 9vw, 130px);
  height: clamp(80px, 9vw, 130px);
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(247,197,42,0.4));
}

.hero__blob svg {
  width: 100%;
  height: 100%;
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  animation: bounce-down 2.2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   12. FEATURES STRIP
   ============================================================ */
.features {
  background: var(--cream);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative oversized orb behind content */
.features::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(247,197,42,0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.features__header {
  text-align: center;
  margin-bottom: 56px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Feature card */
.feature-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
  border: 1px solid rgba(27,79,173,0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--yellow), var(--blue));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before { opacity: 1; }

/* Icon wrapper */
.feature-card__icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-card__icon svg,
.feature-card__icon img {
  width: 48px;
  height: 48px;
  color: var(--blue);
}

/* Yellow dot accent on icon */
.feature-card__icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.85;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deeper);
  margin-bottom: 10px;
  line-height: 1.4;
}

.feature-card__desc {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ============================================================
   13. VIRTUAL / INFO SECTION
   ============================================================ */
.virtual-section {
  padding: var(--section-pad) 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle pattern behind */
.virtual-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27,79,173,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.virtual-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  min-height: 520px;
  align-items: stretch;
}

/* Left panel — deep blue */
.virtual-section__content {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.virtual-section__content::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.virtual-section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Yellow accent divider */
.virtual-section__divider {
  width: 56px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 28px;
  margin-right: 0;
  position: relative;
  z-index: 1;
}

/* Bullet list with check icons */
.virtual-section__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.virtual-section__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.7;
}

.virtual-section__list-icon {
  width: 22px;
  height: 22px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.virtual-section__list-icon svg {
  width: 12px;
  height: 12px;
  color: var(--blue-deeper);
}

/* Right image */
.virtual-section__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  position: relative;
}

.virtual-section__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,35,86,0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.virtual-section__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.virtual-section__image-wrap:hover .virtual-section__img {
  transform: scale(1.04);
}

/* ============================================================
   14. SERVICES SECTION
   ============================================================ */
.services {
  background: var(--cream);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to left, var(--blue), var(--yellow), var(--blue));
}

.services__header { text-align: center; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Service card */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  border: 1px solid rgba(27,79,173,0.05);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Card image area */
.service-card__image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card__img,
.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__img,
.service-card:hover .service-card__image {
  transform: scale(1.06);
}

/* Category badge over image */
.service-card__badge,
.service-card__cat {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(10,35,86,0.25);
}

/* Card body */
.service-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deeper);
  line-height: 1.45;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Yellow price badge */
.service-card__price {
  background: var(--yellow);
  color: var(--blue-deeper);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(247,197,42,0.3);
}

/* Blue view button */
.service-card__btn {
  background: var(--blue);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card__btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,79,173,0.3);
}
.service-card__btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ============================================================
   15. STATS BAND
   ============================================================ */
.stats-band {
  background: var(--blue-deeper);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative pattern */
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(247,197,42,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(27,79,173,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}

/* Dividers between items */
.stats-band__item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}

.stats-band__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 0;
  width: 1px;
  height: 80%;
  background: rgba(255,255,255,0.18);
}

.stats-band__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.stats-band__label {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.stats-band__sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  display: block;
}

/* ============================================================
   16. TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--white);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247,197,42,0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.testimonials__header { text-align: center; }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Testimonial card */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  border-right: 4px solid var(--yellow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  border: 1px solid rgba(27,79,173,0.07);
  border-right: 4px solid var(--yellow);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Quote mark decoration */
.testimonial-card::before {
  content: '\201D';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 5rem;
  color: rgba(27,79,173,0.07);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* Stars */
.testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: var(--yellow);
  font-size: 1rem;
}

/* Quote text */
.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.85;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Author */
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(27,79,173,0.07);
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--yellow-light);
}

/* Avatar placeholder if no image */
.testimonial-card__avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ============================================================
   17. CTA BAND
   ============================================================ */
.cta-band {
  background: var(--yellow);
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative stripes */
.cta-band::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: rgba(10,35,86,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: rgba(10,35,86,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
}

.cta-band__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-deeper);
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta-band__subtitle {
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.85;
  max-width: 55ch;
  margin-inline: auto;
}

.cta-band .btn-secondary {
  box-shadow: 0 6px 24px rgba(10,35,86,0.25);
  font-size: 1.05rem;
  padding: 16px 44px;
}

.cta-band .btn-secondary:hover {
  box-shadow: 0 10px 36px rgba(10,35,86,0.35);
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--blue-deeper);
  color: var(--white);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27,79,173,0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247,197,42,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  position: relative;
  z-index: 1;
}

/* Col 1 — Logo and info */
.footer__brand { }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer__logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.12);
}

.footer__logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.footer__logo-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}

.footer__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 40ch;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--yellow);
  margin-top: 3px;
}

/* Col 2 — Quick links */
.footer__links-title,
.footer__social-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.footer__links-title::after,
.footer__social-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition), padding-right var(--transition);
}

.footer__link::before {
  content: '‹';
  color: var(--yellow);
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.footer__link:hover {
  color: var(--white);
  padding-right: 4px;
}

.footer__link:hover::before { opacity: 1; }

/* Col 3 — Socials */
.footer__social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--yellow);
}

.footer__social-link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}

/* Footer bottom bar */
.footer__bottom {
  margin-top: 56px;
  padding: 20px 0;
  background: rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer__copy a {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__copy a:hover { color: var(--yellow); }

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer__bottom-link:hover { color: rgba(255,255,255,0.75); }

/* ============================================================
   19. FORMS (contact / registration)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-deeper);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid rgba(27,79,173,0.18);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-primary);
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 48px;
}

.form-control::placeholder { color: rgba(107,114,128,0.55); }

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,79,173,0.12);
}

.form-control.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

.form-control.success {
  border-color: #16A34A;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.10);
}

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control { cursor: pointer; }

.form-error {
  font-size: 0.82rem;
  color: #DC2626;
  font-weight: 500;
}

.form-success {
  font-size: 0.82rem;
  color: #16A34A;
  font-weight: 500;
}

/* ============================================================
   20. MISC UI COMPONENTS
   ============================================================ */

/* Divider */
.divider {
  height: 1px;
  background: rgba(27,79,173,0.08);
  border: none;
  margin: 0;
}

/* Yellow accent line */
.accent-line {
  width: 56px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  display: block;
}

/* Pill tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}
.tag--blue   { background: rgba(27,79,173,0.1);  color: var(--blue); }
.tag--yellow { background: var(--yellow-light);   color: var(--blue-deeper); }
.tag--gray   { background: var(--gray-light);     color: var(--gray); }
.tag--white  { background: rgba(255,255,255,0.15); color: var(--white); }

/* Avatar stack */
.avatar-stack {
  display: flex;
  flex-direction: row-reverse;
}
.avatar-stack .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-right: -10px;
  object-fit: cover;
}

/* Number counter (for stats with JS) */
.counter { font-variant-numeric: tabular-nums; }

/* ============================================================
   21. RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  :root { --container-pad: 32px; }
  .hero__title { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
  .features__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .services__grid { gap: 20px; }
}

/* ============================================================
   22. RESPONSIVE — 960px (3-col → 2-col grids)
   ============================================================ */
@media (max-width: 960px) {
  :root { --container-pad: 28px; }

  /* Nav */
  .navbar__nav { display: none; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__image-col {
    order: -1;
    height: 55vw;
    min-height: 280px;
  }
  .hero__panel {
    padding: 48px 32px 56px;
    min-height: auto;
  }
  .hero__blob { display: none; }

  /* Features */
  .features__grid { grid-template-columns: repeat(2, 1fr); }

  /* Virtual section */
  .virtual-section__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .virtual-section__image-wrap {
    height: 380px;
  }

  /* Services */
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-band__grid { grid-template-columns: repeat(3, 1fr); }

  /* Testimonials */
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============================================================
   23. RESPONSIVE — 768px (hero stack, hide desktop nav)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(56px, 10vw, 88px);
    --container-pad: 20px;
  }

  /* Hero fully stacked — image first */
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero__image-col {
    order: -1;
    height: 60vw;
    min-height: 260px;
  }
  .hero__panel { padding: 40px 24px 48px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; text-align: center; }

  /* Section headings */
  .section-title { font-size: clamp(1.6rem, 4.5vw, 2rem); }
  .section-subtitle { margin-bottom: 36px; }

  /* Features */
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-card { padding: 24px 18px; }

  /* Virtual section */
  .virtual-section__content { padding: 36px 28px; }
  .virtual-section__image-wrap { height: 300px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-band__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stats-band__number { font-size: clamp(1.9rem, 6vw, 2.8rem); }
  .stats-band__label { font-size: 0.9rem; }

  /* Testimonials */
  .testimonials__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

  /* CTA band */
  .cta-band .btn-secondary { width: 100%; max-width: 340px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__bottom-links { justify-content: center; }
}

/* ============================================================
   24. RESPONSIVE — 480px (2-col → 1-col features)
   ============================================================ */
@media (max-width: 480px) {
  :root { --container-pad: 16px; }

  /* Features: 2 → 1 col */
  .features__grid { grid-template-columns: 1fr; }
  .feature-card { flex-direction: row; align-items: flex-start; text-align: right; gap: 16px; }
  .feature-card__icon { flex-shrink: 0; }

  /* Stats band: stack */
  .stats-band__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats-band__item::after { display: none; }
  .stats-band__item {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stats-band__item:last-child { border-bottom: none; }

  /* Testimonial card padding */
  .testimonial-card { padding: 24px 20px; }

  /* Buttons: ensure min touch target */
  .btn { min-height: 48px; }

  /* Hero image shorter on small screens */
  .hero__image-col { height: 56vw; min-height: 220px; }

  /* Virtual section image */
  .virtual-section__image-wrap { height: 240px; }

  /* Navbar actions: hide cart text if any */
  .navbar__cart { width: 38px; height: 38px; }
}

/* ============================================================
   25. RESPONSIVE — 390px (no horizontal overflow)
   ============================================================ */
@media (max-width: 390px) {
  :root { --container-pad: 14px; }

  body { overflow-x: hidden; }

  .hero__title { font-size: 1.75rem; }
  .hero__subtitle { font-size: 1rem; }

  .section-title { font-size: 1.55rem; }

  .navbar { height: 64px; }
  .navbar__logo-name { font-size: 0.9rem; }
  .navbar__logo-sub { display: none; }

  .feature-card { padding: 20px 16px; }
  .service-card__body { padding: 18px; }

  .footer__social-link { padding: 9px 12px; font-size: 0.85rem; }
  .footer__desc { font-size: 0.85rem; }
  .footer__contact-item { font-size: 0.82rem; }
}

/* ============================================================
   26. PRINT STYLES (basic)
   ============================================================ */
@media print {
  .navbar, .nav-mobile, .hero__blob, .cta-band, .footer { display: none; }
  body { color: #000; background: #fff; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* ============================================================
   27. DARK MODE SUPPORT (optional — passive)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* Intentionally left minimal — brand site uses fixed palette */
  /* Only adjust if explicitly enabled via class .dark-mode on <html> */
}

/* ============================================================
   28. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__image { animation: none; }
  .fade-up, .fade-up-stagger > * { opacity: 1; transform: none; }
  .fade-up-stagger.visible > * { opacity: 1; transform: none; }
}

/* ============================================================
   29. FOCUS VISIBLE — global cleanup
   ============================================================ */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   30. SUPPLEMENT — missing component classes
   ============================================================ */

/* ── Footer column (grid child) ── */
.footer__col {
  position: relative;
  z-index: 1;
}

/* ── Section eyebrow modifiers ── */
.section-eyebrow--light {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
}
.section-eyebrow--dark {
  background: rgba(10,35,86,0.08);
  color: var(--blue-deeper);
  border: 1px solid rgba(10,35,86,0.12);
}

/* ── Hero panel inner wrapper ── */
.hero__panel-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Hero trust strip ── */
.hero__trust-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  position: relative;
  z-index: 1;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.hero__trust-item svg { color: var(--yellow); flex-shrink: 0; }
.hero__trust-item strong { color: var(--yellow); }

/* ── Hero image overlay badge ── */
.hero__badge {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: var(--yellow);
  color: var(--blue-deeper);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  line-height: 1;
}
.hero__badge-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.hero__badge-lbl {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Virtual section play badge ── */
.virtual-play-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── CTA band actions ── */
.cta-band__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── Inner page mini-hero ── */
.page-hero-mini {
  background: var(--blue);
  padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 7vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(247,197,42,0.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 45%);
  pointer-events: none;
}
.page-hero-mini .container { position: relative; z-index: 1; }

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin: 12px 0 16px;
}
.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 56ch;
  margin-inline: auto;
}

/* ── About page layout ── */
.about-section { padding: var(--section-pad) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-image-col { position: relative; }
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  display: block;
}
.about-content-col { }

/* ── Footer copy link ── */
.footer__copy-link {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  transition: color var(--transition);
}
.footer__copy-link:hover { color: var(--yellow); }

/* ── Responsive supplement ── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__badge { bottom: 16px; right: 16px; }
}
@media (max-width: 768px) {
  .page-hero-mini { padding: 56px 0 48px; }
  .hero__trust-strip { gap: 16px; }
  .cta-band__actions { flex-direction: column; align-items: center; }
}
@media (max-width: 390px) {
  .hero__badge { display: none; }
  .virtual-play-badge { display: none; }
}

/* ============================================================
   31. STAGE 2 — SHOP, PRODUCT, CART, CHECKOUT, AUTH, 404
   ============================================================ */

/* ── Shop grid (reuses .services__grid widths) ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ── Category filter pills ── */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.shop-filter-btn {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid rgba(27,79,173,0.18);
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}

.shop-filter-btn:hover,
.shop-filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ── Product detail layout ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4 / 3;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.product-gallery__main:hover img {
  transform: scale(1.04);
}

.product-info__cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.product-info__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--blue-deeper);
  line-height: 1.35;
  margin-bottom: 20px;
}

.product-price-box {
  background: var(--yellow-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.product-price-box__label {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 4px;
}

.product-price-box__amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blue-deeper);
  line-height: 1;
}

/* Quantity control */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(27,79,173,0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
  line-height: 1;
}

.qty-btn:hover { background: rgba(27,79,173,0.07); }

.qty-input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid rgba(27,79,173,0.15);
  border-right: 1.5px solid rgba(27,79,173,0.15);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  outline: none;
  background: var(--white);
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Cart layout ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 14px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(27,79,173,0.08);
  vertical-align: middle;
}

.cart-table th {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
  background: var(--gray-light);
  white-space: nowrap;
}

.cart-table tr:hover td { background: rgba(27,79,173,0.02); }

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.cart-item__name {
  font-weight: 600;
  color: var(--blue-deeper);
  font-size: 0.93rem;
  line-height: 1.4;
  display: block;
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(27,79,173,0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
  line-height: 1;
}

.cart-qty-btn:hover { background: rgba(27,79,173,0.07); }

.cart-qty-val {
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-left: 1px solid rgba(27,79,173,0.12);
  border-right: 1px solid rgba(27,79,173,0.12);
  padding: 4px 0;
  display: inline-block;
}

.cart-remove-btn {
  color: #DC2626;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  line-height: 1;
}

.cart-remove-btn:hover { background: #fef2f2; }

/* Cart summary card */
.cart-summary {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 88px;
}

.cart-summary__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-deeper);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(27,79,173,0.1);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--gray);
}

.cart-summary__row.total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-deeper);
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(27,79,173,0.1);
}

.cart-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ── Checkout layout ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ── Auth pages ── */
.auth-wrap {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--container-pad);
  background: var(--cream);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 440px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-card__icon {
  width: 72px;
  height: 72px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.auth-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-deeper);
  margin-bottom: 8px;
  line-height: 1.3;
}

.auth-card__sub {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── 404 page ── */
.not-found-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

.not-found-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(247,197,42,0.14) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 45%);
  pointer-events: none;
}

.not-found__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 0;
  width: 100%;
}

.not-found__code {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  display: block;
  margin-bottom: 20px;
  text-shadow: 0 8px 48px rgba(247,197,42,0.3);
}

.not-found__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.not-found__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.75;
}

/* ── Responsive Stage 2 ── */
@media (max-width: 960px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary { position: static; }
  .product-detail { grid-template-columns: 1fr; }

  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .auth-card { padding: 36px 28px; }
  .cart-col-price { display: none; }

  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
  .shop-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   END — دبستان پسرانه همت — style.css
   ============================================================ */

/* ============================================================
   CART TOAST — feedback when a service is added to the cart
   ============================================================ */
.cart-toast {
  position: fixed;
  z-index: 9999;
  right: 16px;
  left: 16px;
  margin: 0 auto;
  transform: translateY(24px);
  bottom: 24px;
  width: fit-content;
  max-width: min(92vw, 420px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 32px rgba(10,35,86,0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cart-toast--error { background: #dc2626; }
.cart-toast__link {
  color: var(--yellow);
  text-decoration: underline;
  white-space: nowrap;
}
[data-add-to-cart].added { background: #16a34a !important; border-color: #16a34a !important; }

.navbar__cart-badge.is-empty { display: none !important; }
