/* ============================================================
   945 CLUB — GLOBAL LUXURY DESIGN SYSTEM & CORE RESETS
   Aesthetic: Minimal · Premium · Editorial · Athletic · High Whitespace
   ============================================================ */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* --- 1. COLOR TOKENS --- */
  --white: #ffffff;
  --surface-primary: #ffffff;
  --surface-secondary: #f6f6f9;
  --surface-tertiary: #ededf2;
  --surface-plate: #f2f2f5;
  --surface-dark: #111113;
  --grey: #f6f6f9;
  --black: #000000;

  /* Typography Colors */
  --ink: #111113;             /* primary text */
  --ink-primary: #111113;
  --ink2: #6e6e73;            /* secondary text */
  --ink-secondary: #6e6e73;
  --ink-tertiary: #86868b;
  --ink-quaternary: #aeaeb2;
  --ink-inverse: #ffffff;

  /* Borders & Dividers */
  --hair: #e5e5ea;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-regular: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.22);
  --border-focus: #0071e3;

  /* Accent & Functional */
  --blue: #0071e3;
  --brand-blue: #0071e3;
  --brand-blue-hover: #0077ed;
  --accent: #0a6b4f;          /* deep forest green accent */
  --brand-green: #0a6b4f;
  --brand-red: #ff3b30;
  --brand-amber: #ff9500;

  /* --- 2. TYPOGRAPHY SYSTEM --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --font: var(--font-sans);
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* --- 3. SPACING SCALE --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout dimensions */
  --max: 1240px;
  --max-wide: 1440px;
  --nav: 60px;

  /* --- 4. BORDER RADIUS SYSTEM --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  /* --- 5. LAYERED AMBIENT SHADOWS --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 32px 72px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 24px rgba(0, 113, 227, 0.25);

  /* --- 6. ANIMATION & TIMING RULES --- */
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-smooth: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.15s;
  --duration-base: 0.25s;
  --duration-slow: 0.5s;
}

/* ============================================================
   GLOBAL RESETS
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  width: 100%;
}

/* ============================================================
   LUXURY SLIDEBAR & SCROLL ENGINE (THROUGHOUT THE WEBSITE)
   ============================================================ */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.3) transparent;
}
.dark, html.dark {
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(15, 23, 42, 0.55);
}
::-webkit-scrollbar-thumb:active {
  background-color: rgba(15, 23, 42, 0.8);
}

.dark ::-webkit-scrollbar-thumb,
body.dark ::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.28);
}
.dark ::-webkit-scrollbar-thumb:hover,
body.dark ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.55);
}
.dark ::-webkit-scrollbar-thumb:active,
body.dark ::-webkit-scrollbar-thumb:active {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Interactive Dynamic Top Slidebar */
.site-scroll-slidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0f1115 0%, #0071e3 50%, #2997ff 100%);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.08s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.4);
}
.dark .site-scroll-slidebar {
  background: linear-gradient(90deg, #2997ff 0%, #60a5fa 50%, #ffffff 100%);
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.6);
}

/* Text Selection Accent */
::selection {
  background: rgba(0, 113, 227, 0.2);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  line-height: 1.5;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

/* Modal Background 100% Static Scroll Lock */
html.modal-locked,
body.modal-locked {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: none !important;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  outline: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.wrap-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ============================================================
   TYPOGRAPHY HIERARCHY
   ============================================================ */
.font-display { font-family: var(--font-display); }

.display {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: uppercase;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.h4 {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.sub {
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  display: block;
  margin-bottom: var(--space-2);
}

.body-lg { font-size: 18px; line-height: 1.5; color: var(--ink); }
.body-md { font-size: 15px; line-height: 1.5; color: var(--ink); }
.body-sm { font-size: 13px; line-height: 1.5; color: var(--ink-secondary); }
.tiny { font-size: 11px; line-height: 1.4; color: var(--ink-secondary); }

/* ============================================================
   BUTTON & INTERACTION SYSTEM (PREMIUM PILL & HAPTIC EFFECTS)
   ============================================================ */
.btn,
.btn-primary,
.btn-secondary,
.btn-checkout,
.btn-accent,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 980px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
  outline: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

/* Tactile Click & Active State */
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-checkout:active,
.btn-accent:active,
.btn-danger:active {
  transform: scale(0.96) !important;
}

/* Primary Button (Luxury Pitch Black) */
.btn-primary {
  background: #111113;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: #000000;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Secondary Button (Refined Light Neutral) */
.btn-secondary {
  background: #f5f5f7;
  color: #111113 !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover {
  background: #e8e8ed;
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1.5px);
}

/* Checkout Button */
.btn-checkout {
  background: var(--blue, #0071e3);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-checkout:hover {
  background: #0077ed;
  color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Accent Button */
.btn-accent {
  background: var(--brand-blue, #0071e3);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}
.btn-accent:hover {
  background: var(--brand-blue-hover, #0077ed);
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.38);
  transform: translateY(-2px);
}

/* Danger Button */
.btn-danger {
  background: #fff1f0;
  color: #ff3b30 !important;
  border: 1px solid rgba(255, 59, 48, 0.2);
}
.btn-danger:hover {
  background: #ff3b30;
  color: #ffffff !important;
  border-color: #ff3b30;
  box-shadow: 0 6px 18px rgba(255, 59, 48, 0.3);
  transform: translateY(-1.5px);
}

/* Focus Visible Accessibility */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-checkout:focus-visible,
.btn-accent:focus-visible,
.btn-danger:focus-visible {
  outline: 2px solid var(--blue, #0071e3);
  outline-offset: 2px;
}

.btn-pill {
  border-radius: var(--radius-full);
  padding: 12px 28px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Legacy & Utility Pill Components */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration-fast) var(--ease);
}
.pill:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.pill.dark {
  background: var(--ink-primary);
  color: #ffffff;
}
.pill.dark:hover {
  background: #000000;
  transform: translateY(-1px);
}
.pill.ghost {
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--ink-primary);
}
.pill.ghost:hover {
  background: var(--surface-secondary);
  border-color: var(--ink-primary);
  transform: translateY(-1px);
}

.lnk {
  color: var(--brand-blue);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast) var(--ease);
}
.lnk:hover {
  text-decoration: underline;
  gap: 7px;
}
.lnk::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transform: translateY(-1px);
}

.links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   INPUT & FORM SYSTEM
   ============================================================ */
.form-control, .input-field {
  width: 100%;
  background: var(--surface-secondary);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink-primary);
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease),
              background var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  outline: none;
}

.form-control:focus, .input-field:focus {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-control::placeholder, .input-field::placeholder {
  color: var(--ink-tertiary);
}

/* ============================================================
   CARD & SURFACE SYSTEM
   ============================================================ */
.card-surface {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease);
}
.card-surface:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-regular);
}

/* Dark Mode Theme Utilities */
.dark {
  background: var(--surface-dark);
  color: #f5f5f7;
}
.dark .sub { color: var(--ink-tertiary); }
.dark .eyebrow { color: var(--ink-quaternary); }
.dark .lnk { color: #2997ff; }

/* ============================================================
   SCROLL REVEAL & MICRO-ANIMATIONS
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.rv.in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* Prefer Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}
