@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap");

:root {
  --primary-color: #fe724c;
  --primary-color-dark: #d6512c;
  --text-dark: #122b51;
  --text-light: #6b7d92;
  --extra-light: #f4f4f4;
  --white: #ffffff;
  --max-width: 1200px;
}

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

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

/* ================= GLOBAL ================= */
img {
  width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ================= LOGO ================= */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__primary {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.logo__primary span {
  color: var(--primary-color);
}

.logo__secondary {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ================= LAYOUT ================= */
.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.section__description {
  color: var(--text-light);
  line-height: 1.75;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* ================= BUTTONS ================= */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--primary-color);
  color: var(--white);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn--secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ================= NAVIGATION ================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  max-width: 120px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__cta {
  padding: 0.5rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
}

.nav__toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ================= HERO ================= */
.header {
  padding-top: 6rem;
  display: grid;
  gap: 3rem;
  padding-inline: 1rem;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.header::before,
.header::after {
  content: "";
  position: absolute;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 1;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  border: 6rem solid var(--extra-light);
  border-radius: 50%;
  z-index: -1;
}

.header::after {
  max-width: 80rem;
}

.header__content h1 {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1rem;
}

.header__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.header__img {
  max-width: 580px;
  width: 100%;
  margin-inline: auto;
}

.header__img img {
  border-radius: 1rem;
  object-fit: contain;
}

/* ================= RUNNING GALLERY ================= */
.workout__container {
  padding: 5rem 0;
  display: grid;
  gap: 2rem;
}

.workout__wrapper {
  overflow: hidden;
}

.workout__track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.workout__images {
  display: flex;
  gap: 1rem;
}

.workout__images img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================= STORY ================= */
.story__container {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 5rem 1rem;
}

.story__image {
  display: flex;
  justify-content: center;
}

.story__image img {
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story__image img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.story__content .section__header {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.story__content .section__description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
}

.story__link {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
  margin-top: 1rem;
}

.story__link:hover {
  color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .story__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .story__content :is(.section__header, .section__description, .story__link) {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .story__container {
    text-align: center;
  }

  .story__link {
    margin-inline: auto;
  }
}

/* ================= FEATURES ================= */
.feature__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.feature__grid li {
  display: flex;
  gap: 1rem;
}

.feature__grid span {
  width: 6rem;
  font-size: 4rem;
  font-weight: 600;
  color: var(--extra-light);
  text-align: right;
}

/* ================= CTA ================= */
/* Mobile (default) */
.membership__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 1rem;
}

/* Desktop */
@media (min-width: 768px) {
  .membership__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 2rem;
  }

  .membership__image {
    grid-column: 1 / 2;
  }

  .membership__content {
    grid-column: 2 / 3;
    text-align: left;
  }
}

/* ================= CONTACT FORM ================= */
.contact {
  text-align: center;
}

.contact__form {
  margin-top: 3rem;
  max-width: 600px;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.contact__group {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact__group input,
.contact__group textarea {
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: #f9f9f9;
  transition: border-color 0.3s, background 0.3s;
}

.contact__group input:focus,
.contact__group textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
}

/* Floating labels */
.contact__group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.contact__group input:focus + label,
.contact__group input:not(:placeholder-shown) + label,
.contact__group textarea:focus + label,
.contact__group textarea:not(:placeholder-shown) + label {
  top: -0.7rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  background: var(--white);
  padding: 0 0.25rem;
}

.contact__form button {
  justify-self: center;
  margin-top: 1rem;
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(254, 114, 76, 0.4);
}

.contact__form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 114, 76, 0.5);
}

.contact__status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact__status.success {
  color: #16a34a;
}

.contact__status.error {
  color: #dc2626;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact__form {
    padding: 2rem 1.5rem;
  }

  .contact__group input,
  .contact__group textarea {
    font-size: 0.95rem;
  }

  .contact__form button {
    width: 100%;
  }
}

/* ================= FOOTER ================= */
.footer__container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.footer__links,
.footer__socials {
  display: flex;
  gap: 1.5rem;
}

.footer__links a:hover,
.footer__socials a:hover {
  color: var(--primary-color);
}

.footer__bar {
  padding: 1rem;
  background: var(--extra-light);
  text-align: center;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav__menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    display: none;
  }

  .nav__menu.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }
}

@media (min-width: 768px) {
  .logo__primary {
    font-size: 1.75rem;
  }

  .logo__secondary {
    font-size: 0.75rem;
  }

  .header {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 4rem;
  }

  .header__content h1,
  .section__description {
    text-align: left;
  }

  .header__actions {
    justify-content: flex-start;
  }

  .header__img {
    margin-inline: 0;
    justify-self: end;
  }

  .story__container {
    grid-template-columns: 1fr 1fr;
  }

  .feature__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership__container {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, 1fr);
    align-items: center;
  }

  .membership__image {
    grid-column: 1 / 3;
  }

  .membership__content {
    grid-column: 3 / 4;
    text-align: left;
  }

  .footer__container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__logo {
    flex: 1;
  }

  .footer__socials {
    flex: 1;
    justify-content: flex-end;
  }
}

/* ================= SAMPLE INFO ================= */
.sample-info {
  background: #f3f4f6;
  padding: 50px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
  border-radius: 12px;
  max-width: 700px;
  margin: 50px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sample-info h2 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 15px;
}

.sample-info p {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 30px;
}

.sample-info .cta-button {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.sample-info .cta-button {
  background: var(--primary-color);
}

.sample-info .cta-button:hover {
  background: var(--primary-color-dark);
}

/* ================= DOWNLOAD SECTION ================= */
.download__container {
  max-width: 1024px;
  margin: auto;
  padding: 5rem 1rem;
  display: grid; /* optional, if you want to control layout later */
  gap: 2rem;
}

.download__container .section__description {
  max-width: 750px;
  margin-inline: auto;
  text-align: center;
}

.download__image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* ensures the image scales nicely */
  border-radius: 1rem; /* optional, same as other images */
  display: block;
}

/* ================= MEMBERSHIP SECTION ================= */
.membership__container {
  display: grid;
  background-color: var(--extra-light);
  grid-template-columns: 1fr;
  align-items: center;
}

.membership__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.membership__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  border-radius: 1rem;
}

.membership__content {
  padding: 5rem 1rem;
  text-align: left;
}

.membership__content .section__header,
.membership__content .section__description {
  text-align: left;
  max-width: 600px;
  margin: 1rem 0 2rem 0;
}

.membership__content .btn {
  margin-top: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .membership__content .section__header,
  .membership__content .section__description {
    text-align: left;
  }
}

.membership__content .section__description span {
  font-size: 1.5rem;
  color: #ffc529;
}

/* Desktop layout */
@media (min-width: 768px) {
  .membership__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .membership__image {
    grid-column: 1 / 3;
  }

  .membership__content {
    grid-column: 3 / 5;
    text-align: left;
  }
}

/* ================= HERO SHAPES ================= */
.header__img {
  position: relative;
}

.header__img::before,
.header__img::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.header__img::before {
  width: 180px;
  height: 180px;
  background: var(--primary-color);
  top: -20px;
  left: -20px;
  opacity: 0.15;
}

.header__img::after {
  width: 120px;
  height: 120px;
  border: 4px solid var(--primary-color-dark);
  bottom: -20px;
  right: -20px;
  opacity: 0.2;
}

/* ================= STORY SHAPES ================= */
.story__image {
  position: relative;
}

.story__image::before,
.story__image::after {
  content: "";
  position: absolute;
  border-radius: 20%;
  z-index: -1;
}

.story__image::before {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  top: -10px;
  left: -10px;
  opacity: 0.1;
}

.story__image::after {
  width: 80px;
  height: 80px;
  border: 3px solid var(--primary-color-dark);
  bottom: -10px;
  right: -10px;
  opacity: 0.15;
}

/* ================= DOWNLOAD SHAPES ================= */
.download__image {
  position: relative;
}

.download__image::before,
.download__image::after {
  content: "";
  position: absolute;
  border-radius: 1rem;
  z-index: -1;
}

.download__image::before {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  top: -15px;
  left: -15px;
  opacity: 0.12;
}

.download__image::after {
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary-color-dark);
  bottom: -15px;
  right: -15px;
  opacity: 0.15;
}

/* ================= MEMBERSHIP SHAPES ================= */
.membership__image {
  position: relative;
}

.membership__image::before,
.membership__image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.membership__image::before {
  width: 120px;
  height: 120px;
  background: var(--primary-color);
  top: -30px;
  left: -30px;
  opacity: 0.1;
}

.membership__image::after {
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary-color-dark);
  bottom: -30px;
  right: -30px;
  opacity: 0.15;
}

.sample-badge {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fe724c;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  white-space: nowrap;
}

.sample-badge button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

@media (max-width: 480px) {
  .sample-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
}
