/**
 * Disney Holiday Transfer - Global Design System Tokens
 * Source of Truth for Brand Colors, Typography Scale, Spacing, Radius, and Shadows.
 * Strictly adheres to Disney Holiday Transfer's palette (Deep Red, Bright Red Accent, Navy/Charcoal, Gold, White, Grays).
 */

:root {
  /* -------------------------------------------------------------------------
     1. Brand Colors (Source of Truth)
     ------------------------------------------------------------------------- */
  --color-brand-primary: #991001;        /* Signature deep Disney Holiday Transfer red */
  --color-brand-primary-hover: #b01302;
  --color-brand-primary-dark: #690b02;
  --color-brand-primary-light: rgba(153, 16, 1, 0.08);
  --color-brand-primary-subtle: rgba(153, 16, 1, 0.04);

  --color-brand-accent: #ce171f;         /* Bright red accent for badges, kickers, pills */
  --color-brand-accent-hover: #e52b34;
  --color-brand-accent-light: rgba(206, 23, 31, 0.10);

  --color-brand-gold: #f1b84b;           /* Gold accent for stars, phone highlight & VIP badges */
  --color-brand-gold-dark: #d89f2a;
  --color-brand-gold-subtle: rgba(241, 184, 75, 0.12);

  --color-brand-navy: #101b2c;           /* Master dark navy / charcoal */
  --color-brand-navy-deep: #0a121e;      /* Deep midnight tone for hero gradients */
  --color-brand-navy-light: #192a43;     /* Navy surface accent */
  --color-brand-navy-surface: #142236;

  /* Typography / Text Colors */
  --color-text-primary: #101b2c;         /* High-emphasis headings, titles */
  --color-text-body: #334155;            /* Crisp, readable body copy (WCAG AA compliant) */
  --color-text-secondary: #64748b;       /* Subtitles, hints, descriptive paragraphs */
  --color-text-muted: #94a3b8;           /* Microcopy, timestamps, breadcrumb dividers */
  --color-text-inverse: #ffffff;         /* Pure white text on dark or colored surfaces */
  --color-text-inverse-muted: rgba(255, 255, 255, 0.82);

  /* Surfaces & Backgrounds */
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-surface-muted: #f1f5f9;
  --color-surface-dark: #101b2c;
  --color-surface-dark-card: rgba(255, 255, 255, 0.06);

  /* Borders & Dividers */
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-border-strong: #cbd5e1;
  --color-border-dark: rgba(255, 255, 255, 0.12);

  /* Functional Status Colors */
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-success-border: #bbf7d0;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fecaca;
  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;
  --color-info-border: #bae6fd;

  /* -------------------------------------------------------------------------
     2. Backward-Compatible Aliases (Preserves all existing component scopes)
     ------------------------------------------------------------------------- */
  --dht-red-primary: var(--color-brand-primary);
  --dht-red-bright: var(--color-brand-accent);
  --dht-red-dark: var(--color-brand-primary-dark);
  --dht-red: var(--color-brand-primary);
  --dht-navy: var(--color-brand-navy);
  --dht-navy-light: var(--color-brand-navy-light);
  --dht-gold: var(--color-brand-gold);
  --dht-text: var(--color-text-body);
  --dht-text-dark: var(--color-text-primary);
  --dht-muted: var(--color-text-secondary);
  --dht-soft: var(--color-surface-subtle);
  --dht-border: var(--color-border);
  --dht-shadow: var(--shadow-elevated);

  /* Booking component aliases */
  --primary-color: var(--color-brand-primary);
  --primary-hover: var(--color-brand-primary-hover);
  --primary-light: var(--color-brand-primary-light);
  --secondary-color: var(--color-brand-navy);
  --text-main: var(--color-text-body);
  --bg-color: var(--color-surface-subtle);
  --border-color: var(--color-border);
  --border-color-new: var(--color-border-strong);

  /* -------------------------------------------------------------------------
     3. Standardized Typography Hierarchy
     Headings: Poppins | Body & UI: Inter
     ------------------------------------------------------------------------- */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Typographic Scale */
  --text-hero: clamp(2.35rem, 4.6vw, 3.5rem);
  --text-h1: clamp(2rem, 3.4vw, 2.75rem);
  --text-h2: clamp(1.6rem, 2.5vw, 2.2rem);
  --text-h3: clamp(1.28rem, 1.8vw, 1.6rem);
  --text-h4: clamp(1.1rem, 1.35vw, 1.25rem);
  --text-h5: clamp(1rem, 1.15vw, 1.125rem);
  --text-h6: 0.875rem;

  --text-lead: clamp(1.05rem, 1.25vw, 1.18rem);
  --text-body-lg: 1.125rem;  /* 18px */
  --text-body: 1rem;         /* 16px */
  --text-body-sm: 0.875rem;  /* 14px */
  --text-caption: 0.75rem;   /* 12px */
  --text-kicker: 0.75rem;    /* 12px uppercase */

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Line Heights */
  --lh-tight: 1.14;
  --lh-snug: 1.28;
  --lh-normal: 1.5;
  --lh-relaxed: 1.68;
  --lh-loose: 1.8;

  /* Letter Spacing */
  --letter-spacing-tight: -0.03em;
  --letter-spacing-heading: -0.02em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-kicker: 0.14em;

  /* -------------------------------------------------------------------------
     4. Unified Spacing Scale
     ------------------------------------------------------------------------- */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  --section-spacing: clamp(48px, 6vw, 84px);
  --section-spacing-compact: clamp(36px, 4.5vw, 56px);

  /* -------------------------------------------------------------------------
     5. Border Radius
     ------------------------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* -------------------------------------------------------------------------
     6. Shadows
     ------------------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px 0 rgba(16, 27, 44, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(16, 27, 44, 0.07), 0 2px 6px -1px rgba(16, 27, 44, 0.04);
  --shadow-elevated: 0 20px 40px -8px rgba(16, 27, 44, 0.12), 0 8px 16px -4px rgba(16, 27, 44, 0.06);
  --shadow-hover: 0 12px 28px -4px rgba(153, 16, 1, 0.16), 0 6px 12px -2px rgba(16, 27, 44, 0.06);
  --shadow-glow-red: 0 0 0 3px rgba(153, 16, 1, 0.22);
  --shadow-focus: 0 0 0 3px rgba(153, 16, 1, 0.25);

  /* -------------------------------------------------------------------------
     7. Container & Layout Widths
     ------------------------------------------------------------------------- */
  --container-max-width: 1280px;
  --container-gutter: 24px;
  --container-gutter-sm: 16px;
  --site-container: min(1280px, calc(100% - 48px));
  --site-container-mobile: min(1280px, calc(100% - 32px));
  --reading-width: 960px;

  /* -------------------------------------------------------------------------
     8. Motion & Transitions
     ------------------------------------------------------------------------- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
