/* ============================================
   A & I ROPE ACCESS - BASE STYLES
   Apple-Inspired Design System
   ============================================ */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Brand Colors - Refined for Apple-like feel */
  --color-catskill-white: #E4E8F3;
  --color-sandy-brown: #ED9B5B;
  --color-ecstasy: #FD7012;
  --color-gun-powder: #484B61;
  --color-ebony-clay: #232845;
  
  /* Extended Palette */
  --color-safety-orange: #FD7012;
  --color-deep-space: #232845;
  --color-industrial-grey: #8892B0;
  --color-signal-cyan: #64FFDA;
  --color-alert-white: #FFFFFF;
  
  /* Semantic Colors */
  --bg-primary: var(--color-ebony-clay);
  --bg-secondary: rgba(72, 75, 97, 0.4);
  --bg-tertiary: rgba(72, 75, 97, 0.25);
  --bg-light: var(--color-catskill-white);
  --text-primary: var(--color-catskill-white);
  --text-secondary: var(--color-industrial-grey);
  --accent-primary: var(--color-ecstasy);
  --accent-secondary: var(--color-sandy-brown);
  
  /* Typography Scale - Cleaner, more Apple-like */
  --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;
  
  /* Spacing Scale - Generous Apple-like spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  
  /* Animation Timing - Smooth Apple-like curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 980px;
  --section-padding: clamp(5rem, 10vh, 8rem);
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-above: 10;
  --z-nav: 100;
  --z-modal: 200;
  --z-overlay: 300;
  --z-hud: 400;
  
  /* Effects - Subtle Apple-like shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(253, 112, 18, 0.15);
  
  /* Squircle Radii - Apple-style continuous curvature */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Typography - Clean Apple-style hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-base); }

p {
  max-width: 65ch;
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--accent-primary);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Selection */
::selection {
  background-color: var(--accent-primary);
  color: var(--color-ebony-clay);
}

/* Scrollbar - Minimal Apple style */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(136, 146, 176, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(136, 146, 176, 0.5);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Image Defaults */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button Reset */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* List Reset */
ul, ol {
  list-style: none;
}
