/* Extra site styles not covered by Tailwind */
html { scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }

/* Smooth image loading */
img { transition: opacity 0.3s; }

/* Selection color */
::selection { background: #b61628; color: white; }

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 2400ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-dots,
.hero-slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slider-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 10;
  pointer-events: none;
}

.hero-slide-caption {
  max-width: min(720px, 72%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-slide-caption.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-caption:not(.is-active) {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
}

.hero-slide-caption h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  margin: 0 0 10px;
}

.hero-slide-caption p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.65;
  letter-spacing: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
  margin: 0;
}

.hero-slider-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.hero-slider-dot.is-active {
  width: 52px;
  background: #fff;
}

.hero-slider-control {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 160ms ease, border-color 160ms ease;
}

.hero-slider-control:hover {
  background: rgba(182, 22, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
}

.service-card-title,
.service-card-desc,
.project-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-title {
  -webkit-line-clamp: 1;
}

.service-card-desc,
.project-card-desc {
  -webkit-line-clamp: 2;
}

@media (max-width: 640px) {
  .hero-slider {
    border-radius: 0;
  }

  .hero-slider .absolute.bottom-5 {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .hero-slider-copy {
    left: 12px;
    right: 12px;
    bottom: 18px;
  }

  .hero-slide-caption {
    max-width: 86%;
  }

  .hero-slide-caption h2 {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .hero-slide-caption p {
    display: none;
  }

  .hero-slider-dot {
    width: 20px;
  }

  .hero-slider-dot.is-active {
    width: 32px;
  }

  .hero-slider-control {
    width: 30px;
    height: 30px;
  }
}
