/* 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: Hazel Care "Horizon" brand (Anita Chauhan, October 2026).
 * Deep Green, Olive, Amber, Ivory, Taupe; see docs/design-system.md.
 */

:root {
    /* ── Colors: Warm neutrals ──────────────────────────────── */
    --hc-gray-50:  #faf8f3;  /* Ivory: page background */
    --hc-gray-100: #f2eee5;  /* Sand: section background */
    --hc-gray-200: #e3ddd0;  /* hairlines and borders */
    --hc-gray-300: #cfc7b8;
    --hc-gray-400: #b7aea1;  /* Taupe: fills only, never text */
    --hc-gray-500: #6b776c;  /* 4.42:1 on Ivory, fails AA: icons and large text only */
    --hc-gray-600: #4d5c50;  /* muted text, 6.68:1 on Ivory */
    --hc-gray-700: #253a30;
    --hc-gray-800: #1a3127;
    --hc-gray-900: #13291f;  /* Ink: body text and headings */

    --hc-white:    #ffffff;

    /* ── Colors: Primary (Deep Green family) ────────────────── */
    --hc-primary-50:  #eef2ee;
    --hc-primary-100: #dce5dd;
    --hc-primary-300: #9fb3a3;
    --hc-primary-500: #6e7f6a;  /* Olive: white on it is 4.28:1, never a white-text fill */
    --hc-primary-600: #14483a;  /* links, solid green buttons */
    --hc-primary-700: #0e3a2e;  /* Deep Green */

    /* ── Colors: Accent (Amber) ─────────────────────────────── */
    --hc-accent:       #d49a5b;  /* dot, thin rules, main buttons; never text on light */
    --hc-accent-hover: #dea96f;  /* amber button hover, lighter than the base */
    /* Pale amber for eyebrows and emphasis on dark green panels over photos. */
    --hc-accent-100: #f0d2ae;
    --hc-accent-ink: #8a5a26;  /* amber-coloured text on light, 5.54:1 on Ivory */

    /* ── 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 dark anchor surface: hero and dashboard bands, photo panels, admin header. */
    --hc-surface-dark: #0e3a2e;
    /* Deep Green over the duotone photos on the landing hero and the dashboard band. */
    --hc-band-gradient: linear-gradient(90deg,
        color-mix(in srgb, var(--hc-surface-dark) 95%, transparent) 0%,
        color-mix(in srgb, var(--hc-surface-dark) 75%, transparent) 60%,
        color-mix(in srgb, var(--hc-surface-dark) 50%, transparent) 100%);

    /* ── Glass & scrim (white/black overlays on photo/dark surfaces) ──
     * Light tints for outlines, stat tiles and hover fills on the green bands; the features pane's 90% Deep Green fill stays a color-mix in landing.css. */
    --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(250, 248, 243, 0.55);
    --hc-on-photo-muted:      #c4cfc1;  /* 7.84:1 on Deep Green */
    --hc-scrim:               rgba(0, 0, 0, 0.36);

    /* ── Brand chrome ───────────────────────────────────────── */
    --hc-on-dark:        #faf8f3;  /* Ivory text on Deep Green, 11.9:1 */
    /* Light translucent header and light footer, as on the marketing site. */
    --hc-navbar-bg:      color-mix(in srgb, var(--hc-gray-50) 88%, transparent);
    --hc-navbar-text:    var(--hc-gray-600);
    --hc-navbar-border:  var(--hc-gray-200);
    --hc-navbar-backdrop: saturate(1.4) blur(12px);
    --hc-navbar-height:  80px;  /* sticky navbar min-height; scroll-padding adds a gap to it */
    --hc-z-navbar:       40;
    --hc-btn-border-width: 1.5px;

    /* ── Typography ─────────────────────────────────────────── */
    /* Self-hosted in static/fonts/, declared in fonts.css. */
    --hc-font-sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;
    --hc-font-display: 'Fraunces', 'Iowan Old Style', Georgia, 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.015em;
    --hc-tracking-normal:  0;
    --hc-tracking-wide:    0.05em;
    --hc-tracking-label:   0.22em;  /* spaced capitals for eyebrows and labels */

    /* ── 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(14, 58, 46, 0.06);
    --hc-shadow-sm:  0 1px 2px rgba(14, 58, 46, 0.06), 0 4px 12px rgba(14, 58, 46, 0.05);
    --hc-shadow-md:  0 1px 2px rgba(14, 58, 46, 0.06), 0 12px 32px rgba(14, 58, 46, 0.08);
    --hc-shadow-lg:  0 2px 4px rgba(14, 58, 46, 0.08), 0 24px 48px rgba(14, 58, 46, 0.14);
    --hc-shadow-focus: 0 0 0 3px rgba(212, 154, 91, 0.45);
    --hc-shadow-amber: 0 6px 18px rgba(212, 154, 91, 0.28);

    /* ── Border radius ──────────────────────────────────────── */
    --hc-radius-sm:   6px;
    --hc-radius-md:  10px;
    --hc-radius-lg:  16px;
    --hc-radius-xl:  22px;
    --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-logo-height:          36px;  /* horizontal logo in the navbar */
    --hc-logo-height-sm:       30px;
    --hc-logo-height-xs:       24px;  /* phones 360px and narrower */
    --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-hero-text-width:     600px;
    --hc-rebook-card-width:   640px;
    --hc-rebook-dialog-width: 440px;
    --hc-dialog-width:        440px;
    --hc-setup-width:         720px;
}
