/* ============================================================
   APEX CONNECTIONS — styles.css
   Edit colours and fonts here. Everything reads from these
   variables, so one change updates the whole site.
   ============================================================ */

:root {
  /* Colours */
  --bg: #0c0d10;            /* page background */
  --bg-panel: #121419;      /* alternating section background */
  --surface: #1a1d23;       /* cards */
  --surface-2: #22262e;     /* raised cards / hover */
  --line: rgba(244, 242, 237, 0.1);
  --text: #f4f2ed;          /* main text */
  --text-muted: #a3a8b1;    /* secondary text */
  --accent: #1dd3c0;        /* teal — the Apex accent */
  --accent-strong: #4ae3d3;
  --accent-ink: #06201c;    /* text on accent buttons */

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 14px;
  --nav-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }
.accent { color: var(--accent); }

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 1.2rem;
}
.section__lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46rem;
  margin-bottom: 2.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-strong); }
.btn--ghost { border-color: rgba(244, 242, 237, 0.35); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(244, 242, 237, 0.07); }
.btn--large { padding: 0.95rem 2.2rem; font-size: 1.02rem; }
.btn--small { padding: 0.5rem 1.35rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.nav__mark { width: 34px; height: 34px; }
.stroke-accent { stroke: var(--accent); }
.fill-accent { fill: var(--accent); }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.nav__wordmark em {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-top: 2px;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-color: #101216; /* fallback if image fails to load */
  background-image: url("../assets/hero.jpg"); /* Option 14 — dark gym interior, no people */
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 13, 16, 0.95) 0%, rgba(12, 13, 16, 0.82) 42%, rgba(12, 13, 16, 0.45) 75%, rgba(12, 13, 16, 0.6) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}
.hero__content { position: relative; z-index: 1; padding: calc(var(--nav-h) + 4rem) 0 5rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  max-width: 14ch;
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 36rem;
  font-size: 1.13rem;
  color: rgba(244, 242, 237, 0.85);
}
.hero__ctas { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__props {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.2rem;
}
.hero__props li {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__props li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 0.95rem 0;
}
.marquee__track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6.5rem 0; }
.section--panel { background: var(--bg-panel); border-block: 1px solid var(--line); }

/* ---------- Problem ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.problem__col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
}
.problem__col--new { border-color: rgba(29, 211, 192, 0.4); background: linear-gradient(160deg, rgba(29, 211, 192, 0.09), rgba(29, 211, 192, 0.02) 55%), var(--surface); }
.problem__col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}
.problem__col--new h3 { color: var(--accent); }
.list li {
  padding: 0.55rem 0 0.55rem 2rem;
  position: relative;
  color: var(--text-muted);
}
.list--tick li { color: var(--text); }
.list li::before {
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-weight: 700;
}
.list--cross li::before { content: "\2715"; color: #6f7580; font-size: 0.85em; top: 0.72rem; }
.list--tick li::before { content: "\2713"; color: var(--accent); }

/* ---------- How it works ---------- */
.how__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}
.how__image {
  margin-top: 2.4rem;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius);
  background-color: var(--surface);
  background-image:
    linear-gradient(to top, rgba(12, 13, 16, 0.55), rgba(12, 13, 16, 0.05) 55%),
    url("../assets/how-it-works.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.how__steps { display: grid; gap: 1.1rem; }
.step {
  display: flex;
  gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.9rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.step:hover { border-color: rgba(29, 211, 192, 0.5); background: var(--surface-2); }
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1.1;
  flex: none;
}
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.05rem 1.2rem;
  font-weight: 500;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cat:hover { border-color: rgba(29, 211, 192, 0.55); transform: translateY(-2px); }
.cat span {
  width: 9px; height: 9px; flex: none;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.categories__note {
  margin-top: 2.4rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  max-width: 44rem;
}

/* ---------- Who it's for ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.who-card {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--surface); /* fallback */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.who-card:hover { transform: translateY(-4px); border-color: rgba(29, 211, 192, 0.5); }
.who-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 14, 0.92) 12%, rgba(10, 11, 14, 0.35) 55%, rgba(10, 11, 14, 0.15));
  transition: background 0.3s ease;
}
.who-card__body { position: relative; padding: 1.7rem 1.8rem; }
.who-card__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}
.who-card__body p { color: rgba(244, 242, 237, 0.78); font-size: 0.95rem; }

/* Replace these URLs with your own photography when ready. */
.who-card--strength  { background-image: url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?q=80&w=1200&auto=format&fit=crop"); }
.who-card--boxing    { background-image: url("https://images.unsplash.com/photo-1549719386-74dfcbf7dbed?q=80&w=1200&auto=format&fit=crop"); }
.who-card--running   { background-image: url("https://images.unsplash.com/photo-1552674605-db6ffd4facb5?q=80&w=1200&auto=format&fit=crop"); }
.who-card--functional{ background-image: url("https://images.unsplash.com/photo-1571902943202-507ec2618e8f?q=80&w=1200&auto=format&fit=crop"); }
.who-card--recovery  { background-image: url("https://images.unsplash.com/photo-1518611012118-696072aa579a?q=80&w=1200&auto=format&fit=crop"); }
.who-card--wellness  { background-image: url("https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?q=80&w=1200&auto=format&fit=crop"); }

/* ---------- Fit-first band ---------- */
.band {
  position: relative;
  padding: 7.5rem 0;
  overflow: hidden;
  text-align: center;
}
.band__bg {
  position: absolute; inset: 0;
  background-color: #101216;
  background-image: url("../assets/band.jpg");
  background-size: cover;
  background-position: center 25%;
  background-attachment: fixed;
}
.band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,13,16,0.55) 0%, rgba(12,13,16,0.72) 55%, rgba(12,13,16,0.92) 100%);
}
.band__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.band__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 1.4rem;
}
.band__text {
  max-width: 40rem;
  color: rgba(244, 242, 237, 0.82);
  font-size: 1.1rem;
  margin-bottom: 2.4rem;
}

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 0.9rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq__item[open] { border-color: rgba(29, 211, 192, 0.5); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 1.7rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  width: 16px; height: 16px; flex: none;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  background: var(--accent);
  transition: transform 0.25s ease;
}
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); }
.faq__answer { padding: 0 1.7rem 1.5rem; color: var(--text-muted); }

/* ---------- Apply ---------- */
.apply__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: start;
}
.apply__points { margin: 0.4rem 0 2rem; display: grid; gap: 0.7rem; }
.apply__points li {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 500;
}
.apply__points li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
}
.apply__alt { color: var(--text-muted); font-size: 0.98rem; }
.apply__alt a { color: var(--accent); font-weight: 600; }
.apply__alt a:hover { text-decoration: underline; }

.apply__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.field { grid-column: 1 / -1; display: grid; gap: 0.45rem; }
.field--half { grid-column: auto / span 1; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.85rem 1rem;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f7580; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field select:invalid { color: #6f7580; }
.field input.is-invalid, .field select.is-invalid { border-color: #d06a5a; }
.apply__form .btn { grid-column: 1 / -1; margin-top: 0.4rem; }
.apply__status { grid-column: 1 / -1; font-size: 0.95rem; color: var(--accent); min-height: 1.4em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2.5rem;
}
.footer__brand p {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 26rem;
}
.footer__nav { display: grid; gap: 0.7rem; align-content: start; }
.footer__nav a, .footer__contact a { color: var(--text-muted); transition: color 0.2s ease; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact { display: grid; gap: 0.7rem; align-content: start; }
.footer__contact a { font-weight: 600; color: var(--text); }
.footer__contact p { color: var(--text-muted); font-size: 0.95rem; }
.footer__legal {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.6rem;
  color: #6f7580;
  font-size: 0.88rem;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .band__bg { background-attachment: scroll; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .how__layout, .apply__layout { grid-template-columns: 1fr; gap: 3rem; }
  .how__image { max-height: 380px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .problem__grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: 1fr; }
  .who-card { min-height: 260px; }
  .footer__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .apply__form { padding: 1.6rem; grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .band__bg { background-attachment: scroll; }

  /* Mobile nav */
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 13, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 4% 1.6rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 0.9rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 1.2rem; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- For brands ---------- */
.brands { background: var(--bg-panel); border-top: 1px solid var(--line); }
.brands__inner { display: flex; justify-content: space-between; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.brands .section__lead { margin-bottom: 0; max-width: 38rem; }
.footer__legal a { color: var(--text-muted); }
.footer__legal a:hover { color: var(--accent); }
