/* ==========================================================================
   Raja Ampat Diving — base: tokens, reset, layout, header, footer, floating
   Palet dasar; warna situs ditimpa di site.css.
   ========================================================================== */
:root {
  --navy: #0b2239;
  --navy-2: #16324f;
  --cream: #f7f3ec;
  --paper: #fffdfa;
  --white: #ffffff;
  --gold: #c9a86a;
  --gold-dk: #a9843e;
  --ink: #1d2733;
  --muted: #5b6673;
  --line: rgba(11, 34, 57, 0.1);
  --line-strong: rgba(11, 34, 57, 0.18);
  --wa: #25d366;
  --wa-dk: #1ebe5d;
  --danger: #b3563e;

  --shadow: 0 6px 24px rgba(11, 34, 57, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 34, 57, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --serif: Georgia, "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

  --gutter: 20px;
  --container: min(100% - 2 * var(--gutter), 1160px);
  --narrow: min(100% - 2 * var(--gutter), 780px);
  --header-h: 64px;
  --section-y: clamp(48px, 7vw, 88px);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --header-h: 76px; } }

/* ---------- reset & typography ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-dk); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5.2vw, 52px); line-height: 1.22; word-break: keep-all; } /* patah di spasi, bukan di tengah kata CJK; overflow-wrap:anywhere tetap jadi pengaman */
h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 0.6em; }
h3 { font-size: clamp(18px, 2vw, 21px); margin: 0 0 0.45em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }
b, strong { font-weight: 700; color: inherit; }
small { font-size: 0.82em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.num, .price { font-variant-numeric: tabular-nums; }

.container { width: var(--container); margin-inline: auto; }
.container--narrow { width: var(--narrow); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: var(--white); padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: var(--white); }
/* teks khusus pembaca layar (dipakai WordPress, mis. judul "Posts pagination") */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.btn-wa, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-wa { background: var(--wa); color: var(--white) !important; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3); }
.btn-wa::before { content: "\ec74"; font-family: "tabler-icons"; font-size: 20px; font-weight: 400; line-height: 1; }
.btn-wa:hover { background: var(--wa-dk); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--navy-2); color: var(--navy-2) !important; background: transparent; }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white) !important; }
.btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.microtrust { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- header ----------
 * Blur ada di ::before, BUKAN di .site-header: backdrop-filter pada header
 * membuat panel menu & overlay (position:fixed di dalam header) terkurung
 * setinggi header.
 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 253, 250, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 34, 57, 0.08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { width: var(--container); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--navy); letter-spacing: 0.04em; }
.brand small { display: block; margin-top: 3px; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); }
.brand:hover { color: var(--navy); }
@media (min-width: 1024px) { .brand { font-size: 20px; } }

.nav-primary { list-style: none; margin: 0; padding: 0; }
.nav-primary li { margin: 0; }
.nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; }
.nav-link[aria-current="page"], .nav-dropdown a[aria-current="page"] { color: var(--gold-dk); }
.nav-dropdown ul { list-style: none; margin: 0; padding: 0; }
.nav-dropdown a { display: block; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.45; }
.nav-dropdown a small { display: block; font-size: 12px; color: var(--gold-dk); font-weight: 500; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--wa); color: var(--white) !important; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background 0.2s var(--ease); }
.nav-cta .ti { font-size: 19px; }
.nav-cta:hover { background: var(--wa-dk); }

.menu-toggle { position: relative; z-index: 230; width: 44px; height: 44px; margin-right: -8px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11, 34, 57, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
html.menu-open, body.menu-open { overflow: hidden; }

/* mobile / tablet / laptop kecil: slide-in panel (8 menu + CTA butuh ±1180px) */
@media (max-width: 1179.98px) {
  /* <nav> pembungkus panel (isinya position:fixed) tetap jadi item flex selebar 0 —
     taruh sebelum tombol supaya hamburger menempel di kanan */
  .site-nav { order: 2; }
  .menu-toggle { order: 3; }
  .nav-primary {
    position: fixed; top: 0; right: 0; z-index: 220;
    width: min(360px, 88vw); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column;
    background: var(--paper); box-shadow: -12px 0 32px rgba(11, 34, 57, 0.18);
    padding: calc(var(--header-h) + 8px) 0 28px;
    /* clip-path (bukan translate) supaya panel tertutup tidak melebarkan layout di mobile */
    visibility: hidden; clip-path: inset(0 0 0 100%);
    transition: clip-path 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav-primary.is-open { visibility: visible; clip-path: inset(0 0 0 -48px); transition: clip-path 0.35s var(--ease), visibility 0s; }
  .admin-bar .nav-primary { top: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
  .nav-primary > li { border-bottom: 1px solid var(--line); }
  .nav-link { padding: 15px 24px; }
  .has-dropdown > .nav-link::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--gold-dk); transition: transform 0.3s var(--ease); }
  .has-dropdown.is-open > .nav-link::after { transform: rotate(45deg); }
  .nav-dropdown { max-height: 0; overflow: hidden; visibility: hidden; background: var(--cream); transition: max-height 0.35s var(--ease), visibility 0s linear 0.35s; }
  .has-dropdown.is-open > .nav-dropdown { max-height: 640px; visibility: visible; transition: max-height 0.35s var(--ease), visibility 0s; }
  .nav-dropdown ul { padding: 6px 0 12px; }
  .nav-dropdown a { padding: 9px 24px 9px 36px; }
  .nav-primary > .nav-cta-item { border-bottom: 0; padding: 22px 24px 0; }
  .nav-cta { width: 100%; padding: 14px 20px; }
}
@media (max-width: 782px) {
  .admin-bar .nav-primary { top: 46px; height: calc(100vh - 46px); height: calc(100dvh - 46px); }
}

/* desktop: inline nav + dropdown (buka lewat hover atau tombol → .is-open) */
@media (min-width: 1180px) {
  .menu-toggle, .menu-overlay { display: none; }
  .nav-primary { display: flex; align-items: center; gap: 2px; }
  .nav-primary > li { position: relative; }
  .nav-link { width: auto; padding: 10px 14px; font-size: 15px; border-radius: 10px; }
  .nav-link:hover { color: var(--gold-dk); }
  .has-dropdown > .nav-link::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.6; }
  .nav-dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; min-width: 280px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 8px; opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
  }
  .nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-dropdown:hover > .nav-dropdown, .has-dropdown.is-open > .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-dropdown a { padding: 9px 14px; border-radius: 10px; }
  .nav-dropdown a:hover { background: var(--cream); color: var(--navy); }
  .nav-cta-item { margin-left: 12px; }
  .nav-cta { padding: 11px 20px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: clamp(48px, 7vw, 72px) 0 28px; font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: var(--gold); }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 240px 1fr; gap: 56px; } }
.brand--light, .brand--light:hover { color: var(--white) !important; }
.brand--light small { color: rgba(255, 255, 255, 0.6); }
.footer-brand-col .btn-wa { margin-top: 20px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 1024px) { .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; line-height: 1.5; }
.footer-entity { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, 0.62); }
.footer-entity b { color: rgba(255, 255, 255, 0.92); }
.footer-entity p { margin: 0 0 10px; }
.footer-bottom { margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

/* ---------- floating WhatsApp & back to top ---------- */
.float-wa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--wa); color: var(--white) !important;
  font-size: 15px; font-weight: 700; line-height: 1.25;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(110%); transition: transform 0.3s var(--ease), background 0.2s ease;
}
.float-wa .ti { font-size: 26px; }
.float-wa small { display: block; font-size: 11px; font-weight: 400; opacity: 0.92; }
.float-wa.is-visible { transform: translateY(0); }
.float-wa:hover { background: var(--wa-dk); }
.back-to-top {
  position: fixed; left: 16px; bottom: 76px; z-index: 89;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--gold); color: var(--navy);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s, background 0.2s ease;
}
.back-to-top .ti { font-size: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dk); }
body { padding-bottom: 60px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .float-wa { left: auto; right: 24px; bottom: 24px; min-height: 56px; padding: 10px 22px 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); transform: translateY(160%); }
  .back-to-top { left: 24px; bottom: 24px; }
}
