/* ==========================================================================
   Kontrakan & Kost Ibu Leni
   ========================================================================== */

:root {
  --green: #124b3e;
  --green-dark: #0d3b31;
  --cream: #fbfaf4;
  --sage: #f0f3e9;
  --gold: #b38a4b;
  --ink: #183d35;
  --muted: #536760;
  --line: #e7e6dc;
  --shadow: 0 2px 8px rgba(22, 61, 48, .06);
  --shadow-lg: 0 18px 40px -16px rgba(22, 61, 48, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, calc(100% - 64px)); margin: auto; }

/* Ikon SVG ---------------------------------------------------------------- */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  height: var(--header-h);
  background: rgba(251, 250, 244, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}

.site-header.scrolled {
  --header-h: 66px;
  height: 66px;
  background: rgba(251, 250, 244, .97);
  box-shadow: 0 6px 24px -12px rgba(22, 61, 48, .25);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.brand small { display: block; font-size: 17px; }

.brand-icon {
  display: inline-flex;
  color: var(--green);
  transition: transform .4s var(--ease);
}

.brand-icon .icon { width: 38px; height: 38px; stroke-width: 1.4; }
.brand:hover .brand-icon { transform: translateY(-2px) rotate(-4deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.button),
.footer-top nav a {
  position: relative;
  transition: color .25s;
}

.nav-links a:not(.button)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.nav-links a:not(.button):hover,
.nav-links a.active,
.footer-top nav a:hover { color: var(--gold); }

.nav-links a:not(.button):hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links .nav-cta-mobile { display: none; }

/* Tombol ------------------------------------------------------------------ */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 14px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s var(--ease), border-color .3s;
}

.button .icon-arrow { transition: transform .3s var(--ease); }
.button:hover .icon-arrow { transform: translateX(4px); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-dark { background: var(--green); color: #fff; }
.button-dark:hover { background: var(--green-dark); box-shadow: 0 10px 22px -10px rgba(18, 75, 62, .65); }

.button-outline { border-color: #78968b; background: transparent; color: var(--green); }
.button-outline:hover { background: #edf2ec; border-color: var(--green); }

.nav-cta { padding: 11px 20px; border-radius: 26px; white-space: nowrap; }

.button-small { padding: 10px 20px; font-size: 13px; border-radius: 24px; }
.button-wide { width: 100%; margin-top: 16px; padding: 14px 16px; font-size: 14px; }

.button:focus-visible,
a:focus-visible,
summary:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Tombol menu (mobile) ---------------------------------------------------- */
.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--green);
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero {
  height: 560px;
  position: relative;
  overflow: hidden;
  background: #e6e8d9;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 44%;
  background:
    linear-gradient(90deg, #f9f8f0 0%, transparent 22%),
    url('assets/hero-house.jpg') center 54% / cover no-repeat;
  animation: heroPhoto 1.6s var(--ease) both;
}

.hero-panel {
  height: 100%;
  width: 52%;
  position: relative;
  background: var(--cream);
  border-radius: 0 48% 48% 0 / 0 100% 100% 0;
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 24px 30px 24px max(32px, calc((100vw - 1200px) / 2));
  width: 100%;
  max-width: 780px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: #2e5c4f;
  margin: 0 0 10px;
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.14;
  margin: 0;
  color: #123e34;
}

h1 { font-size: clamp(34px, 4vw, 58px); margin-bottom: 18px; }
h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 14px; }

.hero .eyebrow { display: none; }

.hero-desc { font-size: 16px; color: #273d36; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .button { min-width: 156px; padding: 14px 24px; }

.hero-highlights { display: flex; gap: 24px; margin-top: 34px; }

.hero-highlights > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid #e0dfd3;
  font-size: 13px;
  line-height: 1.4;
}

.hero-highlights > div:last-child { border: 0; }

.highlight-icon {
  display: inline-flex;
  color: var(--gold);
  transition: transform .35s var(--ease);
}

.highlight-icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.hero-highlights > div:hover .highlight-icon { transform: translateY(-3px); }

/* Animasi pembuka hero */
.hero-anim { animation: fadeUp .9s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .1s); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroPhoto {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: none; }
}

/* Section umum ------------------------------------------------------------ */
.section { padding: 64px 0; }

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.split-heading > p { font-size: 15px; color: var(--muted); margin: 0 0 6px; }

/* Efek zoom halus pada foto */
.media { overflow: hidden; }
.media img { transform: scale(1.06); transition: transform .9s var(--ease); }
.unit-card:hover .media img,
.bedeng-card > .media:hover img,
.room-types > div:hover .media img,
.reason-media:hover img,
.location-photo-wrap:hover img { transform: scale(1.11); }

/* Unit -------------------------------------------------------------------- */
.unit-grid { display: grid; grid-template-columns: 1fr 1fr 2.05fr; gap: 18px; }

.unit-card,
.bedeng-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}

.unit-card:hover,
.bedeng-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d8d9c9; }

.unit-card { display: flex; flex-direction: column; }
.unit-image { width: 100%; height: 175px; }
.unit-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }

.unit-body h3,
.bedeng-info h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0 0 6px; }

.unit-body p,
.bedeng-info p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.unit-body .button { margin-top: auto; }

.bedeng-card { padding: 8px; }
.bedeng-card > .media { border-radius: 8px; }
.bedeng-banner { width: 100%; height: 130px; }
.bedeng-info { padding: 12px 10px 0; }
.bedeng-info h3 { font-size: 19px; }
.bedeng-info p { margin-bottom: 12px; }

.room-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 0 6px; }

.room-types > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  background: #faf9f2;
  font-size: 13px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.room-types > div:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -12px rgba(22, 61, 48, .4); }
.room-types .media { border-radius: 6px; margin-bottom: 9px; }
.room-types img { width: 100%; height: 82px; }
.room-types strong, .room-types span { display: block; font-weight: 500; }
.room-types span { font-size: 12px; color: var(--muted); }

/* Fasilitas --------------------------------------------------------------- */
.facilities-section { background: var(--sage); }
.facilities-layout { display: grid; grid-template-columns: .8fr 1.6fr; gap: 56px; align-items: center; }
.section-intro p:not(.eyebrow) { max-width: 380px; color: var(--muted); font-size: 15px; margin: 0 0 24px; }

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fbfaf4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.facility {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 10px;
  transition: background .35s;
}

.facility:nth-child(4n) { border-right: 0; }
.facility:nth-child(n+5) { border-bottom: 0; }
.facility:hover { background: #f5f8ef; }

.facility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
  transition: transform .4s var(--ease), background .4s, color .4s;
}

.facility-icon .icon { width: 24px; height: 24px; }
.facility:hover .facility-icon { transform: translateY(-3px); background: var(--green); color: #fff; }
.facility p { font-size: 13px; line-height: 1.5; margin: 10px 0 0; min-height: 3em; }

/* Alasan ------------------------------------------------------------------ */
.reasons-layout { display: grid; grid-template-columns: 1fr .9fr 1.25fr; gap: 32px; align-items: center; }
.reason-copy > p:not(.eyebrow) { font-size: 15px; color: var(--muted); max-width: 380px; }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { font-size: 15px; margin: 13px 0; display: flex; gap: 12px; align-items: center; }

.check-list .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  stroke-width: 2.4;
}

.reason-media { border-radius: 10px; }
.reason-photo { height: 380px; width: 100%; }

.availability { background: #f0f3e9; border-radius: 12px; padding: 26px; }
.availability h3 { font: 600 21px 'Playfair Display', serif; margin: 0; }
.availability > p { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 1px solid #dfe5d9;
  font-size: 14px;
}

.status-name { display: flex; align-items: center; gap: 10px; }
.status-name .icon { color: var(--green); width: 18px; height: 18px; }
.status-row small { font-size: 12px; color: var(--muted); }

.status-row b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-row b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.available { background: #bfe0c9; color: #215b43; }
.limited { background: #f7e6bd; color: #91661e; }

/* Lokasi ------------------------------------------------------------------ */
.location-section { background: #f7f7ef; }
.location-layout { display: grid; grid-template-columns: 1fr 1.3fr 1.55fr; gap: 26px; align-items: center; }

.location-photo-wrap,
.map-dummy { height: 200px; width: 100%; border-radius: 10px; }

.location-photo,
.map-dummy img { height: 100%; width: 100%; }

.location-copy h2 { font-size: clamp(26px, 2.4vw, 32px); }
.location-copy p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin: 0 0 18px; }

.map-dummy {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-dummy img { filter: saturate(.7); transition: transform .9s var(--ease), filter .5s; }
.map-dummy:hover img { transform: scale(1.04); filter: saturate(1); }

.map-dummy span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  color: var(--green);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .35s var(--ease), background .3s, color .3s;
}

.map-dummy:hover span { transform: translate(2px, -2px); background: var(--green); color: #fff; }

/* FAQ & Kontak ------------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: start; }
.faq h2 { font-size: clamp(26px, 2.3vw, 31px); margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--line); font-size: 15px; }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  transition: color .25s;
}

.faq summary:hover { color: var(--gold); }
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid #557a6c;
  border-bottom: 2px solid #557a6c;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .4s var(--ease);
}

.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > p { font-size: 14px; color: var(--muted); margin: 0; padding: 0 0 18px; }
.faq details > summary + p { overflow: hidden; }

.contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.contact-title { display: flex; gap: 14px; align-items: center; }

.headset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
}

.headset .icon { width: 24px; height: 24px; }
.contact-title h3 { font: 600 20px 'Playfair Display', serif; margin: 0; }
.contact-title p { font-size: 13px; color: var(--muted); margin: 0; }

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  gap: 12px;
  margin-top: 6px;
}

.contact-methods a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.4;
}

.contact-methods a .method-icon { transition: transform .3s var(--ease), background .3s; }
.contact-methods a:hover .method-icon { transform: translateY(-2px); background: var(--green-dark); }
.contact-methods a:hover b { color: var(--gold); }
.contact-methods b { transition: color .25s; }
.contact-methods b { display: block; color: var(--green); }
.contact-methods small { display: block; font-size: 12px; color: var(--muted); }

.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}

.method-icon .icon { width: 19px; height: 19px; }

form h4 { font: 600 17px 'Playfair Display', serif; margin: 18px 0 2px; }
form > p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

input, textarea {
  font: 14px 'DM Sans', sans-serif;
  border: 1px solid #d9dfd6;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fffdf8;
  width: 100%;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 75, 62, .1);
}

input::placeholder, textarea::placeholder { color: #8a9a94; }
textarea { margin-top: 10px; resize: vertical; }

.form-note { text-align: center !important; margin: 12px 0 0 !important; font-size: 12px !important; transition: color .3s; }
.form-note.is-success { color: #215b43 !important; }
.form-note.is-error { color: #a13d2d !important; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: linear-gradient(120deg, #124b3e, #0d3b31);
  color: #f8f6e9;
  padding: 32px 0 18px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.footer-brand { font-size: 16px; }
.footer-brand small { font-size: 15px; }
.footer-brand .brand-icon { color: #f8f6e9; }
.footer-brand .brand-icon .icon { width: 34px; height: 34px; }
.footer-top > p { font-size: 13px; color: #e1e9df; margin: 0; }
.footer-top nav { display: flex; gap: 24px; font-size: 13px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 13px;
  color: #d5e0d8;
}

.footer-bottom div { display: flex; gap: 10px; }

.footer-bottom div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background .3s, transform .3s var(--ease), color .3s;
}

.footer-bottom div a .icon { width: 17px; height: 17px; }
.footer-bottom div a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px); }

/* Animasi muncul saat di-scroll (hanya aktif bila JavaScript berjalan) ------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].in-view { opacity: 1; transform: none; }

/* Perlu agar efek hover kartu tetap halus setelah animasi muncul selesai */
.js .unit-card[data-reveal].in-view,
.js .bedeng-card[data-reveal].in-view {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, opacity .8s var(--ease);
  transition-delay: 0ms;
}

/* Laptop kecil: judul kartu unit bisa membungkus, samakan tingginya agar isi tetap sejajar */
@media (min-width: 1001px) and (max-width: 1220px) {
  .unit-body h3 { font-size: 17px; line-height: 1.3; min-height: 2.6em; }
}

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .container { width: min(100% - 40px, 760px); }
  .section { padding: 52px 0; }
  .nav-links { gap: 18px; }
  .nav-cta { display: none; }

  .hero { height: 480px; }
  .hero-panel { width: 62%; }
  .hero-content { padding-left: 32px; }
  .hero-photo { left: 40%; }

  .unit-grid { grid-template-columns: 1fr 1fr; }
  .bedeng-card { grid-column: 1 / -1; }
  .bedeng-banner { height: 170px; }

  .facilities-layout { grid-template-columns: 1fr; gap: 28px; }

  .reasons-layout { grid-template-columns: 1fr 1fr; }
  .reason-copy { grid-column: 1; }
  .reason-media { grid-column: 2; grid-row: 1 / 3; }
  .reason-photo { height: 340px; }
  .availability { grid-column: 1 / -1; }

  .location-layout { grid-template-columns: 1fr 1fr; }
  .location-copy { grid-column: 2; }
  .map-dummy { grid-column: 1 / -1; height: 220px; }

  .contact-layout { gap: 28px; }
  .footer-top { flex-wrap: wrap; }
  .footer-top nav { width: 100%; justify-content: space-between; }
}

/* Hero bertumpuk pada layar sempit (foto di bawah teks) */
@media (max-width: 780px) {
  .hero { height: auto; display: flex; flex-direction: column-reverse; background: var(--cream); }
  .hero-photo { position: relative; inset: auto; height: 250px; background-image: url('assets/hero-house.jpg'); background-position: 100% 50%; background-size: 114% auto; }
  .hero-panel { width: 100%; border-radius: 0; display: block; }
  .hero-content { padding: 30px 20px 28px; }
  .hero .eyebrow { display: block; }
  .hero h1 { font-size: clamp(35px, 5.6vw, 44px); }
  .hero-desc { font-size: 15px; }
  .desktop-only { display: none; }
  .hero-actions .button { flex: 1; min-width: 0; padding-inline: 14px; }
  .hero-highlights { gap: 22px; justify-content: flex-start; margin-top: 26px; }
  .hero-highlights > div { padding-right: 22px; gap: 8px; font-size: 12px; }
  .highlight-icon .icon { width: 24px; height: 24px; }
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hero-highlights { gap: 10px; justify-content: space-between; }
  .hero-highlights > div { padding-right: 8px; gap: 6px; font-size: 11px; }
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .site-header { height: 64px; }
  .site-header.scrolled { height: 60px; --header-h: 60px; }
  .brand { font-size: 15px; }
  .brand small { font-size: 14px; }
  .brand-icon .icon { width: 34px; height: 34px; }
  .menu-toggle { display: block; margin-left: auto; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -12px rgba(0, 0, 0, .12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }

  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.button) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.button)::after { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 18px; }


  .section { padding: 44px 0; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 10px; }
  .split-heading > p br { display: none; }

  .unit-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .unit-image { height: 125px; }
  .unit-body { padding: 14px; }
  .unit-body h3 { font-size: 17px; line-height: 1.3; min-height: 2.6em; }
  .unit-body p { font-size: 13px; }
  .unit-body p br { display: none; }
  .button-small { padding: 9px 14px; font-size: 12px; }
  .bedeng-card { grid-column: 1 / -1; display: block; }
  .bedeng-banner { height: 140px; min-height: 0; }
  .room-types img { height: 62px; }

  .facilities-layout { gap: 22px; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .facility { min-height: 120px; border-bottom: 1px solid var(--line) !important; border-right: 1px solid var(--line) !important; }
  .facility:nth-child(2n) { border-right: 0 !important; }
  .facility:nth-child(n+7) { border-bottom: 0 !important; }

  .reasons-layout { grid-template-columns: 1fr; gap: 24px; }
  .reason-copy, .reason-media, .availability { grid-column: auto; grid-row: auto; }
  .reason-photo { height: 270px; }
  .availability { padding: 20px; }

  .location-layout { grid-template-columns: 1fr 1fr; gap: 16px; }
  .location-photo-wrap { grid-column: 1 / -1; grid-row: 1; height: 190px; }
  .location-copy { grid-column: 1 / -1; grid-row: 2; }
  .map-dummy { grid-column: 1 / -1; grid-row: 3; height: 170px; }

  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { padding: 18px; }
  .contact-methods { grid-template-columns: 1fr; gap: 4px; }

  .footer-top { align-items: flex-start; gap: 16px; }
  .footer-top > p { max-width: 160px; }
  .footer-top nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .footer-bottom { gap: 12px; align-items: flex-start; }
  .footer-bottom span { max-width: 70%; line-height: 1.5; }
  .form-row { grid-template-columns: 1fr; }
}

/* Hormati pengguna yang memilih mengurangi animasi ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
