/* GoTravelGates design tokens — central web (Portal now, the GTG template in task 6).
   Source: phase-5 design A3 (direction A "Andaman Clear" + buttons G2), owner OK 2026-11-26.
   Docs: .cursor/plans/central-web/phase5_brand_design.plan.md → "Design system".

   Fonts load separately and locally: /fonts/poppins/fonts.css (Latin) and /fonts/prompt/fonts.css (Thai).
   Light pages only: no dark-mode set. Not for console-style.css or the shop templates.
   Contrast ratios below are against white (#FFFFFF) unless named. */

:root {
    /* ---------- Brand (logo only: never as text or as a button behind white text) ---------- */
    --gtg-color-brand-green: #88C138;     /* logo square, accents on dark · white on it = 2.16:1 */
    --gtg-color-brand-blue: #2681A8;      /* "Gates" in the logo · 4.39:1, logo only */

    /* ---------- Surfaces and lines ---------- */
    --gtg-color-bg: #FFFFFF;
    --gtg-color-surface: #FFFFFF;
    --gtg-color-surface-2: #F4F7FA;       /* bands, trust strip, quiet panels */
    --gtg-color-line: #E2E8F0;            /* dividers, card borders (decorative) */
    --gtg-color-line-strong: #CBD5E1;
    --gtg-color-card-line: #E2E8F0;

    /* ---------- Text ---------- */
    --gtg-color-ink: #0F172A;             /* 17.85:1 */
    --gtg-color-ink-2: #475569;           /* body copy · 7.58:1 */
    --gtg-color-muted: #5B6676;           /* captions, meta · 5.82:1 (5.41:1 on surface-2) */
    --gtg-color-link: #1F6F93;            /* 5.59:1 (5.20:1 on surface-2) */
    --gtg-color-price: #0F172A;

    /* ---------- Actions ---------- */
    --gtg-color-primary: #548313;         /* buttons: logo green hue (85°) darkened · white text 4.53:1 */
    --gtg-color-primary-hover: #466D10;   /* 6.08:1 */
    --gtg-color-on-primary: #FFFFFF;
    --gtg-color-accent: #88C138;          /* = brand green, only with dark text */
    --gtg-color-on-accent: #0F172A;       /* 8.27:1 on accent */
    --gtg-color-focus: #1F6F93;           /* focus outline */

    /* ---------- Forms ---------- */
    --gtg-color-field-bg: #FFFFFF;
    --gtg-color-field-line: #8A94A6;      /* input border · 3.06:1 (non-text minimum 3:1) */
    --gtg-color-placeholder: #6B7484;     /* 4.71:1 */

    /* ---------- Status ---------- */
    --gtg-color-deal: #DC2626;            /* 4.83:1 */
    --gtg-color-success: #2E7D32;         /* 5.13:1 */
    --gtg-color-warn: #B45309;            /* 5.02:1 */

    /* ---------- Header / footer ---------- */
    --gtg-color-header-bg: #FFFFFF;
    --gtg-color-header-ink: #0F172A;
    --gtg-color-header-line: #E2E8F0;
    --gtg-color-header-line-strong: #CBD5E1;
    --gtg-color-header-hover: #F1F5F9;
    --gtg-color-footer-bg: #0F172A;
    --gtg-color-footer-ink: #E2E8F0;      /* 14.48:1 on footer-bg */
    --gtg-color-footer-muted: #94A3B8;    /* 6.96:1 on footer-bg */
    --gtg-color-footer-line: rgba(255, 255, 255, .14);

    /* ---------- Tabs, chips, category pills, trust strip ---------- */
    --gtg-color-tab-on-bg: #E8F3FA;
    --gtg-color-tab-on-ink: #1B6A8C;      /* 5.34:1 on tab-on-bg */
    --gtg-color-tab-line: #548313;
    --gtg-color-chip-on-bg: #E8F3FA;
    --gtg-color-chip-on-line: #1F6F93;
    --gtg-color-chip-on-ink: #1B6A8C;     /* 5.34:1 on chip-on-bg */
    --gtg-color-cat-bg: #EFF7E3;
    --gtg-color-cat-ink: #466D10;         /* 5.52:1 on cat-bg */
    --gtg-color-trust-bg: #F4F7FA;
    --gtg-color-trust-ink: #0F172A;
    --gtg-color-trust-icon: #548313;

    /* ---------- Type: Poppins for Latin, Prompt for Thai, system fonts for CJK / Hebrew ---------- */
    --gtg-font-sans: 'Poppins', 'Prompt', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gtg-font-display: var(--gtg-font-sans);
    --gtg-weight-regular: 400;
    --gtg-weight-medium: 500;
    --gtg-weight-semibold: 600;
    --gtg-weight-bold: 700;
    --gtg-leading-tight: 1.2;             /* headings */
    --gtg-leading-normal: 1.55;           /* body */

    --gtg-text-xs: 0.75rem;   /* 12 */
    --gtg-text-sm: 0.875rem;  /* 14 */
    --gtg-text-md: 1rem;      /* 16 */
    --gtg-text-lg: 1.125rem;  /* 18 */
    --gtg-text-xl: 1.375rem;  /* 22 */
    --gtg-text-2xl: 1.75rem;  /* 28 */
    --gtg-text-3xl: 2.25rem;  /* 36 */
    --gtg-text-4xl: 3rem;     /* 48 */

    /* ---------- Space (4 px base) ---------- */
    --gtg-space-1: 4px;
    --gtg-space-2: 8px;
    --gtg-space-3: 12px;
    --gtg-space-4: 16px;
    --gtg-space-5: 24px;
    --gtg-space-6: 32px;
    --gtg-space-7: 48px;
    --gtg-space-8: 64px;

    /* ---------- Shape and depth ---------- */
    --gtg-radius-sm: 6px;
    --gtg-radius-md: 10px;
    --gtg-radius-lg: 16px;
    --gtg-radius-xl: 24px;
    --gtg-radius-pill: 999px;
    --gtg-radius-card: 14px;
    --gtg-radius-btn: 10px;

    --gtg-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --gtg-shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
    --gtg-shadow-lg: 0 16px 40px rgba(15, 23, 42, .14);

    /* ---------- Layout ---------- */
    --gtg-container: 1200px;
    --gtg-gutter: 24px;
    --gtg-header-h: 68px;
}

/* Phone */
@media (max-width: 760px) {
    :root {
        --gtg-gutter: 16px;
        --gtg-header-h: 58px;
    }
}
