/* =========================================================
   YHT Auto — Tier Zero landing page
   ========================================================= */
:root {
  /* Brand greens */
  --green-hero: #034638;
  --green-stripe: #155e4b;
  --spring-green: #00ff7f;
  /* Accents */
  --blog-blue: #28465f;
  --eucalyptus: #28a745;
  --punch: #dc3545;
  --vivid-tangerine: #ff8a8a;
  --blaze-orange: #ff6600;
  /* Neutrals */
  --tundora: #444444;
  --mine-shaft: #222222;
  --gallery: #ebebeb;
  --grey-94: #f0f0f0;
  --grey-88: #e0e0e0;
  --wild-sand: #f5f5f5;
  --bridal-heath: #fff8f0;
  --white-80: rgba(255, 255, 255, 0.8);
  /* Headline gradient */
  --yht-gradient: linear-gradient(90deg, #00ffff 1.3%, #00ff7f 50.65%, #d4fc27 100%);
  /* Layout */
  --maxw: 1440px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.4583;
  color: var(--tundora);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

#blog .container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Social Share */
#blog .social-items-prime svg path, #blog .ft-social-widget svg path { fill: #00ff7f !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: #000 !important;
}
#blog .ft-social-widget.active .ft-social-icons { background: #000000 !important; }

/* ---------- Shared type ---------- */
#blog .section-label {
  display: inline-block;
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 19.8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}
#blog .section-label--green { color: var(--spring-green); }

#blog .section-title {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 43.2px;
  color: var(--mine-shaft);
}
#blog .section-title--light { color: #ffffff; }

#blog .section-head { display: flex; flex-direction: column; }
#blog .section-head--center { align-items: center; text-align: center; gap: 9.25px; }

/* =========================================================
   HEADER (transparent, overlays hero)
   ========================================================= */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px;
}
.site-header__logo img { height: 54px; width: auto; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--spring-green);
  transform: skewX(-10deg) scaleY(0.98);
  transition: filter 0.15s ease;
}
.menu-btn:hover { filter: brightness(1.06); }
.menu-btn:focus { outline: none; }
.menu-btn:focus-visible {
  outline: 2px solid var(--spring-green);
  outline-offset: 3px;
}

#blog .menu-btn__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
  transform: skewX(10deg) translateZ(0);
  backface-visibility: hidden;
}
#blog .menu-btn__line {
  display: block;
  width: 100%;
  height: 2.4px;
  border-radius: 2px;
  background: #0b1f17;
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.25s cubic-bezier(0.76, 0, 0.24, 1);
}
#blog .menu-btn--open .menu-btn__line:nth-child(1) {
  transform: translate3d(0, 7.4px, 0) rotate(45deg);
}
#blog .menu-btn--open .menu-btn__line:nth-child(2) {
  opacity: 0;
}
#blog .menu-btn--open .menu-btn__line:nth-child(3) {
  transform: translate3d(0, -7.4px, 0) rotate(-45deg);
}

/* Slide-in nav (right → left) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.nav-backdrop--open {
  opacity: 1;
  visibility: visible;
}

#blog .site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(460px, 92vw);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 120px 28px 40px;
  overflow-y: auto;
  background: var(--green-hero);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.55s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0.55s;
}
#blog .site-nav--open {
  transform: translateX(0);
  visibility: visible;
}
#blog .site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#blog .site-nav__list a {
  display: block;
  padding: 12px 16px 12px 16px;
  border-left: 3px solid transparent;
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
#blog .site-nav__list a:hover,
#blog .site-nav__list a:focus-visible {
  color: #fff;
  border-left-color: var(--spring-green);
  background: rgba(0, 255, 127, 0.08);
  outline: none;
}
/* Current section (scroll-spy): shows where the reader is on the page */
#blog .site-nav__list a[aria-current="location"] {
  color: var(--spring-green);
  font-weight: 600;
  border-left-color: var(--spring-green);
  background: rgba(0, 255, 127, 0.12);
}

body.nav-open { overflow: hidden; }
/* Drop the header's stacking context so the logo stays behind the backdrop,
   while the close (X) button is lifted above it and stays clickable. The hero
   is pushed down a layer so the de-contexted header still renders above it.
   The .nav-closing state keeps this layering through the backdrop's fade-out
   so the button's slant square doesn't vanish while the X morphs back. */
body.nav-open .site-header,
body.nav-closing .site-header { z-index: auto; }
body.nav-open .hero,
body.nav-closing .hero { z-index: -1; }
body.nav-open .menu-btn,
body.nav-closing .menu-btn { position: relative; z-index: 101; }

@media (min-width: 520px) {
  #blog .site-nav__list a { white-space: nowrap; }
}

/* =========================================================
   HERO
   ========================================================= */
#blog .hero {
  position: relative;
  overflow: hidden;
  background: var(--green-hero);
  isolation: isolate;
}
#blog .hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#blog .hero__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 69.6%;
  background: url("https://cld.partsimg.com/image/upload/carparts/blog/tier-zero/2026/yht-auto-essential-work-truck-upgrades/hero-truck.jpg") center right / cover no-repeat;
}
/* solid green diagonal that overlaps the photo */
#blog .hero__seam {
  position: absolute;
  top: -0.6%;
  left: 14.9%;
  width: 50.6%;
  height: 102.4%;
}
/* lighter-green decorative diagonal bars near the seam */
#blog .hero__stripes {
  position: absolute;
  top: -0.8%;
  left: 28.7%;
  width: 52.7%;
  height: 100.8%;
  opacity: 0.9;
}
#blog .hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 161px;
  padding-bottom: 120px;
}
#blog .hero__title {
  margin: 0;
  max-width: 720px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.1vw, 53.66px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  background: var(--yht-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#blog .hero__byline {
  margin: 29px 0 0;
  font-family: "Inter Tight", sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  color: #ffffff;
}
#blog .hero__byline a {
  text-decoration: underline;
  text-decoration-color: var(--eucalyptus);
  text-underline-offset: 6px;
  color: #fff;
}

#blog .hero__body {
  margin-top: 32px;
  max-width: 621px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--white-80);
  font-size: 18px;
  line-height: 28.8px;
}
#blog .hero__body p { margin: 0; color: var(--white-80);}

/* =========================================================
   WHY A SYSTEM
   ========================================================= */
#blog .why {
  background: var(--green-hero);
}
#blog .why__inner {
  padding-block: 100px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
#blog .system-block {
  background: #000;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#blog .system-block__img {
  height: 280px;
  background: url("https://cld.partsimg.com/image/upload/carparts/blog/tier-zero/2026/yht-auto-essential-work-truck-upgrades/why-system.jpg") center / cover no-repeat;
  position: relative;
}
#blog .system-block__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0) 30%)
}
#blog .system-block__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 32px;
}
#blog .system-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 23px;
  border-left: 3px solid transparent;
}
#blog .system-col--problem { border-left-color: var(--punch); }
#blog .system-col--fix { border-left-color: var(--eucalyptus); }
#blog .system-col__label {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 19.8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#blog .system-col--problem .system-col__label { color: var(--vivid-tangerine); }
#blog .system-col--fix .system-col__label { color: var(--spring-green); }
#blog .system-col p {
  margin: 0;
  font-size: 18px;
  line-height: 26.25px;
  color: var(--white-80);
}

/* =========================================================
   PRODUCT SECTIONS (reusable)
   ========================================================= */
#blog .product { background: #fff; border-bottom: 1px solid var(--gallery); }
#blog .product__inner {
  padding-block: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* two-column content / visual block */
#blog .product-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
#blog .product-row:has(+ .cards) { margin-bottom: 24px; }
#blog .cards + .product-row { margin-top: 70px; }
#blog .product-row--reverse .product-content { order: 2; }
#blog .product-row--reverse .product-visual { order: 1; }

#blog .product-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#blog .product-row--reverse .product-content { gap: 20px; }

#blog .product-label {
  background: #000;
  padding: 28px 32px;
  color: #fff;
}
#blog .product-label__kicker {
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 19.8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--spring-green);
  margin-bottom: 6px;
}
#blog .product-label__title {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 43.2px;
  color: #fff;
}
#blog .product-subtitle {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 23.4px;
  color: #111f30;
}
#blog .product-subtitle__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--eucalyptus);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
#blog .product-subtitle__link:hover,
#blog .product-subtitle__link:focus-visible {
  color: var(--eucalyptus);
}
#blog .product-desc {
  margin: 0;
  font-size: 18px;
  line-height: 26.25px;
  color: var(--tundora);
}
#blog .ilink {
  text-decoration: underline;
  text-decoration-color: var(--eucalyptus);
  text-underline-offset: 3px;
  color: #000;
}
#blog .ilink:hover { color: var(--eucalyptus); }

/* spec list */
#blog .specs { list-style: none; margin: 4px 0 0; padding: 0; }
#blog .spec {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gallery);
}
#blog .spec__dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 3px;
  background: var(--blaze-orange);
}
#blog .spec__text {
  margin: 0;
  font-size: 18px;
  line-height: 26.25px;
  color: var(--tundora);
}
#blog .spec__key {
  font-weight: 700;
  color: #111f30;
  margin-right: 6px;
}

/* product visual tile */
#blog .product-visual {
  aspect-ratio: 696 / 522;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--grey-94) 0%, var(--grey-88) 100%);
}
#blog .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* mini cards row */
#blog .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
#blog .card {
  background: #fff;
  border: 1px solid var(--grey-88);
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
#blog .card:hover {
  border-color: var(--green-hero);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}
#blog .card__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
#blog .card__img {
  height: 200px;
  background: var(--grey-94);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
/* default: full-bleed scene photo */
#blog .card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* contained product cutout on light background */
#blog .card__img--contain { background: var(--grey-94); }
#blog .card__img--contain img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 86%;
  object-fit: contain;
}
/* two cutouts side by side */
#blog .card__img--stack { background: #fff; gap: 4%; }
#blog .card__img--stack img { width: auto; height: auto; max-width: 46%; max-height: 90%; object-fit: contain; }
#blog .card__name {
  margin: 0;
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 19.5px;
  color: var(--mine-shaft);
}

/* tip box */
#blog .tip-box {
  background: var(--bridal-heath);
  border-left: 4px solid var(--blaze-orange);
  padding: 19px 20px 16px 24px;
  margin-top: 16px;
}
#blog .tip-box p {
  margin: 0;
  font-size: 16px;
  line-height: 23.1px;
  color: var(--tundora);
}
#blog .tip-box__tag { font-weight: 700; color: var(--blaze-orange); margin-right: 4px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
#blog .final-cta {
  position: relative;
  background: #000;
  overflow: hidden;
}
/* Truck photo band on top: scales with the viewport and keeps the truck
   framed via percentage positioning. The mask fades its bottom edge into the
   black so the content area below blends seamlessly. */
#blog .final-cta__photo {
  width: 100%;
  height: clamp(240px, 40vw, 560px);
  background: url("https://cld.partsimg.com/image/upload/carparts/blog/tier-zero/2026/yht-auto-essential-work-truck-upgrades/final-cta-bg.jpg") center 44% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
#blog .final-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  margin-top: clamp(-120px, -7vw, -48px);
  padding-bottom: clamp(64px, 9vw, 130px);
}
#blog .final-cta__title {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 43.2px;
  color: var(--spring-green);
}
#blog .final-cta__body {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  opacity: 0.9;
  font-size: 18px;
  line-height: 26.25px;
}
#blog .final-cta__body p { margin: 0; color: #fff; }
#blog .final-cta__body a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--eucalyptus);
  text-underline-offset: 6px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Hero flips to its stacked/dimmed treatment earlier than the rest of the
   layout: below 1150px the title starts colliding with the truck photo. */
@media (max-width: 1150px) {
  #blog .hero__art { opacity: 0.16; }
  #blog .hero__photo { width: 100%; }
  #blog .hero__seam, #blog .hero__stripes { display: none; }
  #blog .hero__inner { padding-top: 120px; padding-bottom: 72px; }
  /* With the photo dimmed, let the copy use the full width instead of
     hugging the left where the truck used to be. */
  #blog .hero__title { max-width: none; }
  #blog .hero__body { max-width: none; }
}

@media (max-width: 900px) {
  #blog .why__inner { padding-block: 64px; gap: 40px; }
  #blog .system-block__cols { grid-template-columns: 1fr; gap: 28px; }
  #blog .section-title { font-size: 30px; line-height: 1.15; }

  #blog .product__inner { padding-block: 64px; }
  #blog .product-row { grid-template-columns: 1fr; gap: 28px; }
  #blog .cards + .product-row { margin-top: 40px; }
  #blog .product-row--reverse .product-content { order: 2; }
  #blog .product-row--reverse .product-visual { order: 1; }
  #blog .product-label__title { font-size: 30px; line-height: 1.15; }

  #blog .final-cta__title { font-size: 30px; line-height: 1.15; }
}

@media (max-width: 640px) {
  #blog .cards { grid-template-columns: 1fr; }
  #blog .share { gap: 12px; }
}

/* scroll-to-top button */
#blog .to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
#blog .to-top--visible {
  opacity: 1;
  transform: translateY(0);
}
/* Over dark sections: black fill, green stroke + green arrow. */
#blog .to-top--on-dark {
  background: #000;
  color: var(--spring-green);
  border-color: var(--spring-green);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 255, 127, 0.25);
}
#blog .to-top--on-dark:hover {
  background: rgba(0, 0, 0, 0.85);
}
/* Over light sections: black fill, black stroke + green arrow. */
#blog .to-top--on-light {
  background: #000;
  color: var(--spring-green);
  border-color: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
#blog .to-top--on-light:hover {
  background: rgba(0, 0, 0, 0.85);
}
/* Grow slightly on hover, then settle back on mouse-out (combined with the
   visible-state translateY so the entrance animation isn't overridden). */
#blog .to-top--visible:hover {
  transform: translateY(0) scale(1.12);
}
#blog .to-top:focus-visible {
  outline: 2px solid;
  outline-offset: 2px;
}
#blog .to-top--on-dark:focus-visible { outline-color: var(--spring-green); }
#blog .to-top--on-light:focus-visible { outline-color: var(--green-hero); }
@media (max-width: 640px) {
  #blog .to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #blog .to-top { transition: opacity 0.22s ease; transform: none; }
  #blog .to-top--visible,
  #blog .to-top--visible:hover { transform: none; }
}
