/* ===============================
   GLOBAL STACKING CONTROL
================================ */
.xo-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* heading */
h2.xo-heading {
  font-family: var(--xo-title-font);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 28px;
}

/* ===============================
   TYPOGRAPHY
================================ */
:root {
  --xo-title-font: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
}

/* ===============================
   HERO
================================ */
.xo-hero {
  width: 100%;
  height: 65vh;
  min-height: 440px;
  max-height: 760px;
  overflow: hidden;
  background: #000;
}

.xo-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.xo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.15) 75%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.xo-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: clamp(24px, 6vw, 120px);
}

.xo-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.xo-hero-content h1 {
  font-family: var(--xo-title-font);
  font-weight: 700;
  color: #d8d8d8;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 720px;
  text-shadow: rgba(0,0,0,0.4) 3.2px 3.2px 3.2px;
  animation: xoFadeUp 1.2s ease-out both;
}

/* CTA BUTTON */
.xo-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 14px 32px;
  border: 2px solid #fff;
  background: transparent;
  font-family: var(--xo-title-font);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.xo-hero-cta:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
/* ===============================
   SCROLL ARROW (PREMIUM BOUNCE)
================================ */
.xo-scroll-arrow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  animation: xoArrowBounce 2.6s ease-in-out infinite;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.xo-scroll-arrow svg {
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.xo-scroll-arrow:hover {
  transform: translateX(-50%) translateY(-2px);
}

.xo-scroll-arrow:hover svg {
  opacity: 1;
}

/* ===============================
   BOUNCE KEYFRAMES
================================ */
@keyframes xoArrowBounce {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }
  20% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1;
  }
  40% {
    transform: translateX(-50%) translateY(0);
  }
  60% {
    transform: translateX(-50%) translateY(4px);
  }
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xo-scroll-arrow {
    animation: none;
  }
}

/* ===============================
   FIND A DEALER 
================================ */

.xo-find-dealer * {
    color: #fff;
}
.xo-find-dealer {
    background-color: #000;
    color: #fff;
}


.xo-find-dealer-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px;
}
@media (max-width: 800px) {
    .xo-find-dealer-inner {
        padding: 30px;
    }
}
.xo-find-dealer-content {
    max-width: 600px;
    width: 100%;
}
.xo-find-dealer-actions {
    display: flex;
    flex-direction: row;
    margin-top: 30px;
}
.xo-find-dealer-actions a {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  border: 1px solid #fff;
  background-color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
font-family: var(--xo-title-font);
}


.xo-find-dealer-copy {

    font-size: 22px;
    line-height: 27px;
}
.xo-find-dealer-actions a:hover {
  background-color: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
.xo-find-dealer-actions a:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
@media (prefers-reduced-motion: reduce) {
  .xo-find-dealer-actions a {
    transition: background-color 0.01s linear,
                color 0.01s linear;
  }
}

/* ===============================
   IN-HOUSE PARTS & SUPPORT
================================ */
.xo-parts-service {
  background: #000;
  padding: 120px clamp(24px, 8vw, 160px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* layout */
.xo-parts-service-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 96px;
  align-items: start;
}

/* lead */
.xo-parts-service-lead h2 {
  font-family: var(--xo-title-font);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #fff;
}

/* body */
.xo-parts-service-body {
  max-width: 560px;
}

.xo-parts-service-body p {
  font-size: 17px;
  line-height: 1.65;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 22px;
}

/* actions */
.xo-parts-service-actions {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* buttons */
.xo-parts-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  border: 1px solid #fff;
  background: #000;
  font-family: var(--xo-title-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.xo-parts-btn:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.xo-parts-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 900px) {
  .xo-parts-service-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .xo-parts-service {
    padding: 96px 24px;
  }

  .xo-parts-service-actions {
    flex-direction: column;
    gap: 16px;
  }

  .xo-parts-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ===============================
   IMAGE INTERSTITIAL
================================ */
.xo-image-interstitial {
  width: 100%;
  background: #000;
  overflow: hidden;
}

/* image container */
.xo-image-interstitial-media {
  width: 100%;
  height: 48vh;
  min-height: 360px;
  max-height: 520px;
  background-image: url("https://xoappliance.com/wp-content/uploads/2025/11/XLT-HERO-HD-scaled.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

/* subtle fade top + bottom */
.xo-image-interstitial-media::before,
.xo-image-interstitial-media::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
}

.xo-image-interstitial-media::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.85),
    transparent
  );
}

.xo-image-interstitial-media::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    transparent
  );
}

/* ===============================
   ABOUT – STATEMENT BLOCK
================================ */
.xo-about {
  background: #000;
  padding: 70px 24px;
  display: block;
}

/* narrow column, centered */
.xo-about-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* headline */
.xo-about h2 {
  font-family: var(--xo-title-font);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 48px;
}

/* lead sentence */
.xo-about-lead {
  font-size: 22px;
  line-height: 1.65;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* supporting trust line */
.xo-about-support {
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
  opacity: 0.7;
  max-width: 520px;
}

/* ===============================
   SHOP NOW
================================ */
.xo-shop {
    display: block;
  background: #000;
  padding: 120px clamp(24px, 8vw, 160px);
}

/* container */
.xo-shop-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* heading */
.xo-shop h2 {
  font-family: var(--xo-title-font);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 48px;
}

/* grid */
.xo-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* cards */
.xo-shop-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
  font-family: var(--xo-title-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* hover */
.xo-shop-card:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* label */
.xo-shop-card span {
  pointer-events: none;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 900px) {
  .xo-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .xo-shop-grid {
    grid-template-columns: 1fr;
  }

  .xo-shop-card {
    height: 96px;
  }
}
