﻿/*
  Buildora Hotel - Custom Styles
  Tailwind handles layout and typography. This file adds premium effects,
  animations, and components that are easier to maintain as custom CSS.
*/
:root {
  --gold: #c6a570;
  --beige: #e7dccd;
  --charcoal: #1d1d1d;
}

html {
  scroll-behavior: smooth;
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #101010;
  color: var(--gold);
  z-index: 2000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
}

/* Navbar */
#navbar.scrolled {
  background: rgba(16, 16, 16, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.nav-menu {
  display: none;
  gap: 1.5rem;
  color: #fff;
  font-size: 0.95rem;
}

.nav-menu a {
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--gold);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu.active {
  display: flex;
  position: absolute;
  top: 70px;
  right: 4%;
  flex-direction: column;
  background: rgba(16, 16, 16, 0.95);
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  position: relative;
}

.hamburger::before {
  top: -7px;
  position: relative;
}

.hamburger::after {
  top: 5px;
  position: relative;
}

/* Hero */
.hero {
  min-height: 100vh;
  background: url("https://images.unsplash.com/photo-1504386106331-3e4e71712b38?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.45));
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
}

/* Reusable components */
.section {
  padding: 6rem 0;
}

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

.section-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: var(--charcoal);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--gold);
}

.section-sub {
  max-width: 560px;
  margin: 1rem auto 0;
  color: #5d5a55;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #5d5a55;
}

.field-group input,
.field-group select,
.field-group textarea {
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: "Manrope", sans-serif;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 24px 60px rgba(198, 165, 112, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #1b1b1b;
}

.room-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.room-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.price {
  color: var(--gold);
  font-weight: 600;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.amenities span {
  background: var(--beige);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.highlight {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(198, 165, 112, 0.2);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: var(--gold);
  font-weight: 600;
}

.amenity-card {
  background: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* Gallery */
.masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slides {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.testimonial-card {
  min-width: 100%;
  background: var(--beige);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
}

.stars {
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.guest {
  display: block;
  margin-top: 1rem;
  color: var(--charcoal);
  font-weight: 600;
}

.slider-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--gold);
  color: #111;
}

/* About */
.about-section {
  background: url("https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1600&q=80") center/cover fixed no-repeat;
  position: relative;
  color: #fff;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.75);
}

.about-section .section-header h2,
.about-section .section-header p,
.about-content p {
  color: #f5efe6;
}

.about-section > div {
  position: relative;
  z-index: 1;
}

.about-content {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

/* Contact */
.contact-form {
  background: var(--beige);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.form-success {
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 600;
}

.map-card {
  background: #fdfbf7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.map-card iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.map-info {
  padding: 1.5rem;
}

/* Modals */
.lightbox,
.popup {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1500;
}

.lightbox.active,
.popup.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.popup-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry {
    column-count: 1;
  }
}
