/* ===== MAISON NOIR BOUTIQUE HOTEL — styles.css ===== */

/* --- Required spec block --- */
.scroll-progress{position:fixed;top:0;left:0;height:3px;z-index:9999;width:0%}
.reveal-section{opacity:0;transform:translateY(28px);transition:opacity 0.8s ease,transform 0.8s ease}
.reveal-section.revealed{opacity:1;transform:translateY(0)}
.mobile-menu{max-height:0;overflow:hidden;transition:max-height 0.3s ease}
.mobile-menu.open{max-height:500px}
.modal-overlay{opacity:0;transition:opacity 0.3s ease}
.modal-overlay.active{opacity:1}
.modal-content{transform:translate(-50%,-50%) scale(0.95);transition:transform 0.3s ease,opacity 0.3s ease;opacity:0}
.modal-overlay.active .modal-content{transform:translate(-50%,-50%) scale(1);opacity:1}
.carousel-slide{display:none}
.carousel-slide.active{display:block}
.carousel-dot{width:8px;height:8px;border-radius:50%;cursor:pointer;border:none;transition:all 0.3s}
.carousel-dot.active{width:24px;border-radius:4px}
.faq-answer{max-height:0;overflow:hidden;transition:max-height 0.4s ease}
.faq-item.open .faq-answer{max-height:300px}
.faq-icon{transition:transform 0.3s ease}
.faq-item.open .faq-icon{transform:rotate(180deg)}
.back-to-top{opacity:0;visibility:hidden;transition:all 0.3s ease}
.back-to-top.visible{opacity:1;visibility:visible}
html{scroll-behavior:smooth}

/* --- Project-specific styles --- */

.scroll-progress { background: #c9a84c; }

/* Navbar glass */
#navbar { transition: background 0.3s ease, padding 0.3s ease; }
#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Buttons */
.btn-primary {
  background: #c9a84c;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid #c9a84c;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #e2c87a; border-color: #e2c87a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid #c9a84c;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline:hover { background: #c9a84c; color: #0a0a0a; transform: translateY(-1px); }

/* Hero animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-tagline { animation: fadeSlideUp 0.8s ease forwards; animation-delay: 0.2s; opacity: 0; }
.hero-title   { animation: fadeSlideUp 0.9s ease forwards; animation-delay: 0.4s; opacity: 0; }
.hero-subtitle{ animation: fadeSlideUp 0.9s ease forwards; animation-delay: 0.6s; opacity: 0; }
.hero-cta     { animation: fadeSlideUp 0.9s ease forwards; animation-delay: 0.8s; opacity: 0; }

/* Parallax */
.hero-bg { transform: translateZ(0); will-change: transform; }

/* Carousel */
.carousel-slide { animation: fadeIn 0.5s ease; }
.carousel-dot { background: rgba(201,168,76,0.3); }
.carousel-dot.active { background: #c9a84c; }

/* FAQ */
.faq-item { border: 1px solid rgba(201,168,76,0.1); transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(201,168,76,0.4); }

/* Modal overlay — fixed, full-screen */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  pointer-events: none;
}
.modal-overlay.active { pointer-events: all; }
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: #c9a84c;
  color: #0a0a0a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
}
.back-to-top:hover { background: #e2c87a; }

/* Lazy load */
.lazy-img { filter: blur(8px); transition: filter 0.6s ease; }
.lazy-img.loaded { filter: blur(0); }

/* Room card */
.room-card { transition: transform 0.3s ease, border-color 0.3s ease; }
.room-card:hover { transform: translateY(-4px); }

/* Form errors */
.field-error { display: none; color: #f87171; font-size: 0.75rem; margin-top: 0.25rem; }
.field-error.visible { display: block; }

/* Active nav highlight */
.nav-link.active-nav { color: #c9a84c; }
