:root {
  --bg: #1A1A1A;
  --bg-200: #292929;
  --bg-300: #404040;

  --primary: #FF5733;
  --primary-200: #f1885f;
  --primary-300: #ff713f;

  --accent: #2E86AB;
  --accent-200: #6fb8df;
  --accent-300: #d0ffff;

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

/* ---------- RESET / BASE ---------- */

*,
*::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(--accent-200);
  text-decoration: none;
}

a:hover {
  color: var(--accent-300);
}

/* ---------- 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 / NAV ---------- */

header {
  background: var(--bg-300);
  border-bottom: 1px solid var(--bg-200);
  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 - ALWAYS VISIBLE ON 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(--text);
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center center;   /* <-- THE FIX */
}

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

  /* drawer behavior */
  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;       /* large enough to fit all links */
  opacity: 1;
  transform: translateY(0);
}

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

.nav-links a.active {
  color: var(--accent-300);
}

/* 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 ---------- */

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

/* full-bleed hero 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 so white text is readable */
.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;
}

/* overlayed text + button */
.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(--text-200);
  margin-bottom: 1.5rem;
}


/* ---------- BUTTONS ---------- */

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-300));
  color: var(--text);
  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(--primary-200), var(--primary-300));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* ---------- FOOTER ---------- */

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

/* ---------- UTILITIES ---------- */

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

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

/* Simple responsive grid helper (for coaches, cards, etc.) */
.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);
}

/* ---------- MEDIA QUERIES (DESKTOP UP) ---------- */

@media (min-width: 768px) {
  .navbar {
    flex-direction: row;           /* row on tablet/desktop */
    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;
}

/* ============================================
   OPTIONAL CENTERED IMAGES (social, FAQ, CTA)
   ============================================ */

.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;
}

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

/* CTA block */
.coach-cta {
  margin-top: 3rem;
}

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

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

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

/* Prelaunch Banner */
.prelaunch-banner {
  background: var(--primary);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.prelaunch-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 0;
  text-align: center;
}

/* Button */
.banner-btn {
  background: var(--accent);
  color: var(--text);
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  box-shadow: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.banner-btn:hover {
  background: var(--accent-200);
  transform: translateY(-1px);
}

/* Close X in top-right of the banner */
.banner-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .prelaunch-banner__inner {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.75rem 0.6rem;
  }

  .prelaunch-banner__inner span {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .banner-btn {
    width: 100%;
    max-width: 220px;
  }

  .banner-close {
    top: 0.55rem;
    right: 0.75rem;
    transform: none;
  }
}