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

/* --- GOOGLE FONTS IMPORT --- */

:root {
  /* `only`: phone browsers with forced dark (Chrome/Edge/Samsung "dark mode
     for web pages") repainted the LIGHT theme algorithmically -- a dark header
     under a black logo, a dimmed hero, dark-on-dark buttons. The shop has its
     own dark theme (theme.css sets `dark` there); nobody else gets to invent
     one. */
  color-scheme: only light;
  /* --- 1. COLOR TOKENS ---
     The house palette, three Pantone chips:
       P 17-1 C  cream     -- the paper everything sits on
       P 102-8 C indigo    -- ACTION: every button, link, selected state
       P 50-16 C burgundy  -- VALUE: tags, discounts, stars, a saved heart
     One colour per job (law of similarity): a shopper learns once that indigo
     is something to press and burgundy is something worth noticing, and it
     holds on every page. The page is a light tint of the cream; the full chip
     is kept for bands and fills, because a product photo multiplied over the
     full-strength chip turns a white sneaker visibly cream. */
  --cream: #F2E0BE;           /* Pantone P 17-1 C */
  --indigo: #383C8C;          /* Pantone P 102-8 C */
  --indigo-deep: #2B2E73;
  --burgundy: #761B2C;        /* Pantone P 50-16 C */
  --cream-soft: #F8EEDB;      /* page: the cream, lightened */

  --bg-page: #F8EEDB;
  --white: #ffffff;
  --surface-primary: #F8EEDB;
  --surface-secondary: #F3E6CC;
  --surface-tertiary: #EFDFC0;
  --surface-plate: #EFDFC0;
  --surface-dark: #1C1D3D;
  --grey: #F3E6CC;
  --black: #000000;

  /* Typography Colors */
  --ink: #1C1D3D;             /* primary text: indigo-black */
  --ink-primary: #1C1D3D;
  --ink2: #5E5870;            /* secondary text: plum-grey, 5.6:1 on the page */
  --ink-secondary: #5E5870;
  --ink-tertiary: #5E5870;
  --ink-quaternary: #A89B86;
  --ink-inverse: #ffffff;

  /* Borders & Dividers */
  --hair: #E6D5B5;
  --border-subtle: rgba(56, 60, 140, 0.08);
  --border-regular: rgba(56, 60, 140, 0.16);
  --border-strong: rgba(56, 60, 140, 0.28);
  --border-focus: #383C8C;

  /* Accent & Functional */
  --blue: #383C8C;
  --brand-blue: #383C8C;
  --brand-blue-hover: #2B2E73;
  --accent: #383C8C;
  --brand-green: #383C8C;
  --brand-red: #761B2C;

  /* Status colours for TEXT and small marks. The bright system colours (#30d158, #ff3b30, #ff9500) are 1.8:1,
     3.1:1 and 1.9:1 on the cream sheet; these clear 4.5:1 on cream and on the secondary surface, and the dark
     block in theme.css swaps them for light tints that clear 8:1 on the night sheets. */
  --st-ok: #1B6E2F;
  --st-warn: #8A5000;
  --st-danger: #B3261E;
  --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%;
  background: #F8EEDB;
}

/* ============================================================
   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%, #383C8C 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(--bg-page, #F8EEDB);
  -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: pan-y pinch-zoom !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: auto !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: #1C1D3D;
  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: #F3E6CC;
  color: #1C1D3D !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: #E6D5B5;
  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, #383C8C);
  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: #2B2E73;
  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, #383C8C);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}
.btn-accent:hover {
  background: var(--brand-blue-hover, #2B2E73);
  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, #383C8C);
  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: #F8EEDB;
  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: #F8EEDB;
  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: #F3E6CC;
}
.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;
  }
}
