:root {
  --bg: #ffffff;
  --bg-warm: #fff7ed;
  --surface: #f8fafc;
  --edge: #e5e7eb;
  --fg: #0f172a;
  --muted: #64748b;
  --orange: #f97316;
  --orange-light: #fb923c;
  --green: #22c55e;
  --dark: #0f172a;
}

/* Best-effort copy deterrent — text stays unselectable, but form fields
   (calculator inputs, assessment wizard) remain fully usable. */
body {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select {
  -webkit-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* Coach photo as a faint background texture behind the About section text */
.about-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), url('../assets/about-bg.jpeg');
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
}

html {
  scroll-behavior: smooth;
}

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

  /* Auto-scrolling marquee becomes a manually scrollable row instead of animating */
  .testimonial-track {
    animation: none !important;
    transform: none !important;
    overflow-x: auto;
  }
  .testimonial-track .is-duplicate {
    display: none;
  }
}

/* Auto-scrolling testimonials marquee */
.testimonial-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: testimonial-scroll 130s linear infinite;
}
.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track {
  animation-play-state: paused;
}
@keyframes testimonial-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.testimonial-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Barlow', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--orange);
  color: #ffffff;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--orange-light);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.font-display {
  font-family: 'Barlow Condensed', sans-serif;
}

.text-gradient {
  background: linear-gradient(90deg, var(--orange) 0%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lift-on-hover {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.lift-on-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
}

.nav-blur {
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.mobile-nav {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

button,
a {
  touch-action: manipulation;
}

/* BMI gauge */
.bmi-gauge-track {
  background: linear-gradient(90deg, #0891b2 0%, #22c55e 30%, #f97316 65%, #ef4444 100%);
  border-radius: 999px;
  position: relative;
  height: 14px;
}
.bmi-gauge-needle {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 30px;
  background: var(--dark);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: left 600ms cubic-bezier(0.16, 1, 0.3, 1);
  left: 0%;
}

/* Fitness Assessment: circular score gauge */
.score-ring {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--orange)) calc(var(--pct, 0) * 1%), var(--edge) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}
.score-ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Fitness Assessment: selectable choice chips/cards */
.assessment-choice {
  border: 1px solid var(--edge);
  background: #fff;
  color: var(--fg);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.assessment-choice:hover {
  border-color: var(--orange-light);
  transform: translateY(-1px);
}
.assessment-choice.is-selected {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}
.assessment-choice.is-selected:hover {
  border-color: var(--dark);
  transform: none;
}

/* Fitness Assessment: animated progress bar fill */
.assessment-bar-fill {
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
