/* Truck Repairs dropdown pages - top-of-body feature stack header.
   Visual design intentionally matches the approved light-duty towing header. */

.tr-body-header {
  --tr-body-stack-radius: 26px;
  --tr-body-image-ratio: 5 / 4;
  --tr-body-text-min: 128px;
  --tr-body-purple: #2e0c5e;
  --tr-body-glass-bg:
    radial-gradient(circle at top right, rgba(72, 27, 130, 0.14), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(250, 248, 255, 0.72) 52%, rgba(245, 240, 252, 0.62)),
    rgba(255, 255, 255, 0.44);
  --tr-body-glass-shadow:
    0 34px 70px rgba(72, 27, 130, 0.2),
    0 14px 30px rgba(72, 27, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 0 rgba(72, 27, 130, 0.1);
  --tr-body-pill-shadow:
    0 18px 36px rgba(72, 27, 130, 0.12),
    0 8px 18px rgba(72, 27, 130, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(72, 27, 130, 0.08);
  position: relative;
  padding: clamp(54px, 6vw, 82px) 0 clamp(18px, 3vw, 34px);
  background: #ffffff;
  overflow: visible;
}

.tr-body-header .tr-body-feature-stack {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: visible;
  margin: 0 auto;
  padding: 18px 16px 22px;
  border-radius: var(--tr-body-stack-radius);
  background: var(--tr-body-glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--tr-body-glass-shadow);
}

.tr-body-header .tr-body-feature-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 44%, rgba(46, 12, 94, 0.03) 100%);
  pointer-events: none;
}

.tr-body-header .tr-body-feature-stack::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: calc(100% - 14px);
  z-index: 0;
  border-radius: calc(var(--tr-body-stack-radius) - 2px);
  background: linear-gradient(180deg, rgba(46, 12, 94, 0.025), rgba(46, 12, 94, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(46, 12, 94, 0.14);
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.tr-body-header .tr-body-feature-stack__cap {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--tr-body-stack-radius);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--tr-body-glass-bg);
  box-shadow: var(--tr-body-glass-shadow);
  transform: translateY(-6px);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.tr-body-header .tr-body-feature-stack__cap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.tr-body-header .feature__wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 16px !important;
  padding-bottom: 20px !important;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.tr-body-header .tr-body-feature-stack__heading-slab,
.tr-body-header .tr-body-feature-card-stack__image-slab,
.tr-body-header .tr-body-feature-card-stack__text-slab {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 8px;
  line-height: normal;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 240, 252, 0.46)),
    rgba(255, 255, 255, 0.38);
  box-shadow: var(--tr-body-pill-shadow);
  backdrop-filter: blur(18px) saturate(142%);
  -webkit-backdrop-filter: blur(18px) saturate(142%);
}

.tr-body-header .tr-body-feature-stack__heading-slab {
  margin-bottom: 14px;
}

.tr-body-header .tr-body-feature-stack__heading-pill,
.tr-body-header .tr-body-feature-card-stack__image-pill,
.tr-body-header .tr-body-feature-card-stack__text-pill {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 240, 252, 0.46)),
    rgba(255, 255, 255, 0.38);
  box-shadow: var(--tr-body-pill-shadow);
  backdrop-filter: blur(18px) saturate(142%);
  -webkit-backdrop-filter: blur(18px) saturate(142%);
}

.tr-body-header .tr-body-feature-stack__heading-pill {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: clamp(18px, 3vw, 28px);
  text-align: center;
}

.tr-body-header .tr-body-feature-stack__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 240, 252, 0.46)),
    rgba(255, 255, 255, 0.38);
  box-shadow: var(--tr-body-pill-shadow);
  color: var(--tr-body-purple);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tr-body-header .tr-body-feature-stack__heading-pill h2,
.tr-body-header .tr-body-feature-card-stack__text-pill h3 {
  color: var(--tr-body-purple) !important;
}

.tr-body-header .tr-body-feature-stack__heading-pill h2 {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.45rem, 2.65vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.tr-body-header .tr-body-feature-grid {
  width: 100%;
  margin: 0;
}

.tr-body-header .tr-body-feature-grid > [class*="col-"] {
  display: flex;
}

.tr-body-header .tr-body-feature-card-stack {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px 6px 10px;
  gap: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.tr-body-header .tr-body-feature-card-stack__text-slab {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.tr-body-header .tr-body-feature-card-stack__image-pill {
  padding: 8px;
  line-height: 0;
  aspect-ratio: var(--tr-body-image-ratio);
  overflow: hidden;
}

.tr-body-header .tr-body-feature-card-stack__text-pill {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: var(--tr-body-text-min);
  padding: 12px 14px 14px;
}

.tr-body-header .tr-body-feature-card-stack__image-pill img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}

.tr-body-header .tr-body-feature-card-stack__text-pill h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-transform: capitalize;
}

.tr-body-header .tr-body-feature-card-stack__text-pill p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #000000;
  text-align: left;
}

.tr-body-header .tr-body-feature-stack:hover .tr-body-feature-stack__cap {
  transform: translateY(-8px);
}

.tr-body-header .tr-body-feature-card-stack:hover .tr-body-feature-card-stack__image-pill img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

@media (max-width: 575px) {
  .tr-body-header {
    --tr-body-text-min: auto;
    padding-top: 42px;
  }

  .tr-body-header .feature__wrapper {
    padding: 12px !important;
  }

  .tr-body-header .tr-body-feature-stack__heading-pill {
    justify-items: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-body-header .tr-body-feature-stack__cap,
  .tr-body-header .tr-body-feature-card-stack__image-pill img {
    transition: none !important;
    transform: none !important;
  }
}
