/* HopSpeed v4 | Minimal brand system
   Two UI brand colors: MQ Navy and MQ Golden Yellow. White is the canvas.
   Orange is reserved for alerts and the approved logo. Do not recolor the logo.
   No decorative green, teal, steel blue, peach, ivory, or other hues.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --brand-navy: #294A7C;
  --brand-yellow: #E9AE30;
  --white: #FFFFFF;
  --ink: #111111; /* Neutral text on gold; not an additional brand hue. */
  --alert-orange: #FE6F02; /* Alerts only, never decorative or a general CTA. */
  --logo-orange: var(--alert-orange); /* Existing artwork; do not recolor asset. */
  --alert-text: var(--ink);
  --alert-background: var(--white);
  --alert-border: var(--alert-orange);
  --brand-primary: var(--brand-navy);
  --brand-secondary: var(--brand-yellow);
  --brand-accent: var(--brand-yellow);
  --background: var(--white);
  --surface: var(--white);
  --border: rgba(41, 74, 124, 0.18);
  --border-strong: var(--brand-navy);
  --text-primary: var(--brand-navy);
  --text-secondary: var(--brand-navy);
  --text-inverse: var(--white);
  --focus: var(--brand-navy);
  --button-primary: var(--brand-navy);
  --button-primary-hover: var(--brand-navy);
  --button-secondary: var(--white);
  --button-secondary-hover: var(--white);
  --button-text: var(--white);
  --button-accent: var(--brand-yellow);
  --button-accent-hover: var(--brand-yellow);
  --button-accent-text: var(--ink);
  --brand-yellow-ink: var(--ink);
  /* Semantic states: use explicit labels and icons, not color alone. */
  --success: var(--brand-navy);
  --warning: var(--alert-orange);
  --danger: var(--alert-orange);
  --info: var(--brand-navy);
  /* Legacy compatibility: migrate components away from old hue-specific names. */
  --brand-primary-hover: var(--brand-navy);
  --brand-yellow-hover: var(--brand-yellow);
  --surface-blue: var(--white);
  --surface-orange: var(--alert-background);
  --surface-yellow: var(--white);
  --border-yellow: var(--brand-yellow);
  --border-orange: var(--alert-border);

  --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --heading-1: clamp(2.25rem, 4.5vw, 3.75rem);
  --heading-2: clamp(1.75rem, 3vw, 2.5rem);
  --heading-3: 1.375rem;
  --line-body: 1.6;
  --line-heading: 1.15;
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-input: 8px;
  --shadow-card: 0 4px 20px rgba(41,74,124,0.06);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-body);
  color: var(--text-primary);
  background: var(--background);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-heading);
  color: var(--text-primary);
}
h1 { font-size: var(--heading-1); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--heading-2); }
h3 { font-size: var(--heading-3); font-weight: var(--weight-semibold); }
button, input, select, textarea { font: inherit; }
button { font-weight: var(--weight-semibold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Opt-in component examples; integrate into existing React components. */
.hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.125rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  cursor: pointer;
}
.hs-button--primary { background: var(--brand-navy); color: var(--white); }
.hs-button--accent { background: var(--brand-yellow); color: var(--ink); }
.hs-button--outline { background: var(--white); color: var(--brand-navy); border-color: var(--brand-navy); }
.hs-button:hover { box-shadow: 0 0 0 2px var(--brand-navy); }
.hs-button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.hs-card { background: var(--white); color: var(--brand-navy); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-6); }
.hs-section--navy { background: var(--brand-navy); color: var(--white); }
.hs-section--navy :is(h1,h2,h3,h4,h5,h6) { color: var(--white); }
.hs-section--navy :focus-visible { outline-color: var(--white); }
.hs-highlight { background: var(--brand-yellow); color: var(--ink); }
.hs-section--navy .hs-accent-text { color: var(--brand-yellow); }
.hs-field { min-height: 44px; border: 1px solid var(--brand-navy); border-radius: var(--radius-input); color: var(--brand-navy); background: var(--white); padding: var(--space-3); }

/* Alert UI: use orange only when attention or action is required. */
.hs-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--alert-background);
  color: var(--alert-text);
  border: 1px solid var(--border);
  border-inline-start: 5px solid var(--alert-border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}
.hs-alert__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--alert-orange);
  color: var(--alert-text);
  font-weight: var(--weight-semibold);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.hs-alert__title { color: var(--alert-text); font-weight: var(--weight-semibold); }

/* Implementation:
   - Approx. 75% white, 20% navy, 5% gold across the marketing UI.
     Orange appears only in the logo and real alerts; no fixed alert quota.
   - Use white text on navy and near-black text on gold. Navy on gold is
     only ~4.47:1, so avoid that pairing for normal-sized text.
   - Reserve gold for the main CTA or selected items, not large backgrounds.
   - Use orange for overdue follow-ups, scheduling conflicts, failed SMS, and
     other action-required alerts. Distinguish severity with labels and icons.
   - Use dark text on orange, never white text or small orange text on white.
   - Routine reminders stay navy until attention is required.
   - Use white cards with navy icons and thin navy-opacity borders.
   - Keep status distinctions explicit (icons + labels); do not rely on color alone.
   - Preserve the existing logo asset; do not replace it with styled text.
   - Remove old hardcoded decorative colors across pages and the application.
   - Check contrast, keyboard focus, mobile layouts and reduced-motion behavior.
*/
