/* =========================================================
   EPA DESIGN SYSTEM — Core Variables & Typography
   Expansion Path Academy · epaedu.in
   ========================================================= */

/* ── Color Palette ────────────────────────────────────────── */
:root {
  /* Primary Brand */
  --epa-primary:        #f26d21;
  --epa-primary-dark:   #cc5514;
  --epa-primary-light:  rgba(242, 109, 33, 0.1);
  --epa-primary-glow:   rgba(242, 109, 33, 0.35);

  /* Accent (secondary highlights) */
  --epa-accent:         #ff8a45;
  --epa-accent-light:   #ffedd5;
  --epa-green:          #10b981;
  --epa-green-light:    #d1fae5;
  --epa-red:            #ef4444;
  --epa-red-light:      #fee2e2;
  --epa-blue:           #3b82f6;
  --epa-blue-light:     #dbeafe;
  --epa-purple:         #8b5cf6;
  --epa-purple-light:   #ede9fe;
  --epa-yellow:         #f59e0b;
  --epa-yellow-light:   #fef3c7;

  /* Neutrals */
  --epa-white:          #ffffff;
  --epa-bg:             #ffffff;
  --epa-bg-light:       #f9fafb;
  --epa-bg-alt:         #f1f5f9;
  --epa-bg-warm:        #fff9f5;
  --epa-border:         #e2e8f0;
  --epa-border-dark:    #cbd5e1;

  /* Text */
  --epa-text:           #0f172a;
  --epa-text-secondary: #334155;
  --epa-text-muted:     #64748b;
  --epa-text-light:     #94a3b8;

  /* Dark theme (footer etc.) */
  --epa-dark:           #020617;
  --epa-dark-card:      #0f172a;
  --epa-dark-border:    #1e293b;
  --epa-dark-text:      #e2e8f0;

  /* ── Radius ──────────────────────────────────────────────── */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-3xl:  48px;
  --radius-pill: 9999px;

  /* ── Shadow System (Premium & Soft) ──────────────────────── */
  --shadow-xs:      0 2px 4px rgba(0,0,0,0.02);
  --shadow-sm:      0 4px 12px rgba(0,0,0,0.04);
  --shadow-md:      0 8px 24px -4px rgba(0,0,0,0.06), 0 4px 8px -4px rgba(0,0,0,0.04);
  --shadow-lg:      0 20px 40px -8px rgba(0,0,0,0.08), 0 10px 16px -8px rgba(0,0,0,0.04);
  --shadow-xl:      0 25px 50px -12px rgba(0,0,0,0.12), 0 15px 20px -10px rgba(0,0,0,0.06);
  --shadow-2xl:     0 35px 60px -15px rgba(0,0,0,0.18);
  --shadow-primary: 0 12px 30px -8px var(--epa-primary-glow);
  --shadow-inner:   inset 0 2px 4px rgba(0,0,0,0.04);

  /* ── Transitions & Micro-Animations ──────────────────────── */
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.25);
  --t-fast:      0.15s var(--ease-out);
  --t-normal:    0.3s var(--ease-out);
  --t-slow:      0.5s var(--ease-out);
  --t-bounce:    0.4s var(--ease-bounce);

  /* ── Spacing Scale (8px base) ────────────────────────────── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-30: 120px;

  /* ── Layout ──────────────────────────────────────────────── */
  --container-max: 1280px;
  --header-height: 84px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(16px, 1.1vw, 18px); /* Responsive base size */
  line-height: 1.7;
  color: var(--epa-text);
  background-color: var(--epa-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--sp-4);
  }
}

/* ── Typography Scale ──────────────────────────────────────── */
.display-1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.display-2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.display-3 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.display-4 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1, .h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

h3, .h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
}

h4, .h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}

.body-lg {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  color: var(--epa-text-muted);
}

.body-md {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--epa-text-muted);
}

.body-sm {
  font-size: clamp(0.875rem, 1vw, 0.95rem);
  line-height: 1.6;
  color: var(--epa-text-muted);
}

.caption {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--epa-text-light);
}

/* ── Gradient Text ─────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--epa-primary) 0%, var(--epa-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ── Section Spacing ───────────────────────────────────────── */
.section {
  padding: var(--sp-24) 0;
}

.section--sm {
  padding: var(--sp-12) 0;
}

.section--lg {
  padding: var(--sp-30) 0;
}

/* ── Section Header ────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--sp-16);
}

.section-header .overline {
  display: inline-block;
  color: var(--epa-primary);
  background: var(--epa-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--sp-4);
}

.section-header h2 {
  margin-bottom: var(--sp-5);
}

.section-header p {
  color: var(--epa-text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}
