/* Service-cards Netflix-style horizontal carousel — brand palette
   (2026-05-08). Cards keep their dark Netflix-aesthetic surface
   (#323232 with white-on-image text + dark gradient overlay) because
   the design language relies on the dark card to make poster art pop.
   The PAGE-level intro paragraph and the accent decoration line on
   top of it move to mint-on-dark-text + brand-green gradient since
   they sit on the mint page surface, not on a dark card. Hover
   button + focus rings flip from accent-red to brand-green. */

.carousel-intro {
  width: min(820px, calc(100vw - var(--site-gutter-x-desktop, 20px) - var(--site-gutter-x-desktop, 20px)));
  max-width: 820px;
  margin: 42px auto 20px auto;
  padding-top: 0;
}
.carousel-intro p {
  position: relative;
  margin: 0;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  font-family: "Inter", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  text-align: left;
}
.carousel-intro p::before {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: 0 0 14px;
  background: linear-gradient(90deg, var(--brand-orange) 0, rgba(199, 85, 40, 0.20) 100%);
}
.netflix-carousel-wrapper {
  position: relative;
  width: min(1260px, calc(100vw - var(--site-gutter-x-desktop, 20px) - var(--site-gutter-x-desktop, 20px)));
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.netflix-carousel-container {
  overflow: hidden;
  position: relative;
}
.netflix-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  user-select: none;
  will-change: transform;
}
.n-card {
  position: relative;
  width: 220px;
  height: 320px;
  flex: 0 0 220px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #323232;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  z-index: 1;
  transition: z-index .2s, box-shadow .25s cubic-bezier(.34, .89, .45, 1.18), transform .2s;
}
.n-card .poster,
.n-card .hover-block {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .29s;
  pointer-events: none;
}
.n-card .poster { z-index: 2; }
.n-card .hover-block {
  opacity: 1;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
  position: relative;
}
.n-card .card-title { display: none; }
.n-card--skeleton {
  background: #2a2a2a;
  pointer-events: none;
  cursor: default;
}
.n-card:hover {
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.n-card:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  z-index: 10;
}
.top-meta {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.hover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0, rgba(0, 0, 0, 0.50) 65%, rgba(0, 0, 0, 0.0) 100%);
  z-index: 1;
}
.hover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 15px 15px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: none;
}
.hover-title {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -.02em;
  font-weight: 600;
  margin-bottom: 10px;
}
.hover-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
/* Hover button — flips from red filled to brand-green filled to match
   the new site-wide accent. Stays filled (not ghost) for visibility
   against the photographic poster art. */
.hover-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0;
  min-height: 36px;
  width: 100%;
  padding: 8px 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast, .3s cubic-bezier(.4, 0, .2, 1));
  box-shadow: 0 4px 12px rgba(199, 85, 40, 0.30);
  border: 2px solid var(--brand-orange);
  background: var(--brand-orange);
  color: #FFFFFF;
}
.hover-btn:hover,
.hover-btn:focus-visible {
  background: #A6411E;
  border-color: #A6411E;
  color: #FFFFFF;
}
.hover-btn__label-shell {
  display: block;
  height: 1em;
  overflow: hidden;
}
.hover-btn__label-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform var(--transition-fast, .3s cubic-bezier(.4, 0, .2, 1));
  will-change: transform;
}
.hover-btn__label-line {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
}
.hover-btn:hover .hover-btn__label-track,
.hover-btn:focus-visible .hover-btn__label-track {
  transform: translateY(-1em);
}
.hover-details {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: #fff;
  background: rgba(24, 24, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 13px;
  padding: 3px 9px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}
.chip b {
  margin-left: 5px;
  font-weight: 700;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* Compact hover-only chrome — was a 56×340 always-visible pill in
     solid orange, which read as the loudest element on the page and
     fought the carousel cards for attention (user feedback). Now a
     44×88 small rounded tile, hidden by default and only revealed on
     wrapper hover, with translucent orange so it stays a hint rather
     than a billboard. Touch breakpoints still hide it entirely
     (display:none in the @media block below). */
  width: 44px;
  height: 88px;
  background: rgba(199, 85, 40, 0.85);
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity .25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.netflix-carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
}
.carousel-arrow:hover {
  background: var(--brand-orange);
}
.left-arrow { left: 0; }
.right-arrow { right: 0; }
.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}
@media (max-width: 600px) {
  .carousel-intro {
    width: min(820px, calc(100vw - var(--site-gutter-x-mobile-left, 20px) - var(--site-gutter-x-mobile-right, 20px)));
  }
  .netflix-carousel-wrapper {
    width: min(1260px, calc(100vw - var(--site-gutter-x-mobile-left, 20px) - var(--site-gutter-x-mobile-right, 20px)));
    padding: 0;
  }
  .carousel-arrow {
    display: none !important;
  }
  .n-card .hover-block {
    pointer-events: auto;
    opacity: 1;
    background: transparent;
  }
  .hover-content {
    opacity: 1 !important;
    transform: translateY(0);
    pointer-events: auto;
  }
  .hover-gradient {
    display: block;
  }
  .n-card .card-title {
    display: none;
  }
  .n-card {
    width: 220px;
    height: 320px;
    flex: 0 0 220px;
  }
  .carousel-intro p {
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    font-family: "Inter", sans-serif;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
    text-align: left;
    padding: 0;
  }
  .hover-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }
  .hover-btn {
    min-height: 36px;
    font-size: 14px;
    border-radius: 999px;
  }
}
.carousel-arrow img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  /* Source PNG ships with dark glyph + transparency; brightness(0)
     solidifies it to black, then invert(1) flips to pure white for
     contrast against the orange arrow tile below. */
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
}
.n-card .hover-buttons .hover-btn {
  height: 36px;
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #FFFFFF;
  border: 2px solid var(--brand-orange);
}
@media (max-width: 600px) {
  .n-card .hover-buttons .hover-btn {
    height: 36px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
  }
}
