/* ==========================================================================
   Design tokens — docs/07 §2 (Figma "SỬA MỚI") + docs/02.
   COLOR, FONT, SIZE VALUES LIVE IN THIS FILE ONLY. Other files use var(--…).

   Design width = 1920px (decision 17/11/2026). Figma frame is 5041px wide = 1920 × 2.625
   → every Figma px value ÷ 2.625. Fluid sizes run from 375px (mobile) to 1920px (Figma).
   Breakpoints (vars can't be used in @media): sm 375 · md 768 · lg 1024 · xl 1440 · xxl 1800.
   ========================================================================== */

:root {
	/* --- Brand colors (Figma) --- */
	--c-primary: #0066EC;          /* Buttons, H2 first part, links */
	--c-primary-dark: #133D73;     /* Card titles, hover */
	--c-primary-rgb: 0, 102, 236;
	--c-accent: #C8247E;           /* H2 accent part (Figma; docs/02 had #D25B84) */
	--c-accent-orange: #F48120;
	--c-accent-yellow: #FFE86C;
	--c-accent-green: #2B7A4B;
	--c-danger: #D9383A;

	/* --- Text --- */
	--c-text: #565656;             /* Body, menu (Figma) */
	--c-text-eyebrow: #656565;     /* Eyebrow (Figma) */
	--c-text-strong: #2F3A4A;      /* Menu links — a touch darker than body for a crisp header */
	--c-heading: var(--c-primary-dark);
	--c-on-primary: #FFFFFF;

	/* --- Surfaces --- */
	--c-bg: #FFFFFF;
	--c-bg-cream: #FFFDF7;         /* Warm sections (docs/02) */
	--c-surface: #FFFFFF;
	--c-surface-ice: #E3F5FF;      /* Testimonial card head (Figma) */
	--c-border: #CBDFFA;           /* Header line, card borders (Figma) */
	--c-border-soft: #EFE8DA;
	--c-header-line: #E3ECF8;      /* Hairlines in header / dropdown (lighter than --c-border) */

	/* --- Pastel section / card backgrounds (docs/02 §1.3) --- */
	--c-pastel-blush: #FDF0F4;
	--c-pastel-pink: #F8BAD2;
	--c-pastel-sky: #CBDFFA;
	--c-pastel-ice: #EEF6FC;
	--c-pastel-green: #E0FDC4;
	--c-pastel-purple: #DCC8F9;
	--c-pastel-yellow: #FFE86C;
	--c-pastel-cyan: #51E6F6;
	--c-pastel-orange: #FFA766;    /* Postcard "Nhân sự" (Figma) */
	--c-pastel-peach: #FCE5D1;     /* Testimonial card head (Figma) */
	--c-pastel-rose: #FDEBF2;      /* "Bạn là ai?" background (Figma pink 29%) */
	--c-surface-mist: #F5FAFF;     /* Inside the #dang-ky stamp (Figma) */
	--c-field-border: #CBDFFA;
	--c-ring: #A5CBFF;             /* Stat "binder rings", inactive slider dot (Figma) */
	--c-stat-blue: #133D73;
	--c-stat-green: #237313;
	--c-stat-pink: #C8247E;
	--c-ink-pink: #8A2857;
	--c-ink-blue: #133D73;
	--c-ink-green: #2A5830;
	--c-ink-purple: #5E488A;

	/* --- Fonts (keep in sync with SANANKIDS_FONTS_URL, inc/enqueue.php) --- */
	--font-sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: "Montserrat Alternates", "Montserrat", var(--font-sans);
	--font-eyebrow: "Montserrat", var(--font-sans);
	/* Type roles (decision 18/11): display = titles & tabs · text = reading copy · sans = UI, numbers, footer */
	--font-text: var(--font-eyebrow);

	/* --- Font size: mobile 375 → Figma ÷ 2.625 at 1920 --- */
	--fs-h1: clamp(1.75rem, 1.264rem + 2.071vw, 3.75rem);       /* 28 → 60 */
	--fs-h2: clamp(1.625rem, 1.155rem + 2.006vw, 3.5625rem);    /* 26 → 57 (Figma 150) */
	--fs-h3: clamp(1.0625rem, 1.002rem + 0.259vw, 1.3125rem);   /* 17 → 21 (Figma 56) */
	--fs-eyebrow: clamp(0.875rem, 0.723rem + 0.647vw, 1.5rem);  /* 14 → 24 (Figma 64) */
	--fs-lead: clamp(0.9375rem, 0.862rem + 0.324vw, 1.25rem);   /* 15 → 20 */
	--fs-base: clamp(1rem, 0.969rem + 0.129vw, 1.125rem);       /* 16 → 18 */
	--fs-nav: clamp(0.9375rem, 0.8125rem + 0.156vw, 1rem);      /* 15 @1280 → 16 @1920 (Figma 21 — too heavy, see layout.css header) */
	--fs-sm: clamp(0.875rem, 0.86rem + 0.065vw, 0.9375rem);     /* 14 → 15 (Figma 40) */
	--fs-xs: 0.8125rem;                                         /* 13 */
	/* Home page (docs/07 §2.5 — several Figma sizes reduced on purpose) */
	--fs-hero: clamp(1.875rem, 1.541rem + 1.424vw, 3.25rem);     /* 30 → 52 (Figma 135) */
	--fs-hero-kicker: clamp(1.125rem, 0.913rem + 0.906vw, 2rem); /* 18 → 32 (Figma 86) */
	--fs-band: clamp(1.375rem, 0.92rem + 1.942vw, 3.25rem);      /* 22 → 52 (Figma 137) */
	--fs-cta-title: clamp(1.5rem, 1.136rem + 1.553vw, 3rem);     /* 24 → 48 (Figma 125) */
	--fs-stat: clamp(2.5rem, 2.015rem + 2.071vw, 4.5rem);        /* 40 → 72 (Figma 270 → 103: too loud) */
	--fs-stat-label: clamp(1rem, 0.909rem + 0.388vw, 1.375rem);  /* 16 → 22 (Figma 92 → 35: too loud) */
	--fs-card-title: clamp(1.0625rem, 1.032rem + 0.129vw, 1.1875rem); /* 17 → 19 (Figma 48) */
	/* Large tabbed blocks: feature board + "Vượt trội" notebook share these */
	--fs-block-title: clamp(1.5rem, 1.11rem + 1.66vw, 2.875rem);       /* 24 → 46 (Figma 110–120) */
	--fs-tab: clamp(1rem, 0.86rem + 0.36vw, 1.375rem);                 /* 16 → 22 (Figma 51–69) */

	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;

	--lh-body: 1.65;
	--lh-heading: 1.25;
	--ls-heading: -0.01em;

	/* --- Spacing (8pt) --- */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 80px;
	--space-10: 96px;
	--section-space: clamp(4rem, 3.03rem + 4.14vw, 8rem);      /* 64 → 128 */
	--head-gap: var(--space-7);                                /* Section head → content */

	/* --- Layout --- */
	--container-max: 1560px;       /* Figma content block 4096 ÷ 2.625 */
	--container-narrow: 960px;
	--container-padding: 16px;
	/* Space kept free on each side of .l-container. From 1360px it reserves room for the home outline
	   labels (decision 17/11 "hướng A"): 1366 → ~1086 · 1440 → ~1160 · 1536 → ~1256 · 1920 → 1560. */
	/* viewport-fit=cover (header.php, 26/11): on a landscape iPhone the page runs under the notch → keep text clear of it */
	--container-gutter: max(var(--container-padding), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	--header-h: 64px;
	--logo-h: 32px;
	--admin-bar-h: var(--wp-admin--admin-bar--height, 0px);

	/* --- Shape (Figma ÷ 2.625) --- */
	--radius-sm: 8px;
	--radius-md: 15px;             /* Cards (Figma 40) */
	--radius-lg: 26px;             /* Board / form card (Figma 68–72) */
	--radius-xl: 32px;             /* Inside the big stamp (Figma 85) */
	--radius-pill: 999px;          /* Buttons (Figma 72) */
	--border-w: 2px;               /* Card / header border — 3px from 1440 (Figma 7–8) */
	--shadow-card: 2px 4px 13px rgba(186, 186, 186, 0.23);     /* Figma 6 10 33.9 */
	--shadow-btn: 0 5px 7px -1px rgba(130, 180, 255, 0.47);    /* Figma 0 13 18.4 -3 */
	--shadow-header: 0 6px 24px rgba(19, 61, 115, 0.08);       /* Sticky header once scrolled */
	--shadow-dropdown: 0 16px 40px rgba(19, 61, 115, 0.12), 0 2px 6px rgba(19, 61, 115, 0.06);
	--tap-min: 44px;

	/* --- Motion --- */
	--transition-fast: 0.2s ease;
	--transition-base: 0.3s ease;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* fast start, long soft landing (easeOutQuint) */
	--dur-reveal: 0.6s;            /* Scroll reveal (components.css "Scroll reveal") */
	--reveal-shift: 16px;          /* … how far it rises — same as sk-rise-in */
	--lift: -3px;                  /* Hover lift of buttons / small cards (cards: -4px) */

	/* --- Layers --- */
	--z-outline: 40;
	--z-dock: 60;                  /* floating contact buttons — under the header / mobile drawer */
	--z-header: 100;
	--z-skip: 200;
}

@media (min-width: 768px) {
	:root {
		--container-padding: 24px;
	}
}

@media (min-width: 1024px) {
	:root {
		--header-h: 72px;
		--logo-h: 36px;
		--head-gap: var(--space-8);
		--container-padding: 32px;
	}
}

@media (min-width: 1360px) {
	:root {
		--container-gutter: 140px;  /* Home outline label column (≈ 120px) + breathing room */
	}
}

@media (min-width: 1440px) {
	:root {
		--header-h: 80px;       /* Figma ≈ 141px — reduced on purpose (17/11: header read too heavy) */
		--logo-h: 40px;
		--head-gap: var(--space-9);
		--border-w: 3px;
		--container-padding: 40px;
	}
}
