/* =========================================================
   tokens.css — bộ token RIÊNG của web ANHISA
   Tạo từ assets/tokens.template.css của skill figma-to-html.
   Giữ nguyên TÊN biến, chỉ thay GIÁ TRỊ theo tokens-review.md đã duyệt (30/10/2026).
   Biến nào thiết kế không dùng: để giá trị hợp lý, không xóa (base.css cần).
   Nguồn Figma: https://www.figma.com/design/Gg0xZ36uZeNdSfNIdTJSo7/ANHISA--Copy-
   ========================================================= */

:root {
  /* ---------- Màu (đặt tên theo vai trò) ---------- */
  --color-primary: #034159;             /* Theme 2 */
  --color-primary-dark: #01233e;        /* rê chuột / nhấn — Theme 1 */
  --color-primary-contrast: #ffffff;    /* chữ trên nền primary */
  --color-accent: #8b6046;              /* Theme 5 */
  --color-heading: #01233e;             /* Theme 1 */
  --color-text: #141416;                /* Dark 1 */
  --color-text-muted: #777e90;          /* Grey 1 */
  --color-bg: #ffffff;
  --color-bg-soft: #f4f5f6;             /* Light */
  --color-bg-dark: #01233e;             /* Theme 1 */
  --color-text-on-dark: #ffffff;
  --color-border: #dbdee2;              /* Grey 3 */
  --color-overlay: rgba(1, 35, 62, 0.8); /* Theme 1, độ mờ 80% */
  --color-success: #2e7d32;
  --color-error: #c62828;
  --color-zalo: #0068ff;                /* nút Zalo nổi */
  --color-phone: #2e7d32;               /* nút gọi điện nổi */

  /* Riêng dự án — style Figma designer đã khai báo */
  --color-tint: #c6d6da;                /* Theme 3: nút tròn carousel, khối trang trí */
  --color-steel: #96a3a6;               /* Theme 4: nút về đầu trang */
  --color-line: #a8abb8;                /* Grey 2: gạch chân ô form */

  /* ---------- Font ---------- */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---------- Thang cỡ chữ ---------- */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --text-5xl: 36px;
  --text-6xl: 40px;
  --text-7xl: 48px;
  --text-8xl: 56px;
  --text-9xl: 64px;

  /* ---------- Cỡ chữ theo vai trò ---------- */
  --h1-size: 72px;                       /* giữ nguyên — làm tròn về 64 lệch 11% */
  --h2-size: 44px;                       /* style Figma "Headline 1" */
  --h3-size: var(--text-4xl);            /* style "Headline 2" */
  --h4-size: var(--text-xl);             /* style "Title" */
  --lead-size: var(--text-lg);
  --body-size: var(--text-base);         /* style "Body 1 / Body 2" */
  --small-size: var(--text-sm);          /* style "Body 3 / Body 4" */
  --h1-size-mobile: var(--text-7xl);
  --h2-size-mobile: var(--text-4xl);
  --h3-size-mobile: var(--text-2xl);

  /* ---------- Độ đậm, dòng, khoảng chữ ---------- */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --heading-weight: var(--weight-bold);
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --tracking-wide: 0;                    /* nhãn chữ hoa trong thiết kế không dãn chữ */
  --measure: 65ch;                       /* độ dài dòng tối đa cho đoạn văn */

  /* ---------- Thang khoảng cách ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;

  /* ---------- Khoảng cách theo vai trò ---------- */
  --section-space: var(--space-24);
  --section-space-mobile: var(--space-16);
  --grid-gap: var(--space-8);
  --gutter: var(--space-4);              /* lề hai bên màn hình nhỏ */
  --grid-min: 260px;                     /* bề rộng tối thiểu 1 thẻ trong .grid--auto */
  --container: 1170px;                   /* lưới Bootstrap, lề 135px trên khung 1440 */
  --header-height: 70px;

  /* ---------- Bo góc ---------- */
  /* Thiết kế vuông góc hoàn toàn; chỉ nút carousel tròn hẳn (--radius-full). */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-full: 9999px;
  --btn-radius: 0;
  --card-radius: 0;
  --input-radius: 0;

  /* ---------- Đổ bóng ---------- */
  --shadow-sm: none;                     /* thẻ trong thiết kế không có bóng */
  --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.05); /* style "Shadow large" — header */
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

  /* ---------- Chuyển động ---------- */
  --transition: 0.2s ease;
}
