/* Brooklyn Motel — hero (centered) + sticky contact bar */

/* ----- Home hero (centered layout) ----- */
.hero.hero--centered .wrapper {
  text-align: center;
}

.hero.hero--centered .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(0.65rem, 0.45rem + 0.35vw, 0.85rem);
  font-weight: 600;
  color: #c9b896;
  margin: 0 0 1rem;
}

.hero.hero--centered .hero-title {
  color: #fff;
  font-size: clamp(1.75rem, 1.1rem + 2.8vw, 4.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 1.75rem;
}

.hero.hero--centered .hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.hero.hero--centered .hero-cta__book {
  padding: 0.85rem 2rem;
  min-width: 10.5rem;
  border-radius: 999px;
  background: #6c3736;
}

.hero.hero--centered .hero-cta__book em {
  font-family: "Caveat", cursive;
  font-size: clamp(1.35rem, 1rem + 0.9vw, 1.75rem);
  font-style: normal;
  font-weight: 500;
}

.hero.hero--centered .hero-cta__call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.65rem 1.75rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero.hero--centered .hero-cta__call:hover,
.hero.hero--centered .hero-cta__call:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero.hero--centered .hero-cta__number {
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero.hero--centered .hero-cta__label {
  font-size: clamp(0.6rem, 0.5rem + 0.2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-top: 0.15rem;
}

@media (min-width: 1920px) {
  .hero.hero--centered .hero-title {
    font-size: 4.5rem;
  }
}

/* ----- Home hero video background ----- */
.hero.hero--video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero.hero--video.full-height {
  height: 100vh;
  height: 100dvh;
}

.hero.hero--video .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #1a1a1a;
}

.hero.hero--video .hero__poster,
.hero.hero--video .hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}

.hero.hero--video .hero__poster {
  z-index: 1;
  transition: opacity 0.5s ease;
}

.hero.hero--video.is-playing .hero__poster {
  opacity: 0;
  pointer-events: none;
}

.hero.hero--video .hero__video {
  z-index: 0;
}

.hero.hero--video .wrapper {
  position: relative;
  z-index: 2;
}

@media (min-width: 1200px) {
  .hero.hero--video.full-height {
    min-height: 720px;
  }
}

@media (min-width: 1920px) {
  .hero.hero--video.full-height {
    min-height: 900px;
  }

  .hero.hero--video .hero__poster,
  .hero.hero--video .hero__video {
    object-position: center 40%;
  }
}

@media (min-width: 2560px) {
  .hero.hero--video.full-height {
    min-height: 1080px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--video .hero__video {
    display: none;
  }
}

/* ----- Sticky contact bar (all pages) ----- */
body.has-sticky-contact {
  --sticky-contact-clearance: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom: var(--sticky-contact-clearance);
}

/* Extra space in the dark footer strip so copyright sits above the fixed bar */
body.has-sticky-contact footer .copy {
  padding-bottom: calc(25px + var(--sticky-contact-clearance));
}

.sticky-contact-bar {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 998;
  width: min(92vw, 42rem);
  pointer-events: none;
}

.sticky-contact-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 0.65rem);
  padding: clamp(0.4rem, 1.2vw, 0.55rem);
  background: #f8f6f2;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
  pointer-events: auto;
}

.sticky-contact-bar__book,
.sticky-contact-bar__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.78rem, 0.7rem + 0.35vw, 0.95rem);
  line-height: 1.2;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sticky-contact-bar__book {
  flex: 1 1 auto;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  background: #6c3736;
  color: #fff;
}

.sticky-contact-bar__book:hover,
.sticky-contact-bar__book:focus {
  background: #542a29;
  color: #fff;
}

.sticky-contact-bar__call {
  flex: 1 1 auto;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid #1a1a1a;
  color: #1a1a1a;
  background: transparent;
}

.sticky-contact-bar__call:hover,
.sticky-contact-bar__call:focus {
  background: #1a1a1a;
  color: #fff;
}

.sticky-contact-bar__email {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 8vw, 2.85rem);
  height: clamp(2.5rem, 8vw, 2.85rem);
  border-radius: 0.65rem;
  background: #ebe8e3;
  color: #1a1a1a;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.sticky-contact-bar__email:hover,
.sticky-contact-bar__email:focus {
  background: #ddd8d0;
}

.sticky-contact-bar__email svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

body.has-sticky-contact .progress-wrap {
  bottom: var(--sticky-contact-clearance);
}

@media (max-width: 991px) {
  body.has-sticky-contact {
    --sticky-contact-clearance: calc(7rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 992px) {
  .sticky-contact-bar {
    left: 1.25rem;
    right: auto;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    max-width: 42rem;
  }
}

@media (max-width: 380px) {
  .sticky-contact-bar__call .sticky-contact-bar__phone-short {
    display: none;
  }
  .sticky-contact-bar__call .sticky-contact-bar__phone-label::before {
    content: "Call ";
  }
}

@media (min-width: 2560px) {
  .sticky-contact-bar {
    width: min(48rem, 55vw);
  }
  .sticky-contact-bar__book,
  .sticky-contact-bar__call {
    font-size: 1.05rem;
    min-height: 3.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-contact-bar__book,
  .sticky-contact-bar__call,
  .sticky-contact-bar__email,
  .hero.hero--centered .hero-cta__call {
    transition: none;
  }
}

/* ----- Contact form submit feedback ----- */
#contactform.is-submitting {
  pointer-events: none;
}

#contactform.is-submitting .form-control {
  opacity: 0.72;
}

#contactform .btn_1.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 9.5rem;
  cursor: wait;
}

.contact-form-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: #6c3736;
  font-size: 0.95rem;
}

.contact-form-spinner {
  color: #6c3736;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .contact-form-spinner {
    animation: none;
    opacity: 0.85;
  }
}
