:root {
  --bg-primary: #0a152e;
  --bg-secondary: #050b18;
  --ps-red: #ff0505;
  --ps-blue: #0f3080;
  --ps-medium-blue: #0a1523;
  --text-primary: #ffffff;
  --text-secondary: #e2e7ea;
  --font-condensed: "Avenir Next Condensed", sans-serif;
  --font-display: "Avenir Next", sans-serif;
}

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

html, body { margin: 0; padding: 0; } /* text-rendering: optimizeLegibility; scroll-behavior: smooth; */

body.menu-open { overflow: hidden; }

body {
  background: var(--bg-secondary);
  font-family: var(--font-display);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
}

/* ============ GLOBAL ============ */

img { display: block; }
a { color: inherit; }

/* content anchor links */
.intro__copy a,
.section__body a,
.routine__copy a,
.cta__text a,
.byline-written a {
  text-decoration: underline;
  text-underline-position: under;
}

.powersports-motorcycle-wrap {
  max-width: 1728px;
  margin: 0 auto;
  background: var(--bg-primary);
  overflow: clip;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 920px;
  background: var(--bg-secondary) url("https://cld.partsimg.com/image/upload/q_auto,dpr_auto,f_auto/carparts/blog/tier-zero/2026/powersports-motorcycle/hero-bg-desktop") center / cover no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 99px 80px;
}
.hero__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 38px;
  z-index: 1001;
  pointer-events: none;
}
.hero__nav {
  width: 1572px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.hero__nav .logo-cp { width: 330px; height: auto; pointer-events: auto; }
.hero__menu {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 38px;
  background: var(--ps-red);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}
.hero__menu-bars {
  width: 28px;
  height: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
}
.hero__menu-line {
  display: block;
  width: 21px;
  height: 2.33px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.25s cubic-bezier(0.76, 0, 0.24, 1);
}
.hero__menu.is-open .hero__menu-line:nth-child(1) { transform: translateY(5.83px) rotate(45deg); }
.hero__menu.is-open .hero__menu-line:nth-child(2) { opacity: 0; }
.hero__menu.is-open .hero__menu-line:nth-child(3) { transform: translateY(-5.83px) rotate(-45deg); }

/* ============ SLIDE-IN NAV ============ */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 460px;
  max-width: 88vw;
  background: var(--ps-medium-blue);
  border-left: 1px solid rgba(15, 48, 128, 0.55);
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  padding: 120px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.55s;
}
.site-nav--open { transform: translateX(0); visibility: visible; }
.site-nav__list { list-style: none; }
.site-nav__list a {
  display: block;
  padding: 12px 16px;
  font-family: "Inter Tight", var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.site-nav__list a:hover {
  color: #fff;
  background: rgba(15, 48, 128, 0.35);
  box-shadow: inset 3px 0 0 var(--ps-red);
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 1568px;
}
.hero__content .logo-jcw { width: 250px; height: 75.4px; }
.hero__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 90px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ============ INTRO ============ */
.intro {
  position: relative;
  background: var(--bg-primary);
  min-height: 542px;
  display: flex;
  align-items: center;
  padding: 100px 80px;
  overflow: hidden;
}
.intro__splatter {
  position: absolute;
  left: 479px;
  top: -71px;
  width: 1636px;
  height: 671px;
  transform: rotate(5.21deg) scaleX(-1);
  opacity: 0.4;
  pointer-events: none;
}
.intro__grid {
  position: relative;
  display: flex;
  gap: 80px;
  width: 1568px;
  max-width: 100%;
  align-items: flex-start;
}
.intro__meta { width: 600px; flex-shrink: 0; padding-top: 7px; }
.byline {
  font-family: "Inter Tight", var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: var(--text-primary);
}
.byline a { color: var(--text-primary); }

.social-links {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}

/* share row */
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 33px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.share__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.share__btn--accent {
  border: 0;
  background: var(--ps-red);
  color: #0b1f17;
}
.share__btn--accent:hover { background: var(--ps-red); }

/* Social Share */
#blog .social-items-prime svg path, #blog .ft-social-widget svg path { fill: var(--ps-red) !important; }
#blog .social-items-prime svg path, #blog .ft-social-widget svg path.email-icon { stroke: var(--ps-red) !important; }
#blog .social-items { 
  background: transparent !important;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease; 
}
#blog .social-items:hover, #blog .social-items:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
#blog #ft-share-button svg {
  padding: 8px;
  border-radius: 4px;
  background: var(--bg-primary) !important;
}
#blog .ft-social-widget.active .ft-social-icons { background: #000000 !important; }

/*
.social a { display: block; }
.social__share { width: 34px; height: 34px; flex-shrink: 0; }
.social__share img { width: 39.77px; height: 34.14px; max-width: none; }
.social__btn {
  width: 34px;
  height: 33px;
  margin-top: 1px;
  border: 1px solid var(--text-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social__btn img { width: 16px; height: 16px; }
.social__btn--email img { width: 17.6px; height: 14.2px; }
*/

.intro__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "Geist", var(--font-display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============ PART SECTIONS ============ */
.section {
  position: relative;
  padding: 160px 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  overflow: hidden;
}
.section--dark { background: var(--bg-secondary); }
.ps-battery { padding: 170px 80px 90px; }
.ps-fluids { padding-bottom: 91px; }
.deco {
  position: absolute;
  pointer-events: none;
}
.section__row {
  position: relative;
  display: flex;
  gap: 32px;
  width: 1568px;
  max-width: 100%;
  align-items: flex-start;
}
.section__row--tight { gap: 24px; }
.section__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 62px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
  width: 640px;
  flex-shrink: 0;
}
.ps-brakes .section__title { font-size: 72px; width: 664px; }
.section__body {
  width: 865px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.ps-brakes .section__body { width: 878px; gap: 24px; }
.ps-brakes .section__row { min-height: 782px; }
.ps-fluids .section__body { font-size: 18px; }
.section__body h4 {
  font-weight: 500;
  font-size: 34px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.ps-brakes .section__body h4 { color: var(--text-primary); }
/* ============ PRODUCT CARDS ============ */
.cards {
  position: relative;
  display: flex;
  gap: 32px;
}
.card {
  width: 368px;
  flex: 0 1 368px;
  border-radius: 4px;
  padding: 16px;
  background: linear-gradient(0deg, var(--ps-blue) 0%, var(--bg-secondary) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 336 / 220;
  background: var(--ps-medium-blue);
  border: 1px solid var(--ps-blue);
  border-radius: 4px;
  overflow: hidden;
}
.card__img--gradient { background: linear-gradient(0deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }
.card__img img { position: absolute; max-width: none; object-fit: cover; }
.card__info { display: flex; flex-direction: column; gap: 12px; }
.card__name {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 24px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--text-primary);
}
.card__btn {
  display: flex;
  justify-content: center;
  background: var(--ps-red);
  border-radius: 2px;
  padding: 10px 16px;
  text-decoration: none;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: background 0.15s ease;
}
.card__btn:hover { background: #d90404; }

/* ============ ROUTINE ============ */
.routine {
  position: relative;
  background: var(--bg-secondary);
  height: 1150px;
  padding: 160px 80px;
  overflow: hidden;
}
.routine__stars {
  position: absolute;
  left: -681px;
  top: -35px;
  width: 3346px;
  height: 1431px;
  opacity: 0.02;
  pointer-events: none;
}

.routine-wrap {
  display: flex;
  flex-direction: row;
  gap: 60px;
  width: 100%;
}

.routine__photo {
  position: relative;
}

.routine__photo img {
  max-width: 100%;
  height: auto;
}

.routine__text {
  position: relative;
  max-width: 50%;
}

.routine__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(2.8125rem, 5vw, 80rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
  padding-bottom: 30px;
}

.routine__copy {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.routine__copy p { padding: 0 0 25px 0; }

/* ============ CTA ============ */
.cta {
  position: relative;
  background:
    linear-gradient(rgba(10, 21, 46, 0.1), rgba(10, 21, 46, 0.1)),
    url("https://cld.partsimg.com/image/upload/q_auto,dpr_auto,f_auto/carparts/blog/tier-zero/2026/powersports-motorcycle/cta-bg") center / cover no-repeat
    var(--bg-primary);
  min-height: 878px;
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
  overflow: hidden;
  opacity: 0.8;
}
.cta__logo { position: relative; width: 447px; height: 166.4px; }
.cta__text {
  position: relative;
  width: 1080px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.cta__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}
.cta__text p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  -webkit-appearance: none;
  appearance: none;
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: var(--ps-red);
  border: 0;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.15s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #d90404; }
.back-to-top:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }

/* ============ SECTION FADE-UP ============ */
.fade-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* ============ GALLERY CARD SLIDE-UP ============ */
.cards--animate .card {
  opacity: 0;
  transform: translateY(120px);
  transition: opacity 0.5s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.cards--animate .card.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.cards--animate .card.is-inview:nth-child(2) { transition-delay: 0.2s; }
.cards--animate .card.is-inview:nth-child(3) { transition-delay: 0.4s; }
.cards--animate .card.is-inview:nth-child(4) { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .cards--animate .card { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .hero { padding: 99px 40px; height: 720px; }
  .hero__title { font-size: 64px; }
  .intro, .section, .ps-battery, .routine, .cta { padding-left: 40px; padding-right: 40px; }
  .cards { flex-wrap: wrap; }
  .card { flex: 0 0 368px; }
  .intro__grid { flex-direction: column; gap: 48px; }
  .intro__meta { width: auto; }
  .section__row { flex-direction: column; gap: 32px; }
  .section__title, .ps-brakes .section__title { width: auto; font-size: 52px; }
  .section__body, .ps-brakes .section__body { width: auto; }
  .routine { height: auto; }
  /* .routine__bike { position: relative; top: auto; right: auto; margin-top: 64px; max-width: 100%; height: auto; } */
  .routine-wrap { gap: 30px; } 
  .routine__text { width: auto; }
  .routine__title { font-size: 56px; }
  .cta__title { font-size: 48px; }
  .cta__logo { max-width: 100%; }
}

/* tablet and mobile: portrait hero artwork */
@media (max-width: 1024px) {
  .hero {
    background-image: url("https://cld.partsimg.com/image/upload/q_auto,dpr_auto,f_auto/carparts/blog/tier-zero/2026/powersports-motorcycle/hero-bg-mobile");
    background-position: center top;
  }

  /* product cards: two columns */
  .card { width: auto; flex: 0 0 calc(50% - 16px); }

  /* two-column rows: stagger per column, not across the whole gallery */
  .cards--animate .card.is-inview:nth-child(odd) { transition-delay: 0s; }
  .cards--animate .card.is-inview:nth-child(even) { transition-delay: 0.2s; }
}

/* mobile: keep the hero readable at phone widths */
@media (max-width: 992px) {
  .hero { height: 600px; padding: 60px 24px; }
  .hero__header { padding: 24px; }
  .hero__nav .logo-cp { width: 200px; height: auto; }
  .hero__content { gap: 20px; }
  .hero__content .logo-jcw { width: 170px; height: auto; }
  .hero__title { font-size: 38px; }
  .section, .ps-battery, .routine, .cta { padding: 60px 24px; }
  .intro { padding: 0 24px 60px; }

  /* product cards: two columns */
  .cards { gap: 12px; }
  .card,
  .cards .card { width: auto; flex: 0 0 calc(50% - 6px); padding: 10px; gap: 12px; }
  .card__info { gap: 10px; }
  .card__name { font-size: 16px; }
  .card__btn { font-size: 11px; padding: 8px 12px; }
}


/*** Overwrite ***/
/**Desktop**/
.hero__title span {display: block;}
.back-to-top { border-radius: 50%; }
#blog .powersports-motorcycle-wrap p { color: var(--text-primary); font-family: var(--font-display); font-weight: 400; }
#blog .powersports-motorcycle-wrap a { color: var(--text-primary); font-family: var(--font-display); }
#blog .powersports-motorcycle-wrap .shop-label {font-size: 34px; font-weight: 600; position: relative; line-height: 1.6; color: var(--text-secondary);}
#blog .powersports-motorcycle-wrap .section__body h4 {font-family: var(--font-display);}
.byline-written a { color: --text-primary; }
/* .ps-tires, .ps-airfilter, .ps-fluids { background: var(--bg-primary); } */


/**Mobile**/
@media (max-width: 992px) {
  .section__title, .ps-brakes .section__title { font-size: 40px; }
  .section__body h4 { font-size: 30px; }
  #blog .powersports-motorcycle-wrap .shop-label { font-size: 30px; line-height: 1.2;}
  .routine__title, .cta__title { font-size: 40px; }
  .cta__text p { font-size: 16px; }

  /*author*/
  .byline-written {font-size: 16px;}
  .byline-written span.date { display: block; }

  /*build a motorcycle*/
  .routine-wrap { flex-direction: column; gap: 30px; }
  .routine__text {max-width: 100%;}
  .routine__copy p {padding-bottom: 20px;}
}

@media (max-width: 767px) {
  .back-to-top {
      right: 20px;
      bottom: 20px;
      width: 44px;
      height: 44px;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 35px; }
}
