/**
 * CRS CONSOLIDATED BASE
 * Reset + Typography + Core Variables
 * Replaces: crs-reset.css, crs-typography.css, crs-spacing.css
 */

/* ============================================
   CSS RESET
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  background: #0a0a0a;
  color: #f4f4f4;
  font-family: 'Inter', 'Space Mono', monospace, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
  /* Brand Colors */
  --crs-black: #0a0a0a;
  --crs-dark: #0d0d0d;
  --crs-metal: #1a1a1a;
  --crs-border: #2a2a2a;
  --crs-text: #f4f4f4;
  --crs-text-dim: #d0d0d0;
  
  /* Accent Colors */
  --amber: #FF9F1C;
  --amber-glow: rgba(255, 159, 28, 0.3);
  --brass: #d4af37;
  --neon-green: #39FF14;
  --signal-green: #39FF14;
  --signal-amber: #FFAA00;
  --signal-orange: #FF8833;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Typography */
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
  --font-display: 'Oswald', 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease-out;
  --transition-slow: 0.6s ease-out;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
  --shadow-amber: 0 0 12px var(--amber-glow);
  --shadow-green: 0 0 8px var(--neon-green);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--crs-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-family: var(--font-display);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-family: var(--font-display);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-family: var(--font-mono);
}

h4 {
  font-size: 1.125rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brass);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-to-content {
  position: absolute !important;
  top: -40px !important;
  left: 0 !important;
  background: var(--amber);
  color: var(--crs-black);
  padding: var(--spacing-sm) var(--spacing-md);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  opacity: 0 !important;
  pointer-events: none !important;
}

.skip-to-content:focus {
  top: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .rack-header,
  .rack-footer,
  button,
  .cta-service,
  .book-now-button {
    display: none;
  }
}

/* BRUTE FORCE: Kill all yellow overlays — resting AND interactive states */
.welcome-button,
.welcome-button:hover,
.welcome-button:active,
.welcome-button:focus,
.welcome-button.button-pressed,
.booking-hotspot,
.booking-hotspot:hover,
.booking-hotspot:active,
.booking-hotspot:focus,
.booking-hotspot.button-pressed {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  border: none !important;
}
