/*
 * Homepage redesign – scoped under `main` so rules win against `css/styles.css`
 * and `css/responsive.css`, which load later via `includes/header.php`.
 */

 main {
  display: block;
  padding-top: 67px; /* cleared height of `.fixedHeader` */
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Override legacy `.container { display: table; width: 1180px; }` above 1180px */
main .container {
  display: block;
  max-width: 1180px;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

main picture,
main img {
  max-width: 100%;
  height: auto;
}

.section-pad {
  padding: 68px 0;
}

main > section:not(.cta-banner):not(.web-services):not(.hero) {
  background: #f7f8fa;
}

main > section.hero {
  background: #f7f8fa !important;
}

main > section.bikes-section,
main > section.feedback {
  background: #ffffff !important;
}

main > section.steps-section {
  background: #ffffff !important;
}

.section-title {
  margin: 0 0 44px;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  line-height: 30px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #f7f8fa;
}

.hero picture,
.hero img {
  width: 100%;
  display: block;
}

.hero img {
  height: auto;
}

.hero::after {
  content: none;
}

.offer-section {
  background: #f7f8fa !important;
  overflow: hidden;
}

.offer-grid {
  display: grid !important;
  grid-template-columns: 1fr minmax(430px, 560px) 1fr !important;
  align-items: center;
  gap: 36px !important;
}

.offer-copy {
  display: grid !important;
  gap: 54px !important;
}

.offer-copy article {
  border-left: 4px solid #282828;
  padding-left: 18px;
}

.offer-right article {
  text-align: right;
  border-left: 0;
  border-right: 4px solid #282828;
  padding-left: 0;
  padding-right: 18px;
}

.offer-copy h3 {
  margin: 0 0 6px;
  color: #0a9bdd;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.offer-copy h3.green {
  color: #1fbd53;
}

.offer-copy p {
  margin: 0;
  color: #343942;
  font-size: 16px;
  line-height: 22px;
}

.offer-visual img {
  margin: 0 auto;
}

.bike-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px 44px;
}

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

.bike-card img {
  width: 220px;
  height: 165px;
  margin: 0 auto 16px;
  object-fit: contain;
  transition: all 0.3s ease 0s;
}

.bike-card img:hover {
  transform: scale(1.1);
}

.bikes-section {
  overflow: hidden;
}

.bike-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.bike-card p {
  margin: 0;
  color: #8d949c;
  font-size: 12px;
  line-height: 14px;
}

.steps-section {
  background: #fff;
}

.steps-section .section-title {
  margin: 0;
  padding: 34px 0 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  overflow: hidden;
  background: #16af4f url("../images/mockup/4color-block.jpg") center / 100% 100% no-repeat;
}

.step {
  min-height: 426px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 36px 44px;
  text-align: center;
  position: relative;
  background: transparent;
}

.step::after {
  content: none;
}

.step > * {
  position: relative;
  z-index: 1;
}

.step-green {
  background: transparent;
}

.step-blue {
  background: transparent;
}

.step img {
  object-fit: contain;
  margin-bottom: 28px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: #ffffff !important;
}

.step p {
  margin: 0;
  max-width: 240px;
  font-size: 16px;
  line-height: 22px;
  color: #ffffff !important;
}

.step-flip-inner {
  width: 100%;
  height: 100%;
}

.step-face {
  width: 100%;
}


.cta-banner {
  color: #fff;
  text-align: center;
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

main > section.cta-banner {
  background-color: #1a1a1a;
}

.cta-banner.more-bikes {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
    url("../images/mockup/more-bikes-banner.jpg");
}

.cta-banner::before {
  content: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  min-height: 425px;
  display: grid;
  align-content: center;
  justify-items: center;
}

.cta-text-img {
  width: min(560px, 92vw);
  margin: 0 auto;
}

.cta-banner p,
.banner-copy p,
.investment-copy p {
  margin: 0;
  font-size: 35px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.cta-banner h2,
.banner-copy h2,
.investment-copy h2 {
  margin: 0;
  color: #0b9bdd;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.95;
  text-transform: uppercase;
}

.cta-banner h2 span {
  color: #1fbd53;
}

.cta-banner strong,
.banner-copy strong,
.investment-copy strong {
  display: block;
  margin: 8px 0 22px;
  font-size: 30px;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.phone-cta {
  min-width: 420px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #1fbd53;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 1px;
}

.phone-cta span {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 14px 36px;
  color: #111;
  background: #fff;
  text-transform: uppercase;
}

.cta-banner small,
.questions small,
.app-download small {
  display: block;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.split {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center;
  gap: 72px !important;
}

.questions img {
  margin: 0 auto;
}

.questions {
  overflow: hidden;
}

.questions h2 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 500;
  line-height: 30px;
}

.questions p {
  max-width: 520px;
  margin: 0 0 14px;
  color: #878b91;
  font-size: 16px;
  line-height: 24px;
}

.questions span {
  display: block;
  color: #0b9bdd;
  font-size: 16px;
  line-height: 24px;
}

.questions a {
  display: block;
  color: #0b9bdd;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
}

.questions small {
  color: #1d232b;
  font-size: 16px;
  letter-spacing: 2px;
}

.web-services {
  min-height: 426px;
  display: grid;
  align-items: center;
  background: #eef1f3 url("../images/mockup/web-banner.jpg") center / cover no-repeat !important;
  overflow: hidden;
}

.banner-copy {
  width: min(520px, 100%);
  padding: 40px 0;
}

.banner-copy img {
  width: min(520px, 100%);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.feedback {
  overflow: hidden;
}

.quote {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 28px;
}

.quote-avatar {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.quote-avatar-green {
  background: #1fbd53;
}

.quote-avatar-blue {
  background: #0b94d9;
}

.quote-body p {
  min-height: 142px;
  margin: 0;
  padding: 28px 30px;
  background: #f7f7f7;
  color: #6f7781;
  font-size: 16px;
  line-height: 24px;
  border-radius: 3px;
}

.quote-arrow {
  text-align: right;
  padding-right: 30px;
  line-height: 0;
}

.quote-arrow img {
  display: inline-block;
  width: auto;
  max-width: 46px;
}

.quote-body strong {
  display: block;
  margin-top: 0;
  text-align: right;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.app-download {
  padding: 36px 0 0;
  overflow: hidden;
}

.app-grid {
  min-height: 400px;
  display: grid !important;
  grid-template-columns: 1fr 430px !important;
  align-items: end !important;
  gap: 70px !important;
}

.app-copy {
  align-self: center;
  text-align: center !important;
  text-transform: uppercase;
}

.app-copy h2 {
  margin: 0;
  color: #1fbd53;
  font-size: 42px;
  line-height: 1;
}

.app-copy p {
  margin: 12px 0 26px;
  color: #333;
  font-size: 32px;
  font-style: italic;
  font-weight: 900;
}

.play-btn {
  display: inline-block;
}

.play-btn img {
  width: 547px;
  max-width: 100%;
}

.app-download small {
  color: #111;
  font-size: 16px;
}

.phone-img {
  width: 430px;
  align-self: end;
}

.cta-banner.investment {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
    url("../images/mockup/investment-banner.jpg");
}

.investment .container {
  min-height: 428px;
  justify-items: end;
  text-align: center;
}

.investment .cta-text-img {
  margin-left: auto;
  margin-right: 0;
  justify-self: end;
}

.investment-copy h2 {
  color: #1fbd53;
}

/* Tablet / small laptop: stack before layout feels cramped */
@media (max-width: 992px) {
  main .offer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  main .offer-copy {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  main .offer-right article,
  main .offer-copy article {
    text-align: left;
    border-right: 0;
    border-left: 4px solid #282828;
    padding-right: 0;
    padding-left: 18px;
  }

  main .split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  main .app-grid {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    justify-items: center;
    gap: 28px !important;
    min-height: 0;
  }

  main .phone-img {
    width: min(360px, 90vw);
    justify-self: center;
  }

  main .investment .container {
    justify-items: center !important;
  }

  main .investment .cta-text-img {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
  }

  main .web-services .banner-copy {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  main .banner-copy img {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1100px) {
  .hero-pill {
    min-width: 280px;
    font-size: 16px;
  }

  main .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-copy {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .offer-left {
    order: 1;
  }

  .offer-visual {
    order: 2;
  }

  .offer-right {
    order: 3;
  }

  .offer-right article,
  .offer-copy article {
    text-align: left;
    border-right: 0;
    border-left: 4px solid #282828;
    padding-right: 0;
    padding-left: 18px;
  }

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

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

}

@media (max-width: 1000px) {
  .hero {
    height: auto;
    background: #fff;
  }

  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: url("../images/shape-banner.png") center bottom / 100% auto no-repeat;
    pointer-events: none;
  }

  .hero picture,
  .hero img {
    width: 100%;
    height: auto;
  }

  .hero img {
    object-fit: contain;
    object-position: center top;
  }
}

@media (max-width: 760px) {
  main {
    padding-top: 64px;
  }

  .section-pad {
    padding: 48px 0;
  }

  .hero {
    height: auto;
    background: #fff;
  }

  .hero picture,
  .hero img {
    width: 100%;
    height: auto;
  }

  .hero img {
    object-fit: contain;
    object-position: center top;
  }

  .section-title {
    margin-bottom: 30px;
    font-size: 25px;
  }

  .offer-copy {
    grid-template-columns: 1fr;
  }

  main .bike-grid,
  .steps,
  main .split,
  .feedback-grid,
  main .app-grid {
    grid-template-columns: 1fr;
  }

  .bike-card img {
    width: 100%;
    max-width: 220px;
    height: auto;
    min-height: 0;
  }

  .step {
    min-height: 190px;
    padding: 20px 10px;
  }

  .step img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .step h3 {
    margin-bottom: 0;
    font-size: 18px;
  }

  .step p {
    display: none;
  }

  .step {
    cursor: pointer;
    perspective: 1000px;
  }

  .step:focus {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
  }

  .step-flip-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
  }

  .step.is-flipped .step-flip-inner {
    transform: rotateY(180deg);
  }

  .step-face {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 10px;
  }

  .step-front {
    transform: rotateY(0deg);
  }

  .step-back {
    transform: rotateY(180deg);
  }

  .step-back p {
    display: block;
    color: #fff !important;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    max-width: 95%;
  }

  @keyframes tapHint {
    0% { transform: translateY(0); opacity: 0.75; }
    50% { transform: translateY(-3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.75; }
  }

  .steps-section {
    /*width: 100%;*/
    margin: 0;
    padding: 0 10px 12px;
    background: linear-gradient(322deg, rgba(31, 189, 83, 0.95), rgba(8, 149, 216, 0.95)), url("../images/banner-2.jpg") center / cover no-repeat;
  }

  .steps-section .section-title {
    margin: 0;
    padding: 22px 10px 18px;
    color: #000;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
    background: transparent;
  }

  .step {
    min-height: 158px;
    padding: 18px 8px 16px;
    background: rgba(31, 189, 83, 0.88);
  }

  .step-blue {
    background: rgba(8, 149, 216, 0.88);
  }

  .step-green {
    background: rgba(31, 189, 83, 0.88);
  }

  .step img {
    width: 86px;
    height: 86px;
    margin-bottom: 12px;
    border-radius: 50%;
  }

  .step h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
  }

  .cta-banner .container {
    min-height: 320px;
  }

  .cta-banner p,
  .banner-copy p,
  .investment-copy p {
    font-size: 24px;
  }

  .cta-banner strong,
  .banner-copy strong,
  .investment-copy strong {
    font-size: 19px;
    letter-spacing: 4px;
  }

  .phone-cta,
  .banner-copy .phone-cta {
    min-width: 0;
    width: 100%;
    max-width: 390px;
    font-size: 18px;
  }

  .phone-cta span {
    padding: 12px 20px;
  }

  .questions {
    text-align: center;
  }

  .questions img {
    width: 280px;
  }

  .questions a {
    font-size: 31px;
  }

  .web-services {
    min-height: 330px;
    background-position: 64% center;
  }

  .cta-banner.more-bikes,
  .cta-banner.investment {
    background-size: cover;
    background-position: center center;
  }

  .banner-copy {
    padding: 26px 14px;
  }

  .quote {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }

  .quote-avatar {
    width: 96px;
    height: 96px;
    font-size: 46px;
  }

  .quote-body p {
    min-height: 0;
    padding: 22px 20px;
    text-align: center;
    font-size: 15px;
    border-radius: 10px;
  }

  .quote-arrow {
    padding-right: 24px;
  }

  .quote-body strong {
    margin-top: 0;
    text-align: right;
    font-size: 14px;
  }

  .app-copy h2 {
    font-size: 31px;
  }

  .app-copy p {
    font-size: 24px;
  }

  .play-btn span {
    padding: 0 14px;
    font-size: 22px;
  }

  .play-btn img {
    width: 185px;
  }

  .phone-img {
    width: min(360px, 100%);
    justify-self: center;
  }

  .investment .container {
    min-height: 330px;
    justify-items: end;
  }

  .investment .cta-text-img {
    width: min(320px, 82vw);
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
  }

}

@media (max-width: 480px) {
  .section-pad {
    padding: 36px 0;
  }

  .bike-card img {
    max-width: 100%;
  }

  .questions a {
    font-size: 26px;
  }

  .cta-banner .container {
    min-height: 260px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .cta-text-img {
    width: min(100%, 92vw);
  }
}
