/* ==================================================
  COLOR SCHEME & THEMES
  ================================================== */
:root {
  color-scheme: light dark;

  /* Light mode (system light, or fallback) */
  --bg: #d5d5d5;
  --bg-200: #F5F5F5;
  --bg-300: #cbcbcb;

  --text: #000000;
  --text-200: #333333;

  --hero-text: #FFFFFF;
  --hero-text-sub: rgba(255, 255, 255, 0.85);

  --menu-bg: #404040;
  --menu-border: #292929;
  --menu-text: #FFFFFF;
  --menu-text-inactive: #e1e1e1;
  --menu-text-active: var(--accent-300); /* highlight color */

  --text-on-primary: #FFFFFF;
  --text-on-banner: #FFFFFF;

  --btn-primary: #FF5733;
  --btn-primary-light: #f1885f;
  --btn-primary-dark: #ff713f;

  --link: #0072CE;
  
  --accent-200: #2a83b4;
  --accent-300: #d0ffff;

  --primary-soft-10: rgba(255, 87, 51, 0.10);
  --primary-soft-12: rgba(255, 87, 51, 0.12);
  --accent-soft-10: rgba(46, 134, 171, 0.10);
  --accent-soft-12: rgba(46, 134, 171, 0.12);

  --banner-bg: #0072CE;
  --banner-bg-dark: #0056a0;

  --promo-btn: #FF5733;
  --promo-btn-hover: #d83c19;
}

/* Dark mode (when system is dark) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1A;
    --bg-200: #292929;
    --bg-300: #404040;

    --text: #FFFFFF;
    --text-200: #E0E0E0;
  }
}

/* --------------------------------------------------
  Base theme variables (Orange)
  -------------------------------------------------- */
:root[data-theme="orange"] {
  /* primary: orange, accent: blue */
  --primary: #FF5733;
  --primary-200: #f1885f;
  --primary-300: #ff713f;
}

/* --------------------------------------------------
  Blue / Gray theme
  -------------------------------------------------- */
:root[data-theme="blue"] {
  /* primary: blue, accent: gray */
  --primary: #0072CE;
  --primary-200: #5CA0FF;
  --primary-300: #0079db;
}

/* ==================================================
  RESET & BASE STYLES
  ================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Make images shrink nicely on mobile */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

main {
  flex: 1;
}

section {
  padding: 2.5rem 0;
}

/* Headings */
h1, h2, h3 {
  font-weight: 700;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.25rem;
}

/* Paragraph spacing */
p + p {
  margin-top: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Lists */
ul {
  margin-left: 1.25rem;
}

/* ==================================================
  HEADER & NAVIGATION
  ================================================== */

header {
  background: var(--menu-bg);
  border-bottom: 1px solid var(--menu-border);
  padding: 0.5rem 0;
}

header .logo img {
  height: 80px;
  width: auto;
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* --------------------------------------------------
  Hamburger button (mobile)
  -------------------------------------------------- */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 32px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 80%;
  height: 3px;
  background: var(--menu-text);
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center center;
}

/* Mobile nav: hidden but ready to slide down */
.nav-links {
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  background: var(--menu-bg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.9rem;
  z-index: 20;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.nav-links.open {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--menu-text-inactive);
}

.nav-links a.active {
  color: var(--menu-text-active);
  font-weight: 600;
  position: relative;
}

/* Animate hamburger into X when open */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Desktop layout */
@media (min-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;

    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
  }
}

/* ==================================================
  HERO SECTION
  ================================================== */
.hero {
  position: relative;
  min-height: 60vh;
  color: var(--hero-text);
  overflow: hidden;
}

/* --------------------------------------------------
  Hero background image
  -------------------------------------------------- */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* --------------------------------------------------
  Dark gradient overlay (hero)
  -------------------------------------------------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

/* --------------------------------------------------
  Hero content overlay
  -------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  max-width: 32rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--hero-text-sub);
  margin-bottom: 1.5rem;
}

/* ==================================================
  BUTTONS
  ================================================== */

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--btn-primary), var(--btn-primary-dark));
  color: var(--text-on-primary);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
  width: max-content
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--btn-primary-light), var(--btn-primary));
  color: var(--text-on-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* ==================================================
  FOOTER
  ================================================== */

.footer {
  background: var(--menu-bg);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--menu-text-inactive);
  text-align: center;
  border-top: 1px solid var(--bg-200);
}

/* ==================================================
  UTILITIES & HELPERS
  ================================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* --------------------------------------------------
  Responsive grid layouts
  -------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Basic card style */
.card {
  background: var(--bg-200);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--bg-300);
}

/* ==================================================
  DESKTOP MEDIA QUERIES
  ================================================== */

@media (min-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 1.25rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero-content {
    padding: 4rem 0;
  }

}

/* ==================================================
  SECTION IMAGE STYLING
  ================================================== */
   
.img-block {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--bg-200);
  margin-bottom: 1.5rem;
}

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Default height for section images */
section .img-block {
  max-height: 320px;
}

/* Soft gradient overlay for depth */
.img-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.35)
  );
  pointer-events: none;
}

/* ==================================================
  BENEFIT GRID
  ================================================== */

.benefit-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.benefit-item {
  background: var(--bg-200);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--bg-300);
}

/* Benefit card top image */
.benefit-item .img-block {
  margin: -1.25rem -1.25rem 1rem;
  border-radius: 1rem 1rem 0 0;
  max-height: 200px;
}

/* --------------------------------------------------
  Centered images
  -------------------------------------------------- */
.img-block.center-img {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* ==================================================
  SPLIT SECTIONS (PROBLEM / SOLUTION)
  ================================================== */
.section-split__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-split__media,
.section-split__content {
  flex: 1;
}

.section-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Desktop: side-by-side */
@media (min-width: 768px) {
  .section-split__inner {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .section-split--reverse .section-split__media {
    order: 2;
  }

  .section-split--reverse .section-split__content {
    order: 1;
  }
}

/* ==================================================
  TESTIMONIAL GRID
  ================================================== */

.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  background: var(--bg-200);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bg-300);
  font-style: italic;
  color: var(--text-200);
}

.testimonial-name {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* ==================================================
  COACH PAGE STYLES
  ================================================== */
.coach-hero {
  padding-bottom: 0rem;
}


.coach-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .coach-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.coach-card {
  background: var(--bg-200);
  border: 1px solid var(--bg-300);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.coach-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
}

.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Coach card heading */
.coach-card h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.coach-role {
  color: var(--accent-200);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Call-to-action block */
.coach-cta {
  margin-top: 3rem;
}

/* LegitFit branding */
.lf-injected {
  display: none !important;
}

/* ==================================================
  APX SECTION OVERRIDES
  ================================================== */
.apx-partner .img-block {
  max-height: none;
  background: transparent;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  position: static;
}

/* Remove dark gradient overlay */
.apx-partner .img-block::after {
  content: none;
}

/* APX logo card styling */
.apx-logo-wrapper {
  background: #FFFFFF;
  padding: 16px 20px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.apx-logo-wrapper img {
  display: block;
  max-width: 260px;
  height: auto;
}

/* ==================================================
  PRELAUNCH BANNER
  ================================================== */
.prelaunch-banner{
  position: relative;
  overflow: hidden;
  isolation: isolate;

  background: var(--banner-bg);
  color: var(--text-on-banner);
  font-weight: 600;
  font-size: 0.95rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -12px 24px rgba(0,0,0,0.22);
}

/* Animated overlay effect */
.prelaunch-banner::before{
  content:"";
  position:absolute;
  inset:-35%;
  z-index:0;
  pointer-events:none;

  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.12) 0%,
      rgba(255,255,255,0.06) 20%,
      rgba(0,0,0,0.08) 50%,
      rgba(255,255,255,0.05) 75%,
      rgba(0,0,0,0.12) 100%
    ),
    linear-gradient(115deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.10) 38%,
      rgb(255, 255, 255) 50%,
      rgba(255,255,255,0.10) 62%,
      rgba(255,255,255,0) 100%
    );

  mix-blend-mode: overlay;
  opacity: 0.9;
  background-size: 220% 100%, 220% 100%;
  background-position: 0% 0%, 0% 0%;
  animation: bannerWaveShine 4s ease-in-out infinite;
  will-change: background-position, transform;
}

/* Banner content wrapper */
.prelaunch-banner__inner{
  position: relative;
  z-index: 1;

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 1rem;
  padding: 0.7rem 0;
  text-align:center;
}

/* Banner button */
.banner-btn{
  background: var(--promo-btn);
  color: var(--text-on-banner);
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}
.banner-btn:hover{
  background: var(--promo-btn-hover);
  transform: translateY(-1px);
}

/* Banner close button */
.banner-close{
  position:absolute;
  top:50%;
  right:0.75rem;
  transform: translateY(-50%);
  background:transparent;
  border:0;
  color: var(--text-on-banner);
  font-size: 1.2rem;
  cursor:pointer;
  line-height:1;
}

@keyframes bannerWaveShine{
  0%   { background-position: 0% 0%,  140% 0%; }
  50%  { background-position: 100% 0%,  40% 0%; }
  100% { background-position: 0% 0%, -60% 0%; }
}

/* --------------------------------------------------
  Reduced motion accessibility
  -------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .prelaunch-banner::before{ animation:none; opacity:0.25; }
}

/* ==================================================
  MOBILE / RESPONSIVE TWEAKS
  ================================================== */
@media (max-width: 900px){
  .prelaunch-banner__inner{
    flex-direction: column;
    padding: 0.85rem 0.75rem 0.7rem;
  }
  .banner-btn{ width:100%; max-width:220px; }
  .banner-close{
    top:0.55rem;
    right:0.75rem;
    transform:none;
  }

  .nav-links a.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 3px;
    background: var(--menu-text-active);
    border-radius: 2px;
  }

}

/* ==================================================
  SCHEDULE BADGES
  ================================================== */
.badge{
  display:inline-block;
  margin-left:.5rem;
  padding:.2rem .6rem;
  border-radius:999px;
  font-size:.8em;
  line-height:1.4;
  background: rgba(0,0,0,.06);
}
.muted{ opacity:.8; }

/* ==================================================
  SCHEDULE PAGE STYLES
  ================================================== */
.session-points {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.session-points li + li {
  margin-top: 0.25rem;
}

/* ==================================================
  PRELAUNCH PAGE STYLES
  ================================================== */

/* Prelaunch flyer image */
.prelaunch-hero__image {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.prelaunch-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 75vh;
  border-radius: 12px;
}

Step button styling
.step-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Small screen button layout */
@media (max-width: 640px) {
  .step-btn {
    display: inline-block;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .how-it-works-list {
    padding-left: 1.5rem;
  }
}

/* ===== ============================================
  ABOUT US PAGE STYLES
  ================================================== */
.about-hero-img {
  max-height: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 1rem;
  position: static !important;
  padding: 0 !important;
}

.about-hero-img::after {
  content: none !important; /* remove gradient overlay */
}

.about-hero-img img {
  display: block;
  max-width: 300px;     /* adjust for your preferred size */
  height: auto;
  margin: 0 auto;       /* center the logo */
  object-fit: contain;
}