/* Lithium battery — recovery pathway cards: fade content on hover */
.recovery-fade-card {
  cursor: pointer;
}

.recovery-fade-card-inner {
  position: relative;
  width: 100%;
  min-height: 320px;
}

@media (min-width: 1024px) {
  .recovery-fade-card-inner {
    min-height: 460px;
  }
}

.recovery-fade-card-front,
.recovery-fade-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.45s ease;
}

.recovery-fade-card-front {
  opacity: 1;
  z-index: 1;
}

.recovery-fade-card-back {
  opacity: 0;
  z-index: 2;
}

.recovery-fade-card:hover .recovery-fade-card-front,
.recovery-fade-card:focus-within .recovery-fade-card-front,
.recovery-fade-card:focus-visible .recovery-fade-card-front {
  opacity: 0;
}

.recovery-fade-card:hover .recovery-fade-card-back,
.recovery-fade-card:focus-within .recovery-fade-card-back,
.recovery-fade-card:focus-visible .recovery-fade-card-back {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .recovery-fade-card-front,
  .recovery-fade-card-back {
    transition: none;
  }
}

/* Our Services — image cards: fade swap content on hover */
.service-fade-card {
  cursor: pointer;
}

.service-fade-card-inner {
  position: relative;
  min-height: 280px;
}

@media (min-width: 1024px) {
  .service-fade-card-inner {
    min-height: 349px;
  }
}

.service-fade-card-front,
.service-fade-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.45s ease;
}

.service-fade-card-front {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.service-fade-card-back {
  opacity: 0;
  z-index: 2;
  overflow-y: hidden;
}

.service-fade-card-back > p{
  font-size: 14px;
  text-align: left;
}

.service-fade-card-back .service-fade-detail-row p{
  font-size: 12px;
}

.service-fade-card:hover .service-fade-card-front,
.service-fade-card:focus-within .service-fade-card-front,
.service-fade-card:focus-visible .service-fade-card-front {
  opacity: 0;
}

.service-fade-card:hover .service-fade-card-back,
.service-fade-card:focus-within .service-fade-card-back,
.service-fade-card:focus-visible .service-fade-card-back {
  opacity: 1;
}

.service-fade-detail-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 1.5rem;
  align-items: start;
}

.service-fade-detail-row + .service-fade-detail-row {
  margin-top: 0.75rem;
}

.service-fade-detail-label {
  position: relative;
  padding-right: 0.75rem;
  font-weight: 600;
}

/* Straight rule between label and value (matches .scheduled-waste-divider) */
/* .service-fade-detail-label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(248, 248, 248, 0.3);
  transform: translateX(50%);
  pointer-events: none;
} */

.service-fade-detail-value {
  padding-left: 0.75rem;
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  .service-fade-card-front,
  .service-fade-card-back {
    transition: none;
  }
}

/* Mugen Grotesk display — ExtraBold (own @font-face family in fonts.css) */
.font-display-extrabold {
  font-family: 'MugenGroteskFW-ExtraBold', 'MugenGroteskFW', 'Poppins', sans-serif;
  font-weight: normal;
  font-synthesis: none;
}

/* Why e-waste — badge + connector joined, then card (Figma) */
.ewaste-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Badge + green line always touch (no gap between them) */
.ewaste-step-lead {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.ewaste-step-connector {
  flex: 1;
  height: 2px;
  min-width: 1.5rem;
  background-color: #3c7756;
}

.ewaste-step-card {
  width: 100%;
  max-width: 908px;
}

/* Step 01: card right-aligned on mobile */
.ewaste-step--start .ewaste-step-card {
  margin-left: auto;
}

/* Step 02 mobile: image → rail (line+badge) → copy */
.ewaste-step--end .ewaste-step-card {
  margin-right: auto;
}

.ewaste-step--end .ewaste-step-media {
  width: 100%;
}

.ewaste-step--end .ewaste-step-body {
  padding-top: 0;
}

.ewaste-step--end .ewaste-step-lead--inline {
  margin: 1rem 0;
}

@media (min-width: 1024px) {
  .ewaste-step {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  /* Lead grows: badge—line—card (step 1) or card—line—badge (step 2) */
  .ewaste-step--start .ewaste-step-lead {
    flex: 1;
    min-width: 0;
  }

  .ewaste-step--start .ewaste-step-card {
    flex-shrink: 0;
    margin-left: 0;
  }

  /* Step 02 desktop: card (img | copy) + outer rail joined to badge */
  .ewaste-step--end {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .ewaste-step--end .ewaste-step-card {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    margin-right: 0;
  }

  .ewaste-step--end .ewaste-step-media {
    grid-column: 1;
    width: 100%;
  }

  .ewaste-step--end .ewaste-step-body {
    grid-column: 2;
    padding: 0;
  }

  .ewaste-step--end .ewaste-step-lead--outer {
    flex: 1;
    min-width: 0;
  }
}

/* FAQ accordion — hide default marker; content expands via <details> */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Desktop only — cards overlap section headings (Figma About Us) */
@media (min-width: 1024px) {
  .overlapline {
    margin-top: -3rem !important;
    position: relative;
    z-index: 10;
  }
}

/* Horizontal card rows: hide scrollbar, drag with mouse on desktop */
.drag-scroll {
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.drag-scroll::-webkit-scrollbar {
  display: none;
}

.drag-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.drag-scroll.is-dragging * {
  pointer-events: none;
}

/* Carousel: disable snap while dragging (smoother on desktop) */
.why-techom-carousel.is-dragging {
  scroll-snap-type: none !important;
  scroll-behavior: auto;
}

.why-techom-carousel.is-dragging > article {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.why-techom-carousel {
  overscroll-behavior-x: contain;
}

@media (min-width: 1024px) {
  .why-techom-carousel {
    scroll-snap-type: x mandatory;
  }

  .why-techom-carousel > article {
    contain: layout style paint;
  }
}

/* Single vertical rule between SW code and description (Our Services) */
.scheduled-waste-divider {
  display: none;
}

@media (min-width: 1024px) {
  .scheduled-waste-divider {
    display: block;
    position: absolute;
    left: 158px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(248, 248, 248, 0.3);
  }
}

/* Licenses bg extends through transparent footer (Our Services) */
.licenses-footer-bg > img {
  z-index: 0;
}

.site-footer--transparent {
  background-color: transparent;
}

.site-footer--transparent a {
  color: inherit;
}

.site-footer--transparent a:hover {
  opacity: 0.8;
}

/* Home — service cards: center last 2 in a 3-wide layout */
@media (min-width: 1024px) {
  .home-services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-services-grid > article {
    grid-column: span 2;
  }

  .home-services-grid > article:nth-child(7) {
    grid-column: 2 / span 2;
  }

  .home-services-grid > article:nth-child(8) {
    grid-column: 4 / span 2;
  }

  /* Why Techom: 3 + 2 grid, no horizontal scroll */
  .why-techom-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
    cursor: default;
    scroll-snap-type: none;
  }

  .why-techom-grid > article {
    grid-column: span 2;
    min-width: 0;
    width: auto;
    flex-shrink: 1;
  }

  .why-techom-grid > article:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .why-techom-grid > article:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
