/* ============================================================
   THE ATHLETE'S FOOT — Global CSS
   Design: Premium Light Athletic | Novelio Technologies 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand */
  --red:          #D42B2B;
  --red-dark:     #A81E1E;
  --red-light:    #E84040;
  --red-glow:     rgba(212, 43, 43, 0.18);
  --gold:         #A07818;
  --gold-light:   #C9A84C;

  /* Backgrounds — LIGHT */
  --bg:           #F5F5F5;
  --bg-alt:       #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F0F0F0;
  --surface-3:    #E4E4E4;
  --surface-4:    #D4D4D4;

  /* Text — DARK on light bg */
  --text:         #111111;
  --text-muted:   #555555;
  --text-dim:     #888888;
  --text-faint:   #BBBBBB;

  /* Borders — DARK on light bg */
  --border:       rgba(0,0,0,0.08);
  --border-md:    rgba(0,0,0,0.13);
  --border-lg:    rgba(0,0,0,0.20);
  --border-red:   rgba(212,43,43,0.35);

  /* Functional */
  --success:      #16A34A;
  --error:        #DC2626;
  --warning:      #D97706;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Typography */
  --font-display:  'Bebas Neue', sans-serif;
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-accent:   'Playfair Display', serif;

  /* Border radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Shadows — lighter for light bg */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.14);
  --shadow-red:  0 0 40px rgba(212,43,43,0.20), 0 0 80px rgba(212,43,43,0.08);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.07), 0 8px 24px rgba(0,0,0,0.08);

  /* Z-index */
  --z-base:     1;
  --z-above:    5;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   200ms ease;
  --t-slow:   300ms ease;
  --t-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --topbar-h:  40px;
  --nav-h:     72px;
  --header-h:  112px;
  --max-w:     1320px;
  --max-w-sm:  768px;
  --max-w-md:  1024px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Custom Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── Text Selection ────────────────────────────────────────── */
::selection {
  background: var(--red);
  color: #fff;
}

/* ── Typography Scale ──────────────────────────────────────── */
.display-1 { font-family: var(--font-display); font-size: clamp(72px, 10vw, 160px); line-height: 0.95; letter-spacing: 0.02em; }
.display-2 { font-family: var(--font-display); font-size: clamp(56px, 8vw, 120px); line-height: 0.95; letter-spacing: 0.02em; }
.display-3 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 80px); line-height: 1.0; letter-spacing: 0.02em; }

h1, .h1 { font-family: var(--font-heading); font-size: clamp(32px, 4vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2, .h2 { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3, .h3 { font-family: var(--font-heading); font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; line-height: 1.3; }
h4, .h4 { font-family: var(--font-heading); font-size: clamp(16px, 2vw, 22px); font-weight: 600; line-height: 1.4; }
h5, .h5 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.5; }
h6, .h6 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 1.5; }

p { line-height: 1.7; }

.overline {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
}

.section {
  padding: var(--sp-24) 0;
}

/* Ensure section headings clear the fixed navbar on anchor nav */
.section [id] {
  scroll-margin-top: calc(var(--header-h) + var(--sp-6));
}

@media (max-width: 768px) {
  .section { padding: var(--sp-16) 0; }
}

.section-sm { padding: var(--sp-16) 0; }
.section-lg { padding: var(--sp-32) 0; }

.grid { display: grid; }
.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 { flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ── Color Utilities ───────────────────────────────────────── */
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-white  { color: #fff; }

.bg-surface  { background: var(--surface); }
.bg-surface-2{ background: var(--surface-2); }
.bg-red      { background: var(--red); }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
}

/* ── Section Header ────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--sp-12);
}

.section-header .overline {
  display: inline-block;
  margin-bottom: var(--sp-3);
}

.section-header h2 {
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 17px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin: 0 auto;
}

/* ── Red Accent Line ───────────────────────────────────────── */
.accent-line {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-red   { background: var(--red); color: #fff; }
.badge-gold  { background: var(--gold); color: #000; }
.badge-glass { background: rgba(0,0,0,0.05); color: var(--text); border: 1px solid var(--border-md); backdrop-filter: blur(8px); }
.badge-new   { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; }
.badge-sale  { background: var(--red); color: #fff; }
.badge-hot   { background: linear-gradient(135deg, #F97316, #EF4444); color: #fff; }

/* ── Responsive Helpers ────────────────────────────────────── */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

/* ── Glassmorphism ─────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.glass-strong {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-md);
}

.glass-red {
  background: rgba(212,43,43,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-red);
}

/* ── Gradient Text ─────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-red {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Noise Overlay ─────────────────────────────────────────── */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── Clip Shapes ───────────────────────────────────────────── */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.clip-diagonal-reverse {
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
}

/* ── Aspect Ratios ─────────────────────────────────────────── */
.aspect-square   { aspect-ratio: 1 / 1; }
.aspect-video    { aspect-ratio: 16 / 9; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-product  { aspect-ratio: 4 / 5; }

/* ── Object Fit ────────────────────────────────────────────── */
.obj-cover   { object-fit: cover; width: 100%; height: 100%; }
.obj-contain { object-fit: contain; width: 100%; height: 100%; }

/* ── Focus Visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Preload State ─────────────────────────────────────────── */
.preload * {
  transition: none !important;
}
