/* Engine Parts — /engine-parts, /engine-parts/cummins, /engine-parts/distributors
   Builds on the shared tokens and components in site.css / generator.css. */

/* ---------- Hero ---------- */
.ep-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.ep-hero__bg {
  position: absolute;
  inset: 0;
}

.ep-hero__bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.ep-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(6 20 39 / 0.95) 0%, rgb(10 31 68 / 0.88) 55%, rgb(10 31 68 / 0.8) 100%);
}

.ep-hero__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: calc(var(--header-h) + 1.75rem) 2.75rem;
}

@media (min-width: 960px) {
  .ep-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 3.5rem;
    padding-block: calc(var(--header-h) + 2.75rem) 4rem;
  }
}

.ep-crumbs {
  margin-bottom: 1.1rem;
}

.ep-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.66);
}

.ep-crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: rgb(255 255 255 / 0.35);
}

.ep-crumbs a:hover {
  color: var(--yellow-400);
}

.ep-crumbs [aria-current="page"] {
  color: rgb(255 255 255 / 0.92);
}

.ep-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ep-hero__text {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.82);
}

.ep-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.ep-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.ep-hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.82rem;
  font-weight: 600;
}

.ep-hero__feature-icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-full);
  background: rgb(245 197 24 / 0.18);
  color: var(--yellow-400);
}

.ep-hero__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: var(--navy-900);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.65);
}

@media (min-width: 960px) {
  .ep-hero__figure {
    justify-self: end;
    width: 100%;
    max-width: 30rem;
  }
}

.ep-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.ep-hero__figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.9);
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

/* ---------- Categories ---------- */
.ep-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
  .ep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ep-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.ep-grid > li {
  display: flex;
}

/* Three-up variant (engine makes) */
@media (min-width: 900px) {
  .ep-grid.ep-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ep-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ep-card:hover {
  transform: translateY(-3px);
  border-color: rgb(10 31 68 / 0.18);
  box-shadow: var(--shadow);
}

.ep-card__media {
  aspect-ratio: 4 / 3;
  background: #d0d3dc;
}

.ep-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
}

.ep-card__title {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--navy-900);
}

.ep-card__text {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-500);
}

.ep-card__brands-label {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.ep-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.ep-chips li {
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
}

.ep-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}

.ep-card__link .icon {
  transition: transform 0.2s ease;
}

.ep-card__link:hover {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ep-card__link:hover .icon {
  transform: translateX(3px);
}

/* "Engines We Supply Parts For" — card links in normal-weight link colour */
#makes .ep-card__link {
  font-weight: 400;
  color: var(--navy-700);
}

.ep-card--cta {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.ep-card--cta:hover {
  border-color: var(--navy-900);
}

.ep-card--cta .ep-card__body {
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

.ep-card--cta .ep-card__title {
  color: var(--white);
}

.ep-card--cta .ep-card__text {
  margin-bottom: 1.1rem;
  color: rgb(255 255 255 / 0.78);
}

.ep-card--cta .btn {
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.ep-card__cta-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 0.65rem;
  background: rgb(245 197 24 / 0.16);
  color: var(--yellow-400);
}

/* ---------- Brands ---------- */
.ep-brands {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 680px) {
  .ep-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ep-brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.ep-brand {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 1rem;
  border-radius: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ep-brand:hover {
  border-color: rgb(10 31 68 / 0.2);
  box-shadow: var(--shadow-sm);
}

.ep-brand__logo {
  display: grid;
  place-items: center;
  height: 7rem;
  margin-bottom: 0.75rem;
  border-radius: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.ep-brand__logo img {
  width: auto;
  height: 5.75rem;
  max-width: 100%;
  object-fit: contain;
}

.ep-brand__name {
  padding-inline: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-900);
}

.ep-brand__note {
  padding-inline: 0.25rem;
  margin-top: 0.1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-500);
}

.ep-brand__line {
  padding-inline: 0.25rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-700);
}

.ep-brands__more {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.ep-brands__more strong {
  color: var(--navy-900);
}

.ep-brands__note {
  max-width: 44rem;
  margin: 0.9rem auto 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-500);
}

/* ---------- Capabilities ---------- */
.ep-caps {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .ep-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ep-caps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.ep-cap {
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow-400);
  box-shadow: var(--shadow-sm);
}

.ep-cap__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 0.65rem;
  background: #fff8db;
  color: var(--navy-900);
}

.ep-cap__title {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
}

.ep-cap__text {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-500);
}

/* ---------- Why Soni Power ---------- */
.ep-why__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .ep-why__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3rem;
  }
}

.ep-why__copy .section__title,
.ep-why__copy .section__sub {
  text-align: left;
}

.ep-why__copy .why-features {
  margin-top: 1.5rem;
}

.ep-stats {
  padding: 1.5rem 1.35rem;
  border-radius: 1rem;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .ep-stats {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.ep-stats__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-400);
}

.ep-stats__list {
  margin-top: 0.5rem;
}

.ep-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
}

.ep-stat + .ep-stat {
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.ep-stat__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  background: rgb(245 197 24 / 0.16);
  color: var(--yellow-400);
}

.ep-stat strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.ep-stat span:not(.ep-stat__icon) {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.7);
}

/* ---------- About (Cummins) ---------- */
.ep-about__text {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.ep-about__link {
  padding-top: 0;
  margin-top: 1.25rem;
}

/* ---------- Engine families (Cummins) ---------- */
.ep-models {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .ep-models {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ep-models {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.ep-models > li {
  display: flex;
}

.ep-model {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.75rem 0.75rem 1rem;
  border-radius: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ep-model:hover {
  transform: translateY(-3px);
  border-color: rgb(10 31 68 / 0.18);
  box-shadow: var(--shadow);
}

.ep-model__media {
  display: grid;
  place-items: center;
  height: 8.5rem;
  margin-bottom: 0.8rem;
  border-radius: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.ep-model__media img {
  width: auto;
  height: 6.75rem;
  max-width: 100%;
  object-fit: contain;
}

.ep-model__name {
  padding-inline: 0.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
}

.ep-model__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.7rem 0.25rem 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--navy-700);
}

.ep-model__go .icon {
  transition: transform 0.2s ease;
}

.ep-model:hover .ep-model__go .icon {
  transform: translateX(3px);
}

.ep-models__foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.ep-models__foot a {
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ep-models__foot a:hover {
  color: var(--navy-700);
}

/* ---------- Part groups (Cummins) ---------- */
.ep-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 50rem;
  margin-inline: auto;
}

.ep-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
}

.ep-pills .icon {
  color: var(--yellow-600);
}

.ep-parts__more {
  margin-top: 1.5rem;
  text-align: center;
}

.ep-parts__more .ep-card__link {
  padding-top: 0;
}

/* ---------- Industries (hub) ---------- */
.ep-ind {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .ep-ind {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .ep-ind {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.ep-ind__tile {
  margin: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.ep-ind__tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ep-ind__tile figcaption {
  padding: 0.65rem 0.9rem;
  border-top: 3px solid var(--yellow-400);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
}

/* ---------- Enquiry CTA ---------- */
.ep-cta {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}

.ep-cta__inner {
  max-width: 46rem;
}

.ep-cta__title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 4.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ep-cta__text {
  margin: 0.9rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.8);
}

.ep-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.ep-cta__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.6);
}

/* ---------- Related pages ---------- */
.ep-related {
  padding-block: clamp(2.5rem, 6vw, 3.75rem);
}

.ep-related__title {
  margin-bottom: 1.25rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-900);
}

.ep-related__grid {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .ep-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ep-related__grid > li {
  display: flex;
}

@media (min-width: 960px) {
  .ep-related__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 66rem;
  }

  .ep-related__grid--3 .ep-related__card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .ep-related__grid--3 .ep-related__icon {
    grid-row: auto;
  }
}

.ep-related__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.9rem;
  align-items: center;
  width: 100%;
  padding: 1.1rem 1.15rem;
  border-radius: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ep-related__card:hover {
  transform: translateY(-3px);
  border-color: rgb(10 31 68 / 0.18);
  box-shadow: var(--shadow);
}

.ep-related__icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  background: #fff8db;
  color: var(--navy-900);
}

.ep-related__copy strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
}

.ep-related__copy span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-500);
}

.ep-related__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--navy-700);
}

@media (max-width: 520px) {
  .ep-hero__actions .btn,
  .ep-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-card,
  .ep-card__link .icon,
  .ep-brand,
  .ep-model,
  .ep-related__card {
    transition: none;
  }

  .ep-card:hover,
  .ep-model:hover,
  .ep-related__card:hover,
  .ep-model:hover .ep-model__go .icon,
  .ep-card__link:hover .icon {
    transform: none;
  }
}

/* ---------- Cummins family pages ---------- */
.ep-family {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .ep-family {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }
}

.ep-family__models {
  padding: 1.4rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.ep-family__label {
  margin-bottom: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.ep-family__models .faq-chips {
  gap: 0.5rem;
  padding: 0;
}

.ep-family__models .faq-chips li {
  background: var(--white);
}
