/* ============================================================
   RAS SPORTSWEAR — DESIGN SYSTEM
   Premium manufacturing website design tokens & utilities
   ============================================================ */

/* ─── Color Scheme ─────────────────────────────────────────── */
:root {
  color-scheme: light;
}

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  /* ── Colors (Strict Light Theme Only) ── */
  --color-bg-primary:    #FFFFFF;
  --color-bg-secondary:  #F7F7F7; /* Lululemon Soft Grey */
  --color-bg-card:       #FFFFFF;
  --color-bg-glass:      rgba(255, 255, 255, 0.7);
  --color-bg-glass-heavy:rgba(255, 255, 255, 0.9);

  --color-accent-primary:   #000000;
  --color-accent-secondary: #333333;
  --color-accent-gradient:  #111111;
  --color-accent-gradient-h: #000000;
  --color-accent-glow:      rgba(0, 0, 0, 0.04);
  --color-accent-highlight: #111111;
  --color-accent-maroon:    #333333;

  --color-text-primary:   #111111;
  --color-text-secondary: #767676;
  --color-text-muted:     #999999;

  --color-border:         #E5E5E5;
  --color-border-accent:  #111111;

  --color-success:        #333333;
  --color-warning:        #666666;
  --color-error:          #111111;

  --color-overlay:        rgba(0, 0, 0, 0.4);
  --color-overlay-heavy:  rgba(0, 0, 0, 0.6);

  /* ── Typography ── */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    var(--font-body);
  
  --text-xs:   12px;                                            /* Label/Info: 12px */
  --text-sm:   14px;                                            /* Small/Sub text: 14px */
  --text-base: 15px;                                            /* Main body text: 15px */
  --text-lg:   16px;                                            /* Card / Sub-titles: 16px */
  --text-xl:   18px;                                            /* Small Headings: 18px */
  --text-2xl:  20px;                                            /* Process Numbers: 20px */
  --text-3xl:  22px;                                            /* Sub-headings: 22px */
  --text-4xl:  clamp(1.5rem, 1.35rem + 0.8vw, 2rem);              /* Card / section headers: 24-32px */
  --text-5xl:  clamp(2rem, 1.75rem + 1.2vw, 2.75rem);            /* Section Headings: 32-44px */
  --text-6xl:  clamp(2.5rem, 2rem + 2vw, 3.75rem);              /* Hero H1: 40-60px */

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight:   -0.03em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;
  --tracking-widest:  0.15em;

  /* ── Spacing (Massive Spacing System) ── */
  --space-1:  0.25rem;    /* 4px */
  --space-2:  0.5rem;     /* 8px */
  --space-3:  0.75rem;    /* 12px */
  --space-4:  1rem;       /* 16px */
  --space-5:  1.25rem;    /* 20px */
  --space-6:  1.5rem;     /* 24px */
  --space-7:  1.75rem;    /* 28px */
  --space-8:  2rem;       /* 32px */
  --space-9:  2.25rem;    /* 36px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-14: 3.5rem;     /* 56px */
  --space-16: 4rem;       /* 64px */
  --space-18: 4.5rem;     /* 72px */
  --space-20: 5rem;       /* 80px */
  --space-section: 80px;  /* Section Padding: 80px */

  /* ── Border Radius ── */
  --radius-xs:   0px;      /* Sharp */
  --radius-sm:   0px;
  --radius-md:   0px;
  --radius-lg:   0px;
  --radius-xl:   0px;
  --radius-2xl:  0px;
  --radius-3xl:  0px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-subtle:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-medium:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 10px 15px rgba(0, 0, 0, 0.06);
  --shadow-large:
    0 10px 25px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-glow:
    0 0 20px var(--color-accent-glow),
    0 0 60px var(--color-accent-glow);
  --shadow-card:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);

  /* ── Z-Index Scale ── */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  500;
  --z-modal:    600;
  --z-navbar:   1000;
  --z-admin-bar: 1101;
  --z-toast:    1100;
  --z-tooltip:  1200;

  --admin-bar-height: 0px;

  /* ── Transitions ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;
  --duration-slower: 700ms;

  /* ── Container (Max Width 1440px) ── */
  --container-max: 1440px;
  --container-padding: var(--space-6);
}


/* ─── CSS Reset ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  text-transform: none;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  max-width: 75ch;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ─── Selection ────────────────────────────────────────────── */
::selection {
  background-color: var(--color-accent-primary);
  color: #FFFFFF;
}


/* ─── Focus Visible ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

@supports (scrollbar-color: auto) {
  * {
    scrollbar-color: var(--color-text-muted) var(--color-bg-secondary);
    scrollbar-width: thin;
  }
}


/* ─── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1600px;
}

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

.section--lg {
  padding-block: calc(var(--space-section) * 1.25);
}

.section--sm {
  padding-block: calc(var(--space-section) * 0.5);
}

.section--alt {
  background-color: var(--color-bg-secondary);
}


/* ─── Grid Helpers ─────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }


/* ─── Typography Utilities ─────────────────────────────────── */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }
.text-6xl  { font-size: var(--text-6xl); }

.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

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

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}


/* ─── Gradient Text ────────────────────────────────────────── */
.gradient-text {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-text-animated {
  background: linear-gradient(
    135deg,
    var(--color-accent-primary),
    var(--color-accent-secondary),
    var(--color-accent-primary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 3s linear infinite;
}


/* ─── Misc Utilities ───────────────────────────────────────── */
.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;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.mx-auto { margin-inline: auto; }
