/* ==========================================================
   Royal Palace Hotel — main stylesheet
   ========================================================== */

:root {
  --gold: #b8934a;
  --gold-light: #d4af6a;
  --dark: #1b2430;
  --dark-2: #232f3e;
  --cream: #faf7f2;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --border: #e7e1d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 20, 30, 0.18);
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.5em;
  letter-spacing: 0.3px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.5rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 50px 0; }
.section--alt { background: #fff; }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--dark); }
.btn--outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn--outline:hover { background: var(--dark); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--dark); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled,
.site-header.solid {
  background: rgba(27, 36, 48, 0.96);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand .brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--gold-light); font-size: 1.2rem;
}
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; letter-spacing: 1px; }
.brand-text span { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: #fff; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.4px; position: relative; padding-bottom: 4px; }
.nav a:hover { color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(160deg, #23303f 0%, #16202c 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(184,147,74,0.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(184,147,74,0.15), transparent 45%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 700px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; font-size: 3.4rem; margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; color: #d9dee5; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--gold-light); }
.hero-stats div span { font-size: 0.8rem; color: #b7bec8; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Booking widget ---------- */
.booking-widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  margin-top: -70px;
  position: relative;
  z-index: 10;
}
.booking-widget form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end; }
.field label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; background: var(--cream); color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }

/* ---------- Amenities / features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.feature-card .icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Rooms grid ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.room-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.room-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-card .price-tag {
  position: absolute; bottom: 14px; right: 14px; background: rgba(27,36,48,0.9); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.room-card .price-tag small { font-weight: 400; opacity: 0.75; }
.room-card .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-card h3 { margin: 0; font-size: 1.35rem; }
.room-card p.desc { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.room-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.room-meta span { display: flex; align-items: center; gap: 6px; }
.room-card .cta { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- Room detail page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--radius); overflow: hidden; height: 460px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery .main { grid-row: 1 / span 2; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery .main { grid-row: auto; height: 300px; }
  .gallery img:not(.main) { height: 150px; }
}

.room-detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .room-detail-layout { grid-template-columns: 1fr; } }

.amenity-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.amenity-list li { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; color: var(--text); }
.amenity-list li::before { content: "✓"; color: var(--gold); font-weight: 700; }

.booking-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
  position: sticky; top: 110px;
}
.booking-card h3 { margin-bottom: 4px; }
.booking-card .price-line { color: var(--gold); font-size: 1.6rem; font-family: 'Cormorant Garamond', serif; font-weight: 700; margin-bottom: 20px; }
.booking-card .price-line small { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.booking-card .field { margin-bottom: 16px; }
.booking-summary { background: var(--cream); border-radius: 10px; padding: 14px 16px; font-size: 0.9rem; margin: 16px 0; display: none; }
.booking-summary.show { display: block; }
.booking-summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.booking-summary .total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 700; color: var(--dark); }

/* Mini calendar */
.mini-cal { margin-top: 26px; }
.mini-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-cal-head button { background: none; border: 1px solid var(--border); border-radius: 6px; width: 30px; height: 30px; }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 0.78rem; }
.mini-cal-grid .dow { color: var(--muted); font-weight: 600; padding: 4px 0; }
.mini-cal-grid .day { padding: 7px 2px; border-radius: 6px; background: var(--cream); cursor: pointer; }
.mini-cal-grid .day.blocked { color: #ccc; background: #f4f2ee; cursor: not-allowed; text-decoration: line-through; }
.mini-cal-grid .day.empty { background: transparent; cursor: default; }
.mini-cal-grid .day:hover:not(.blocked):not(.empty) { background: var(--gold-light); color: #fff; }

/* ---------- About / split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.tick-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; }
.tick-list li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.testimonial-card .stars { color: var(--gold); margin-bottom: 12px; }
.testimonial-card p { color: var(--text); font-style: italic; }
.testimonial-card .who { margin-top: 16px; font-weight: 600; color: var(--dark); font-style: normal; }

/* ---------- Contact / footer ---------- */
.footer-cta {
  background: linear-gradient(160deg, #23303f, #16202c); color: #fff; text-align: center; padding: 90px 0;
}
.footer-cta h2 { color: #fff; }
.footer-cta p { color: #c7cdd5; max-width: 500px; margin: 0 auto 30px; }

.site-footer { background: var(--dark); color: #c7cdd5; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #c7cdd5; font-size: 0.9rem; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; color: #8c93a0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 320px; margin-top: 20px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Forms (general) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
textarea { font-family: inherit; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; }
.alert--success { background: #e6f4ea; color: #256029; border: 1px solid #b7e2c3; }
.alert--error { background: #fdecea; color: #a3272c; border: 1px solid #f5c2c0; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 170px 0 60px;
  background: linear-gradient(160deg, #23303f, #16202c);
  color: #fff; text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header .crumb { color: var(--gold-light); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--cream);
  color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px; background: var(--dark-2);
    flex-direction: column; justify-content: center; transition: right 0.3s ease; padding: 20px; }
  .nav.open { right: 0; }
  .nav-toggle { display: block; }
  .booking-widget form { grid-template-columns: 1fr 1fr; }
  .booking-widget form .btn { grid-column: span 2; }
  .hero h1 { font-size: 2.4rem; }
}
