/* Native hero slider — replaces Slider Revolution for 2019washington.com
   Two background images cross-fade every 7s; fixed overlay stays on top.
   Matches live production visually (verified against prod screenshots 2026-04-22). */

.hero {
  position: relative;
  width: 100%;
  height: 778px;
  overflow: hidden;
  background: #000;
  font-family: Montserrat, system-ui, sans-serif;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  left: 80px;
  top: 227px;
  width: 675px;
  height: 321px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 33px;
  box-sizing: border-box;
}

.hero-subhead {
  display: inline-block;
  align-self: flex-start;
  font-size: 72px;
  font-weight: 800;
  line-height: 72px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 4px solid #0090a3;
  text-shadow: 2px 2px 0 rgba(155, 160, 163, 0.25);
  margin: 0 0 22px 0;
  padding: 0;
}

.hero-headline {
  font-size: 114px;
  font-weight: 200;
  line-height: 88px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 18px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  margin: 0 0 28px 0;
  padding: 0;
}

.hero-buttons {
  display: flex;
  gap: 22px;
  align-items: center;
}

.hero-btn {
  display: inline-block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 20px 40px;
  border: 2px solid #0090a3;
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  cursor: pointer;
  white-space: nowrap;
}

.hero-btn-primary {
  background: #0090a3;
}

.hero-btn-primary:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.hero-btn-secondary {
  background: transparent;
}

.hero-btn-secondary:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Prev/next navigation arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  z-index: 10;
  transition: background-color 0.2s ease-in-out;
}

.hero-nav:hover {
  background: #000;
}

.hero-nav-prev {
  left: 30px;
}

.hero-nav-next {
  right: 30px;
}

.hero-nav svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Responsive — matches the breakpoints from the original SR7 settings */
@media (max-width: 1240px) {
  .hero { height: 768px; }
}

@media (max-width: 1024px) {
  .hero { height: 768px; }
  .hero-overlay {
    left: 40px;
    top: 277px;
    width: 471px;
    height: 211px;
    padding: 0 24px;
  }
  .hero-subhead { font-size: 56px; line-height: 56px; }
  .hero-headline { font-size: 88px; line-height: 70px; letter-spacing: 12px; }
  .hero-btn { font-size: 18px; padding: 16px 30px; }
}

@media (max-width: 778px) {
  .hero { height: 540px; }
  .hero-overlay {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 48px);
    max-width: 420px;
    height: auto;
    min-height: 240px;
    padding: 24px;
    align-items: center;
    text-align: center;
  }
  .hero-subhead { font-size: 40px; line-height: 40px; align-self: center; margin-bottom: 14px; }
  .hero-headline { font-size: 56px; line-height: 46px; letter-spacing: 8px; margin-bottom: 20px; text-align: center; }
  .hero-buttons { flex-direction: column; gap: 12px; width: 100%; }
  .hero-btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 16px; }
  .hero-nav { width: 36px; height: 36px; }
  .hero-nav-prev { left: 12px; }
  .hero-nav-next { right: 12px; }
}

@media (max-width: 480px) {
  .hero { height: 500px; }
  .hero-subhead { font-size: 32px; line-height: 32px; }
  .hero-headline { font-size: 42px; line-height: 40px; letter-spacing: 6px; }
}
