/* ============================================================
   upfit.css — Let's Move | Secțiunea UPFit (shared)
   Folosit în: abonamente.php, orar.php
   ============================================================ */

/* ── Section ── */
.upfit-section {
  padding: 75px 0;
}
.upfit-wrapper {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
}
.upfit-title {
  font-family: "Poppins", sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 78px;
  text-align: center;
  background: linear-gradient(
    96.98deg,
    #fdfefe 20.43%,
    #f9a61a 54.7%,
    #fdfefe 82.96%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* ── Content layout ── */
.upfit-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 80px;
  width: 100%;
}

/* ── Phone image ── */
.upfit-phone {
  width: 580px;
  height: 560px;
  flex-shrink: 0;
}
.upfit-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Mobile-only title — hidden on desktop */
.app-mobile-title {
  display: none;
}
/* Mobile-only image — hidden on desktop */
.upfit-phone--mobile {
  display: none;
}

/* ── App info ── */
.app-info {
  width: 700px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  justify-content: flex-start;
}
.app-section-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-section-title {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
  color: #fdfefe;
  margin: 0;
}
.app-text {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 27px;
  color: #a0a1a1;
  margin: 0;
}
.app-note {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  color: #777;
  margin: 8px 0 0 0;
}

/* ── Downloads ── */
.app-downloads {
  display: flex;
  flex-direction: row;
  gap: 100px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}
.download-link {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.download-link:hover {
  transform: scale(1.05);
}
.download-link img {
  height: auto;
  width: 300px;
  display: block;
}

/* ── Highlight spans ── */
.upfit-highlight {
  color: #f9a61a;
  font-weight: 600;
}
.store-highlight {
  color: #f9a61a;
  font-weight: 600;
}
.code-highlight {
  color: #a0a1a1;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pincode-highlight {
  color: #a0a1a1;
  font-weight: 600;
}
.reception-highlight {
  color: #a0a1a1;
  font-weight: 600;
}

/* ── Responsive 768px ── */
@media (max-width: 768px) {
  .upfit-section {
    padding: 60px 0;
  }
}

/* ── Responsive 1200px ── */
@media (max-width: 1200px) {
  .upfit-content {
    flex-direction: column;
    align-items: center;
  }
  .upfit-phone {
    width: 100%;
    height: auto;
    min-height: unset;
  }
  .app-info {
    width: 100%;
  }
  .upfit-title {
    font-size: 32px;
    line-height: 48px;
  }
}

/* ── Responsive 600px ── */
@media (max-width: 600px) {
  .upfit-section {
    padding: 40px 0 60px;
  }
  .upfit-wrapper {
    padding: 0 16px;
    gap: 32px;
  }
  .upfit-title {
    font-size: 28px;
    line-height: 42px;
  }
  .upfit-content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .app-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* 1. Titlul mobil "Aplicația..." — centrat */
  .app-mobile-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    color: #fdfefe;
    text-align: center;
    margin: 0 0 24px 0;
  }
  /* 2. Imaginea desktop — ascunsă pe mobile */
  .upfit-phone--desktop {
    display: none;
  }
  /* 3. Imaginea mobilă — afișată între titlu și Pași */
  .upfit-phone--mobile {
    display: block;
    width: 100%;
    height: 360px;
    margin-bottom: 24px;
  }
  .upfit-phone--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
  }
  /* 4. Blocul "Detalii" — ascuns pe mobile */
  .app-section-block:nth-child(3) {
    display: none;
  }
  /* 5. Blocul "Pași de folosire" */
  .app-section-block:nth-child(4) {
    margin-bottom: 24px;
  }
  .app-section-title {
    font-size: 18px;
    line-height: 27px;
  }
  .app-text {
    font-size: 15px;
    line-height: 24px;
  }
  .app-note {
    font-size: 13px;
    line-height: 20px;
  }
  /* 6. Badge-uri — orizontale, umplu boxul */
  .app-downloads {
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
  }
  .download-link {
    flex: 1;
  }
  .download-link img {
    width: 100%;
    height: auto;
  }
}
