/* ==========================================================================
   Ideal Kindergarten — design tokens (light theme)
   Purpose: every colour, font, spacing, radius, shadow and motion value used on the new home page, as CSS custom properties.
   How it works: paste this file first in your site (or <link> it before your own CSS), then use var(--token) everywhere instead of hex codes.
   Used by: all pages of idealkindergarten.com and the ik-* components in the design system.
   Contrast: every "text on ground" pair named below passes WCAG AA (4.5:1) — ratios in brackets.
   ========================================================================== */

/* Fonts: Baloo Da 2 (headings) + Noto Sans Bengali (body) — Noto Sans Bengali covers Bengali only, so English text falls back to system-ui. Add once in <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@600;700&family=Noto+Sans+Bengali:wght@400;600&display=swap"> */

:root {
  color-scheme: light;

  /* ---- Brand: school uniform ---- */
  --sky-600: #1f5fba;      /* Primary. Uniform shirt blue. Buttons, links, active nav text, featured cards. White text on it [6.2:1]. */
  --sky-700: #174a94;      /* Hover/pressed of sky-600; link text on sky-100 [7.4:1] and sky-050 [8.0:1]. Also the focus ring. */
  --sky-100: #e6eefa;      /* Light tint. Hero background, active nav pill, icon tiles, date blocks. */
  --sky-050: #f3f7fd;      /* Faintest tint. Alternate section background (gallery preview), hover rows. */
  --navy-900: #253147;     /* Uniform trousers navy. Footer, dark letter tiles, photo placeholders. */
  --maroon-900: #3c0008;   /* Dark Maroon (uniform shoulder tabs). Accent only: "নতুন" badge, important notice date, eyebrow badge, stripe. White text on it [17.6:1]. */
  --maroon-100: #f6e9ea;   /* Maroon tint. Background of an important notice; maroon-900 text on it [14.9:1]. */

  /* ---- Brand: school seal ---- */
  --slate-600: #3e5a6b;    /* Seal ring colour. Secondary headings, captions next to the seal [7.3:1 on white]. */
  --teal-400: #71a4aa;     /* Seal laurel and stars. DECORATIVE ONLY (2.8:1) — blobs, illustrations. Never text. */
  --teal-700: #3f7378;     /* Teal for text and icons [5.3:1 on white, 4.6:1 on teal-100]. */
  --teal-100: #e4f0f0;     /* Teal tint. Success icon background. */
  --cream-050: #f6f6ea;    /* Seal background cream. "Why choose us" section background. */

  /* ---- Surfaces and text ---- */
  --surface-000: #ffffff;  /* Page background. */
  --surface-100: #ffffff;  /* Cards, dialogs, inputs. */
  --ink: #253147;          /* Headings and body text [13:1 on white, 11.2:1 on sky-100, 12:1 on cream-050]. */
  --ink-muted: #5a6577;    /* Secondary text: excerpts, dates, captions [5.9:1 on white, 5.1:1 on sky-100]. */
  --line: #dde3ec;         /* Card borders and hairlines (decorative). */
  --line-strong: #8792a6;  /* Borders of controls: outline buttons, inputs, language toggle [3.1:1]. */
  --on-sky: #ffffff;       /* Text/icons on sky-600. */
  --on-maroon: #ffffff;    /* Text/icons on maroon-900. */

  /* ---- Focus ---- */
  --focus: #174a94;          /* 3px solid outline, 2px offset, on light grounds. */
  --focus-inverse: #a9c6f5;  /* Focus ring on navy (footer) and sky-600 grounds. */

  /* ---- Footer ---- */
  --footer-bg: #253147;    /* Navy footer. */
  --footer-ink: #ffffff;   /* Footer headings and links [13:1]. */
  --footer-muted: #c4ccd9; /* Footer body text [8.1:1]. */

  /* ---- Third-party ---- */
  --facebook: #1877f2;       /* Facebook logo colour (icons only). */
  --facebook-button: #166fe5;/* Facebook button background — white text passes [4.7:1]; #1877f2 alone would not (4.2:1). */

  /* ---- Typography ---- */
  --font-display: "Baloo Da 2", "Noto Sans Bengali", system-ui, sans-serif;  /* Headings, numbers, card titles. */
  --font-body: "Noto Sans Bengali", system-ui, sans-serif;                   /* Everything else. */
  /* Type scale (size / line-height / weight) */
  --text-display: 700 52px/62px var(--font-display);  /* Home hero title (36px/46px on phones). */
  --text-h1: 700 46px/56px var(--font-display);       /* Inner page title (34px/44px on phones). */
  --text-h2: 700 30px/40px var(--font-display);       /* Section titles (26px/36px on phones). */
  --text-h3: 600 19px/28px var(--font-display);       /* Card titles. */
  --text-body-lg: 400 19px/32px var(--font-body);     /* Hero paragraph, intros. */
  --text-body: 400 16px/27px var(--font-body);        /* Default text. Never smaller than 14px for Bengali. */
  --text-small: 400 14px/22px var(--font-body);       /* Dates, captions. */
  --text-label: 600 13px/22px var(--font-body);       /* Badges. */

  /* ---- Spacing (4px base) ---- */
  --space-1: 4px;    /* Icon–text gap in badges. */
  --space-2: 8px;    /* Tight gaps. */
  --space-3: 12px;   /* Button vertical padding, nav gaps. */
  --space-4: 16px;   /* Page side gutter on phones, card gaps. */
  --space-6: 24px;   /* Card padding, grid gaps. */
  --space-8: 32px;   /* Section title → content. */
  --space-12: 48px;  /* Section padding on phones. */
  --space-16: 64px;  /* Section padding on desktop. */

  /* ---- Radius ---- */
  --radius-sm: 6px;     /* Badges. */
  --radius-md: 12px;    /* Buttons, inputs, icon tiles, date blocks. */
  --radius-lg: 20px;    /* Cards, dialogs. */
  --radius-pill: 999px; /* Nav pills, language toggle, round buttons. */

  /* ---- Elevation ---- */
  --shadow-card: 0 1px 2px rgba(37,49,71,.06), 0 6px 20px rgba(37,49,71,.06);    /* Cards at rest. */
  --shadow-raised: 0 2px 4px rgba(37,49,71,.08), 0 16px 32px rgba(37,49,71,.14); /* Card hover, sticky header, back-to-top, dialogs. */

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);       /* Lifts, slides, fades (.25s–.6s). */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* Playful pops: icon tilt, logo turn, letter blocks. */

  /* ---- Layout ---- */
  --content-max: 1160px; /* Max content width. */
}

/* Base wiring — keep, or merge into your own base styles. */
body { margin: 0; background: var(--surface-000); color: var(--ink); font: var(--text-body); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Quick usage rules
   - Primary button:   background var(--sky-600); color var(--on-sky); hover var(--sky-700); radius var(--radius-md).
   - Secondary button: background var(--surface-100); color var(--ink); 2px border var(--line-strong); hover border var(--sky-600).
   - Section title:    font var(--text-h2); under it the "epaulette stripe" — 40×4px var(--sky-600) + 16×4px var(--maroon-900), 4px apart.
   - Cards:            background var(--surface-100); radius var(--radius-lg); shadow var(--shadow-card) → var(--shadow-raised) on hover.
   - Section grounds:  alternate var(--surface-000) / var(--cream-050) / var(--sky-050) — separate sections by colour, not lines.
   - Maroon is a small accent only; teal-400 is decoration only.
   ========================================================================== */

/* ---------- Breakpoints (reference) ----------
   CSS variables cannot be used inside @media, so these are the agreed values — use them in every stylesheet.
   Same values are exported to JS from assets/js/breakpoints.js.
     mobile   : max-width 600px   (phones)
     tablet   : max-width 900px   (601–900px; header switches to the drawer menu)
     desktop  : min-width 901px
   Pattern:  @media (max-width: 900px) { … }  tablet and below
             @media (max-width: 600px) { … }  mobile only */
:root { --bp-mobile: 600px; --bp-tablet: 900px; }
