/* ============================================
   BASE.CSS — Grind Health Club
   Raw industrial CT grind aesthetic
   ============================================ */

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

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --color-black:      #0a0a0a;
  --color-dark:       #111114;
  --color-dark-2:     #18181c;
  --color-dark-3:     #1e1e24;
  --color-dark-4:     #252530;
  --color-steel:      #2a2a35;
  --color-steel-mid:  #3d3d4a;
  --color-steel-light:#8a8f96;
  --color-muted:      #5a5a6a;
  --color-border:     #2e2e3a;
  --color-border-light:#404050;

  --color-orange:     #ff4d00;
  --color-orange-hot: #ff6a1a;
  --color-orange-dim: #cc3d00;
  --color-orange-glow:rgba(255,77,0,0.18);
  --color-orange-bg:  rgba(255,77,0,0.08);

  --color-text:       #f0f0f4;
  --color-text-muted: #9090a0;
  --color-text-faint: #505060;
  --color-white:      #ffffff;

  /* Fonts */
  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --text-sm:   clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-xl:   clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  --text-2xl:  clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --text-3xl:  clamp(2.8rem, 1rem + 6vw, 6rem);
  --text-hero: clamp(4rem, 1rem + 10vw, 10rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Shadows */
  --shadow-orange: 0 0 20px rgba(255,77,0,0.25);
  --shadow-orange-strong: 0 0 40px rgba(255,77,0,0.4);
  --shadow-dark: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.4);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content Widths */
  --content-narrow:  680px;
  --content-default: 1000px;
  --content-wide:    1260px;
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body { overflow-x: hidden; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-black);
  line-height: 1.6;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--color-white);
}

p, li { max-width: 68ch; }
a { color: var(--color-orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-orange-hot); }

::selection { background: var(--color-orange); color: #fff; }
:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--content-default); }

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
}
.section--sm { padding-block: clamp(var(--space-8), 5vw, var(--space-16)); }

/* --- Labels & Headings --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-5);
}
.section-title span { color: var(--color-orange); }

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--color-orange);
  color: #fff;
  border-color: var(--color-orange);
  box-shadow: 0 4px 20px rgba(255,77,0,0.35);
}
.btn-primary:hover {
  background: var(--color-orange-hot);
  border-color: var(--color-orange-hot);
  box-shadow: var(--shadow-orange-strong);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-orange);
  border-color: var(--color-orange);
}
.btn-outline:hover {
  background: var(--color-orange-bg);
  box-shadow: var(--shadow-orange);
  color: var(--color-orange-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}
.btn-ghost:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* --- Cards --- */
.card {
  background: var(--color-dark-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 1px var(--color-orange), var(--shadow-orange);
  transform: translateY(-3px);
}

/* --- Divider --- */
.divider-orange {
  width: 48px;
  height: 3px;
  background: var(--color-orange);
  margin-block: var(--space-5);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-orange-bg);
  color: var(--color-orange);
  border: 1px solid rgba(255,77,0,0.3);
}

/* --- Img placeholder --- */
.img-placeholder {
  width: 100%;
  background: var(--color-dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Orange stripe accent --- */
.stripe {
  display: inline-block;
  position: relative;
}
.stripe::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-orange);
}

/* --- Page Hero Base --- */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 900;
  margin-bottom: var(--space-4);
}

/* --- Form Base --- */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-dark-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255,77,0,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-faint); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select option { background: var(--color-dark-3); }

/* --- Form Success --- */
.form-success {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}
.form-success h3 {
  font-size: var(--text-2xl);
  color: var(--color-orange);
  margin-bottom: var(--space-4);
}
.form-success p { color: var(--color-text-muted); max-width: 40ch; margin: 0 auto; }

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

/* --- AOS fallback --- */
/* If AOS doesn't load, ensure content is still visible after 1.5s */
