/* tokens.css - Design system CSS custom properties
 *
 * All tokens prefixed --hc- to avoid --bs- namespace collision.
 * Import this file BEFORE base.css and components.css.
 *
 * Theme: Warm Hazel. Sage-green brand derived from the HazelCare leaf logo
 * and brand sheet; warm neutrals; gold accent; maple-red Canadian mark.
 */

:root {
    /* ── Colors: Warm neutrals ──────────────────────────────── */
    --hc-gray-50:  #faf8f4;
    --hc-gray-100: #f3efe8;
    --hc-gray-200: #e7e0d4;
    --hc-gray-300: #d4c9b8;
    --hc-gray-400: #a99d88;
    --hc-gray-500: #847a67;
    --hc-gray-600: #635b4c;
    --hc-gray-700: #474136;
    --hc-gray-800: #2f2a23;
    --hc-gray-900: #211d18;

    --hc-white:    #ffffff;

    /* ── Colors: Primary (brand sage green) ─────────────────── */
    --hc-primary-50:  #eef4ef;
    --hc-primary-100: #d8e6dc;
    --hc-primary-300: #a7c6b1;
    --hc-primary-500: #5f8d6c;
    --hc-primary-600: #4f7a5b;
    --hc-primary-700: #3c6147;

    /* ── Colors: Secondary (warm taupe) ─────────────────────── */
    --hc-secondary-500: #847a67;
    --hc-secondary-600: #635b4c;

    /* ── Colors: Accent (warm gold) + Canadian mark ─────────── */
    --hc-accent:     #c8924a;
    --hc-accent-600: #b07d3a;
    /* Pale gold for eyebrows on dark glass/photo — full gold can't clear
     * WCAG AA for small text over the frosted surfaces, this can. */
    --hc-accent-100: #f0dcb8;
    --hc-maple:      #c8102e;

    /* ── Colors: Brand leaf palette (logo) ──────────────────── */
    --hc-leaf-deep:  #2f5e4e;
    --hc-leaf-sage:  #6fae87;
    --hc-leaf-mint:  #86c1b4;

    /* ── Colors: Semantic — Success (green) ─────────────────── */
    --hc-success-50:  #f0fdf4;
    --hc-success-100: #dcfce7;
    --hc-success-500: #22c55e;
    --hc-success-600: #16a34a;
    --hc-success-700: #15803d;

    /* ── Colors: Semantic — Warning (amber) ─────────────────── */
    --hc-warning-50:  #fffbeb;
    --hc-warning-100: #fef3c7;
    --hc-warning-500: #f59e0b;
    --hc-warning-600: #d97706;
    --hc-warning-700: #b45309;

    /* ── Colors: Semantic — Error (red) ─────────────────────── */
    --hc-error-50:  #fef2f2;
    --hc-error-100: #fee2e2;
    --hc-error-500: #ef4444;
    --hc-error-600: #dc2626;
    --hc-error-700: #b91c1c;
    --hc-error-800: #9a1c27;  /* darkest danger — destructive-button hover */

    /* ── Colors: Semantic — Info (blue) ─────────────────────── */
    --hc-info-50:  #eff6ff;
    --hc-info-100: #dbeafe;
    --hc-info-500: #3b82f6;
    --hc-info-600: #2563eb;
    --hc-info-700: #1d4ed8;

    /* ── Colors: Domain — Status (waiting/called/in-progress) ─ */
    --hc-status-waiting-bg:      #e0f2fe;
    --hc-status-waiting-text:    #0369a1;
    --hc-status-called-bg:       #dcfce7;
    --hc-status-called-text:     #15803d;
    --hc-status-in-progress-bg:  #fff7ed;
    --hc-status-in-progress-text:#c2410c;

    /* ── Colors: Domain — Alert banners ─────────────────────── */
    --hc-alert-warning-bg:       #fff3e0;
    --hc-alert-warning-border:   #fb923c;
    --hc-alert-caution-bg:       #fef9c3;
    --hc-alert-caution-border:   #facc15;
    --hc-alert-info-bg:          var(--hc-info-50);
    --hc-alert-info-border:      var(--hc-info-500);

    /* ── Colors: Domain — Flash messages ────────────────────── */
    --hc-flash-success-bg:       var(--hc-success-50);
    --hc-flash-success-text:     var(--hc-success-700);
    --hc-flash-success-border:   var(--hc-success-100);
    --hc-flash-error-bg:         var(--hc-error-50);
    --hc-flash-error-text:       var(--hc-error-700);
    --hc-flash-error-border:     var(--hc-error-100);
    --hc-flash-info-bg:          var(--hc-info-50);
    --hc-flash-info-text:        var(--hc-info-700);
    --hc-flash-info-border:      var(--hc-info-100);

    /* ── Colors: Domain — Verification box ──────────────────── */
    --hc-verification-bg:        var(--hc-success-50);
    --hc-verification-text:      var(--hc-success-700);
    --hc-verification-heading:   var(--hc-success-600);

    /* ── Surfaces (60/30/10 allocation) ─────────────────────── */
    /* Dominant surface is a warm neutral, never sage — this is the single
     * biggest "too green" fix. Green earns its place as ink + a few dark
     * anchor bands, not as a page/section fill. */
    --hc-surface-page: var(--hc-gray-50);
    /* The one canonical dark-green anchor surface: navbar, footer, hero/dash
     * bands, strong CTA. #34503e (8.9:1 on white) — deliberately the DARKEST of
     * our greens, not leaf-deep #2f5e4e (7.4:1): the landing glass tints this at
     * 90% over a variable photo, and only this value keeps the worst-case
     * pale-gold eyebrow ≥ AA (~5:1). leaf-deep stays the green-INK token for
     * headings/links on light. Don't repoint the glass tint to a lighter green. */
    --hc-surface-dark: #34503e;

    /* ── Glass & scrim (white/black overlays on photo/dark surfaces) ──
     * Named alphas for the frosted-glass treatment and photo scrims so the
     * landing/dashboard CSS references tokens instead of bare rgba(). These are
     * overlay tints, NOT the AODA-floor glass FILL (that stays a documented
     * color-mix in landing.css and must not be repointed here). */
    --hc-glass-fill:          rgba(255, 255, 255, 0.10);
    --hc-glass-fill-strong:   rgba(255, 255, 255, 0.18);
    --hc-glass-border:        rgba(255, 255, 255, 0.28);
    --hc-glass-hairline:      rgba(255, 255, 255, 0.16);
    --hc-glass-border-strong: rgba(255, 255, 255, 0.55);
    --hc-on-photo:            var(--hc-white);
    --hc-on-photo-muted:      rgba(255, 255, 255, 0.90);
    --hc-scrim-strong:        rgba(0, 0, 0, 0.42);
    --hc-scrim:               rgba(0, 0, 0, 0.36);
    --hc-scrim-faint:         rgba(0, 0, 0, 0.08);

    /* ── Brand chrome ───────────────────────────────────────── */
    --hc-navbar-bg:   var(--hc-surface-dark);
    --hc-navbar-text: #f6f2ea;

    /* ── Typography ─────────────────────────────────────────── */
    --hc-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --hc-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Font sizes */
    --hc-text-xs:   0.75rem;   /* 12px */
    --hc-text-sm:   0.875rem;  /* 14px */
    --hc-text-base: 1rem;      /* 16px */
    --hc-text-lg:   1.125rem;  /* 18px */
    --hc-text-xl:   1.25rem;   /* 20px */
    --hc-text-2xl:  1.5rem;    /* 24px */
    --hc-text-3xl:  1.875rem;  /* 30px */

    /* Font weights */
    --hc-font-normal:   400;
    --hc-font-medium:   500;
    --hc-font-semibold: 600;
    --hc-font-bold:     700;

    /* Line heights */
    --hc-leading-tight:   1.25;
    --hc-leading-normal:  1.5;
    --hc-leading-relaxed: 1.625;

    /* Letter spacing */
    --hc-tracking-tight:  -0.02em;
    --hc-tracking-normal:  0;
    --hc-tracking-wide:    0.05em;

    /* ── Spacing (4px base) ─────────────────────────────────── */
    --hc-space-1:   4px;
    --hc-space-2:   8px;
    --hc-space-3:  12px;
    --hc-space-4:  16px;
    --hc-space-5:  20px;
    --hc-space-6:  24px;
    --hc-space-8:  32px;
    --hc-space-10: 40px;
    --hc-space-12: 48px;
    --hc-space-16: 64px;

    /* ── Shadows ─────────────────────────────────────────────── */
    --hc-shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.05);
    --hc-shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --hc-shadow-md:  0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --hc-shadow-lg:  0 10px 20px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    --hc-shadow-focus: 0 0 0 3px rgba(95, 141, 108, 0.25);

    /* ── Border radius ──────────────────────────────────────── */
    --hc-radius-sm:   6px;
    --hc-radius-md:  10px;
    --hc-radius-lg:  14px;
    --hc-radius-xl:  18px;
    --hc-radius-full: 9999px;

    /* ── Transitions ────────────────────────────────────────── */
    --hc-transition-fast: 150ms ease;
    --hc-transition-base: 200ms ease;
    --hc-transition-slow: 300ms ease;

    /* ── Layout widths ──────────────────────────────────────── */
    --hc-container-max:      1200px;
    --hc-auth-card-width:     500px;
    --hc-auth-card-narrow:    420px;
    --hc-check-in-card-width: 600px;
    --hc-data-table-narrow:   600px;
    --hc-landing-features:    600px;
    --hc-rebook-card-width:   640px;
    --hc-rebook-dialog-width: 440px;
    --hc-dialog-width:        440px;
}
