/* Home hero: light carousel of the Nova slides (resources/views/frontend/pages/home/slider.blade.php).
   Sizes in px: Bootstrap 3 sets the root font size to 10px.
   The gites section below overlaps the hero by 100px (.mtn-10): the bottom
   padding and the bar offset keep the text and buttons clear of it. */

.hero {
  position: relative;
  display: grid;
  padding: 0;
  background-color: #1c1c1c;
  color: #fff;
  overflow: hidden;
}

/* Every slide sits in the same cell: the tallest text sets the height.
   Inactive slides are invisible, hence out of the tab order and the
   accessibility tree; without JavaScript only the first one shows. */
.hero__slides {
  display: grid;
}

.hero__slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 780px);
  min-height: clamp(560px, 82svh, 780px);
  padding: 60px 0 230px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim: white text keeps 4.5:1 even on a white photo (owner can change the photos). */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__heading {
  margin: 0 auto;
  max-width: 960px;
  font-family: "Droid Serif", serif !important;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero__eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(18px, 16px + 0.6vw, 26px);
  line-height: 1.3;
}

.hero__title {
  display: block;
  font-size: clamp(34px, 22px + 3.5vw, 72px);
}

.hero__details {
  margin: 24px auto 0;
  max-width: 40em;
  font-family: "Droid Serif", serif;
  font-style: italic;
  font-size: clamp(16px, 14px + 0.5vw, 21px);
  line-height: 1.6;
  color: #fff;
  text-wrap: pretty;
}

.hero__heading a,
.hero__details a {
  color: inherit;
  text-decoration: underline;
}

.hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 124px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}

/* Bootstrap's .container clearfix pseudo-elements become flex items: once the
   bar wraps (mobile), they add a gap beside the CTA and the controls and push
   each line off centre. */
.hero__bar::before,
.hero__bar::after {
  content: none;
}

/* #1c1c1c on #BF9E66: 6.9:1. */
.hero__cta {
  display: inline-block;
  min-height: 44px;
  padding: 13px 32px;
  background-color: #BF9E66;
  color: #1c1c1c;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero__cta:hover,
.hero__cta:focus {
  background-color: #fff;
  color: #1c1c1c;
  text-decoration: none;
}

.hero__controls {
  display: flex;
  gap: 8px;
}

.hero__control {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero__control:hover {
  background-color: #fff;
  color: #1c1c1c;
}

.hero :focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  .hero__slide {
    min-height: calc(100vh - 100px);
    min-height: calc(100svh - 100px);
    padding: 48px 0 170px;
  }

  /* No overlap from the next section at this width. */
  .hero__bar {
    bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide.is-active,
  .hero__cta,
  .hero__control {
    transition: none;
  }
}
