/* Modern homepage hero — full-bleed, accessible slideshow. */
.hh-hero {
  --hh-forest: var(--brand-primary, #2c4028);
  --hh-gold: var(--brand-secondary, #c79b3d);
  --hh-cream: #f8f7ee;

  background: #0b0b0b;
  color: #fff;
  height: clamp(520px, 78vh, 760px);
  min-height: 480px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

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

.hh-slide {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 700ms ease, visibility 0s linear 700ms;
  visibility: hidden;
}

.hh-slide.is-active {
  opacity: 1;
  transition: opacity 700ms ease, visibility 0s;
  visibility: visible;
  z-index: 1;
}

.hh-media { display: block; inset: 0; overflow: hidden; position: absolute; }

.hh-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease-out;
  width: 100%;
}

.hh-slide.is-active .hh-media img { transform: scale(1); }

.hh-shade {
  background:
    linear-gradient(90deg, rgb(8 12 7 / 88%) 0%, rgb(8 12 7 / 62%) 42%, rgb(8 12 7 / 18%) 100%),
    linear-gradient(0deg, rgb(8 12 7 / 72%) 0%, transparent 48%);
  inset: 0;
  position: absolute;
}

.hh-content {
  align-items: flex-start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  max-width: 900px;
  padding: 0 clamp(24px, 7vw, 100px);
  position: relative;
  width: 100%;
  z-index: 2;
}

.hh-eyebrow {
  align-items: center;
  color: var(--hh-gold);
  display: inline-flex;
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: 13px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 0.2em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hh-eyebrow::before {
  background: var(--hh-gold);
  content: "";
  display: block;
  height: 2px;
  width: 38px;
}

.hh-title {
  color: #fff;
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0 0 20px;
  max-width: 15ch;
  text-transform: uppercase;
  text-wrap: balance;
}

.hh-title span { color: var(--hh-gold); }
.hh-title .hh-title-prefix { color: #fff; }

.hh-text {
  color: rgb(248 247 238 / 88%);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 560px;
}

.hh-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hh-btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-flex;
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 54px;
  padding: 0 26px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.hh-btn span { font-size: 18px; line-height: 1; transition: transform 200ms ease; }
.hh-btn:hover span { transform: translateX(4px); }

.hh-btn--primary { background: var(--hh-gold); color: #1c2a16; }
.hh-btn--primary:hover { background: #fff; transform: translateY(-2px); }

.hh-btn--ghost { border-color: rgb(248 247 238 / 65%); color: #fff; }
.hh-btn--ghost:hover { background: rgb(248 247 238 / 12%); border-color: var(--hh-gold); transform: translateY(-2px); }

/* Bottom control bar */
.hh-controls {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 3;
}

.hh-controls-inner {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 clamp(24px, 7vw, 100px) 34px;
  width: 100%;
}

.hh-dots { align-items: center; display: flex; gap: 10px; }

.hh-dot {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.hh-dot::after {
  background: rgb(248 247 238 / 40%);
  border-radius: 2px;
  content: "";
  display: block;
  height: 3px;
  transition: background 220ms ease, width 220ms ease;
  width: 22px;
}

.hh-dot:hover::after { background: #fff; }
.hh-dot[aria-current="true"]::after { background: var(--hh-gold); width: 34px; }

.hh-counter {
  align-items: baseline;
  display: flex;
  font-family: var(--font-display, "Oswald", sans-serif);
  gap: 6px;
  margin: 0;
}

.hh-counter strong { color: #fff; font-size: 22px; font-weight: 500; }
.hh-counter span { color: rgb(248 247 238 / 55%); font-size: 14px; }

.hh-buttons { display: flex; gap: 8px; }

.hh-arrow,
.hh-pause {
  align-items: center;
  background: rgb(11 11 11 / 42%);
  border: 1px solid rgb(248 247 238 / 45%);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  width: 46px;
}

.hh-arrow:hover,
.hh-pause:hover {
  background: var(--hh-gold);
  border-color: var(--hh-gold);
  color: #1c2a16;
  transform: translateY(-2px);
}

.hh-arrow svg,
.hh-pause svg { height: 19px; width: 19px; }

.hh-pause .hh-icon-play { display: none; }
.hh-pause[aria-pressed="true"] .hh-icon-pause { display: none; }
.hh-pause[aria-pressed="true"] .hh-icon-play { display: block; }

.hh-progress {
  background: rgb(248 247 238 / 20%);
  bottom: 0;
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 4;
}

.hh-progress span {
  animation-duration: var(--hh-duration, 7000ms);
  animation-fill-mode: forwards;
  animation-name: hh-fill;
  animation-timing-function: linear;
  background: var(--hh-gold);
  display: block;
  height: 100%;
  width: 0;
}

.hh-hero.is-paused .hh-progress span { animation-play-state: paused; }

@keyframes hh-fill {
  from { width: 0; }
  to { width: 100%; }
}

.hh-sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hh-hero :focus-visible {
  outline: 3px solid var(--hh-gold);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .hh-hero { height: clamp(520px, 82vh, 680px); min-height: 500px; }
  .hh-shade {
    background:
      linear-gradient(0deg, rgb(8 12 7 / 90%) 0%, rgb(8 12 7 / 45%) 65%, rgb(8 12 7 / 20%) 100%);
  }
  .hh-content { justify-content: flex-end; padding-bottom: 110px; }
  .hh-title { font-size: clamp(2.2rem, 10vw, 3.2rem); max-width: 100%; }
  .hh-text { font-size: 15px; margin-bottom: 22px; }
  .hh-btn { font-size: 12px; min-height: 48px; padding: 0 18px; }
  .hh-controls-inner { gap: 12px; padding-bottom: 26px; }
  .hh-counter { display: none; }
  .hh-arrow, .hh-pause { height: 42px; width: 42px; }
  .hh-dots { gap: 4px; }
  .hh-dot { width: 24px; }
  .hh-dot::after { width: 16px; }
  .hh-dot[aria-current="true"]::after { width: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-slide,
  .hh-media img,
  .hh-btn,
  .hh-btn span,
  .hh-arrow,
  .hh-pause,
  .hh-dot::after { transition: none; }
  .hh-progress { display: none; }
}
