/* =========================================================
   ELYRA HOTEL - single page template
   ========================================================= */

:root {
  --sand: #c9a67d;
  --sand-soft: #d6b892;
  --brown: #5c4737;
  --brown-deep: #2a1f18;
  --ink: #2b221c;
  --cream: #fbf6ee;
  --gold: #d7b23a;
  --gold-dark: #b8962a;
  --slate: #2f4b5c;
  --line: rgba(255, 255, 255, .45);

  --f-display: "Gilda Display", Georgia, serif;
  --f-body: "Lora", Georgia, serif;
  --f-ui: "Poppins", system-ui, sans-serif;
  --f-script: "Pinyon Script", cursive;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(20, 12, 6, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main, .footer { overflow-x: hidden; overflow-x: clip; } /* off-screen reveal offsets must never widen the page */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.7em;
  font-family: var(--f-ui); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent; border-radius: 3px;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease), border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 22px -12px rgba(215, 178, 58, .9); }
.btn--gold:hover { background: var(--gold-dark); box-shadow: 0 16px 28px -12px rgba(215, 178, 58, .95); }
.btn--slate { background: var(--slate); color: #fff; border-radius: 6px; }
.btn--slate:hover { background: #24404f; }
.btn--outline { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--brown); }

/* ---------- Headings ---------- */
.title { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--ink); }
.title--light { color: #fff; }
.title--sm { font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; text-shadow: 0 2px 14px rgba(60, 40, 20, .25); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 18px 0;
}
.header__inner {
  width: min(1240px, 100% - 48px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header.is-scrolled {
  background: rgba(42, 31, 24, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -14px rgba(0, 0, 0, .6);
  padding: 10px 0;
}
.logo {
  font-family: var(--f-script); font-size: 2.1rem; line-height: 1; color: #fff;
  white-space: nowrap; letter-spacing: .01em;
}
.logo span { font-size: .8em; opacity: .9; }

.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  position: relative; font-family: var(--f-display); font-size: .98rem; color: #fff; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; padding: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; height: 92vh; max-height: 900px;
  display: flex; align-items: center; overflow: hidden; color: #fff;
}
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 20, 12, .72) 0%, rgba(30, 20, 12, .4) 45%, rgba(30, 20, 12, .1) 75%),
    linear-gradient(180deg, rgba(20, 12, 6, .45) 0%, transparent 25%, transparent 70%, rgba(20, 12, 6, .45) 100%);
}
.hero__content { position: relative; z-index: 1; padding-bottom: 40px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__text { max-width: 560px; margin: 26px 0 32px; font-size: 1.02rem; color: rgba(255, 255, 255, .9); }
.hero__text strong { color: #fff; }

.social {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 2;
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
}
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 1.05rem;
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.social a:hover { background: #fff; color: var(--brown); transform: scale(1.1); }

/* ---------- Booking ---------- */
.booking-wrap { position: relative; z-index: 5; margin-top: -58px; display: flex; justify-content: center; }
.booking {
  display: grid; grid-template-columns: 1fr 1fr 1.35fr auto; align-items: end; gap: 14px;
  width: min(880px, 100%);
  background: #fff; border-radius: 18px; padding: 18px 22px 20px;
  box-shadow: 0 24px 50px -22px rgba(30, 18, 8, .55);
  font-family: var(--f-ui);
}
.booking__field { position: relative; display: grid; gap: 6px; min-width: 0; }
.booking__label { font-size: .74rem; color: #7b7068; }

.date, .guests {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  border: 1px solid #e3ddd6; border-radius: 8px; background: #fff;
  font-size: .85rem; color: #5d5650; cursor: pointer; position: relative;
  transition: border-color .3s, box-shadow .3s;
}
.date:hover, .guests:hover, .date:focus-within, .guests[aria-expanded="true"] {
  border-color: var(--sand); box-shadow: 0 0 0 3px rgba(201, 166, 125, .2);
}
.date .ico { color: #8a8079; font-size: 1.05rem; }
.date__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0;
}
.date[data-empty="false"] .date__text { color: var(--ink); font-weight: 500; }

.guests { width: 100%; justify-content: space-between; gap: 8px; }
.guests > span { display: inline-flex; align-items: baseline; gap: 4px; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #8a8079; white-space: nowrap; }
.guests b { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.guests__chev { color: #8a8079; transition: transform .3s var(--ease); }
.guests[aria-expanded="true"] .guests__chev { transform: rotate(180deg); }

.guests-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 10;
  background: #fff; border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 20px 40px -16px rgba(30, 18, 8, .45);
  animation: pop .25s var(--ease);
}
.guests-panel[hidden] { display: none; }
.stepper { display: grid; grid-template-columns: 1fr 32px 28px 32px; align-items: center; gap: 6px; padding: 8px 0; font-size: .86rem; }
.stepper + .stepper { border-top: 1px solid #f0ebe5; }
.stepper button {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #e3ddd6; background: #fff; color: var(--brown);
  transition: background .25s, color .25s, border-color .25s;
}
.stepper button:hover:not(:disabled) { background: var(--brown); color: #fff; border-color: var(--brown); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { text-align: center; font-weight: 500; }

.booking__submit { height: 46px; padding-inline: 2em; }

/* ---------- Rooms ---------- */
.rooms { padding-top: clamp(56px, 7vw, 80px); }
.rooms .title { text-align: center; }
.lead { max-width: 980px; margin: 18px auto 0; text-align: justify; font-size: .98rem; }

.room-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(40px, 5vw, 60px);
}
.room {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--brown); color: #fff; border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, .22), 14px 20px 30px -10px rgba(40, 25, 12, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.room:hover {
  transform: translateY(-8px);
  box-shadow: 10px 12px 0 rgba(255, 255, 255, .28), 18px 30px 40px -12px rgba(40, 25, 12, .6);
}
.room__img { aspect-ratio: 16 / 10; overflow: hidden; }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.room:hover .room__img img { transform: scale(1.08); }
.room__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.room h3 { font-size: 1.25rem; }
.room p { margin: 10px 0 20px; font-size: .84rem; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.room p b { color: #fff; font-weight: 600; }
.room .btn { align-self: center; margin-top: auto; }

/* ---------- Shared framed image ---------- */
.frame { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 10px 10px 0 rgba(255, 255, 255, .14), var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.frame:hover img { transform: scale(1.06); }

/* ---------- Spa ---------- */
.spa { color: rgba(255, 255, 255, .88); overflow: hidden; background: var(--brown-deep); }
.spa__bg {
  position: absolute; inset: -12px; background-size: cover; background-position: center;
  filter: blur(3px); opacity: .38;
}
.spa::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(42, 31, 24, .45), rgba(42, 31, 24, .9) 60%);
}
.spa__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.spa__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.spa__img { aspect-ratio: 4 / 5; }
.spa__img--a { margin-top: 60px; }
.spa__img--b { animation: float 7s ease-in-out infinite; }
.spa__copy p { margin: 20px 0 30px; font-size: .97rem; }

/* ---------- Restaurant ---------- */
.restaurant { color: rgba(255, 255, 255, .88); overflow: hidden; background: #3f3128; }
.restaurant__bg {
  position: absolute; inset: -20px; background-size: cover; background-position: center;
  filter: blur(8px) saturate(.8); opacity: .45;
}
.restaurant::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(63, 49, 40, .5), rgba(63, 49, 40, .75));
}
.restaurant__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.restaurant__copy p { margin: 20px 0 30px; font-size: .97rem; }
.restaurant__copy .btn { margin-left: clamp(0px, 14vw, 180px); }
.restaurant__img { aspect-ratio: 16 / 10.5; }

/* ---------- Reviews ---------- */
.reviews { background: var(--sand); }
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.reviews__img { aspect-ratio: 16 / 10.5; box-shadow: 10px 10px 0 rgba(255, 255, 255, .25), var(--shadow); }

.slider { margin-top: 26px; }
.slider__track { display: grid; }
.review {
  grid-area: 1 / 1; margin: 0; padding: 16px 20px 18px;
  border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  font-family: var(--f-ui); font-size: .82rem; color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.review.is-active { opacity: 1; visibility: visible; transform: none; }
.review cite { font-style: normal; font-weight: 500; font-size: .84rem; }
.stars { display: flex; gap: 2px; margin: 4px 0 10px; color: #b4850f; font-size: .95rem; }
.stars .ico.is-off { color: rgba(43, 34, 28, .25); }
.review p { padding-top: 10px; border-top: 1px solid var(--line); line-height: 1.6; }

.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slider__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0;
  background: rgba(255, 255, 255, .55);
  transition: width .4s var(--ease), background .3s;
}
.slider__dots button[aria-selected="true"] { width: 28px; background: var(--brown); }

/* ---------- Footer ---------- */
.footer { background: var(--brown-deep); color: rgba(255, 255, 255, .75); padding: 56px 0 24px; font-family: var(--f-ui); font-size: .86rem; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.logo--footer { font-size: 2.4rem; }
.footer__tag { margin-top: 10px; max-width: 320px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list li { display: flex; align-items: center; gap: 10px; }
.footer__list .ico { color: var(--gold); font-size: 1.05rem; }
.footer__list a:hover { color: #fff; }
.footer__copy { width: min(1180px, 100% - 48px); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 10px;
  background: var(--brown-deep); color: #fff; font-family: var(--f-ui); font-size: .85rem;
  box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Watermark ---------- */
.watermark {
  position: fixed; left: 14px; bottom: 12px; z-index: 55;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(42, 31, 24, .35); color: rgba(255, 255, 255, .7);
  font-family: var(--f-ui); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none; user-select: none;
}
.watermark strong { font-weight: 600; color: rgba(255, 255, 255, .9); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1%, -1%); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Hero intro (on load) */
.js .hero__title .line > span { animation: rise 1s var(--ease) both; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .15s; }
.js .hero__text { animation: fadeUp 1s var(--ease) .45s both; }
.js .hero__cta { animation: fadeUp 1s var(--ease) .6s both; }
.js .social li { animation: fadeUp .8s var(--ease) both; }
.js .social li:nth-child(1) { animation-delay: .8s; }
.js .social li:nth-child(2) { animation-delay: .9s; }
.js .social li:nth-child(3) { animation-delay: 1s; }
.js .booking { animation: fadeUp 1s var(--ease) .75s both; }
.js .header { animation: fadeIn .8s var(--ease) both; }

/* Scroll reveal */
.js .reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal[data-anim="left"] { transform: translateX(-46px); }
.js .reveal[data-anim="right"] { transform: translateX(46px); }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .reveal[data-delay="3"] { transition-delay: .36s; }
.js .reveal.is-in { opacity: 1; transform: none; }
/* keep the card hover lift working after reveal */
.js .room.reveal.is-in { transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.js .room.reveal.is-in:hover { transform: translateY(-8px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .booking { grid-template-columns: 1fr 1fr; }
  .booking__field--guests { grid-column: 1 / -1; }
  .booking__submit { grid-column: 1 / -1; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .room-grid .room:last-child { grid-column: 1 / -1; max-width: calc(50% - 16px); justify-self: center; }
  .spa__grid, .restaurant__grid, .reviews__grid { grid-template-columns: 1fr; }
  .restaurant__copy .btn { margin-left: 0; }
  .social { display: none; }
  /* single column: reveal upwards instead of sliding in from the sides */
  .js .reveal[data-anim] { transform: translateY(36px); }
  .js .reveal[data-anim].is-in { transform: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .logo { position: relative; z-index: 2; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  body.menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow-y: auto;
    flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    padding: 90px 24px 40px;
    background: var(--brown-deep);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font-size: 1.5rem; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav.is-open a { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(2) { transition-delay: .05s; }
  .nav.is-open a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open a:nth-child(4) { transition-delay: .15s; }
  .nav.is-open a:nth-child(5) { transition-delay: .2s; }
  .nav.is-open a:nth-child(6) { transition-delay: .25s; }
  body.menu-open { overflow: hidden; }

  .hero { height: auto; min-height: 100svh; max-height: none; padding: 120px 0 110px; }
  .hero__shade { background: linear-gradient(180deg, rgba(30, 20, 12, .55), rgba(30, 20, 12, .7)); }
  .lead { text-align: left; }
  .room-grid { grid-template-columns: 1fr; }
  .room-grid .room:last-child { grid-column: auto; max-width: none; }
  .spa__img--a { margin-top: 36px; }
}

@media (max-width: 520px) {
  .container, .header__inner, .footer__copy { width: calc(100% - 32px); }
  .booking { grid-template-columns: 1fr; padding: 16px; }
  .guests > span { font-size: .55rem; }
  .logo { font-size: 1.8rem; }
}
