/* ==========================================================================
   Anugraha Lodging — Modern Theme
   ========================================================================== */

:root {
  --maroon: #7a1620;
  --maroon-dark: #4e0d13;
  --maroon-light: #a2222e;
  --gold: #c99a4a;
  --gold-light: #e7c384;
  --cream: #faf6ee;
  --cream-deep: #f2ead8;
  --ink: #241c16;
  --muted: #6f6459;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(36, 20, 10, 0.08);
  --shadow-lg: 0 25px 60px rgba(36, 20, 10, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --ff-head: "Playfair Display", "Georgia", serif;
  --ff-body: "Poppins", "Open Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--maroon-dark);
  font-weight: 600;
  margin: 0;
}

p { color: var(--muted); line-height: 1.8; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

section { padding: 100px 0; position: relative; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-title h2 {
  font-size: 40px;
  line-height: 1.2;
}

.section-title p.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: all .3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(122, 22, 32, 0.28);
}
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); color: var(--white); }

.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--maroon-dark);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--maroon-dark); }

/* ---------------- Topbar ---------------- */
#topbar {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  padding: 9px 0;
  z-index: 1001;
  letter-spacing: .2px;
}
#topbar a, #topbar span { color: rgba(255,255,255,0.85); }
#topbar i { margin-right: 8px; color: var(--gold-light); }
#topbar .contact-info, #topbar .languages ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }

/* ---------------- Header ---------------- */
#header {
  top: 38px;
  padding: 18px 0;
  background: transparent;
  z-index: 10000;
  transition: all .35s ease;
}
#header.header-scrolled {
  top: 0;
  padding: 12px 0;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(36,20,10,0.08);
}

#header .logo img { height: 60px; width: auto; border-radius: 5px !important; transition: height .3s ease; }
#header.header-scrolled .logo img { height: 40px; }

#navbar ul { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
#navbar a.nav-link {
  display: block;
  padding: 10px 18px;
  font-family: var(--ff-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
  border-radius: 100px;
  transition: all .25s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
#header.header-scrolled #navbar a.nav-link { color: var(--white); text-shadow: none; }
#navbar a.nav-link:hover,
#navbar a.nav-link.active { background: var(--maroon); color: var(--white); text-shadow: none; }
#navbar a.nav-link.btn-book { background: var(--gold); color: var(--maroon-dark); margin-left: 6px; }
#navbar a.nav-link.btn-book:hover { background: var(--gold-light); }

.mobile-nav-toggle { display: none; color: var(--white); font-size: 26px; cursor: pointer; }
#header.header-scrolled .mobile-nav-toggle { color: var(--maroon); }

/* ---------------- Hero ---------------- */
#hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(24,10,10,.72) 0%, rgba(24,10,10,.55) 45%, rgba(24,10,10,.85) 100%), url("../images/hero.jpg") center/cover no-repeat;
}

#hero .hero-inner { max-width: 780px; width: 100%; min-width: 0; margin: 0 auto; padding: 0 20px; text-align: center; }

#hero .eyebrow {
  color: var(--gold-light);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-block;
}

#hero h1 {
  color: var(--white);
  font-size: 58px;
  line-height: 1.15;
  margin-bottom: 18px;
}
#hero h1 span { color: var(--gold-light); font-style: italic; }

#hero p.tagline {
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 36px;
}

#hero .hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

#hero .hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 26px;
  animation: floaty 2.2s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------------- About ---------------- */
.about { background: var(--cream); }
.about .about-img { position: relative; }
.about .about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about .about-img::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.about .content h3 {
  font-size: 34px;
  margin-bottom: 20px;
}
.about .content p { margin-bottom: 16px; }
.about .content p:last-child { margin-bottom: 0; }

/* ---------------- Stats ---------------- */
.stats-strip {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  padding: 56px 0;
}
.stats-strip .stat-card {
  text-align: center;
  color: var(--white);
  padding: 12px 20px;
}
.stats-strip .stat-card img { height: 40px; margin: 0 auto 14px; filter: brightness(0) invert(1); }
.stats-strip .stat-card .stat-num {
  font-family: var(--ff-head);
  font-size: 38px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 6px;
}
.stats-strip .stat-card .stat-label {
  font-size: 14px;
  letter-spacing: .5px;
  color: rgba(255,255,255,0.85);
}
.stats-strip .divider { width: 1px; background: rgba(255,255,255,0.18); align-self: stretch; }

/* ---------------- Amenities ---------------- */
.menu { background: var(--cream); }

.amenity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.amenity-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.amenity-card .amenity-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.amenity-card:hover .amenity-icon { background: var(--gold-light); }
.amenity-card .amenity-icon img { width: 34px; height: 34px; object-fit: contain; }
.amenity-card h4 {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.room-info-card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 64px;
}
.room-info-card .room-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.room-info-card .room-fact { display: flex; align-items: center; gap: 14px; }
.room-info-card .room-fact-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.room-info-card .room-fact-icon img { width: 26px; height: 26px; object-fit: contain; }
.room-info-card .room-fact-num { font-family: var(--ff-head); font-size: 30px; color: var(--maroon); line-height: 1; }
.room-info-card .room-fact-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.room-info-card .room-rate {
  background: var(--maroon);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.room-info-card .room-rate b { color: var(--gold-light); }

/* ---------------- Gallery ---------------- */
.events { background: var(--cream-deep); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-grid .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-grid .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.08); }
.gallery-grid .gallery-item::after {
  content: "\f78e";
  font-family: "bootstrap-icons";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(36,20,10,0.35);
  color: var(--white);
  font-size: 26px;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-grid .gallery-item:hover::after { opacity: 1; }

/* ---------------- Contact ---------------- */
.contact { background: var(--cream); }
.contact .info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact .info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact .info-card .icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 18px;
}
.contact .info-card h4 { font-size: 16px; margin-bottom: 8px; }
.contact .info-card p { margin: 0; font-size: 14.5px; }
.contact .map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 48px;
  line-height: 0;
}

/* ---------------- Footer ---------------- */
#footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.7);
  padding: 30px 0;
  text-align: center;
  font-size: 13.5px;
}
#footer .copyright { margin-bottom: 4px; color: rgba(255,255,255,0.85); }
#footer .credits a { color: var(--gold-light); }

/* ---------------- Floating buttons ---------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  z-index: 999;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  box-shadow: var(--shadow-lg);
}
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--maroon-dark); }

.float-call {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 13px 20px 13px 13px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
}
.float-call:hover { transform: translateY(-3px); color: var(--maroon-dark); }
.float-call .icon-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--maroon-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ---------------- Preloader ---------------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
#preloader::after {
  content: "";
  width: 46px; height: 46px;
  border: 4px solid var(--cream-deep);
  border-top-color: var(--maroon);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
  section { padding: 72px 0; }
  #hero h1 { font-size: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  #navbar {
    position: fixed;
    inset: 0;
    background: rgba(24, 10, 10, 0.97);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1002;
  }
  #navbar.navbar-mobile { display: flex; }
  #navbar.navbar-mobile ul { flex-direction: column; gap: 6px; }
  #navbar.navbar-mobile a.nav-link { color: var(--white); font-size: 17px; text-shadow: none; }
  .mobile-nav-toggle { display: block; position: relative; z-index: 1003; }
  #header.header-scrolled .mobile-nav-toggle.bi-x { color: var(--white); }

  .room-info-card .room-info-row { justify-content: center; text-align: center; }
  .room-info-card .room-fact { flex-direction: column; }
}

@media (max-width: 767px) {
  #topbar .contact-info { gap: 12px; font-size: 12px; }
  #topbar .languages { display: none !important; }
  #hero h1 { font-size: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .float-call span.label { display: none; }
  .float-call { padding: 13px; }
}
