/* ==========================================================================
   NAWA PRIVATE BASIC SCHOOL — MAIN ARCHITECTURE
   NAVIGATION, HERO, TRUST STRIP, BUTTONS, MODALS, TOASTS
   ========================================================================== */

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==========================================================================
   BUTTONS & ACCENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--brand-accent);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.btn-primary:hover {
  background-color: var(--brand-accent-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-deep-navy);
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--color-surface-subtle);
  border-color: var(--color-border-medium);
  color: var(--color-deep-navy);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-soft-navy);
}

.btn-ghost:hover {
  background-color: var(--color-surface-muted);
  color: var(--color-deep-navy);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

/* Section Title Headers */
.section-header {
  max-width: 680px;
  margin: 0 auto var(--space-12) auto;
  text-align: center;
}

.section-header.text-start {
  text-align: start;
  margin-inline-start: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-purple-50);
  color: var(--brand-accent);
  border: 1px solid var(--color-purple-200);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

.section-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-accent);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  color: var(--color-deep-navy);
  margin-bottom: var(--space-3);
  font-weight: 700;
  line-height: 1.25;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-navy-500);
  line-height: 1.65;
}

/* ==========================================================================
   NAVIGATION (CLEAN, FLOATING/STICKY)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: all var(--transition-base);
  height: 78px;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: 66px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 20px -2px rgba(16, 24, 40, 0.06);
  border-bottom-color: var(--color-border-light);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-crest {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-header.scrolled .brand-crest {
  height: 42px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-deep-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-navy-400);
}

/* Desktop Nav Links (Clean, No 10+ links) */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-6);
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-soft-navy);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-deep-navy);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--color-border-subtle);
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--color-navy-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--color-deep-navy);
}

.lang-btn.active {
  background-color: var(--color-white);
  color: var(--brand-accent);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

/* Hamburger Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-deep-navy);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  background-color: #FFFFFF;
  z-index: 1002;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html[dir="rtl"] .mobile-nav-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-soft-navy);
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-deep-navy);
  transition: background-color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--color-purple-50);
  color: var(--brand-accent);
}

/* ==========================================================================
   HERO SECTION (REAL SCHOOL PROMOTIONAL PORTAL)
   ========================================================================= */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding-top: 130px;
  padding-bottom: var(--space-16);
  display: flex;
  align-items: center;
  background-color: var(--color-warm-white);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(250, 250, 248, 0.82) 100%), url('../assets/images/nawaschool-bg-white.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-purple-50);
  color: var(--brand-accent);
  border: 1px solid var(--color-purple-200);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-accent);
}

.hero-headline {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  color: var(--color-deep-navy);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}

.hero-headline span {
  color: var(--brand-accent);
}

.hero-subheadline {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-soft-navy);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-navy-400);
  font-weight: 500;
}

.hero-trust-line svg {
  color: var(--brand-accent);
}

/* Hero Media Showcase (Video / Live School Life - 9:16 Aspect Ratio) */
.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(16, 24, 40, 0.22), 0 0 0 1px rgba(107, 33, 168, 0.1);
  border: 1px solid var(--color-border-subtle);
  background-color: #000000;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 380px;
  justify-self: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-sound-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(16, 24, 40, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.hero-sound-btn:hover {
  background: var(--brand-accent);
  transform: scale(1.08);
}

html[dir="rtl"] .hero-sound-btn {
  right: auto;
  left: var(--space-4);
}

.hero-media-badge {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  background: rgba(16, 24, 40, 0.82);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

html[dir="rtl"] .hero-media-badge {
  right: var(--space-4);
  left: auto;
}

/* Subtle Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-navy-300);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.hero-scroll-indicator:hover {
  color: var(--brand-accent);
}

.hero-scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-dot {
  width: 4px;
  height: 6px;
  background-color: currentColor;
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ==========================================================================
   TRUST STRIP (CLEAN HORIZONTAL SECTION)
   ========================================================================== */
.trust-strip {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-8) 0;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}

.trust-item {
  position: relative;
  padding: var(--space-2) var(--space-4);
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: 0;
  width: 1px;
  background-color: var(--color-border-subtle);
}

html[dir="rtl"] .trust-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.trust-number {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: var(--color-deep-navy);
  line-height: 1.1;
  margin-bottom: 4px;
}

.trust-label {
  font-size: var(--text-sm);
  color: var(--color-navy-500);
  font-weight: 500;
}

/* ==========================================================================
   MODAL DIALOGS (ADMISSIONS & NEWS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 24, 40, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  background: var(--color-surface-muted);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--color-soft-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

html[dir="rtl"] .modal-close-btn {
  left: auto;
  right: var(--space-5);
}

.modal-close-btn:hover {
  background: var(--color-border-light);
  color: var(--color-deep-navy);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-deep-navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--color-deep-navy);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.12);
}

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

/* Floating Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--color-deep-navy);
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-icon {
  color: var(--color-purple-300);
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-bounce), filter var(--transition-fast);
}

html[dir="rtl"] .floating-whatsapp {
  left: 28px;
  flex-direction: row;
}

html[dir="ltr"] .floating-whatsapp {
  right: 28px;
  flex-direction: row-reverse;
}

.floating-whatsapp-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fe675 0%, #25D366 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-whatsapp-icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPulse 2.2s infinite ease-out;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.floating-whatsapp:hover .floating-whatsapp-icon {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.floating-whatsapp-tooltip {
  background: #FFFFFF;
  color: var(--color-deep-navy);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.12);
  border: 1px solid rgba(16, 24, 40, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25D366;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-drawer {
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-whatsapp-drawer:hover {
  background: #20BA5A;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .floating-whatsapp {
    bottom: 20px;
  }
  html[dir="rtl"] .floating-whatsapp {
    left: 18px;
  }
  html[dir="ltr"] .floating-whatsapp {
    right: 18px;
  }
  .floating-whatsapp-tooltip {
    display: none;
  }
}
