/* ===== Design Tokens ===== */
:root {
  --warm-white: #FAFAF7;
  --heritage-brown: #5C4632;
  --soft-sand: #EDE3D3;
  --muted-sage: #9BAE9A;
  --warm-gold: #D4AF7A;
  --gold-dark: #c39a5f;
  --text: #3a2e22;
  --text-soft: #6b5d4d;
  --line: #e6ddcf;
  --shadow: 0 16px 40px rgba(92, 70, 50, 0.10);
  --shadow-sm: 0 6px 18px rgba(92, 70, 50, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--heritage-brown); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  font-weight: 600; color: var(--warm-gold); margin-bottom: 14px;
}
.eyebrow-dark { color: var(--gold-dark); }
.lead { font-size: 1.08rem; color: var(--text-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-sub { color: var(--text-soft); margin-top: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-gold { background: var(--warm-gold); color: #4a3a28; box-shadow: 0 10px 24px rgba(212, 175, 122, 0.35); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--heritage-brown); color: var(--warm-gold);
  display: grid; place-items: center; font-family: var(--serif);
  font-weight: 700; font-size: 1.4rem;
}
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--heritage-brown); line-height: 1; }
.brand-text small { font-family: var(--sans); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); margin-top: 3px; }
.brand-light .brand-mark { background: var(--warm-gold); color: var(--heritage-brown); }
.brand-light .brand-text { color: var(--warm-white); }
.brand-light .brand-text small { color: rgba(255,255,255,0.6); }

/* ===== 1. Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled { background: rgba(250, 250, 247, 0.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-center { display: flex; gap: 30px; }
.nav-center a { font-weight: 500; font-size: 0.95rem; color: #fff; position: relative; transition: color .2s; }
.nav-center a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--warm-gold); transition: width .25s ease; }
.nav-center a:hover::after { width: 100%; }
.navbar.scrolled .nav-center a, .navbar.scrolled .brand-text { color: var(--heritage-brown); }
.navbar.scrolled .brand-text small { color: var(--text-soft); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: background .3s; border-radius: 2px; }
.navbar.scrolled .nav-toggle span { background: var(--heritage-brown); }

/* ===== 2. Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('img/penginapan-gumpang-kartasura-header.png?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  transform: scale(1.05);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,34,22,0.55) 0%, rgba(46,34,22,0.35) 45%, rgba(46,34,22,0.65) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; padding-top: 90px; padding-bottom: 60px; }
.hero-content h1 { color: #fff; margin-bottom: 22px; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,0.92); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== 3. Stats ===== */
.stats { background: var(--heritage-brown); color: var(--warm-white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 46px 24px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--warm-gold); }
.stat-num small { font-size: 1rem; color: rgba(250,250,247,0.7); }
.stat-label { font-size: 0.86rem; letter-spacing: 0.04em; color: rgba(250,250,247,0.85); }

/* ===== 4. About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 2; }
.about-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--warm-gold); border-radius: var(--radius); z-index: 1; }
.about-text h2 { margin: 6px 0 16px; }
.feature-list { margin-top: 28px; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list h4 { margin-bottom: 2px; }
.feature-list p { color: var(--text-soft); font-size: 0.95rem; }
.feat-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: var(--soft-sand); color: var(--heritage-brown);
  display: grid; place-items: center;
}
.feat-icon.sm { width: 44px; height: 44px; }
.feat-icon svg { width: 24px; height: 24px; }

/* ===== 5. Rooms ===== */
.rooms { background: var(--soft-sand); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-img { aspect-ratio: 4/3; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-img img { transform: scale(1.06); }
.room-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { margin-bottom: 8px; }
.room-body > p { color: var(--text-soft); font-size: 0.93rem; }
.amenities { display: flex; gap: 12px; margin: 16px 0 18px; }
.amenities span { width: 36px; height: 36px; border-radius: 9px; background: var(--warm-white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted-sage); }
.amenities svg { width: 18px; height: 18px; }
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--heritage-brown); }
.price small { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--text-soft); }

/* ===== 6. Facilities ===== */
.facilities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.fac-text h2 { margin: 6px 0 24px; }
.fac-list { display: grid; gap: 22px; }
.fac-list li { display: flex; gap: 16px; align-items: flex-start; }
.fac-list h4 { margin-bottom: 2px; }
.fac-list p { color: var(--text-soft); font-size: 0.95rem; }
.fac-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.fac-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.fac-photos img:first-child { grid-row: span 2; }

/* ===== 7. Gallery ===== */
.gallery { background: var(--soft-sand); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform .4s ease; }
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid .g-feature { grid-column: span 2; grid-row: span 2; }

/* ===== 8. Testimonials ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.stars { color: var(--warm-gold); letter-spacing: 3px; font-size: 1rem; margin-bottom: 14px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--text); line-height: 1.55; margin-bottom: 20px; }
.t-author strong { display: block; color: var(--heritage-brown); }
.t-author span { font-size: 0.85rem; color: var(--text-soft); }

/* ===== 9. Location ===== */
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 64px); align-items: center; }
.loc-text h2 { margin: 6px 0 14px; }
.landmarks { margin: 24px 0; display: grid; gap: 12px; }
.landmarks li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-sage); flex-shrink: 0; }
.loc-contact { padding-top: 18px; border-top: 1px solid var(--line); }
.loc-contact p { margin: 4px 0; color: var(--text-soft); font-size: 0.95rem; }
.loc-contact strong { color: var(--heritage-brown); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== 10. CTA Banner ===== */
.cta-banner { background: var(--heritage-brown); color: var(--warm-white); padding: clamp(64px, 9vw, 100px) 0; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: #fff; margin-bottom: 14px; }
.cta-inner p { color: rgba(250,250,247,0.85); margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== 11. Footer ===== */
.footer { background: #4a3a28; color: rgba(250,250,247,0.8); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.foot-tag { margin-top: 16px; font-size: 0.92rem; max-width: 300px; }
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { font-size: 0.95rem; transition: color .2s; }
.foot-nav a:hover { color: var(--warm-gold); }
.foot-contact p { margin: 6px 0; font-size: 0.92rem; }
.copyright { text-align: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: rgba(250,250,247,0.6); }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-center {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh;
    background: var(--warm-white); flex-direction: column; justify-content: center;
    gap: 28px; padding: 40px; box-shadow: -10px 0 40px rgba(0,0,0,0.15); transition: right .35s ease;
  }
  .nav-center.open { right: 0; }
  .nav-center a { color: var(--heritage-brown); font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-right .btn-gold { display: none; }

  .about-grid, .facilities-grid, .location-grid { grid-template-columns: 1fr; }
  .about-photo::before { inset: 12px -12px -12px 12px; }
  .room-grid, .testimonial-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid .g-feature { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-bg { transform: scale(1);}
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}
