/* ============================================
   THE PRO BROS — Design System & Global Styles
   Premium B2B Sportswear Manufacturing
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================ */
:root {
  /* ---- Colors ---- */
  --color-silver: #C0C0C0;
  --color-silver-light: #D8D8D8;
  --color-silver-dark: #A0A0A0;
  --color-grey: #6B7280;
  --color-grey-light: #9CA3AF;
  --color-grey-dark: #4B5563;
  --color-charcoal: #1C1C1E;
  --color-charcoal-light: #2C2C2E;
  --color-charcoal-deep: #141416;
  --color-black: #0A0A0B;
  --color-white: #FAFAFA;
  --color-white-pure: #FFFFFF;
  --color-accent: #4A9FD9;
  --color-accent-light: #6BB5E5;
  --color-accent-dark: #3A8BC4;
  --color-accent-glow: rgba(74, 159, 217, 0.25);
  --color-success: #34D399;
  --color-error: #F87171;
  --color-warning: #FBBF24;

  /* ---- Metallic Gradients ---- */
  --gradient-metallic: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 25%, #A0A0A0 50%, #C0C0C0 75%, #E8E8E8 100%);
  --gradient-metallic-dark: linear-gradient(135deg, #2C2C2E 0%, #3C3C3E 25%, #4C4C4E 50%, #3C3C3E 75%, #2C2C2E 100%);
  --gradient-charcoal: linear-gradient(180deg, #1C1C1E 0%, #0A0A0B 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10, 10, 11, 0.92) 0%, rgba(28, 28, 30, 0.85) 50%, rgba(74, 159, 217, 0.15) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-accent: linear-gradient(135deg, #4A9FD9 0%, #6BB5E5 100%);
  --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  --gradient-section-dark: linear-gradient(180deg, #0A0A0B 0%, #1C1C1E 50%, #0A0A0B 100%);
  --gradient-section-alt: linear-gradient(180deg, #141416 0%, #1C1C1E 100%);
  --gradient-cta: linear-gradient(135deg, #4A9FD9 0%, #3A8BC4 50%, #2A7BB4 100%);

  /* ---- Typography ---- */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display: clamp(3rem, 6vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.875rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.5rem, 2.5vw, 2rem);
  --fs-h4: clamp(1.25rem, 2vw, 1.5rem);
  --fs-h5: clamp(1.1rem, 1.5vw, 1.25rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-overline: 0.8125rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.7;

  --ls-tight: -0.03em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.12em;

  /* ---- Spacing ---- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(4rem, 8vw, 8rem);

  /* ---- Layout ---- */
  --container-max: 1320px;
  --container-narrow: 960px;
  --container-wide: 1440px;
  --gutter: clamp(1rem, 3vw, 2rem);

  /* ---- Border Radius ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
  --shadow-glow: 0 0 30px rgba(74, 159, 217, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.25);

  /* ---- Glass ---- */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.15);
  --glass-blur: 20px;

  /* ---- Transitions ---- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-index Scale ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}


/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-silver-light);
  background-color: var(--color-black);
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--color-white);
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.04em;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); }

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--color-grey-light);
}

.text-gradient {
  background: var(--gradient-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--color-accent);
}

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

.text-silver {
  color: var(--color-silver);
}

.text-grey {
  color: var(--color-grey-light);
}

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


/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section--dark {
  background: var(--gradient-section-dark);
}

.section--alt {
  background: var(--gradient-section-alt);
}

.section--charcoal {
  background-color: var(--color-charcoal);
}

.flex {
  display: flex;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }


/* ============================================
   GLASS MORPHISM
   ============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.glass--strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border-strong);
}

.glass--card {
  background: var(--gradient-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}


/* ============================================
   SELECTION & SCROLLBAR
   ============================================ */
::selection {
  background: var(--color-accent);
  color: var(--color-white-pure);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-charcoal-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-grey-dark);
}


/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}


/* ============================================
   DIVIDERS & DECORATIVE
   ============================================ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  margin: var(--space-lg) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.section-header .overline {
  margin-bottom: var(--space-md);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-lg);
}

.section-header .lead {
  max-width: 600px;
  margin: 0 auto;
}

/* Subtle dot pattern background */
.bg-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Gradient overlay for sections */
.section-gradient-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--color-black) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.section-gradient-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, var(--color-black) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
