/**
 * PGS Learning — design tokens.
 * Source of truth: docs/04-design-colors.md and docs/05-design-typography.md.
 * Changing values here needs developer approval (CLAUDE.md rule 4).
 *
 * Colour scheme (60/30/10): light pages by default; navy "dark" sections (hero, why-us,
 * instructors, CTA, footer) use .pgs-dark, which redefines the colour tokens below, so every
 * component adapts automatically. .pgs-paper forces the light palette (e.g. inside a dark section).
 */
:root {
	/* Brand (sampled from logo) */
	--pgs-navy:        #002166;  /* headings on light, navbar */
	--pgs-navy-deep:   #001338;  /* dark sections, text on green */
	--pgs-blue:        #0B3A9E;  /* hover, gradients, links */
	--pgs-green:       #60B802;  /* buttons, icons, badges */
	--pgs-lime:        #8ED62B;  /* CTA end-colour, accent text on dark */

	/* Fixed colours (same in light and dark sections) */
	--pgs-mint:        #EEF8E2;
	--pgs-sky:         #EEF3FB;
	--pgs-paper:       #FFFFFF;
	--pgs-green-text:  #3D7A00;  /* small green text on light surfaces (5.3 : 1) */
	--pgs-whatsapp:    #25D366;
	--pgs-danger:      #E5484D;  /* borders, fills */

	/* Gradients (dark sections + CTAs) */
	--pgs-grad-hero:   radial-gradient(60% 55% at 85% 0%, rgba(96, 184, 2, .22), transparent 62%),
	                   radial-gradient(55% 65% at 0% 15%, rgba(11, 58, 158, .55), transparent 62%),
	                   linear-gradient(135deg, #001338 0%, #002166 100%);
	--pgs-grad-cta:    linear-gradient(135deg, #0B3A9E 0%, #002166 55%, #001338 100%);
	--pgs-grad-green:  linear-gradient(135deg, #60B802 0%, #8ED62B 100%);

	/* Typography */
	--pgs-font-head:   "Plus Jakarta Sans", system-ui, sans-serif;
	--pgs-font-body:   "Inter", system-ui, sans-serif;
	--pgs-font-label:  "Barlow Condensed", "Arial Narrow", sans-serif;
	--pgs-font-urdu:   "Noto Nastaliq Urdu", serif;

	/* Fluid type scale: mobile (360px) → desktop (1240px), per docs/05 */
	--pgs-fs-h1:      clamp(2.25rem, 1.739rem + 2.273vw, 3.5rem);      /* 36 → 56 */
	--pgs-fs-h2:      clamp(1.875rem, 1.568rem + 1.364vw, 2.625rem);   /* 30 → 42 */
	--pgs-fs-h3:      clamp(1.1875rem, 1.111rem + 0.341vw, 1.375rem);  /* 19 → 22 */
	--pgs-fs-body:    clamp(1rem, 0.974rem + 0.114vw, 1.0625rem);      /* 16 → 17 */
	--pgs-fs-small:   clamp(0.8125rem, 0.787rem + 0.114vw, 0.875rem);  /* 13 → 14 */
	--pgs-fs-eyebrow: clamp(0.75rem, 0.724rem + 0.114vw, 0.8125rem);   /* 12 → 13 */
	--pgs-fs-button:  clamp(0.9375rem, 0.912rem + 0.114vw, 1rem);      /* 15 → 16 */

	/* Radius, spacing */
	--pgs-radius-sm: 10px;  --pgs-radius: 20px;  --pgs-radius-lg: 28px;  --pgs-radius-pill: 999px;
	/* Wide screens (decision 2026-10-22 in docs/decisions.md — undo: 1240px / 24px):
	   content 1240px up to a 1512px screen, then 82% of the screen, at most 1600px (from ~1950px);
	   side gutter 24px up to 1440px, then grows to 48px at 1920px (also the .pgs-grid gap). */
	--pgs-container: clamp(1240px, 82vw, 1600px);
	--pgs-gutter:    clamp(24px, 5vw - 48px, 48px);
	--pgs-section-y: clamp(64px, 9vw, 120px);

	/* Motion */
	--pgs-ease:      cubic-bezier(.2, .7, .2, 1);
	--pgs-duration:  .25s;
}

/* ---------- Light palette (default) ---------- */
:root,
.pgs-paper {
	color-scheme: light;

	--pgs-bg:            #FFFFFF;  /* page background */
	--pgs-bg-alt:        #F6F8FB;  /* alternate sections */
	--pgs-surface:       #FFFFFF;  /* cards, panels */
	--pgs-surface-2:     #F3F6FB;  /* hover / media placeholder */
	--pgs-surface-3:     #E8EEF8;  /* pressed, selected */
	--pgs-input-bg:      #FFFFFF;
	--pgs-fill:          rgba(15, 27, 51, .05);  /* subtle fill: tab rail, badges */
	--pgs-fill-hover:    rgba(15, 27, 51, .09);
	--pgs-glass-bg:      rgba(255, 255, 255, .82);
	--pgs-border:        #E2E8F0;
	--pgs-border-strong: #C3CDDC;
	--pgs-accent-border: rgba(61, 122, 0, .35);

	--pgs-text:          #002166;  /* headings (navy) */
	--pgs-text-body:     #2E3A52;  /* body copy */
	--pgs-text-muted:    #5A6478;  /* meta, placeholders */
	--pgs-accent:        var(--pgs-green-text);  /* small accent text / icons */
	--pgs-link:          #0B3A9E;
	--pgs-info-text:     #0B3A9E;
	--pgs-danger-text:   #B4232A;
	--pgs-focus:         #0B3A9E;  /* focus ring */

	--pgs-tint-green:    var(--pgs-mint);
	--pgs-tint-blue:     var(--pgs-sky);

	--pgs-grad-text:     linear-gradient(90deg, #3D7A00 0%, #4E9A00 100%);  /* highlight word, ≥ 3 : 1 */
	--pgs-grad-card:     linear-gradient(transparent, transparent);

	--pgs-shadow:        0 10px 30px rgba(0, 19, 56, .08);
	--pgs-shadow-lg:     0 20px 50px rgba(0, 19, 56, .16);
	--pgs-glow:          0 0 0 6px rgba(96, 184, 2, .20);    /* hover / focus ring on fields */
	--pgs-glow-green:    0 12px 32px rgba(96, 184, 2, .30);  /* primary button hover */
}

/* ---------- Dark navy sections ---------- */
.pgs-dark,
.pgs-section--hero,
.pgs-section--cta,
.pgs-cta-band:not(.pgs-cta-band--green) {
	color-scheme: dark;

	--pgs-bg:            #001338;
	--pgs-bg-alt:        #001A4A;
	--pgs-surface:       #062258;
	--pgs-surface-2:     #0C2C6A;
	--pgs-surface-3:     #14377C;
	--pgs-input-bg:      rgba(255, 255, 255, .06);
	--pgs-fill:          rgba(255, 255, 255, .07);
	--pgs-fill-hover:    rgba(255, 255, 255, .12);
	--pgs-glass-bg:      rgba(0, 25, 74, .74);
	--pgs-border:        rgba(255, 255, 255, .12);
	--pgs-border-strong: rgba(255, 255, 255, .24);
	--pgs-accent-border: rgba(142, 214, 43, .45);

	--pgs-text:          #FFFFFF;
	--pgs-text-body:     #C3CEE6;
	--pgs-text-muted:    #9AA9CC;
	--pgs-accent:        var(--pgs-lime);
	--pgs-link:          var(--pgs-lime);
	--pgs-info-text:     #A9C1FF;
	--pgs-danger-text:   #FF8A8E;
	--pgs-focus:         var(--pgs-lime);

	--pgs-tint-green:    rgba(96, 184, 2, .16);
	--pgs-tint-blue:     rgba(95, 140, 255, .14);

	--pgs-grad-text:     linear-gradient(90deg, #8ED62B 0%, #60B802 100%);
	--pgs-grad-card:     linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .015) 100%);

	--pgs-shadow:        0 10px 30px rgba(0, 0, 0, .30);
	--pgs-shadow-lg:     0 24px 60px rgba(0, 0, 0, .45);
	--pgs-glow:          0 0 0 6px rgba(142, 214, 43, .16);
	--pgs-glow-green:    0 12px 40px rgba(96, 184, 2, .28);
}
