/* ── Hero — Full-width carousel ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

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

/* ── Slides ── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide.leaving { opacity: 0; }

/* responsiveImage wraps the img in <picture>, which is inline by default —
   without a definite height here the img's height:100% resolves to auto. */
.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide.active img {
  animation: kenBurns 9s ease forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ── Cream gradient text panel ── */
.hero-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54%;
  display: flex;
  align-items: center;
  background: linear-gradient(
    108deg,
    rgba(253, 250, 247, 0.97) 0%,
    rgba(253, 250, 247, 0.97) 58%,
    rgba(253, 250, 247, 0.0) 100%
  );
  padding: 4rem 7rem 4rem 4rem;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  max-width: 400px;
}

/* ── Entrance animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.15s;
}
.hero-text h1 {
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.35s;
}
.hero-text h1 em { font-style: italic; color: var(--warm); }
.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.55s;
}
.hero-text .btn-primary {
  align-self: flex-start;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.72s;
}

/* ── Navigation controls ── */
.hero-controls {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  z-index: 3;
  animation: fadeIn 1.2s ease both;
  animation-delay: 0.9s;
}

.hero-arrows {
  display: flex;
  gap: 0.5rem;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(253, 250, 247, 0.45);
  background: rgba(253, 250, 247, 0.12);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
}
.hero-prev:hover,
.hero-next:hover {
  background: rgba(253, 250, 247, 0.28);
  border-color: rgba(253, 250, 247, 0.85);
  transform: scale(1.08);
}
.hero-prev svg,
.hero-next svg {
  width: 18px;
  height: 18px;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(253, 250, 247, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: var(--cream);
  transform: scale(1.5);
}

/* ── Progress bar ── */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(253, 250, 247, 0.15);
  z-index: 3;
}
.hero-progress-bar {
  height: 100%;
  background: var(--warm);
  width: 0%;
}

/* ── Slide counter (top-right) ── */
.hero-slide-count {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  z-index: 3;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(253, 250, 247, 0.7);
  letter-spacing: 0.05em;
  animation: fadeIn 1.4s ease both;
  animation-delay: 1s;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.hero-slide-count .current-num {
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-panel {
    width: 68%;
    padding: 3.5rem 4rem 3.5rem 2.5rem;
  }
}

@media (max-width: 768px) {
  #hero { min-height: 100svh; }
  .hero-panel {
    width: 100%;
    align-items: flex-end;
    padding: 3rem 2rem;
    background: linear-gradient(
      to top,
      rgba(253, 250, 247, 0.97) 0%,
      rgba(253, 250, 247, 0.85) 50%,
      rgba(253, 250, 247, 0) 100%
    );
  }
  .hero-text { max-width: none; }
  .hero-controls { right: 1.5rem; bottom: 1.5rem; }
  .hero-slide-count { display: none; }
}
