/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #080808;
  --dark: #111111;
  --dark2: #1a1a1a;
  --gold: #c8860d;
  --gold-light: #e8a020;
  --white: #f5f0eb;
  --grey: #888;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
}

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

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.preloader-logo {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
  animation: lineGrow 1.5s ease forwards 0.3s;
}

@keyframes pulse { 0%,100%{opacity:0.4} 50%{opacity:1} }
@keyframes lineGrow { to { width: 60px; } }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  transition: background var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 4rem;
  border-bottom: 1px solid rgba(200,134,13,0.15);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.nav-logo span { color: var(--gold); font-weight: 300; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.7);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 0.5rem 1.2rem;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--black) !important; }

.nav-burger { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh; min-height: 700px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8s ease;
  animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.3) 0%,
    rgba(8,8,8,0.5) 50%,
    rgba(8,8,8,0.85) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-sub {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.hero-desc {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.6);
  margin-bottom: 3rem;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.hero-btn:hover { background: var(--gold); color: var(--black); }

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

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.8s; }

/* ===== SECTIONS ===== */
section { padding: 8rem 4rem; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
}

.section-desc {
  max-width: 600px;
  margin: 1rem auto 0;
  color: rgba(245,240,235,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== FILTER ===== */
.filter-bar {
  display: flex; justify-content: center; gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: none;
  border: 1px solid rgba(245,240,235,0.15);
  color: rgba(245,240,235,0.5);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 580px) { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.visible { opacity: 1; transform: translateY(0); }
.gallery-item.hidden { display: none; }

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery-more { text-align: center; margin-top: 3rem; }

/* ===== BUTTONS ===== */
.btn-outline {
  background: none;
  border: 1px solid rgba(245,240,235,0.3);
  color: var(--white);
  padding: 0.9rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background var(--transition);
  cursor: pointer;
  border: none;
}
.btn-gold:hover { background: var(--gold-light); }

/* ===== SLIDESHOW ===== */
#slideshow { background: var(--dark); padding: 8rem 0; }
#slideshow .section-header { padding: 0 4rem; }

.slideshow-container {
  position: relative;
  overflow: hidden;
}

.slide-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100vw;
  height: 80vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.slide img {
  max-height: 100%;
  max-width: 90%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(8,8,8,0.6);
  border: 1px solid rgba(200,134,13,0.3);
  color: var(--white);
  width: 50px; height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slide-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.slide-prev { left: 2rem; }
.slide-next { right: 2rem; }

.slide-info {
  text-align: center;
  padding: 2rem;
}
.slide-counter {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.slide-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.slide-buy {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.6rem 1.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.slide-buy:hover { background: var(--gold); color: var(--black); }

.slide-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 1rem;
}
.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(245,240,235,0.2);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active { background: var(--gold); width: 20px; border-radius: 2px; }

/* ===== ROOM PREVIEW ===== */
#room { background: var(--dark2); }

.room-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

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

/* ===== ROOM TABS ===== */
.room-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.room-tab {
  background: none;
  border: 1px solid rgba(245,240,235,0.15);
  color: rgba(245,240,235,0.45);
  padding: 0.5rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.room-tab:hover, .room-tab.active {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== ROOM SCENE ===== */
.room-scene {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(200,134,13,0.08);
  background: #111;
}

#roomCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.room-controls {
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,134,13,0.1);
}

.room-controls h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.room-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 1.5rem;
}

.room-thumb {
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  border: 2px solid transparent;
}
.room-thumb:hover, .room-thumb.active { opacity: 1; border-color: var(--gold); }

.room-size-control {
  margin-bottom: 1.5rem;
}
.room-size-control label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.room-size-control input[type=range] {
  width: 100%;
  accent-color: var(--gold);
  margin-bottom: 0.5rem;
}
#roomSizeLabel {
  font-size: 0.85rem;
  color: rgba(245,240,235,0.5);
}

/* ===== ABOUT ===== */
#about { background: var(--black); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 6rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 800px) { .about-inner { grid-template-columns: 1fr; } }

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.about-text p {
  color: rgba(245,240,235,0.65);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-img-placeholder {
  aspect-ratio: 3/4;
  background: var(--dark2);
  border: 1px solid rgba(200,134,13,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(200,134,13,0.3);
}

/* ===== SHOP ===== */
#shop {
  background: var(--dark);
  text-align: center;
}

#shop h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.shop-desc {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: rgba(245,240,235,0.6);
  line-height: 1.8;
  font-size: 0.9rem;
}

.shop-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}
@media (max-width: 600px) { .shop-features { grid-template-columns: 1fr; } }

.shop-feature { text-align: center; }
.shop-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.shop-feature h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.shop-feature p {
  font-size: 0.8rem;
  color: rgba(245,240,235,0.5);
}

.shop-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(245,240,235,0.3);
  letter-spacing: 0.1em;
}

/* ===== FOOTER ===== */
footer {
  background: #050505;
  padding: 4rem;
  text-align: center;
  border-top: 1px solid rgba(200,134,13,0.1);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--gold); }

footer > div > p {
  font-size: 0.8rem;
  color: rgba(245,240,235,0.3);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.3);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.7rem;
  color: rgba(245,240,235,0.2) !important;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.lightbox.open { display: flex; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 78vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none;
  color: rgba(245,240,235,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 10;
}
.lightbox-close:hover { color: var(--white); }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(200,134,13,0.1);
  border: 1px solid rgba(200,134,13,0.3);
  color: var(--white);
  width: 50px; height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--black); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-footer {
  margin-top: 1.5rem;
  text-align: center;
}
#lightboxTitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.5);
  margin-bottom: 1rem;
}
.lightbox-buy {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.lightbox-buy:hover { background: var(--gold); color: var(--black); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 5rem 1.5rem; }
  #navbar { padding: 1.2rem 1.5rem; }
  #navbar.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .slide-btn { width: 36px; height: 36px; }
  .slide-prev { left: 0.5rem; }
  .slide-next { right: 0.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
