/* ============================================================
   LONGEVITY ATHLETICS — MAIN.CSS
   Global styles, design tokens, resets, utilities
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --accent:        #00AFEF;
  --accent-dark:   #0099d4;
  --dark-1:        #0d0d0d;
  --dark-2:        #111111;
  --dark-3:        #1a1a1a;
  --dark-4:        #222222;
  --white:         #ffffff;
  --body-text:     #333333;
  --light-gray:    #f5f5f5;
  --mid-gray:      #888888;
  --border-color:  #e0e0e0;

  /* Typography */
  --font-heading:  'Outfit', sans-serif;
  --font-body:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --section-pad-y: 80px;
  --section-pad-x: 20px;
  --container-max: 1200px;

  /* Border radius */
  --radius-btn:    4px;
  --radius-card:   8px;

  /* Shadows */
  --shadow-card:   0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-btn:    0 4px 12px rgba(0, 175, 239, 0.35);

  /* Transitions */
  --transition:    0.3s ease;
}

/* ── CSS 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);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

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

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  line-height: 1.7;
}

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

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section--dark {
  background: var(--dark-2);
  color: var(--white);
}

.section--darker {
  background: var(--dark-1);
  color: var(--white);
}

.section--mid {
  background: var(--dark-3);
  color: var(--white);
}

.section--light {
  background: var(--light-gray);
}

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

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

/* ── Button Styles ────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--dark-1);
  color: var(--white);
  border: 3px solid var(--accent);
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transform: skewX(-10deg);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  line-height: 1;
}

/* Counter-skew text spans so text stays upright */
.btn > span {
  display: inline-block;
  transform: skewX(10deg);
}

.btn:hover,
.btn:focus {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--lg {
  padding: 18px 56px;
  font-size: 1.1rem;
}

/* ── Section Headers ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title--white {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Star Rating ──────────────────────────────────────────── */
.stars {
  color: #FFD700;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ── Grid Utilities ───────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

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

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 32px;
  border-radius: 2px;
}

.divider--left {
  margin-left: 0;
}

/* ── Visually hidden (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;
}

/* ── Responsive Breakpoints ───────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 50px;
    --section-pad-x: 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad-y: 40px;
  }
}
