/* ═══════════════════════════════════════════════════════════
   NEST BRAND DESIGN SYSTEM 2026
   Digital Kiosk Intranet
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   ROOT VARIABLES — Based on NEST Brand Guidelines
═══════════════════════════════════════════════════════════ */
:root {
  /* NEST Brand Colors */
  --navy: #0E2841;           /* NEST Deep Navy - Primary */
  --navy-light: #1a3a5c;     /* Navy Light Shade */
  --navy-dark: #0a1f35;      /* Navy Dark Shade */

  --teal: #207888;           /* NEST Teal - Secondary/Accent */
  --teal-light: #2a9aa8;     /* Teal Light */
  --teal-dark: #1a5a68;      /* Teal Dark */

  --black: #0A0A0A;          /* NEST Black - For monochrome */
  --white: #FFFFFF;          /* Pure White */
  --off-white: #F5F5F5;      /* Ice White - Light Background */

  /* Extended Palette for UI */
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  /* Semantic Colors */
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --info: #2196f3;

  /* UI Tokens */
  --border: #e0e0e0;
  --muted: #757575;
  --off: #f5f7fa;

  /* Typography - Montserrat */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Spacing System */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL STYLES
═══════════════════════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.5rem; font-weight: var(--font-weight-black); }
h2 { font-size: 2rem; font-weight: var(--font-weight-extrabold); }
h3 { font-size: 1.5rem; font-weight: var(--font-weight-bold); }
h4 { font-size: 1.25rem; font-weight: var(--font-weight-bold); }
h5 { font-size: 1.1rem; font-weight: var(--font-weight-semibold); }
h6 { font-size: 1rem; font-weight: var(--font-weight-semibold); }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════
   LINKS
═══════════════════════════════════════════════════════════ */
a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-navy {
  background-color: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(14, 40, 65, 0.3);
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background-color: var(--teal-dark);
  box-shadow: 0 4px 12px rgba(32, 120, 136, 0.3);
}

.btn-secondary {
  background-color: var(--off);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--gray-100);
  border-color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
input, textarea, select {
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(32, 120, 136, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12); }

.text-muted { color: var(--muted); }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal); }
.text-white { color: var(--white); }

.bg-navy { background-color: var(--navy); }
.bg-teal { background-color: var(--teal); }
.bg-off { background-color: var(--off); }
.bg-white { background-color: var(--white); }
