/* ==========================================================================
   Layout — header, hero, footer, section scaffolding
   ========================================================================== */

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section {
  padding: 100px 0;
}

[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: transparent;
  transition: background var(--t-medium), box-shadow var(--t-medium), padding var(--t-medium);
  padding: 22px 0;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--cream);
  box-shadow: 0 4px 20px rgba(43, 26, 27, 0.08);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 84px;
  width: auto;
  transition: height var(--t-medium);
}

.site-header.is-scrolled .brand img,
.site-header.is-solid .brand img {
  height: 66px;
}

/* Two logo marks swap depending on what's behind the header: the white mark
   reads against the transparent-over-hero state, the maroon mark against the
   light header once it's scrolled or solid. */
.brand-logo--dark { display: none; }

.site-header.is-scrolled .brand-logo--light,
.site-header.is-solid .brand-logo--light {
  display: none;
}

.site-header.is-scrolled .brand-logo--dark,
.site-header.is-solid .brand-logo--dark {
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), opacity var(--t-fast);
}

.main-nav a:hover,
.main-nav a.is-active {
  border-color: var(--white);
}

.site-header.is-scrolled .main-nav a,
.site-header.is-solid .main-nav a {
  color: var(--maroon-deep);
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-solid .main-nav a:hover,
.site-header.is-scrolled .main-nav a.is-active,
.site-header.is-solid .main-nav a.is-active {
  border-color: var(--maroon-deep);
}

/* the mobile menu overlay is always maroon (see below), so nav links inside
   it stay white regardless of the header's own state */
.main-nav.is-open a {
  color: var(--white) !important;
}

.main-nav.is-open a:hover,
.main-nav.is-open a.is-active {
  border-color: var(--white) !important;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 600;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.site-header.is-scrolled .nav-toggle span,
.site-header.is-solid .nav-toggle span {
  background: var(--maroon-deep);
}

/* the open mobile menu is always maroon, so the close icon stays white */
.nav-toggle.is-open span {
  background: var(--white) !important;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--maroon-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--t-medium);
    z-index: 550;
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .main-nav ul li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 320ms ease, transform 320ms ease;
  }

  .main-nav.is-open ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.is-open ul li:nth-child(1) { transition-delay: 80ms; }
  .main-nav.is-open ul li:nth-child(2) { transition-delay: 140ms; }
  .main-nav.is-open ul li:nth-child(3) { transition-delay: 200ms; }
  .main-nav.is-open ul li:nth-child(4) { transition-delay: 260ms; }

  .main-nav a { font-size: 1.1rem; }

  .header-cta .btn-outline { display: none; }

  /* The mobile sticky booking bar already gives a persistent "Book Your
     Stay" action, so the header's copy of it is redundant on mobile. */
  .header-cta .btn-primary { display: none; }

  .nav-toggle { display: flex; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (homepage slider) ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1200ms ease;
}

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

.hero-slide-media {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  animation: kenburns 16000ms ease-in-out infinite alternate;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,10,10,0.35) 0%, rgba(30,10,10,0.55) 100%);
}

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

.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 110px;
}

.hero-content .container {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

.hero-copy { max-width: 620px; }

.hero-copy .eyebrow { color: var(--white); }

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background var(--t-fast), transform var(--t-fast);
}

.hero-dots button.is-active {
  background: var(--white);
  transform: scale(1.2);
}

/* ---------- Page banner (inner pages) ---------- */

.page-banner {
  position: relative;
  padding: 210px 0 90px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(30,10,10,0.55), rgba(30,10,10,0.7)), var(--maroon-deep) center/cover;
  text-align: center;
}

.page-banner h1 { color: var(--white); }
.page-banner .lede { color: rgba(255,255,255,0.85); margin: 0 auto; }

.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #380505;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand img {
  height: 90px;
  margin-bottom: 18px;
}
.footer-brand p { max-width: 320px; color: rgba(255, 255, 255, 0.7); }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.75); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content .container { justify-content: center; text-align: center; }
  .hero-ctas { justify-content: center; }
}

/* ---------- Mobile booking bar ---------- */

.mobile-booking-bar {
  display: none;
}

@media (max-width: 640px) {
  .mobile-booking-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 400;
    background: var(--cream);
    border-top: 1px solid var(--line);
    padding: 12px 20px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  }

  .mobile-booking-bar .btn { width: 100%; text-align: center; }

  body { padding-bottom: 68px; }
}
