/* Hotel Galaxy, Bhuj — main stylesheet
   Palette is inspired by Kutch: indigo nights, desert sand, mirror-work gold. */

:root {
  --indigo: #1f2a5c;
  --indigo-dark: #141b3d;
  --maroon: #7a2433;
  --gold: #c8923f;
  --gold-light: #e7c27d;
  --sand: #f7f1e6;
  --sand-dark: #ede3d0;
  --ink: #222430;
  --muted: #5d6070;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 27, 61, 0.12);
  --max: 1180px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--indigo-dark); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--white { background: var(--white); }
.section--indigo { background: var(--indigo); color: #e9ebf5; }
.section--indigo h2, .section--indigo h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6em;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.section--indigo .section-head p { color: #c9cde2; }
.lead { font-size: 1.12rem; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--white); box-shadow: 0 6px 18px rgba(200, 146, 63, .35); }
.btn--gold:hover { background: #b37f30; }
.btn--outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--indigo); color: var(--white); }
.btn--dark:hover { background: var(--indigo-dark); }
.btn--ghost { color: var(--indigo); border-color: var(--indigo); background: transparent; }
.btn--ghost:hover { background: var(--indigo); color: var(--white); }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-solid, .site-header--solid { background: var(--indigo-dark); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none !important; }
.brand img { width: 48px; height: 48px; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; }
.brand__place { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-light); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #e9ebf5; font-size: .93rem; font-weight: 500; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); text-decoration: none; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); }
.nav .btn { padding: 10px 20px; color: var(--white); }
.nav .btn::after { display: none; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s, top .25s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white);
  overflow: hidden; background: var(--indigo-dark);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.12); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,27,61,.55) 0%, rgba(20,27,61,.35) 45%, rgba(20,27,61,.85) 100%); }
.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); padding-bottom: 140px; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; color: #e5e7f2; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.page-hero {
  position: relative; padding: calc(var(--header-h) + 80px) 0 80px; color: var(--white);
  background: var(--indigo-dark) center/cover no-repeat; text-align: center;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20,27,61,.68); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: #dfe2f0; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: var(--gold-light); margin-bottom: 10px; }
.breadcrumb a { color: var(--gold-light); }

/* Booking bar */
.booking-bar {
  position: relative; z-index: 5; margin-top: -70px;
}
.booking-bar form {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end;
}
.field label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1px solid #d8d2c4; border-radius: 10px; background: #fffdf9;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.booking-note { font-size: .8rem; color: var(--muted); margin: 10px 4px 0; text-align: center; }

/* Grid helpers */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.img-stack { position: relative; }
.img-stack__badge {
  position: absolute; right: -14px; bottom: -18px; background: var(--maroon); color: var(--white);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 220px; font-size: .9rem;
}
.img-stack__badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-light); }

/* Cards */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,27,61,.16); }
.card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.card__meta span::before { content: "◆ "; color: var(--gold); font-size: .7em; }
.card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.card__actions .btn { padding: 10px 20px; font-size: .88rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--sand-dark); color: var(--maroon); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Features */
.feature { text-align: center; padding: 28px 18px; border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 14px rgba(20,27,61,.06); }
.feature__icon {
  width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sand); color: var(--maroon);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.section--indigo .feature { background: rgba(255,255,255,.06); box-shadow: none; }
.section--indigo .feature p { color: #c9cde2; }
.section--indigo .feature__icon { background: rgba(200,146,63,.18); color: var(--gold-light); }

/* Room detail rows */
.room { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 36px; }
.room:nth-child(even) .room__img { order: 2; }
.room__img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.room__body { padding: 40px; }
.room__amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; list-style: none; padding: 0; margin: 18px 0 26px; font-size: .93rem; }
.room__amenities li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 8px; }

/* Attractions list */
.attraction .card__meta { margin-bottom: 8px; }

/* Distance table */
.distance-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.distance-table th, .distance-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--sand-dark); }
.distance-table th { background: var(--indigo); color: var(--white); font-weight: 600; font-size: .9rem; }
.distance-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.gallery-filters button { border: 1px solid var(--indigo); background: transparent; color: var(--indigo); padding: 8px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
.gallery-filters button.is-active, .gallery-filters button:hover { background: var(--indigo); color: var(--white); }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin: 0 0 16px; border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; background: none; border: 0; padding: 0; width: 100%; display: block; }
.gallery__item img { width: 100%; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,12,25,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Testimonials-style quote / CTA */
.cta {
  position: relative; text-align: center; color: var(--white); padding: 90px 0;
  background: var(--maroon) center/cover no-repeat;
}
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(122,36,51,.92), rgba(31,42,92,.88)); }
.cta .container { position: relative; z-index: 1; max-width: 760px; }
.cta h2 { color: var(--white); }
.cta p { color: #f0e6e6; }
.cta .hero__actions { justify-content: center; }

/* Contact */
.contact-cards { display: grid; gap: 18px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(20,27,61,.06); }
.contact-card .feature__icon { margin: 0; flex: none; width: 50px; height: 50px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .2em; }
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }
.form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border: 0; width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 12px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(20,27,61,.06); }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--indigo-dark); color: #b9bed6; padding: 64px 0 0; font-size: .93rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #d9dcec; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .83rem; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 120px; height: 120px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(212,175,55,.35); }

/* Floating contact buttons */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-actions a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .2s; }
.float-actions a:hover { transform: scale(1.08); }
.float-actions svg { width: 26px; height: 26px; }
.float-wa { background: #25d366; }
.float-call { background: var(--indigo); }
.mobile-book { display: none; }

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

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 10px; font-size: .9rem; z-index: 400; opacity: 0; pointer-events: none; transition: opacity .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-show { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-bar form { grid-template-columns: 1fr 1fr; }
  .booking-bar form .btn { grid-column: 1 / -1; }
  .split { gap: 36px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--indigo-dark); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 30px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav a { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 20px; border-bottom: 0; padding: 14px; }
  .nav-open .nav { transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--indigo-dark); }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .room { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__img { order: 0; }
  .room__img img { min-height: 0; aspect-ratio: 3 / 2; }
  .room__body { padding: 26px; }
  .img-stack__badge { right: 12px; bottom: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .features.grid--4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .features .feature { padding: 20px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .booking-bar { margin-top: -50px; }
  .booking-bar form { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; }
  .hero__content { padding-bottom: 110px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; }
  .room__amenities { grid-template-columns: 1fr; }
  .map { height: 320px; }
  .brand__name { font-size: 1.15rem; }
  .brand img { width: 40px; height: 40px; }
  .float-actions { bottom: 78px; right: 14px; }
  .float-actions a { width: 48px; height: 48px; }
  .mobile-book {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--white); box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 10px 14px; gap: 10px;
  }
  .mobile-book .btn { flex: 1; padding: 12px 10px; }
  .site-footer { padding-bottom: 70px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}
