/* ============ Rabi Hotel — Stylesheet ============ */
:root {
  --ivory: #faf7f1;
  --cream: #f3eee4;
  --ink: #22252a;
  --ink-soft: #565b63;
  --gold: #b8893a;
  --gold-deep: #9a7028;
  --maroon: #8e3b3b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(34, 37, 42, .12);
  --radius: 14px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; }
h1 em { font-style: italic; color: var(--gold); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .78rem;
  font-weight: 600; color: var(--gold-deep); margin-bottom: 1em;
}
.eyebrow.light { color: #e5c98b; }
.section-lead { max-width: 640px; margin: -0.4em auto 2.5em; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85em 2em; border-radius: 999px;
  font-weight: 600; letter-spacing: .04em; font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: none; cursor: pointer; font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 25px rgba(184, 137, 58, .35); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-full { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d9d5cd; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1em; padding: .5em 0; flex-wrap: wrap; }
.topbar a { color: #e5c98b; font-weight: 500; }
.topbar-phones { display: flex; gap: .6em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 241, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,37,42,.07);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(34,37,42,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .55em 0; }
.brand { display: flex; align-items: center; gap: .7em; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand-text { line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.25rem; display: block; }
.brand-text small { color: var(--ink-soft); letter-spacing: .12em; text-transform: uppercase; font-size: .62rem; }
.nav-links { display: flex; align-items: center; gap: 1.6em; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn) { position: relative; padding: .3em 0; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .3s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: .6em 1.5em; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4em; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center 30%/cover no-repeat;
  filter: brightness(.85) saturate(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,17,21,.68) 0%, rgba(15,17,21,.42) 55%, rgba(15,17,21,.25) 100%),
    linear-gradient(180deg, rgba(15,17,21,.45) 0%, rgba(15,17,21,.18) 45%, rgba(15,17,21,.72) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 7em 0 6em; max-width: 760px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .8rem;
  color: #e5c98b; margin-bottom: 1.4em; font-weight: 500;
}
.hero-sub { font-size: 1.15rem; margin: 1.2em 0 2em; color: rgba(255,255,255,.88); max-width: 560px; font-weight: 300; }
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; }
.hero-note { margin-top: 2.4em; font-size: .88rem; color: rgba(255,255,255,.75); letter-spacing: .03em; }
.hero-scroll {
  position: absolute; bottom: 1.4em; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: 1.4rem; z-index: 2; animation: bob 2.2s infinite ease-in-out;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Highlights ---------- */
.highlights { background: var(--white); border-bottom: 1px solid rgba(34,37,42,.06); }
.highlights-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em; padding: 3.2em 0;
}
.highlight { text-align: center; padding: 0 .5em; }
.highlight-icon { font-size: 2rem; margin-bottom: .5em; }
.highlight h3 { margin-bottom: .35em; font-size: 1.1rem; }
.highlight p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5em 0; }
.section-alt { background: var(--cream); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4em; align-items: center; }
.split-text p { color: var(--ink-soft); margin-bottom: 1em; }
.checklist { list-style: none; margin-top: 1.4em; }
.checklist li { padding: .35em 0 .35em 1.9em; position: relative; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .35em;
  color: var(--gold); font-weight: 700;
}
.split-media { position: relative; padding-bottom: 3.5em; }
.photo-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption {
  font-size: .82rem; padding: .7em 1.1em; color: var(--ink-soft);
  letter-spacing: .06em; text-transform: uppercase;
}
.photo-main { width: 86%; }
.photo-float {
  position: absolute; right: 0; bottom: 0; width: 52%;
  border: 5px solid var(--ivory);
}

/* ---------- Rooms ---------- */
.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2em; margin-top: 1em; }
.room-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.room-card:hover { transform: translateY(-6px); }
.room-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.room-body { padding: 1.6em 1.8em 1.8em; }
.room-body p { color: var(--ink-soft); margin: .5em 0 1em; font-size: .96rem; }
.room-amenities { list-style: none; display: flex; flex-wrap: wrap; gap: .5em .6em; }
.room-amenities li {
  background: var(--cream); border-radius: 999px; padding: .3em .9em;
  font-size: .82rem; font-weight: 500;
}
.rooms-cta { text-align: center; margin-top: 3em; }
.rooms-cta p { color: var(--ink-soft); margin-bottom: 1em; }

/* ---------- Dining ---------- */
.dining-feature {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 2.2em;
}
.dining-feature img { width: 100%; max-height: 480px; object-fit: cover; }
.dining-feature-label {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  padding: 3.5em 2em 1.6em;
  background: linear-gradient(180deg, transparent, rgba(15,17,21,.85));
}
.dining-feature-label p { color: rgba(255,255,255,.85); font-size: .95rem; max-width: 520px; }
.dining-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6em; }
.dining-badges { display: flex; flex-wrap: wrap; gap: .7em; justify-content: center; margin-top: 2.6em; }
.dining-badges span {
  background: var(--white); border: 1px solid rgba(184,137,58,.35);
  color: var(--gold-deep); border-radius: 999px; padding: .45em 1.2em;
  font-weight: 500; font-size: .9rem;
}
.dining-cta { text-align: center; margin-top: 2em; }

/* ---------- Facilities ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2em; margin-top: 1em; }
.facility-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s ease;
}
.facility-card:hover { transform: translateY(-6px); }
.facility-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facility-body { padding: 1.4em 1.6em 1.6em; }
.facility-body p { color: var(--ink-soft); font-size: .94rem; margin-top: .4em; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-top: 1em;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px;
  cursor: zoom-in; transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* ---------- Booking ---------- */
.booking { background: linear-gradient(160deg, #23262c 0%, #2e3138 60%, #3a3126 100%); }
.booking-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5em;
  color: #eceae5;
}
.booking-info h2 { color: #fff; }
.booking-info > p { color: rgba(255,255,255,.82); margin-bottom: 1.6em; max-width: 480px; }
.booking-contacts { display: grid; gap: .9em; margin-bottom: 1.8em; }
.contact-line {
  display: flex; align-items: center; gap: 1em;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: .8em 1.2em; transition: background .25s ease;
}
.contact-line:hover { background: rgba(255,255,255,.13); }
.contact-ico { font-size: 1.4rem; }
.contact-line small { display: block; color: rgba(255,255,255,.6); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-line strong { font-size: 1.05rem; }
.booking-points { list-style: none; color: rgba(255,255,255,.85); }
.booking-points li { padding: .28em 0; font-size: .95rem; }
.booking-form {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 2.2em 2.2em 1.8em; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.booking-form h3 { margin-bottom: .3em; }
.form-hint { color: var(--ink-soft); font-size: .88rem; margin-bottom: 1.4em; }
.booking-form label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 1em; color: var(--ink-soft); }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; margin-top: .35em; padding: .7em .9em;
  border: 1.5px solid #ddd6c8; border-radius: 9px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--ivory); transition: border-color .25s ease;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.form-alt { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: 1em; }
.form-alt a { color: var(--gold-deep); font-weight: 600; }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5em; align-items: start; }
.map-wrap { position: sticky; top: 100px; }
.map-wrap iframe {
  width: 100%; height: 420px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); display: block;
}
.map-btn { margin-top: 1em; width: 100%; text-align: center; }
.directions { display: grid; gap: 1.2em; }
.direction-item {
  background: var(--white); border-radius: var(--radius);
  padding: 1.4em 1.6em; box-shadow: 0 8px 25px rgba(34,37,42,.06);
  border-left: 4px solid var(--gold);
}
.direction-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin-bottom: .35em; }
.direction-item p { color: var(--ink-soft); font-size: .94rem; }
.direction-item a { color: var(--gold-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9b5ad; font-size: .92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr;
  gap: 2.5em; padding: 3.5em 0 2.5em;
}
.footer-brand { display: flex; gap: 1em; align-items: flex-start; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand p { margin-top: .4em; font-size: .88rem; }
.footer-col h4 { color: #e5c98b; font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; margin-bottom: .8em; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6em;
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.2em 0; font-size: .8rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,17,21,.92);
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 18px; right: 26px; background: none; border: none;
  color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .25s ease;
}
.wa-fab:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .booking-card, .location-grid, .rooms-grid { grid-template-columns: 1fr; }
  .split-media { max-width: 480px; margin: 0 auto; }
  .map-wrap { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78vh; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); flex-direction: column; align-items: flex-start;
    padding: 1.2em 6%; gap: 1em; border-bottom: 1px solid rgba(34,37,42,.08);
    display: none; box-shadow: 0 20px 40px rgba(34,37,42,.12);
  }
  .nav-links.open { display: flex; }
  .topbar-inner { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .booking-form { padding: 1.6em 1.4em; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .photo-float { border-width: 3px; }
}
