/* ACMST website tokens. Colours follow the ACMST brand sheet (COLOR CODE.pdf, green and red — Owen, 28 Oct 2026);
   sizes, radii, type and motion follow the ACMST Design System.
   Every colour used by the site is defined here — site.css only uses var(--…). */

/* Cairo, self-hosted: Arabic and Latin subsets */
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cairo/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cairo/cairo-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cairo/cairo-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cairo/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cairo/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cairo/cairo-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cairo/cairo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cairo/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* colour — brand sheet: dark green C100 Y80 K60, green C60 Y60, light background C3 Y3 K3,
     shape background C35 Y35, breaker C15 Y15 K15, red M100 Y100 */
  --brand-dark-green: #004e31;
  --brand-green: #66c87f;
  --brand-light: #f1f6f0;
  --brand-shape: #a6deac;
  --brand-breaker: #bdd1bc;
  --brand-red: #ed1c24;          /* accent stripe only: white text on it is 4.4:1, below 4.5 */

  /* colour — roles */
  --primary: var(--brand-dark-green);   /* white on it 9.8:1 */
  --primary-hover: #003a24;             /* white on it 12.9:1 */
  --on-primary: #ffffff;
  --primary-tint: #e3f3ec;              /* primary on it 8.6:1 — same tint as the admin app */
  --primary-tint-border: #c5e5d4;
  --accent: #1b7a43;                    /* green text: 5.4:1 on white, 4.9:1 on brand-light */
  --on-accent: #ffffff;
  --accent-tint: var(--brand-shape);
  --on-accent-tint: #00391f;            /* 8.5:1 on brand-shape */
  --warning-tint: #fef3c7;
  --warning-border: #fde68a;
  --on-warning: #78350f;
  --destructive: #dc2626;
  --destructive-hover: #b91c1c;
  --destructive-tint: #fef2f2;
  --destructive-tint-border: #fecaca;
  --on-destructive-tint: #b91c1c;
  --background: #ffffff;
  --surface-subtle: var(--brand-light);
  --muted: #f4f4f5;
  --border: #e4e4e7;
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #66666e;                /* 5.2:1 on brand-light, 5.7:1 on white */
  --card: var(--background);
  --input: var(--border);
  --ring: var(--primary);
  --scrim: rgba(9, 9, 11, .4);

  /* colour — on the dark-green hero and footer */
  --on-primary-secondary: #d9f0dc;      /* body text on primary / primary-hover (8.2:1 / 10.7:1) */
  --primary-raised: #0b5e3d;            /* image placeholders and dividers on dark green */
  --on-primary-faint: var(--brand-green); /* dashed outlines on dark green */

  /* type */
  --font-sans: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --type-display: 700 36px/1.3 var(--font-sans);
  --type-h1: 700 26px/1.4 var(--font-sans);
  --type-title: 700 17px/1.5 var(--font-sans);
  --type-body: 400 16px/1.75 var(--font-sans);
  --type-label: 600 14px/1.4 var(--font-sans);
  --type-caption: 400 12px/1.5 var(--font-sans);
  --type-hero: 700 44px/1.35 var(--font-sans);
  --type-page-title: 700 52px/1.25 var(--font-sans);
  --type-lead: 400 19px/1.8 var(--font-sans);

  /* spacing, sizes, radii */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --gutter: 24px;
  --container: 1320px;
  --control-height: 44px;
  --control-height-lg: 52px;
  --badge-height: 24px;
  --list-row-height: 52px;
  --radius-badge: 6px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-highlight: 16px;
  --radius-full: 9999px;

  /* elevation, motion */
  --shadow-card: 0 1px 2px rgba(9, 9, 11, .05);
  --shadow-raised: 0 1px 3px rgba(9, 9, 11, .08), 0 1px 2px rgba(9, 9, 11, .04);
  --shadow-overlay: 0 8px 24px rgba(9, 9, 11, .12);
  --shadow-focus: 0 0 0 3px rgba(0, 78, 49, .22);
  --duration-short: 150ms;
  --duration-medium: 200ms;
  --duration-long: 300ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  /* home page (wide layout, larger type, softer elevation) */
  --space-24: 96px;
  --radius-xl: 20px;
  --type-hero-xl: 700 60px/1.25 var(--font-sans);
  --type-section: 700 40px/1.3 var(--font-sans);
  --type-body-lg: 400 18px/1.8 var(--font-sans);
  --type-card: 400 17px/1.75 var(--font-sans);
  --shadow-soft: 0 10px 30px rgba(0, 58, 36, .08);
  --shadow-lift: 0 20px 44px rgba(0, 58, 36, .16);
  --shadow-button: 0 8px 20px rgba(0, 58, 36, .25);
  --on-primary-glass: rgba(255, 255, 255, .12);  /* hover/active fill on dark green */
  --on-primary-line: rgba(255, 255, 255, .18);   /* hairlines on dark green */
  --hero-glow: rgba(102, 200, 127, .22);         /* brand-green glow behind the hero text */
  --hero-pattern: rgba(255, 255, 255, .05);      /* dot pattern on the hero, 5% */
  --shadow-float: 0 24px 48px rgba(0, 30, 18, .35);
  --radius-2xl: 24px;
  /* home page, «Scholaro»-style layout (Owen, 29 Oct 2026) */
  --accent-gold: #e8b83a;                      /* button fills + one headline underline only; dark-green text on it 4.9:1. Never text colour. */
  --accent-gold-hover: #f0c95c;                /* dark-green text on it 5.9:1 */
  --on-accent-gold: var(--primary);
  --surface-cream: #f7f4ec;                    /* home page background; text 18.6:1, primary 8.9:1 */
  --surface-mint: var(--primary-tint);         /* stats and testimonials bands; primary on it 8.6:1 */
  --space-30: 120px;                           /* between home sections */
  --container-hero: 2200px;                    /* home hero only: uses more of very wide screens */
  --type-home-hero: 600 56px/1.3 var(--font-sans);
  --type-home-title: 600 44px/1.35 var(--font-sans);
  --type-home-statement: 500 34px/1.6 var(--font-sans);
  --type-home-body: 400 18px/1.85 var(--font-sans);
  --overlay-cta: linear-gradient(rgba(0, 30, 18, .72), rgba(0, 30, 18, .8)); /* white text over photo ≥ 9:1 */
  --duration-reveal: 600ms;
  --emblem-shadow: rgba(0, 30, 18, .22);           /* about page: soft shadow under the logo and its seal (decorative, no text) */
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --type-hero: 700 30px/1.4 var(--font-sans);
    --type-page-title: 700 32px/1.35 var(--font-sans);
    --type-display: 700 26px/1.4 var(--font-sans);
    --type-lead: 400 17px/1.8 var(--font-sans);
    --type-hero-xl: 700 36px/1.35 var(--font-sans);
    --type-section: 700 30px/1.35 var(--font-sans);
    --type-body-lg: 400 17px/1.8 var(--font-sans);
    --space-24: 64px;
    --space-30: 72px;
    --type-home-hero: 600 36px/1.4 var(--font-sans);
    --type-home-title: 600 30px/1.4 var(--font-sans);
    --type-home-statement: 500 24px/1.6 var(--font-sans);
    --type-home-body: 400 17px/1.85 var(--font-sans);
  }
}
