/* Hero promotion slider — brand palette (2026-05-08).
   Text overlays a dark photographic hero image, so the overlay text
   stays light (white/cream) for legibility. Brand-color elements
   (badge, button, dot pill) flip from accent-red to brand-green. */

:root {
  --dl-primary: #C75528;        /* terracotta brand orange */
  --dl-primary-hover: #A6411E;
  --dl-badge-radius: 30px;
  --dl-btn-radius: 999px;       /* pill shape to match new header CTAs */
  --dl-dot-size: 10px;
  --dl-dot-gap: 1rem;
  --dl-maxw: 1300px;
  --dl-pad: clamp(1rem, 5vw, 1.2rem);
  --dl-slide-h: 550px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.dl-slider {
  --dl-pad: var(--site-gutter-x-desktop, clamp(1rem, 5vw, 1.2rem));
  position: relative;
  overflow: hidden;
}

.dl-slider__container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.dl-slider__track {
  display: flex;
  transition: transform .5s cubic-bezier(.8, 0, .2, 1);
  will-change: transform;
  width: 100%;
}

.dl-slide {
  flex: 0 0 100%;
  position: relative;
  height: var(--dl-slide-h);
  min-width: 0;
}

.dl-slide__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.dl-slide picture,
.dl-slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
 * Aspect-ratio hints per breakpoint (CLS prevention). Keeps Lighthouse
 * "image-elements-have-explicit-size" audit happy on multi-source
 * <picture>.
 */
.dl-slide picture img {
  aspect-ratio: 1280 / 401; /* desktop: cover2-1280.webp intrinsic */
}
@media (max-width: 700px) {
  .dl-slide picture img {
    aspect-ratio: 751 / 1040; /* mobile: coverm.webp intrinsic */
  }
}

.dl-slide__overlay {
  position: absolute;
  inset: 0;
  color: #fff;
  z-index: 3;
  pointer-events: none;
}

.container-1300 {
  max-width: var(--dl-maxw);
  margin: 0 auto;
  position: relative;
  height: 100%;
  padding: 0 var(--dl-pad);
}

.dl-slide__badge {
  position: absolute;
  top: 2rem;
  left: 1.3rem;
  background: var(--dl-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  padding: .4rem .8rem;
  border-radius: var(--dl-badge-radius);
  font-size: .9rem;
  font-weight: 700;
  gap: .5rem;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(199, 85, 40, 0.30);
}

.dl-slide__content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 600px;
  text-align: left;
  align-items: flex-start;
  z-index: 2;
}

.dl-slide__content h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: .5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.dl-slide__content p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.40);
}

.dl-slider__controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  max-width: var(--dl-maxw);
  margin: 0 auto;
  padding: 0 var(--dl-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

/* :link and :visited listed explicitly — header.css declares a
   site-wide `a, a:visited { color: inherit }` reset, and that
   selector's specificity (0,1,1) outranks the bare `.dl-slide__btn`
   (0,1,0). Without these pseudo-classes the visited state of the
   "More Details" link inherited the body's dark text colour and
   read as black on whichever slide the user had already clicked.
   Adding :link + :visited bumps specificity to (0,2,1) so the
   button stays solid orange / white-text in every link state. */
.dl-slide__btn,
.dl-slide__btn:link,
.dl-slide__btn:visited {
  background: var(--dl-primary);
  color: #FFFFFF;
  text-decoration: none;
  /* Compact pill — was .75rem 1.5rem / 1rem; trimmed to a smaller
     visual footprint per user feedback. */
  padding: .5rem 1.1rem;
  border-radius: var(--dl-btn-radius);
  font-weight: 700;
  font-size: .875rem;
  display: inline-block;
  text-align: center;
  max-width: 100%;
  width: auto;
  box-shadow: 0 4px 14px rgba(199, 85, 40, 0.30);
  transition: transform .15s, box-shadow .15s;
}
.dl-slide__btn:hover,
.dl-slide__btn:focus,
.dl-slide__btn:active {
  /* Background colour stays on --dl-primary — no darken-on-hover. Only
     the lift transform + slightly stronger shadow read as the hover
     affordance. Color reaffirmed so :focus / :active don't fall back
     to the inherited dark text either. */
  background: var(--dl-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(199, 85, 40, 0.40);
}

.dl-slider__dots {
  display: inline-flex;
  gap: var(--dl-dot-gap);
  background: var(--dl-primary);
  padding: .25rem 1rem;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(199, 85, 40, 0.30);
}

.dot {
  width: 16px;     /* was 24 — smaller dot wrapper to match smaller --dl-dot-size */
  height: 16px;
  background: transparent;
  border-radius: 50%;
  border: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dot::after {
  content: '';
  display: block;
  width: var(--dl-dot-size);
  height: var(--dl-dot-size);
  background: #fff;
  border-radius: 50%;
  transition: background .3s;
}

.dot.active::after {
  background: #FFFFFF;
  /* Active dot ring — black instead of translucent white. The
     translucent-white ring was reading as light-green on the green
     regions of the body gradient (color-bleed effect). Black gives a
     clean neutral outline regardless of what gradient region sits
     behind the dot. */
  box-shadow: 0 0 0 2px #000000;
}

.dot.active {
  background: transparent;
}

.dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .dl-slider {
    --dl-pad: var(--site-gutter-x-mobile, 20px);
  }
}

@media (max-width: 700px) {
  :root {
    --dl-pad: 20px;
    --dl-slide-h: 70vh;
    --dl-badge-radius: 20px;
    --dl-btn-radius: 999px;
    --dl-dot-size: 8px;
    --dl-dot-gap: 0.8rem;
    --content-padding: 20px;
  }

  .dl-slide__badge {
    position: absolute;
    top: var(--content-padding);
    left: var(--dl-pad);
    padding: 8px 14px;
    font-size: 0.85rem;
    background: var(--dl-primary);
    border-radius: var(--dl-badge-radius);
    z-index: 2;
    margin: 0;
  }

  .dl-slide__content {
    margin: auto 0;
    max-width: 100%;
  }

  .dl-slider__controls {
    position: absolute;
    bottom: var(--content-padding);
    left: 0;
    right: 0;
    padding: 0 var(--dl-pad);
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .dl-slide__btn {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
    order: 1;
  }

  .dl-slider__dots {
    padding: 10px 16px;
    order: 2;
    align-self: center;
  }

  @media (max-width: 375px) {
    :root {
      --content-padding: 20px;
    }
    .dl-slide__badge {
      padding: 6px 12px;
      font-size: 0.75rem;
    }
    .dl-slide__btn {
      padding: 10px 16px;
      font-size: 0.9rem;
    }
  }
}
