/* ============================================
   REVA HOME STAY — Dark Luxury Design System
   ============================================ */

:root {
  --rh-bg: #0d1117;
  --rh-bg-alt: #161b22;
  --rh-bg-card: #1c2128;
  --rh-bg-glass: rgba(22, 27, 34, 0.65);
  --rh-gold: #c9a96e;
  --rh-gold-light: #e2c992;
  --rh-gold-dark: #a68b4b;
  --rh-ivory: #f5f0e8;
  --rh-ivory-dim: rgba(245, 240, 232, 0.7);
  --rh-sage: #4a7c59;
  --rh-sage-dim: rgba(74, 124, 89, 0.3);
  --rh-border: rgba(201, 169, 110, 0.12);
  --rh-border-light: rgba(245, 240, 232, 0.08);
  --rh-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  --rh-shadow-gold: 0 12px 40px -12px rgba(201, 169, 110, 0.25);
  --rh-radius: 20px;
  --rh-radius-sm: 12px;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--rh-ivory);
  background: var(--rh-bg);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--rh-ivory);
}

a { transition: color 0.3s ease; }
img { max-width: 100%; }

/* ========= Utility ========= */
.text-gold { color: var(--rh-gold) !important; }
.text-ivory { color: var(--rh-ivory) !important; }
.text-dim { color: var(--rh-ivory-dim) !important; }
.bg-dark-alt { background: var(--rh-bg-alt); }

.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rh-gold);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--rh-gold);
}

.divider-mark {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--rh-gold), transparent);
  border-radius: 2px;
  display: block;
  margin: 0 0 20px;
}

/* ========= Buttons ========= */
.btn {
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-gold {
  background: linear-gradient(135deg, var(--rh-gold), var(--rh-gold-dark));
  color: var(--rh-bg);
  border: none;
  box-shadow: var(--rh-shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--rh-gold-light), var(--rh-gold));
  color: var(--rh-bg);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -12px rgba(201, 169, 110, 0.4);
}
.btn-outline-gold {
  border: 1.5px solid var(--rh-gold);
  color: var(--rh-gold);
  background: transparent;
}
.btn-outline-gold:hover {
  background: var(--rh-gold);
  color: var(--rh-bg);
  transform: translateY(-2px);
}
.btn-light-lux {
  background: rgba(255, 255, 255, 0.1);
  color: var(--rh-ivory);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}
.btn-light-lux:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

/* ========= Topbar ========= */
.topbar {
  background: rgba(0, 0, 0, 0.4);
  color: var(--rh-ivory-dim);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rh-border-light);
  backdrop-filter: blur(8px);
}
.topbar a {
  color: var(--rh-ivory-dim);
  text-decoration: none;
  margin-left: 1.2rem;
}
.topbar a:hover { color: var(--rh-gold); }
.topbar .bi { color: var(--rh-gold); }

/* ========= Navbar ========= */
.navbar-rh {
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rh-border-light);
  padding: 0.6rem 0;
  transition: all 0.4s ease;
}
.navbar-rh.scrolled {
  background: rgba(13, 17, 23, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.navbar-rh .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--rh-ivory) !important;
}
.navbar-rh .brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--rh-gold), var(--rh-gold-dark));
  color: var(--rh-bg);
  border-radius: var(--rh-radius-sm);
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 1.2rem;
  box-shadow: var(--rh-shadow-gold);
  transition: transform 0.3s;
}
.navbar-rh .brand-mark:hover { transform: rotate(-5deg) scale(1.05); }
.navbar-rh .nav-link {
  color: var(--rh-ivory-dim) !important;
  font-weight: 500;
  margin: 0 0.3rem;
  position: relative;
  padding: 0.5rem 0.8rem !important;
  font-size: 0.92rem;
}
.navbar-rh .nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 4px;
  height: 2px;
  background: var(--rh-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.navbar-rh .nav-link:hover::after,
.navbar-rh .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.navbar-rh .nav-link:hover,
.navbar-rh .nav-link.active { color: var(--rh-ivory) !important; }
.navbar-rh .navbar-toggler { border: 1px solid var(--rh-border) !important; }
.navbar-rh .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

/* ========= Hero ========= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.8s ease, transform 10s ease;
}
.hero .slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.05;
  color: #fff;
}
.hero .lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.hero-meta i { color: var(--rh-gold); margin-right: 8px; }
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.hero-dots button {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 2px;
  transition: all 0.4s ease;
  cursor: pointer;
}
.hero-dots button.active {
  background: var(--rh-gold);
  width: 56px;
}

/* ========= Page Header ========= */
.page-hero {
  position: relative;
  padding: 170px 0 100px;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.5), rgba(13, 17, 23, 0.85));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.crumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.crumb a:hover { color: var(--rh-gold); }
.crumb .sep { margin: 0 0.6rem; color: rgba(255, 255, 255, 0.35); }

/* ========= Glass Card ========= */
.glass-card {
  background: var(--rh-bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  padding: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rh-shadow);
  border-color: rgba(201, 169, 110, 0.25);
}

/* ========= Feature Cards ========= */
.feature-card {
  background: var(--rh-bg-card);
  border-radius: var(--rh-radius);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--rh-border-light);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rh-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rh-shadow);
  border-color: var(--rh-border);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(201, 169, 110, 0.1);
  color: var(--rh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(201, 169, 110, 0.15);
  transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: rgba(201, 169, 110, 0.18);
  transform: scale(1.08);
}

/* ========= Room Cards ========= */
.room-card {
  background: var(--rh-bg-card);
  border-radius: var(--rh-radius);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--rh-border-light);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.5);
  border-color: var(--rh-border);
}
.room-card .room-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.room-card .room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.room-card:hover .room-img img { transform: scale(1.08); }
.room-card .room-body { padding: 1.6rem; }
.room-card h4 { color: var(--rh-ivory); }
.room-tags {
  display: flex;
  gap: 1rem;
  color: var(--rh-ivory-dim);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}
.room-tags .bi { color: var(--rh-gold); }

/* ========= Stats ========= */
.stat {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--rh-radius);
  background: var(--rh-bg-card);
  border: 1px solid var(--rh-border-light);
  transition: border-color 0.3s;
}
.stat:hover { border-color: var(--rh-border); }
.stat .num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--rh-gold);
  font-weight: 400;
  line-height: 1;
}
.stat .lbl {
  font-size: 0.85rem;
  color: var(--rh-ivory-dim);
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========= Gallery ========= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--rh-radius-sm);
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
}
.gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.gallery-grid a::after {
  content: "\F52A";
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(13, 17, 23, 0);
  opacity: 0;
  transition: 0.4s;
}
.gallery-grid a:hover::after {
  background: rgba(13, 17, 23, 0.5);
  opacity: 1;
}
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a:nth-child(7n+1) { grid-column: span 6; grid-row: span 3; }
.gallery-grid a:nth-child(7n+4) { grid-column: span 4; grid-row: span 3; }
@media (max-width: 768px) {
  .gallery-grid { grid-auto-rows: 140px; }
  .gallery-grid a,
  .gallery-grid a:nth-child(7n+1),
  .gallery-grid a:nth-child(7n+4) { grid-column: span 6; grid-row: span 2; }
}

/* ========= Location List ========= */
.location-list { column-count: 2; column-gap: 2rem; list-style: none; padding: 0; }
.location-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rh-border-light);
  color: var(--rh-ivory);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  break-inside: avoid;
}
.location-list li i { color: var(--rh-gold); }
@media (max-width: 600px) { .location-list { column-count: 1; } }

/* ========= CTA ========= */
.cta {
  background: linear-gradient(135deg, var(--rh-bg-card), rgba(201, 169, 110, 0.12));
  color: #fff;
  border-radius: var(--rh-radius);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rh-border);
}
.cta::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15), transparent 70%);
}
.cta::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74, 124, 89, 0.1), transparent 70%);
}

/* ========= Footer ========= */
footer {
  background: var(--rh-bg-alt);
  color: rgba(245, 240, 232, 0.6);
  padding: 80px 0 30px;
  border-top: 1px solid var(--rh-border-light);
}
footer h6 {
  color: var(--rh-ivory);
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}
footer a {
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover { color: var(--rh-gold); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 0.4rem 0; }
.footer-bar {
  border-top: 1px solid var(--rh-border-light);
  margin-top: 60px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.4);
}
.social-row a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rh-border-light);
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.3s;
  color: var(--rh-ivory-dim);
}
.social-row a:hover {
  background: var(--rh-gold);
  border-color: var(--rh-gold);
  color: var(--rh-bg);
  transform: translateY(-3px);
}

/* ========= WhatsApp Float ========= */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 36px -8px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  animation: waPulse 2.4s infinite;
  transition: transform 0.3s;
}
.wa-float:hover { color: #fff; transform: scale(1.1); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ========= Forms ========= */
.form-control, .form-select {
  border-radius: var(--rh-radius-sm);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rh-border);
  background: var(--rh-bg-card);
  color: var(--rh-ivory);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--rh-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.12);
  background: var(--rh-bg-card);
  color: var(--rh-ivory);
}
.form-control::placeholder { color: rgba(245, 240, 232, 0.35); }
.form-label { color: var(--rh-ivory-dim); }

/* ========= Image Frames ========= */
.frame-stack { position: relative; }
.frame-stack img {
  border-radius: var(--rh-radius);
  box-shadow: var(--rh-shadow);
}
.frame-stack .pop {
  position: absolute;
  width: 55%;
  bottom: -40px;
  right: -20px;
  border: 6px solid var(--rh-bg);
}
.dot-pattern {
  position: absolute;
  width: 130px;
  height: 130px;
  background-image: radial-gradient(var(--rh-gold) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.25;
  z-index: -1;
}

/* ========= Testimonials ========= */
.tcard {
  background: var(--rh-bg-card);
  border-radius: var(--rh-radius);
  padding: 2rem;
  border: 1px solid var(--rh-border-light);
  height: 100%;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.tcard:hover { transform: translateY(-4px); border-color: var(--rh-border); }
.tcard .stars { color: var(--rh-gold); }
.tcard .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rh-border-light);
}
.tcard .who img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rh-border);
}
.tcard p { color: var(--rh-ivory-dim); }
.tcard strong { color: var(--rh-ivory); }

/* ========= Scroll Reveal ========= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========= Grain Overlay ========= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========= Responsive Tweaks ========= */
@media (max-width: 992px) {
  .section { padding: 72px 0; }
  .hero h1 { font-size: 2.4rem; }
  .cta { padding: 2.5rem; }
  .navbar-rh .navbar-collapse {
    background: var(--rh-bg-alt);
    border-radius: var(--rh-radius-sm);
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--rh-border-light);
  }
}
@media (max-width: 576px) {
  .hero-meta { gap: 1rem; }
  .topbar { font-size: 0.76rem; }
}
