/**
 * ALPHAWEAR - Main Stylesheet
 * Design System, Variables, Reset, and Global Styles
 */

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

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - STRICT */
  --color-bg: #0A0A0A;
  --color-surface: #111111;
  --color-border: #1E1E1E;
  --color-text: #F5F5F5;
  --color-muted: #888888;
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #888888;
  --color-accent: #E8E0D5;
  --color-cta: #FFFFFF;
  --color-sale: #C0392B;
  --color-success: #27AE60;
  --overlay-strong: rgba(10, 10, 10, 0.8);
  --overlay-medium: rgba(10, 10, 10, 0.6);
  --overlay-soft: rgba(10, 10, 10, 0.4);
  --overlay-light: rgba(10, 10, 10, 0.3);
  --overlay-subtle: rgba(10, 10, 10, 0.2);
  --overlay-fade: rgba(10, 10, 10, 0);
  --overlay-hero-top: rgba(10, 10, 10, 0.15);
  --overlay-hero-bottom: rgba(10, 10, 10, 0.75);
  
  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  
  /* Font Sizes */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 48px;
  --text-4xl: 64px;
  --text-5xl: 96px;
  
  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;
  
  /* Line Heights */
  --leading-tight: 0.9;
  --leading-snug: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.15em;
  --tracking-widest: 0.25em;
  
  /* Spacing Scale (8px base) */
  --space-1: 8px;
  --space-0: 4px;
  --space-0-75: 6px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  
  /* Layout */
  --container-max: 1440px;
  --container-padding: 40px;
  --container-padding-mobile: 20px;
  
  /* Grid */
  --grid-columns: 12;
  --grid-gutter: 20px;
  --grid-gutter-mobile: 16px;
  
  /* Border Radius */
  --radius-none: 0px;
  --radius-sm: 2px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* Aspect Ratios */
  --ratio-portrait: 3 / 4;
  --ratio-landscape: 16 / 9;
  --ratio-square: 1 / 1;
}

/* ============================================
   CSS RESET (Modern Normalize)
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  line-height: 1;
}
.site-logo__alpha {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #F5F5F5;
}
.site-logo__wear {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F5F5F5;
  margin-left: 6px;
}

/* Remove default button styles */
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

button:hover {
  opacity: 0.7;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Remove default input styles */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Image defaults */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Table defaults */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-none);
}

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

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-tight);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-md);
}

/* Body text */
p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #F5F5F5;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #F5F5F5;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F5F5F5;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #888888;
}

.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888888;
  margin-bottom: 16px;
}

.btn-primary {
  background: #F5F5F5;
  color: #0A0A0A;
  border: none;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  background: #E8E0D5;
}

.btn-secondary {
  background: transparent;
  color: #F5F5F5;
  border: 1px solid #F5F5F5;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: #F5F5F5;
  color: #0A0A0A;
}

.btn-ghost {
  background: transparent;
  color: #888888;
  border: 1px solid #1E1E1E;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: #F5F5F5;
  color: #F5F5F5;
}

input,
textarea,
select {
  background: #111111;
  border: 1px solid #1E1E1E;
  color: #F5F5F5;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border-radius: 0;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #F5F5F5;
  outline: none;
}

/* Labels and tags */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* Price styling */
.price {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

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

/* 12-Column Grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gutter);
}

/* Section spacing */
.section {
  padding: var(--space-7) 0;
}

.section-sm {
  padding: var(--space-5) 0;
}

.section-lg {
  padding: var(--space-8) 0;
}

/* Flex utilities */
.flex {
  display: flex;
}

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

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

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

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

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ============================================
   HERO SECTION (Video Background)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-7);
}

.hero__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--overlay-hero-top) 0%,
    var(--overlay-fade) 40%,
    var(--overlay-hero-bottom) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-padding);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  max-width: 900px;
}

/* ============================================
   TICKER / MARQUEE
   ============================================ */
.ticker {
  width: 100%;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.ticker__item {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: 0 var(--space-4);
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   VISUAL UTILITIES
   ============================================ */

/* Aspect ratio containers */
.aspect-portrait {
  aspect-ratio: var(--ratio-portrait);
}

.aspect-landscape {
  aspect-ratio: var(--ratio-landscape);
}

.aspect-square {
  aspect-ratio: var(--ratio-square);
}

/* Image placeholders */
.img-placeholder {
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* Border utilities */
.border-t { border-top: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }
.border-l { border-left: 1px solid var(--color-border); }
.border-r { border-right: 1px solid var(--color-border); }
.border { border: 1px solid var(--color-border); }

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* 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;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-3);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile: < 768px */
@media (max-width: 767px) {
  :root {
    --container-padding: var(--container-padding-mobile);
    --grid-gutter: var(--grid-gutter-mobile);
  }
  
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  
  .section {
    padding: var(--space-6) 0;
  }
  
  .hero {
    padding-bottom: var(--space-5);
  }
  
  .hero__content {
    padding: 0 var(--container-padding);
  }
  
  .hero__video {
    object-position: center center;
  }
  
  .grid-12 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --container-padding: 32px;
  }
  
  .grid-12 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Desktop: 1024px - 1440px */
@media (min-width: 1024px) {
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Wide: > 1440px */
@media (min-width: 1441px) {
  :root {
    --container-padding: 64px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .no-print {
    display: none !important;
  }
}

img[src=""] , img:not([src]) {
  visibility: hidden;
}

.editorial-image-wrap {
  background-color: #111111;
  overflow: hidden;
}
