/* ============================================================
   ROYAL STONEWOOD HOTEL & SUITES
   Design system: Refined (base) · Power (dark sections) · Premium (spacing)
   Palette drawn from brand photography:
   gold #C6A15B / charcoal #141414 / ivory #FAF6ED / stone #7D8289 / blue #1B3A5C
   ============================================================ */

:root {
  --gold:        #C6A15B;
  --gold-bright: #E0C68C;
  --gold-deep:   #9C7C3C;
  --charcoal:    #141414;
  --charcoal-2:  #1E1E1E;
  --ivory:       #FAF6ED;
  --cream:       #F1EADA;
  --stone:       #7D8289;
  --blue:        #1B3A5C;
  --ink:         #211D16;
  --line:        rgba(33, 29, 22, 0.14);
  --line-light:  rgba(250, 246, 237, 0.16);

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 24px 60px -24px rgba(20, 20, 20, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn-gold  { background: var(--gold); color: #1A150B; }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(250, 246, 237, 0.55); color: var(--ivory); }
.btn-ghost:hover { background: rgba(250, 246, 237, 0.1); border-color: var(--ivory); }
.btn-dark  { background: var(--charcoal); color: var(--ivory); }
.btn-dark:hover { background: var(--blue); }
.btn-block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow.dark { color: var(--gold-deep); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
}
.section-title.light { color: var(--ivory); }
.section-sub { margin-top: 1rem; max-width: 560px; color: var(--stone); }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.link-gold {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 0.3rem;
  transition: color 0.3s, border-color 0.3s;
}
.link-gold:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-nav.scrolled {
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  width: min(1160px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(198, 161, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.15);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ivory);
  letter-spacing: 0.04em;
}
.brand-name em { font-style: italic; color: var(--gold-bright); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.85);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { padding: 0.7rem 1.5rem; font-size: 0.7rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 34px; height: 26px;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ivory);
  margin: 6px 0;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 2.6s var(--ease);
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: gentleRise 9s var(--ease) forwards;
}
@keyframes gentleRise {
  from { transform: translateY(1.6%); }
  to   { transform: translateY(0); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(20, 20, 20, 0.9) 0%,
    rgba(20, 20, 20, 0.5) 38%,
    rgba(20, 20, 20, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, 92%);
  margin-inline: auto;
  padding: 8rem 0 6rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 1.05;
  color: var(--ivory);
  margin-bottom: 1.6rem;
}
.hero-title span { color: var(--gold-bright); font-style: italic; }
.hero-sub {
  max-width: 540px;
  color: rgba(250, 246, 237, 0.82);
  font-size: 1.02rem;
  margin-bottom: 2.6rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50%      { transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}
.about-media img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.about-media:hover img { transform: scale(1.04); }

.about-text p { margin-bottom: 1.2rem; color: #4A453A; font-size: 1.02rem; }
.about-points { margin: 1.6rem 0 0.6rem; }
.about-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  color: var(--ink);
  font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
}
.about-points li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.85rem;
}

/* ============================================================
   ROOMS
   ============================================================ */
.rooms { background: var(--cream); }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2.2rem;
}
.room-card {
  background: var(--ivory);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease);
}
.room-card:hover { transform: translateY(-6px); }
.room-card-featured { outline: 1px solid var(--gold); outline-offset: -1px; }

.room-media { overflow: hidden; }
.room-media img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.room-card:hover .room-media img { transform: scale(1.05); }

.room-body {
  padding: 2rem 2.1rem 2.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.room-body h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.room-rate {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}
.room-rate span {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.room-desc { color: var(--stone); font-size: 0.95rem; margin-bottom: 1.3rem; }
.room-features { margin-bottom: 1.7rem; }
.room-features li {
  padding: 0.42rem 0 0.42rem 1.7rem;
  position: relative;
  font-size: 0.9rem;
  color: #4A453A;
}
.room-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85rem;
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.room-body .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   DINING
   ============================================================ */
.dining {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
  color: var(--ivory);
}
.dining-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.dining-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 20, 20, 0.92) 30%, rgba(20, 20, 20, 0.35) 75%);
}
.dining-content { position: relative; z-index: 2; max-width: 680px; }
.dining-copy {
  color: rgba(250, 246, 237, 0.85);
  font-size: 1.05rem;
  margin: 1.6rem 0 2.8rem;
}
.dining-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-light);
  padding-top: 2rem;
}
.dining-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold-bright);
}
.dining-stats span { color: rgba(250, 246, 237, 0.7); font-size: 0.85rem; }

/* ============================================================
   AMENITIES
   ============================================================ */
.amenities { background: var(--ivory); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}
.amenity {
  background: var(--cream);
  padding: 1.9rem 1.7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.amenity:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -20px rgba(20, 20, 20, 0.25);
}
.amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.amenity h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.amenity p { color: var(--stone); font-size: 0.9rem; }

.amenity-brand {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(2rem, 4vw, 3.2rem);
}
.amenity-brand img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.amenity-brand-text h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}
.amenity-brand-text p { color: rgba(250, 246, 237, 0.78); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.g-item {
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 2px;
  position: relative;
}
.g-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.5s;
  filter: saturate(0.92);
}
.g-item:hover img { transform: scale(1.07); filter: saturate(1.1); }
.g-item:nth-child(1),
.g-item:nth-child(6) { grid-column: span 2; }
.g-item:nth-child(1) img,
.g-item:nth-child(6) img { aspect-ratio: 2 / 1; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--blue) 130%);
  color: var(--ivory);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.contact-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 1.8rem;
}
.contact-info p {
  padding: 1rem 0;
  border-top: 1px solid var(--line-light);
  color: rgba(250, 246, 237, 0.85);
  font-size: 0.95rem;
}
.ci-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.contact-info a:hover { color: var(--gold-bright); }

.booking-form {
  background: rgba(250, 246, 237, 0.05);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.booking-form h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.45rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(250, 246, 237, 0.08);
  border: 1px solid var(--line-light);
  border-radius: 0;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s, background 0.3s;
}
.form-field select { appearance: none; }
.form-field select option { color: var(--ink); background: var(--ivory); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(250, 246, 237, 0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(250, 246, 237, 0.4); }
.booking-form .btn { margin-top: 0.4rem; }
.form-note { margin-top: 0.9rem; font-size: 0.78rem; color: rgba(250, 246, 237, 0.55); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0D0D0D; color: rgba(250, 246, 237, 0.6); }
.footer-inner {
  padding: 3rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; max-width: 420px; }
.footer-brand p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-legal { width: 100%; text-align: center; font-size: 0.78rem; border-top: 1px solid rgba(250, 246, 237, 0.08); padding-top: 1.6rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  background: none;
  border: 0;
  color: var(--ivory);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}
.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-grid,
  .amenity-brand,
  .contact-grid { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item:nth-child(1),
  .g-item:nth-child(6) { grid-column: span 2; }

  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(13, 13, 13, 0.98);
    z-index: 55;
  }
  .nav-links.mobile-open a { font-size: 1.1rem; color: var(--ivory); }
  .nav-links.mobile-open a:hover { color: var(--gold-bright); }
}

@media (max-width: 560px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-item:nth-child(1),
  .g-item:nth-child(6) { grid-column: span 1; }
  .g-item img,
  .g-item:nth-child(1) img,
  .g-item:nth-child(6) img { aspect-ratio: 4 / 3; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .dining-stats { flex-direction: column; gap: 1.4rem; }
}
