/* ============================================================
   JOHNNY.FIT — Personal Trainer Portfolio
   Palette: near-black charcoal, cool white, electric volt lime
   Type:    Anton (display) + Inter (body)
   ============================================================ */

:root {
  --ink: #101014;
  --ink-2: #17171d;
  --ink-3: #202028;
  --paper: #f5f7f2;
  --paper-2: #eaeee4;
  --gold: #c8f228;
  --gold-hot: #daff54;
  /* darker companion for accent text on light backgrounds */
  --accent-ink: #55700d;
  --text: #26262c;
  --text-dim: #6d6d78;
  --text-light: #c9c9d2;
  --radius: 14px;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.section--dark {
  background: var(--ink);
  color: var(--text-light);
}

/* ---------- Typography ---------- */

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

.section--dark .section__eyebrow { color: var(--gold); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.section--dark .section__title,
.section__title--light { color: #fff; }

.section__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-ink);
}

.section--dark .section__title em,
.section__title--light em {
  -webkit-text-stroke-color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  background: var(--gold-hot);
  box-shadow: 0 10px 30px rgba(200, 242, 40, 0.35);
}

.btn--ghost {
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(128, 128, 128, 0.12); }

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { box-shadow: 0 10px 30px rgba(16, 16, 20, 0.35); }

.btn--full { width: 100%; text-align: center; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav--solid {
  background: rgba(16, 16, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

.nav__logo-dot { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav__links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav__links a:hover { opacity: 1; color: var(--gold-hot); }

.nav__links .nav__cta {
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  opacity: 1;
}
.nav__links .nav__cta:hover { background: var(--gold-hot); color: var(--ink); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__burger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 12, 16, 0.92) 20%, rgba(12, 12, 16, 0.55) 55%, rgba(12, 12, 16, 0.25) 100%),
    linear-gradient(to top, rgba(12, 12, 16, 0.85), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1160px, 92vw);
  margin-inline: auto;
  padding: 8rem 0 6rem;
}

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-hot);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.8rem;
}

.hero__title-accent {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--gold);
}

.hero__sub {
  max-width: 34rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.4rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  z-index: 1;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--gold);
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.marquee__track i {
  font-style: normal;
  color: var(--ink);
  opacity: 0.5;
  font-size: 0.7rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */

.stats {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__num,
.stat__plus {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__media { position: relative; }

.about__img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: 24px 24px 0 -6px var(--gold), 0 24px 60px rgba(16, 16, 20, 0.25);
}

.about__badge {
  position: absolute;
  bottom: -1.4rem;
  left: -1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(16, 16, 20, 0.35);
}

.about__badge strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.about__badge span { font-size: 0.75rem; opacity: 0.75; }

.about__text p + p { margin-top: 1rem; }

.about__points {
  list-style: none;
  margin: 1.8rem 0 2.2rem;
  display: grid;
  gap: 0.7rem;
}

.about__points li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-weight: 500;
}

.about__points span { color: var(--accent-ink); font-size: 0.7rem; }

/* ---------- Programs ---------- */

.programs__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.program {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.program:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 242, 40, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.program__img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.program__body { padding: 1.8rem 1.9rem 2rem; position: relative; }

.program__num {
  position: absolute;
  top: -1.6rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(200, 242, 40, 0.65);
  line-height: 1;
}

.program__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.7rem;
}

.program__body p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1.2rem; }

.program__link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.program__link:hover { color: var(--gold-hot); }

/* ---------- Athlete ---------- */

.athlete {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.athlete__media { position: absolute; inset: 0; }

.athlete__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12, 12, 16, 0.94) 30%, rgba(12, 12, 16, 0.6) 70%, rgba(12, 12, 16, 0.35));
}

.athlete__content { position: relative; z-index: 1; }

.section__eyebrow--gold { color: var(--gold-hot); }

.athlete__lead {
  max-width: 36rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
}

.athlete__cards {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.athlete__card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 200px;
}

.athlete__card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--gold-hot);
}

.athlete__card span { font-size: 0.82rem; opacity: 0.8; }

/* ---------- Results: before/after transformations ---------- */

.transforms__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.transform {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.transform:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 242, 40, 0.5);
}

.transform__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.transform__shot { position: relative; }

.transform__shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.transform__shot span {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 16, 20, 0.75);
  color: rgba(255, 255, 255, 0.85);
}

.transform__shot--after span {
  background: var(--gold);
  color: var(--ink);
}

.transform figcaption {
  padding: 1.1rem 1.3rem 1.3rem;
}

.transform figcaption strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.transform figcaption span {
  font-size: 0.84rem;
  color: var(--gold);
}

/* ---------- Results / quotes ---------- */

.results__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.quote {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
}

.quote blockquote {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.quote figcaption strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.quote figcaption span {
  font-size: 0.82rem;
  color: var(--gold);
}

/* ---------- Pricing ---------- */

.pricing { background: var(--paper-2); }

.pricing__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.plan {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.4rem 2.1rem;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  box-shadow: 0 10px 34px rgba(16, 16, 20, 0.08);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(16, 16, 20, 0.14); }

.plan--featured {
  background: var(--ink);
  color: var(--text-light);
  border-color: var(--gold);
  transform: scale(1.03);
}

.plan--featured:hover { transform: scale(1.03) translateY(-6px); }

.plan__tag {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.plan--featured h3 { color: #fff; }

.plan__desc { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 1.2rem; }

.plan__price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 1.6rem;
}

.plan--featured .plan__price { color: var(--gold); }

.plan__price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 0.3rem;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex: 1;
}

.plan ul li {
  font-size: 0.93rem;
  padding-left: 1.4rem;
  position: relative;
}

.plan ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
  font-size: 0.6rem;
  top: 0.35em;
}

.plan--featured ul li::before { color: var(--gold); }

.pricing__note {
  margin-top: 2.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- CTA banner ---------- */

.banner {
  background: var(--gold);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.banner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  color: var(--ink);
}

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.contact__list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact__list span { color: var(--text-light); }

.contact__form {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  display: grid;
  gap: 1.2rem;
}

.contact__form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { border-color: var(--gold); }

.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

.contact__form-note {
  font-size: 0.85rem;
  color: var(--gold-hot);
  text-align: center;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */

.footer {
  background: #0b0b0e;
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
  text-align: center;
}

.footer__inner { display: grid; gap: 0.6rem; justify-items: center; }

.footer p { font-size: 0.9rem; }

.footer__copy { font-size: 0.78rem; opacity: 0.7; }

/* ---------- Reveal animation ---------- */

/* Only hide reveal elements when JS is running (html.js), so the page
   still renders fully without JavaScript. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .programs__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .transforms__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .banner__inner { justify-content: center; text-align: center; }
}

@media (max-width: 760px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }

  .nav__links.is-open { transform: translateX(0); }

  .nav__links a { font-size: 1.15rem; }
}
