/* Dasar bersama untuk semua tema: reset, layout, aksesibilitas, komponen fungsional. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1 0 auto; outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.icon { flex: none; }

.container { width: 100%; max-width: var(--container, 1200px); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: #fff; color: #000; padding: .75rem 1rem; border-radius: 6px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tombol dasar (tema menambah gaya) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem 1.25rem; align-items: center; }

/* Navigasi: toggle hanya tampil di tablet dan ponsel */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: transparent; border: 0; border-radius: 50%; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }
.nav-cta-mobile { display: none; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta-mobile { display: inline-flex; }
  .header-cta { display: none !important; }
  body.nav-open { overflow: hidden; }
}

/* Animasi muncul — hanya aktif bila JavaScript berjalan */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* Form */
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field label { font-size: .85rem; }
.field .opt { opacity: .6; font-weight: 400; }
.field input, .field textarea { width: 100%; min-width: 0; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.form-status { min-height: 1.4em; font-size: .95rem; }
.form-status.is-ok { color: #12805c; }
.form-status.is-error { color: #c0392b; }

/* Peta */
.map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; }
.map-fallback { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: clamp(2rem, 6vw, 4rem) 1.5rem; }

/* WhatsApp mengambang */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

.img-ph { background: linear-gradient(135deg, #e5e9f2, #cdd6e8); aspect-ratio: 4 / 3; width: 100%; }

.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: background-color .2s, color .2s, transform .2s; }

.chip { cursor: pointer; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; }

.prose p + p { margin-top: 1.1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
