/* =========================================================
   Hotel Duwaraka — stylesheet
   ========================================================= */
:root {
  --bg: #FAF6EF;
  --sand: #EFE3CF;
  --beige: #E7D9BF;
  --charcoal: #2E2A24;
  --brown: #6B5842;
  --gold: #B08D4F;
  --line: #DCCFAF;
  --white: #FFFFFF;

  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
body { overflow-x: hidden; background: var(--bg); color: var(--charcoal); font-family: var(--font-body); font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; }
@media (max-width: 480px) { .container { padding: 0 18px; } }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 500;
}
.eyebrow--light { color: var(--gold); }

.section-heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 22px; max-width: 18ch;
}
.section-heading--center { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }
.section-lead { color: var(--brown); max-width: 52ch; margin-bottom: 44px; }
.section-lead[style], .section-heading--center + .section-lead { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 68px 0; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; font-size: 0.9rem; letter-spacing: 0.01em;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--white); box-shadow: 0 12px 24px -14px rgba(176,141,79,0.6); }
.btn--gold:hover { transform: translateY(-2px); background: #9c7c42; }
.btn--outline-light { border: 1px solid rgba(255,255,255,0.7); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn--outline { border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); }
.btn--large { padding: 18px 40px; font-size: 0.98rem; }
.btn--full { width: 100%; justify-content: center; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.hero [data-reveal] { transition-delay: 0s; }
.hero.is-ready [data-reveal] { opacity: 1; transform: translateY(0); }
.hero.is-ready [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.hero.is-ready [data-reveal]:nth-child(2) { transition-delay: 0.2s; }
.hero.is-ready [data-reveal]:nth-child(3) { transition-delay: 0.35s; }
.hero.is-ready [data-reveal]:nth-child(4) { transition-delay: 0.5s; }

/* =========================================================
   Nav
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 24px 0; transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.nav__inner { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.05em; color: var(--white); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 0.86rem; color: rgba(255,255,255,0.9); position: relative; padding-bottom: 3px; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav__link:hover::after { width: 100%; }
.nav__reserve { border: 1px solid var(--gold); color: var(--white); padding: 9px 22px; font-size: 0.82rem; transition: background 0.3s var(--ease); }
.nav__reserve:hover { background: var(--gold); }

.nav.is-scrolled { background: rgba(250, 246, 239, 0.95); backdrop-filter: blur(10px); box-shadow: 0 8px 26px -20px rgba(46,42,36,0.4); padding: 14px 0; }
.nav.is-scrolled .nav__brand, .nav.is-scrolled .nav__link { color: var(--charcoal); }
.nav.is-scrolled .nav__reserve { border-color: var(--charcoal); color: var(--charcoal); }
.nav.is-scrolled .nav__reserve:hover { background: var(--charcoal); color: var(--white); }
.nav.is-scrolled .nav__toggle span { background: var(--charcoal); }

.nav__toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; }
.nav__toggle span { width: 22px; height: 1px; background: var(--white); transition: background 0.3s var(--ease); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

.nav__mobile-panel {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
  padding: 40px; transform: translateX(100%); transition: transform 0.42s var(--ease);
}
.nav__mobile-panel.is-open { transform: translateX(0); }
.nav__mobile-panel .nav__link { color: var(--charcoal); font-family: var(--font-display); font-size: 1.3rem; }
.nav__mobile-panel .nav__reserve { border-color: var(--charcoal); color: var(--charcoal); margin-top: 8px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); }
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,42,36,0.25) 0%, rgba(46,42,36,0.2) 35%, rgba(46,42,36,0.82) 100%); }
.hero__content { position: relative; max-width: var(--container-w); margin: 0 auto; padding: 0 28px 100px; width: 100%; border-left: 2px solid var(--gold); }
.hero__content > * { padding-left: 28px; }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.15; margin: 14px 0 20px; }
.hero__desc { max-width: 44ch; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .hero__content { padding: 0 20px 70px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Introduction
   ========================================================= */
.intro__row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; margin-top: 20px; }
.intro__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.intro__copy p { color: var(--brown); margin-bottom: 18px; max-width: 50ch; }
.intro__facts { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.intro__facts li { display: flex; gap: 16px; font-size: 0.92rem; }
.intro__facts li span { width: 100px; flex-shrink: 0; color: var(--gold); font-size: 0.76rem; letter-spacing: 0.03em; text-transform: uppercase; padding-top: 2px; }

@media (max-width: 860px) {
  .intro__row { grid-template-columns: 1fr; gap: 32px; }
  .intro__media { max-width: 360px; margin: 0 auto; }
}

/* =========================================================
   Rooms
   ========================================================= */
.rooms { background: var(--sand); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room-card {
  background: var(--white); border: 1px solid var(--line); overflow: hidden; text-align: left; cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.room-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px -22px rgba(46,42,36,0.3); }
.room-card__media { aspect-ratio: 4/3; overflow: hidden; }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.06); }
.room-card__body { padding: 22px; }
.room-card__body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin-bottom: 8px; }
.room-card__body p { color: var(--brown); font-size: 0.9rem; margin-bottom: 14px; }
.room-card__tap { font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 900px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .room-grid { grid-template-columns: 1fr; } }

/* Room modal */
.room-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease);
}
.room-modal.is-open { opacity: 1; visibility: visible; }
.room-modal__backdrop { position: absolute; inset: 0; background: rgba(46,42,36,0.7); }
.room-modal__panel {
  position: relative; background: var(--white); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto;
  transform: translateY(20px) scale(0.98); transition: transform 0.4s var(--ease);
}
.room-modal.is-open .room-modal__panel { transform: translateY(0) scale(1); }
.room-modal__close { position: absolute; top: 14px; right: 16px; font-size: 1.6rem; color: var(--white); z-index: 2; background: rgba(46,42,36,0.4); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.room-modal__media { aspect-ratio: 16/9; overflow: hidden; }
.room-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.room-modal__body { padding: 30px; }
.room-modal__body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 12px; }
.room-modal__body p { color: var(--brown); margin-bottom: 18px; }
.room-modal__facilities { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
.room-modal__facilities li { font-size: 0.8rem; color: var(--brown); padding-left: 14px; position: relative; }
.room-modal__facilities li::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 1px; background: var(--gold); }
.room-modal__price { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); margin-bottom: 22px; }

@media (max-width: 480px) {
  .room-modal { padding: 12px; }
  .room-modal__body { padding: 22px; }
}

/* =========================================================
   Experience
   ========================================================= */
.experience__list { display: flex; flex-direction: column; }
.experience__row {
  display: grid; grid-template-columns: 80px 1fr 220px; gap: 30px; align-items: center;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.experience__list .experience__row:last-child { border-bottom: 1px solid var(--line); }
.experience__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.experience__text h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; }
.experience__text p { color: var(--brown); max-width: 52ch; font-size: 0.94rem; }
.experience__media { aspect-ratio: 4/3; overflow: hidden; }
.experience__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.experience__row:hover .experience__media img { transform: scale(1.06); }

@media (max-width: 780px) {
  .experience__row { grid-template-columns: 1fr; gap: 14px; }
  .experience__num { font-size: 1.3rem; }
  .experience__media { order: -1; aspect-ratio: 16/9; }
}

/* =========================================================
   Amenities
   ========================================================= */
.amenities { background: var(--sand); }
.amenities__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.amenities__list { display: flex; flex-direction: column; }
.amenities__list li {
  display: flex; align-items: baseline; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.15rem;
}
.amenities__list li:last-child { border-bottom: 1px solid var(--line); }
.amenities__list li span { font-family: var(--font-body); font-size: 0.76rem; color: var(--gold); letter-spacing: 0.04em; }

@media (max-width: 780px) { .amenities__grid { grid-template-columns: 1fr; gap: 30px; } }

/* =========================================================
   Gallery
   ========================================================= */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery__item { grid-row: span 2; overflow: hidden; position: relative; }
.gallery__item--tall { grid-row: span 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: rgba(46,42,36,0.14); opacity: 0; transition: opacity 0.4s var(--ease); }
.gallery__item:hover::after { opacity: 1; }

@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 10px; }
}

.lightbox { position: fixed; inset: 0; background: rgba(30,27,22,0.94); display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease); z-index: 200; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(900px, 92vw); max-height: 86vh; object-fit: contain; transform: scale(0.94); transition: transform 0.35s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox__close { position: absolute; top: 26px; right: 32px; color: var(--white); font-size: 2rem; }
@media (max-width: 480px) { .lightbox { padding: 18px; } .lightbox__close { top: 12px; right: 16px; } }

/* =========================================================
   Reviews
   ========================================================= */
.review-card { max-width: 680px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--line); padding: 50px 40px; }
.review-card__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 22px; }
.review-card__text { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.5; margin-bottom: 20px; transition: opacity 0.3s var(--ease); }
.review-card__author { color: var(--brown); font-size: 0.86rem; margin-bottom: 30px; transition: opacity 0.3s var(--ease); }
.review-card__controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.review-card__controls button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.review-card__controls button:hover { border-color: var(--gold); color: var(--gold); }
.review-card__dots { display: flex; gap: 8px; }
.review-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background 0.3s var(--ease); }
.review-dot.is-active { background: var(--gold); }

@media (max-width: 480px) { .review-card { padding: 36px 22px; } }

/* =========================================================
   Location
   ========================================================= */
.location__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.location__address { color: var(--brown); margin-bottom: 26px; }
.location__nearby { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 32px; }
.location__nearby li { display: flex; justify-content: space-between; font-size: 0.92rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.location__nearby li span:last-child { color: var(--gold); }
.location__map iframe { width: 100%; height: 400px; border: 0; }

@media (max-width: 860px) {
  .location__grid { grid-template-columns: 1fr; gap: 32px; }
  .location__map iframe { height: 280px; }
}

/* =========================================================
   Booking CTA
   ========================================================= */
.cta { background: var(--charcoal); color: var(--white); }
.cta__inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--sand); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1fr; gap: 36px; padding-bottom: 46px; }
.footer__brand { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 10px; }
.footer__col p { color: var(--brown); font-size: 0.9rem; margin-bottom: 8px; }
.footer__col h4 { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--line); text-align: center; padding: 22px 0; font-size: 0.76rem; color: var(--brown); }

@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.wa-float {
  position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); right: calc(22px + env(safe-area-inset-right, 0px));
  width: 56px; height: 56px; background: #25D366; color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 28px -12px rgba(37,211,102,0.6);
  z-index: 90; animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 26px; height: 26px; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 14px 28px -12px rgba(37,211,102,0.6); } 50% { box-shadow: 0 14px 28px -12px rgba(37,211,102,0.95), 0 0 0 10px rgba(37,211,102,0.12); } }
@media (max-width: 480px) {
  .wa-float { width: 50px; height: 50px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
  .wa-float svg { width: 23px; height: 23px; }
}
