/* ==========================================================================
   NAWA PRIVATE BASIC SCHOOL — DESIGN SYSTEM TOKENS
   THEME: Bright, Prestigious, Trustworthy International School
   COLORS: Warm White, Pure White, Deep Navy, Soft Navy, Logo Purple Accent
   ========================================================================== */

:root {
  /* Primary Neutral Palette */
  --color-warm-white: #FAFAF8;
  --color-white: #FFFFFF;
  --color-off-white: #F4F4F1;
  --color-surface-subtle: #F8F9FA;
  --color-surface-muted: #F2F4F7;
  
  /* Navy Text & Hierarchy */
  --color-deep-navy: #101828;      /* Headings, primary text */
  --color-navy-800: #1D2939;       /* Secondary headings */
  --color-soft-navy: #344054;      /* Body text, descriptions */
  --color-navy-500: #475467;      /* Secondary text, captions */
  --color-navy-400: #667085;      /* Muted text, meta info */
  --color-navy-300: #98A2B3;      /* Subtle icons, placeholders */

  /* Borders & Dividers */
  --color-border-subtle: #EAECF0;
  --color-border-light: #E4E7EC;
  --color-border-medium: #D0D5DD;

  /* School Purple Accent (from Official School Logo) */
  --color-purple-900: #3B0764;
  --color-purple-800: #581C87;     /* Deep rich school purple */
  --color-purple-700: #6B21A8;     /* Primary brand purple */
  --color-purple-600: #7E22CE;     /* Interactive button purple */
  --color-purple-500: #9333EA;
  --color-purple-400: #C084FC;
  --color-purple-200: #E9D5FF;
  --color-purple-100: #F3E8FF;     /* Very light tint */
  --color-purple-50:  #FAF5FF;     /* Soft background section tint */

  /* Semantic Variables */
  --bg-page: var(--color-warm-white);
  --bg-card: var(--color-white);
  --bg-card-hover: #FFFFFF;
  --bg-accent-section: var(--color-purple-50);
  --bg-subtle-section: #F8F9FB;

  --text-title: var(--color-deep-navy);
  --text-body: var(--color-soft-navy);
  --text-muted: var(--color-navy-400);
  --text-inverse: #FFFFFF;

  --brand-accent: var(--color-purple-700);
  --brand-accent-hover: var(--color-purple-800);
  --brand-accent-light: var(--color-purple-100);

  /* Typography Fonts */
  --font-arabic: 'Vazirmatn', 'Noto Sans Arabic', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-latin: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radii (Clean, Modern Architectural Curves) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Subtle Professional Shadows (No neon or gaming glows) */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, 0.08), 0 2px 6px -1px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(16, 24, 40, 0.08), 0 4px 8px -2px rgba(16, 24, 40, 0.03);
  --shadow-xl: 0 20px 32px -8px rgba(16, 24, 40, 0.12), 0 8px 16px -4px rgba(16, 24, 40, 0.04);
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.05), 0 0 0 1px var(--color-border-subtle);
  --shadow-card-hover: 0 12px 28px -6px rgba(16, 24, 40, 0.1), 0 0 0 1px var(--color-border-light);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Document Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-arabic);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* LTR override for English */
html[dir="ltr"] body {
  font-family: var(--font-latin);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
  font-size: var(--text-base);
  line-height: 1.7;
}

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

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

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

/* Respect 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;
  }
}
