/* ==========================================================================
   SC Desa HTML — Tema 02 "Pesisir"
   Template website desa nelayan. Oleh sharecode.id
   Daftar isi:
   1. Font & variabel   2. Dasar   3. Header & navigasi   4. Hero
   5. Komponen umum     6. Section beranda   7. Halaman dalam
   8. Galeri, lightbox, modal   9. Footer   10. Utilitas & animasi
   ========================================================================== */

/* 1. Font (self-host, OFL) ------------------------------------------------ */
@font-face { font-family: "Lora"; src: url("../fonts/lora-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Ganti warna & font tema di sini */
:root {
  --sea: #0e6ba8;          /* biru laut (utama) */
  --sea-light: #5fb3e0;
  --deep: #083d63;         /* laut dalam */
  --abyss: #062a46;        /* footer */
  --foam: #e8f5fc;         /* buih */
  --sand: #f4e1c1;         /* pasir */
  --sand-2: #e9cc9c;
  --sand-bg: #fffaf2;      /* latar halaman */
  --coral: #ff7f50;        /* koral (aksen) */
  --coral-dark: #c94a20;   /* koral untuk teks di latar terang (kontras AA) */
  --ink: #0b2a40;          /* teks utama */
  --muted: #4f6b80;        /* teks sekunder */
  --line: #e4d8c3;
  --white: #fff;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 18px;
  --radius-sail: 28px 6px 28px 28px;  /* sudut "layar" khas tema */
  --shadow: 0 14px 40px -18px rgba(8, 61, 99, .35);
  --shadow-sm: 0 6px 18px -10px rgba(8, 61, 99, .35);
  --container: 1200px;
  --header-h: 84px;
}

/* 2. Dasar ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--ink); background: var(--sand-bg); overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--coral-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--deep); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--coral); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 999; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: middle; }
.icon-fill { fill: currentColor; stroke: none; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-sand { background: var(--sand); }
.section-foam { background: var(--foam); }
.section-deep { background: var(--deep); color: #d9ecf7; }
.section-deep h2, .section-deep h3 { color: #fff; }

/* Judul section dengan label "jangkar" */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 34px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10'%3E%3Cpath d='M1 5q4-4 8 0t8 0 8 0 8 0' fill='none' stroke='%23ff7f50' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain; }
.section-deep .eyebrow { color: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-deep .section-head p { color: #b9d6ea; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.head-row .section-head { margin-bottom: 0; }

/* Pembatas gelombang SVG */
.wave-divider { position: absolute; left: 0; width: 100%; height: clamp(40px, 6vw, 90px); pointer-events: none; z-index: 1; }
.wave-divider.top { top: -1px; transform: rotate(180deg); }
.wave-divider.bottom { bottom: -1px; }
.wave-divider path { fill: currentColor; }

/* 3. Header & navigasi --------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .35s, box-shadow .35s, transform .35s; color: #fff; }
.topbar { font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .16); transition: margin .35s, opacity .35s; }
.topbar .container { display: flex; gap: 1.4rem; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar-info { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .4rem; opacity: .92; }
.sea-status { white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .14); padding: .15rem .75rem; border-radius: 99px; font-weight: 500; }
.sea-status i { width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 4px rgba(94, 224, 138, .25); animation: pulse 2s infinite; }
.navbar .container { width: min(100% - 2.5rem, 1340px); display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; }
.brand:hover { color: inherit; }
.brand img { width: 48px; height: 48px; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.22rem; line-height: 1.1; }
.brand-text small { white-space: nowrap; font-size: .72rem; opacity: .85; letter-spacing: .04em; }
.nav-menu { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a, .nav-menu .dd-toggle {
  display: flex; align-items: center; gap: .3rem; padding: .55rem .65rem; color: inherit; font-size: .92rem; font-weight: 500;
  background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: 10px; position: relative;
}
.nav-menu > li > a::after, .nav-menu > li > .dd-toggle::after {
  content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .15rem; height: 6px; opacity: 0; transform: translateY(4px); transition: .25s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6'%3E%3Cpath d='M0 3q2.5-3 5 0t5 0 5 0 5 0' fill='none' stroke='%23ff7f50' stroke-width='1.8'/%3E%3C/svg%3E") repeat-x center/20px 6px;
}
.nav-menu > li > a:hover::after, .nav-menu > li > .dd-toggle:hover::after, .nav-menu > li > a.active::after, .nav-menu > li > .dd-toggle.active::after { opacity: 1; transform: none; }
.nav-menu a:hover, .nav-menu .dd-toggle:hover { color: inherit; }
.dd-toggle .icon { width: 14px; height: 14px; transition: transform .25s; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; list-style: none; margin: 0; padding: .5rem;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s;
}
.dropdown a { color: var(--ink); padding: .55rem .8rem; border-radius: 8px; }
.dropdown a:hover, .dropdown a.active { background: var(--foam); color: var(--sea); }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dd:hover .dd-toggle .icon, .has-dd.open .dd-toggle .icon { transform: rotate(180deg); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: rgba(255, 255, 255, .15); border: 0; color: inherit; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
/* status menempel saat digulir */
.site-header.is-stuck { background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 8px 30px -18px rgba(8, 61, 99, .5); }
.site-header.is-stuck .topbar { margin-top: -39px; opacity: 0; }
.site-header.is-stuck .nav-toggle { background: var(--foam); color: var(--deep); }
.site-header.is-stuck .brand-text strong { color: var(--deep); }

/* 4. Hero beranda ------------------------------------------------------- */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; padding: 150px 0 190px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url("../img/hero-laut.svg") center 60% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 42, 70, .86) 0%, rgba(8, 61, 99, .6) 45%, rgba(8, 61, 99, .05) 80%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--sand); display: block; }
.hero-lead { font-size: 1.1rem; max-width: 560px; color: #e3f1fa; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-coord { display: inline-flex; gap: .6rem; align-items: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin-bottom: 1rem; }
.hero-coord .icon { width: 18px; height: 18px; }
/* kartu kondisi laut */
.tide-card { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius-sail); padding: 1.6rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.tide-card h2 { color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.tide-card .date { font-size: .8rem; color: #cfe6f5; margin-bottom: 1rem; }
.tide-chart { width: 100%; height: 90px; margin: .4rem 0 1rem; }
.tide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tide-item { background: rgba(6, 42, 70, .35); border-radius: 14px; padding: .7rem .85rem; }
.tide-item small { display: flex; gap: .35rem; align-items: center; font-size: .74rem; color: #bfdcef; }
.tide-item strong { font-family: var(--font-head); font-size: 1.15rem; }
.badge-safe { background: #5ee08a; color: #0b3a22; font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 99px; font-family: var(--font-body); }
/* gelombang animasi di dasar hero */
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 150px; z-index: 0; }
.hero-waves svg { width: 100%; height: 100%; }
.hero-waves use { animation: drift 14s cubic-bezier(.55, .5, .45, .5) infinite; }
.hero-waves use:nth-of-type(1) { animation-duration: 9s; animation-delay: -2s; fill: rgba(255, 250, 242, .35); }
.hero-waves use:nth-of-type(2) { animation-duration: 13s; animation-delay: -3s; fill: rgba(255, 250, 242, .55); }
.hero-waves use:nth-of-type(3) { animation-duration: 17s; animation-delay: -4s; fill: var(--sand-bg); }
@keyframes drift { from { transform: translateX(-90px); } to { transform: translateX(85px); } }

/* 5. Komponen umum ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 99px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; transition: transform .2s, background .2s, color .2s, box-shadow .2s; line-height: 1.2;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-coral { background: var(--coral); color: #2a0e02; box-shadow: 0 10px 24px -12px rgba(255, 127, 80, .9); }
.btn-coral:hover { background: #ff9a74; color: #2a0e02; }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--deep); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--deep); }
.btn-outline { border-color: var(--sea); color: var(--sea); }
.btn-outline:hover { background: var(--sea); color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--sea); }
.link-arrow .icon { width: 17px; height: 17px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.card { background: #fff; border-radius: var(--radius-sail); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--foam); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.card-body h3 a { color: var(--deep); }
.card-body h3 a:hover { color: var(--sea); }
.card-body p { color: var(--muted); font-size: .93rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.meta .icon { width: 15px; height: 15px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 99px; background: var(--foam); color: var(--sea); }
.tag-coral { background: #ffe6dc; color: var(--coral-dark); }
.tag-sand { background: var(--sand); color: #6b4a1a; }
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Chip filter & pencarian */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: .5rem 1.05rem; border-radius: 99px; font: 500 .88rem var(--font-body); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--sea); color: var(--sea); }
.chip.active, .chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.search-box { position: relative; min-width: min(100%, 300px); }
.search-box .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-box input { width: 100%; padding: .78rem 1rem .78rem 2.8rem; border-radius: 99px; border: 1.5px solid var(--line); font: inherit; font-size: .92rem; background: #fff; color: var(--ink); }
.search-box input:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 4px rgba(14, 107, 168, .15); }
.empty-state { display: none; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state.show { display: block; }
[data-item].hidden { display: none !important; }

/* Tab */
.tabs-nav { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .4rem; background: #fff; border-radius: 99px; box-shadow: var(--shadow-sm); margin-bottom: 2rem; }
.tabs-nav button { border: 0; background: none; padding: .65rem 1.3rem; border-radius: 99px; font: 600 .9rem var(--font-body); color: var(--muted); cursor: pointer; transition: .2s; }
.tabs-nav button[aria-selected="true"] { background: var(--deep); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .45s ease; }

/* Akordeon */
.accordion { display: grid; gap: .8rem; }
.acc-item { background: #fff; border-radius: 16px; border: 1.5px solid var(--line); overflow: hidden; transition: border-color .2s; }
.acc-item.open { border-color: var(--sea-light); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.1rem 1.3rem; background: none; border: 0; cursor: pointer; font: 600 1rem var(--font-body); color: var(--deep); }
.acc-btn .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--foam); display: grid; place-items: center; flex: none; transition: .3s; color: var(--sea); }
.acc-item.open .plus { transform: rotate(45deg); background: var(--coral); color: #fff; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel-inner { padding: 0 1.3rem 1.3rem; color: var(--muted); }
.acc-panel-inner ul { margin: 0; }

/* Tabel */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid #efe6d6; }
thead th { background: var(--deep); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .03em; white-space: nowrap; }
tbody tr:hover { background: #fdf6ea; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 700; background: var(--sand); }
.row-group td { background: var(--foam); font-weight: 600; color: var(--deep); }

/* Formulir */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--deep); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 4px rgba(14, 107, 168, .15); }
.field .error-msg { display: none; color: #b42318; font-size: .8rem; margin-top: .3rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field.invalid .error-msg { display: block; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .35rem; accent-color: var(--sea); width: 18px; height: 18px; }
.form-card { background: #fff; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-sail); box-shadow: var(--shadow); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, calc(100% + 3rem)); visibility: hidden; background: var(--deep); color: #fff; padding: 1rem 1.3rem; border-radius: 16px; display: flex; gap: .8rem; align-items: center; box-shadow: var(--shadow); z-index: 400; transition: transform .4s cubic-bezier(.2, .9, .3, 1.2), visibility .4s; max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast .icon { color: #5ee08a; width: 24px; height: 24px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--deep); font-weight: 600; box-shadow: var(--shadow-sm); padding: 0 .5rem; }
.pagination .current { background: var(--sea); color: #fff; }

/* 6. Section beranda ---------------------------------------------------- */
/* Layanan cepat ala pelampung */
.quick { position: relative; z-index: 3; margin-top: -120px; }
.quick-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.quick-list a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; color: var(--deep); font-weight: 600; font-size: .9rem; line-height: 1.35; }
.buoy {
  width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--coral) 0 12.5%, #fff 0 25%, var(--coral) 0 37.5%, #fff 0 50%, var(--coral) 0 62.5%, #fff 0 75%, var(--coral) 0 87.5%, #fff 0);
  box-shadow: 0 16px 30px -14px rgba(8, 61, 99, .55); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.buoy::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--sea); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .25); }
.buoy .icon { position: relative; color: #fff; width: 28px; height: 28px; }
.quick-list a:hover { color: var(--sea); }
.quick-list a:hover .buoy { transform: rotate(45deg) translateY(-4px); }
.quick-list a:hover .buoy .icon { transform: rotate(-45deg); }
.quick-list small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }

/* Sambutan kepala desa */
.welcome-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.porthole { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.porthole-frame { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 60%, var(--deep) 60.5%, var(--deep) 70%, #b98a4e 70.5%, #d8ae73 76%, var(--deep) 76.5%); }
.porthole img { position: absolute; inset: 9%; width: 82%; height: 82%; border-radius: 50%; object-fit: cover; }
.porthole .rivet { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #e6c48e; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25); }
.porthole-badge { position: absolute; right: -6px; bottom: 8%; background: var(--coral); color: #2a0e02; border-radius: 22px 4px 22px 22px; padding: .9rem 1.2rem; box-shadow: var(--shadow); text-align: center; }
.porthole-badge strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; }
.porthole-badge span { font-size: .75rem; font-weight: 600; }
.quote-mark { font-family: var(--font-head); font-size: 6rem; line-height: .6; color: var(--coral); height: 46px; display: block; }
.welcome-text blockquote { margin: 0 0 1.2rem; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--deep); line-height: 1.55; }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 2px dashed var(--sand-2); }
.signature strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--deep); display: block; }
.signature span { font-size: .85rem; color: var(--muted); }
.signature svg { width: 120px; height: 46px; color: var(--sea); }

/* Statistik */
.stats { padding: clamp(6rem, 11vw, 9rem) 0; background: linear-gradient(180deg, var(--sea) 0%, var(--deep) 100%); color: #fff; overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 30%, rgba(255, 255, 255, .08) 0 6px, transparent 7px), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .07) 0 10px, transparent 11px), radial-gradient(circle at 60% 20%, rgba(255, 255, 255, .06) 0 4px, transparent 5px); pointer-events: none; }
.stats h2 { color: #fff; }
.stats .section-head p, .stats-note { color: #e3f1fa; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; z-index: 2; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius-sail); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.stat .icon { width: 30px; height: 30px; color: var(--sand); margin: 0 auto .7rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.stat span { font-size: .84rem; color: #c8e2f2; }
.stats-note { position: relative; z-index: 2; text-align: center; margin-top: 2rem; color: #b9d6ea; font-size: .85rem; }

/* Berita beranda: satu besar + daftar */
.news-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.8rem; }
.news-feature { position: relative; border-radius: var(--radius-sail); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.news-feature:hover img { transform: scale(1.05); }
.news-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6, 42, 70, .92)); z-index: 1; }
.news-feature-body { position: relative; z-index: 2; padding: 2rem; }
.news-feature h3 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.news-feature h3 a { color: #fff; }
.news-feature .meta { color: #cfe6f5; }
.news-list { display: grid; gap: 1.1rem; }
.news-row { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: center; background: #fff; border-radius: 20px; padding: .8rem; box-shadow: var(--shadow-sm); transition: .3s; }
.news-row:hover { transform: translateX(6px); }
.news-row img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.news-row h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.news-row h3 a { color: var(--deep); }
.news-row .meta { margin: 0; }

/* Agenda bergaya "tali jangkar" */
.agenda-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
.rope-list { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.rope-list::before { content: ""; position: absolute; left: 39px; top: 10px; bottom: 10px; border-left: 3px dashed var(--sand-2); }
.rope-list li { display: grid; grid-template-columns: 80px 1fr; gap: 1.2rem; padding-bottom: 1.4rem; position: relative; }
.date-buoy { width: 80px; height: 80px; border-radius: 50%; background: #fff; border: 4px solid var(--sea); display: grid; place-content: center; text-align: center; line-height: 1; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.date-buoy strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--deep); }
.date-buoy span { font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--coral-dark); letter-spacing: .08em; }
.agenda-body { background: #fff; border-radius: 20px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.agenda-body h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.notice-box { background: var(--deep); color: #d9ecf7; border-radius: var(--radius-sail); padding: 2rem; position: relative; overflow: hidden; }
.notice-box h3 { color: #fff; display: flex; gap: .6rem; align-items: center; }
.notice-box ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.notice-box li { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.notice-box li a { color: #fff; font-weight: 500; }
.notice-box li a:hover { color: var(--sand); }
.notice-box li small { display: block; color: #9fc3dc; font-size: .78rem; }
.notice-box::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255, 127, 80, .25); }

/* Galeri ringkas mosaik */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; }
.mosaic a { border-radius: 20px; overflow: hidden; position: relative; display: block; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; border-radius: var(--radius-sail); }
.mosaic a:nth-child(4), .mosaic a:nth-child(6) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img { transform: scale(1.07); }
.mosaic a span { position: absolute; left: .8rem; bottom: .8rem; background: rgba(6, 42, 70, .8); color: #fff; padding: .3rem .8rem; border-radius: 99px; font-size: .78rem; opacity: 0; transform: translateY(8px); transition: .3s; }
.mosaic a:hover span, .mosaic a:focus-visible span { opacity: 1; transform: none; }

/* Testimoni slider */
.slider { position: relative; max-width: 860px; margin-inline: auto; }
.slides { overflow: hidden; }
.slides-track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.slide { min-width: 100%; padding: 0 .5rem; text-align: center; }
.slide blockquote { margin: 0; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: var(--deep); line-height: 1.6; }
.slide-person { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.6rem; text-align: left; }
.slide-person img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--coral); }
.slide-person strong { display: block; color: var(--deep); }
.slide-person span { font-size: .85rem; color: var(--muted); }
.slider-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--sea); background: #fff; color: var(--sea); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.slider-btn:hover { background: var(--sea); color: #fff; }
.dots { display: flex; gap: .5rem; }
.dots button { width: 12px; height: 12px; border-radius: 99px; border: 0; background: var(--sand-2); cursor: pointer; transition: .3s; padding: 0; }
.dots button[aria-current="true"] { width: 34px; background: var(--coral); }

/* Peta */
.map-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.map-frame { border-radius: var(--radius-sail); overflow: hidden; box-shadow: var(--shadow); border: 8px solid #fff; background: #fff; }
.legend { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; }
.legend li { display: flex; gap: .9rem; align-items: center; background: #fff; padding: .8rem 1rem; border-radius: 14px; box-shadow: var(--shadow-sm); }
.legend i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.legend strong { color: var(--deep); }
.legend span { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* CTA band */
.cta-band { background: var(--coral); color: #2a0e02; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band h2 { color: #2a0e02; margin: 0; }
.cta-band p { margin: .4rem 0 0; }
.cta-band .btn-sea { background: var(--deep); }
.cta-band::before { content: ""; position: absolute; right: 8%; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .18); }

/* 7. Halaman dalam ------------------------------------------------------- */
.page-hero { position: relative; color: #fff; padding: calc(var(--header-h) + 38px + 4rem) 0 clamp(6rem, 10vw, 8rem); background: linear-gradient(120deg, var(--deep) 0%, var(--sea) 70%, #2a8fd0 100%); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 20'%3E%3Cpath d='M0 10q10-10 20 0t20 0 20 0 20 0' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") repeat 0 0/80px 20px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { color: #d6ebf8; max-width: 620px; font-size: 1.05rem; margin: 0; }
.page-hero .boat-deco { position: absolute; right: 6%; bottom: 70px; width: clamp(140px, 18vw, 240px); opacity: .9; z-index: -1; animation: bob 5s ease-in-out infinite; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: var(--sand); }
.breadcrumb [aria-current] { color: #fff; opacity: .85; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.prose { max-width: 760px; }
.prose p, .prose li { color: #2c4558; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.6em 0; padding: 1.2rem 1.5rem; border-left: 5px solid var(--coral); background: var(--sand); border-radius: 0 18px 18px 0; font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--deep); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-img img { border-radius: var(--radius-sail); box-shadow: var(--shadow); }

/* Timeline sejarah */
.timeline { position: relative; max-width: 900px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--sea) 0 14px, transparent 14px 24px); }
.tl-item { position: relative; width: 50%; padding: 0 2.6rem 2.4rem; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; }
.tl-item::before { content: ""; position: absolute; top: .4rem; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); border: 5px solid var(--sand-bg); box-shadow: 0 0 0 3px var(--coral); }
.tl-item:nth-child(odd)::before { right: -11px; }
.tl-item:nth-child(even)::before { left: -11px; }
.tl-year { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--sea); line-height: 1; }
.tl-item h3 { margin: .4rem 0; font-size: 1.1rem; }
.tl-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Visi misi */
.vision { background: var(--deep); color: #fff; border-radius: var(--radius-sail); padding: clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.vision p { font-family: var(--font-head); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.5; margin: 0; color: #fff; }
.vision .eyebrow { color: var(--sand); }
.mission-list { counter-reset: m; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.mission-list li { counter-increment: m; display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; background: #fff; padding: 1.1rem 1.2rem; border-radius: 18px; box-shadow: var(--shadow-sm); }
.mission-list li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--coral-dark); width: 52px; height: 52px; border-radius: 50%; background: #ffe9df; display: grid; place-items: center; }

/* Batas wilayah: kompas */
.compass-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: auto auto auto; gap: 1rem; align-items: center; }
.compass-grid .c-n { grid-column: 2; grid-row: 1; }
.compass-grid .c-w { grid-column: 1; grid-row: 2; }
.compass-grid .c-c { grid-column: 2; grid-row: 2; }
.compass-grid .c-e { grid-column: 3; grid-row: 2; }
.compass-grid .c-s { grid-column: 2; grid-row: 3; }
.border-card { background: #fff; border-radius: 18px; padding: 1.1rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm); }
.border-card small { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--coral-dark); font-size: .75rem; }
.border-card strong { color: var(--deep); font-family: var(--font-head); font-size: 1.05rem; }
.compass-rose { width: 100%; max-width: 230px; margin-inline: auto; animation: spinIn 1.4s ease; }
@keyframes spinIn { from { transform: rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact { background: #fff; border-radius: 18px; padding: 1.2rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--sea); }
.fact small { color: var(--muted); font-size: .8rem; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--deep); }

/* Grafik batang CSS */
.bars { display: grid; gap: .9rem; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: .8rem; align-items: center; font-size: .9rem; }
.bar-track { height: 14px; background: #efe4d0; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sea), var(--sea-light)); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar-fill.coral { background: linear-gradient(90deg, var(--coral-dark), var(--coral)); }
.bar-row .num { text-align: right; font-weight: 600; color: var(--deep); font-variant-numeric: tabular-nums; }
.chart-card { background: #fff; border-radius: var(--radius-sail); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.chart-card h3 { display: flex; align-items: center; gap: .6rem; }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: center; }
.donut { width: 200px; height: 200px; }
.donut circle { fill: none; stroke-width: 26; }
.donut-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.donut-legend li { display: flex; align-items: center; gap: .6rem; }
.donut-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.donut-legend b { margin-left: auto; color: var(--deep); font-variant-numeric: tabular-nums; }

/* Pemerintahan */
.leader { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: #fff; border-radius: var(--radius-sail); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.leader img { border-radius: var(--radius-sail); }
.leader dl { display: grid; grid-template-columns: 150px 1fr; gap: .5rem 1rem; margin: 1.2rem 0 0; font-size: .93rem; }
.leader dt { color: var(--muted); }
.leader dd { margin: 0; font-weight: 500; color: var(--deep); }
.staff { text-align: center; }
.staff-photo { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--sea-light), var(--shadow-sm); max-width: 190px; margin: 0 auto 1rem; transition: .3s; }
.staff:hover .staff-photo { box-shadow: 0 0 0 3px var(--coral), var(--shadow); transform: translateY(-4px); }
.staff h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.staff p { font-size: .85rem; color: var(--muted); margin: 0; }
.org { display: grid; gap: 1.4rem; justify-items: center; }
.org-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.org-box { background: #fff; border: 2px solid var(--sea-light); border-radius: 16px; padding: .8rem 1.1rem; text-align: center; min-width: 170px; position: relative; }
.org-box strong { display: block; color: var(--deep); font-size: .92rem; }
.org-box span { font-size: .8rem; color: var(--muted); }
.org-box.lead { background: var(--deep); border-color: var(--deep); }
.org-box.lead strong, .org-box.lead span { color: #fff; }
.org-box.alt { border-color: var(--coral); border-style: dashed; }
.org-row + .org-row::before { content: ""; position: absolute; top: -1.4rem; left: 50%; height: 1.4rem; border-left: 2px dashed var(--sea-light); }
.inst-card { display: flex; gap: 1rem; background: #fff; padding: 1.4rem; border-radius: 20px; box-shadow: var(--shadow-sm); }
.inst-icon { width: 56px; height: 56px; border-radius: 16px 4px 16px 16px; background: var(--foam); color: var(--sea); display: grid; place-items: center; flex: none; }
.inst-icon .icon { width: 26px; height: 26px; }
.inst-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.inst-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Layanan surat & alur */
.service-card { background: #fff; border-radius: var(--radius-sail); padding: 1.6rem; box-shadow: var(--shadow-sm); border-bottom: 4px solid transparent; transition: .3s; display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--coral); transform: translateY(-4px); }
.service-card .inst-icon { margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--muted); font-size: .9rem; }
.service-card .meta { margin-top: auto; padding-top: .6rem; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: s; list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5q5-5 10 0t10 0' fill='none' stroke='%235fb3e0' stroke-width='2'/%3E%3C/svg%3E") repeat-x center/20px 10px; }
.steps li { counter-increment: s; text-align: center; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; background: var(--sea); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; border: 6px solid var(--sand-bg); position: relative; }
.steps li:nth-child(even)::before { background: var(--coral); color: #2a0e02; }
.steps h3 { font-size: 1rem; margin-bottom: .3rem; }
.steps p { font-size: .86rem; color: var(--muted); margin: 0; }
.info-strip { display: flex; gap: 1rem; align-items: center; background: var(--foam); border-left: 5px solid var(--sea); padding: 1rem 1.3rem; border-radius: 0 16px 16px 0; color: var(--deep); font-size: .93rem; }
.info-strip .icon { color: var(--sea); width: 26px; height: 26px; }

/* Transparansi */
.apb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.apb-card { border-radius: var(--radius-sail); padding: 1.6rem; color: #fff; position: relative; overflow: hidden; }
.apb-card.in { background: linear-gradient(135deg, var(--sea), var(--deep)); }
.apb-card.out { background: linear-gradient(135deg, #ff9a74, var(--coral-dark)); }
.apb-card.fin { background: linear-gradient(135deg, #2f8f6b, #1f5b46); }
.apb-card small { opacity: .85; font-size: .82rem; }
.apb-card strong { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: .2rem 0 .8rem; }
.apb-card .progress { height: 8px; background: rgba(255, 255, 255, .25); border-radius: 99px; overflow: hidden; }
.apb-card .progress i { display: block; height: 100%; background: #fff; border-radius: 99px; width: 0; transition: width 1.4s ease; }
.apb-card p { font-size: .8rem; margin: .5rem 0 0; opacity: .92; }
.apb-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .12); }
.bar-chart { width: 100%; height: auto; }
.bar-chart text { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.bar-chart .val { fill: var(--deep); font-weight: 600; font-size: 11px; }
.bar-chart rect.grow { transform-box: fill-box; transform-origin: bottom; animation: growUp 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes growUp { from { transform: scaleY(0); } }
.chart-legend { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: 14px; height: 14px; border-radius: 4px; }

/* Potensi */
.product-card .card-img { aspect-ratio: 5/4; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--coral-dark); font-size: 1.15rem; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.spot { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-sail); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.spot img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.spot-body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.spot-body ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; font-size: .9rem; color: var(--muted); }
.spot-body li { display: flex; gap: .5rem; align-items: center; }
.spot-body li .icon { color: var(--sea); width: 18px; height: 18px; }
.spot:nth-child(even) .spot-img { order: 2; }

/* Berita & detail */
.news-grid .card-body h3 { font-size: 1.12rem; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 20px); }
.widget { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.widget h3 { font-size: 1.1rem; padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 2px dashed var(--sand-2); }
.widget-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.widget-list a { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; align-items: center; color: var(--deep); font-weight: 500; font-size: .9rem; line-height: 1.4; }
.widget-list img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.widget-list small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.article-cover { border-radius: var(--radius-sail); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); }
.share { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 2rem 0; padding: 1.2rem 0; border-block: 2px dashed var(--sand-2); }
.share > a, .share > button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--foam); color: var(--sea); border: 0; cursor: pointer; }
.share > a:hover, .share > button:hover { background: var(--sea); color: #fff; }
.author-box { display: flex; gap: 1.2rem; align-items: center; background: var(--sand); padding: 1.4rem; border-radius: var(--radius-sail); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; }
.comment { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.comment img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.comment strong { color: var(--deep); }
.comment p { margin: .2rem 0 0; color: var(--muted); font-size: .93rem; }

/* Agenda & pengumuman */
.agenda-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.3rem; align-items: center; background: #fff; border-radius: 22px; padding: 1.2rem; box-shadow: var(--shadow-sm); transition: .3s; }
.agenda-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.agenda-card .date-buoy { width: 96px; height: 96px; }
.agenda-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.agenda-card .status { font-size: .78rem; font-weight: 600; padding: .35rem .8rem; border-radius: 99px; white-space: nowrap; }
.status.upcoming { background: var(--foam); color: var(--sea); }
.status.done { background: #eee6d8; color: #6a5a40; }
.ann-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: #fff; border-radius: 20px; padding: 1.3rem; box-shadow: var(--shadow-sm); border-left: 5px solid var(--sea); }
.ann-item.urgent { border-left-color: var(--coral); }
.ann-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.ann-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.ann-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--foam); color: var(--sea); display: grid; place-items: center; }
.ann-item.urgent .ann-icon { background: #ffe6dc; color: var(--coral-dark); }
.doc-type { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; font-size: .7rem; font-weight: 700; color: #fff; background: #d92d20; }
.doc-type.xls { background: #1f8f4e; }
.doc-type.doc { background: #2563eb; }
.doc-name { display: flex; gap: .8rem; align-items: center; }
.doc-name strong { display: block; color: var(--deep); font-weight: 600; }
.doc-name small { color: var(--muted); }

/* Kontak */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.contact-card { background: #fff; border-radius: var(--radius-sail); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.contact-card .inst-icon { margin-bottom: .9rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.map-embed { border-radius: var(--radius-sail); overflow: hidden; box-shadow: var(--shadow); border: 8px solid #fff; height: 100%; min-height: 420px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }

/* 404 */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 1.25rem 120px; background: linear-gradient(180deg, #bfe3f2 0%, var(--sand-bg) 70%); position: relative; overflow: hidden; }
.error-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--sea); letter-spacing: -.02em; }
.error-code span { color: var(--coral); display: inline-block; animation: bob 4s ease-in-out infinite; }
.error-boat { width: 200px; margin: 0 auto 1rem; animation: bob 5s ease-in-out infinite; }

/* 8. Galeri, lightbox, modal ------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.g-item { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--foam); }
.g-item:nth-child(5n+1) { border-radius: var(--radius-sail); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 42, 70, .85)); opacity: 0; transition: .3s; }
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-cap { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; color: #fff; z-index: 1; font-size: .88rem; font-weight: 500; opacity: 0; transform: translateY(10px); transition: .3s; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-zoom { position: absolute; top: .8rem; right: .8rem; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--sea); display: grid; place-items: center; opacity: 0; transition: .3s; }
.g-item:hover .g-zoom { opacity: 1; }
.lightbox, .modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(4, 22, 38, .92); padding: 1.5rem; }
.lightbox.open, .modal.open { display: flex; animation: fade .25s ease; }
.lb-figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb-figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); background: #fff; }
.lb-figure figcaption { color: #fff; margin-top: 1rem; font-size: .95rem; }
.lb-figure figcaption small { display: block; color: #9fc3dc; }
.lb-btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.lb-btn:hover { background: var(--coral); }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-close { right: 1.2rem; top: 1.2rem; }
.video-card { cursor: pointer; text-align: left; border: 0; padding: 0; background: #fff; font: inherit; width: 100%; }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(6, 42, 70, .25); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 10px rgba(255, 127, 80, .3); transition: .3s; }
.play .icon { width: 28px; height: 28px; margin-left: 4px; }
.video-card:hover .play { box-shadow: 0 0 0 18px rgba(255, 127, 80, .25); }
.duration { position: absolute; right: .8rem; bottom: .8rem; background: rgba(0, 0, 0, .7); color: #fff; font-size: .75rem; padding: .15rem .55rem; border-radius: 6px; z-index: 1; }
.video-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; margin-bottom: 3rem; }
.video-feature .video-card { border-radius: var(--radius-sail); overflow: hidden; box-shadow: var(--shadow); }
.modal-box { width: min(1000px, 100%); }
.modal-video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 9. Footer -------------------------------------------------------------- */
.site-footer { background: var(--abyss); color: #b5cfe2; position: relative; padding-top: clamp(5rem, 9vw, 7rem); font-size: .93rem; }
.site-footer .wave-divider.top { color: var(--abyss); top: calc(-1 * clamp(40px, 6vw, 90px) + 1px); transform: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: 1.1rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #d6e7f3; }
.site-footer a:hover { color: var(--coral); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact .icon { color: var(--coral); margin-top: .2rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: .2s; }
.socials a:hover { background: var(--coral); color: #2a0e02; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .84rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter .field { flex: 1; min-width: 0; }
.newsletter .field .error-msg { color: #ffb4a0; }
.newsletter input { width: 100%; flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: .88rem; }
.newsletter input::placeholder { color: #8fb0c7; }
.newsletter button { border-radius: 99px; border: 0; background: var(--coral); color: #2a0e02; padding: 0 1rem; cursor: pointer; display: grid; place-items: center; }

/* Tombol kembali ke atas */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--coral); color: #2a0e02; display: grid; place-items: center; cursor: pointer; z-index: 90; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--deep); color: #fff; }

/* 10. Utilitas & animasi ------------------------------------------------ */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(94, 224, 138, 0); } }
body.no-scroll { overflow: hidden; }

/* Responsif -------------------------------------------------------------- */
@media (max-width: 1300px) { .nav-cta { display: none; } }
@media (max-width: 1180px) {
  .nav-menu a, .nav-menu .dd-toggle { padding: .5rem .5rem; font-size: .86rem; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: inline-flex; }
  .nav-panel { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--deep); color: #fff; padding: 5.5rem 1.4rem 2rem; transform: translateX(105%); transition: transform .4s cubic-bezier(.7, 0, .3, 1); overflow-y: auto; z-index: 150; box-shadow: -20px 0 50px rgba(0, 0, 0, .3); }
  .nav-panel.open { transform: none; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav-menu a, .nav-menu .dd-toggle { padding: .85rem 1rem; font-size: 1rem; width: 100%; justify-content: space-between; color: #fff; }
  .nav-menu > li > a::after, .nav-menu > li > .dd-toggle::after { left: 1rem; right: auto; width: 60px; bottom: .3rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255, 255, 255, .06); display: none; margin: .2rem 0 .4rem; }
  .has-dd.open .dropdown { display: block; }
  .has-dd:hover .dropdown { opacity: 1; }
  .dropdown a { color: #e3f1fa; }
  .dropdown a:hover, .dropdown a.active { background: rgba(255, 255, 255, .1); color: #fff; }
  .nav-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .nav-close .icon { width: 24px; height: 24px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(4, 22, 38, .55); z-index: 140; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .nav-panel .nav-cta { display: flex; margin-top: 1.4rem; }
  .hero-grid, .welcome-grid, .news-split, .agenda-split, .map-split, .split, .layout-sidebar, .leader, .video-feature { grid-template-columns: 1fr; }
  .hero { padding-bottom: 210px; }
  .tide-card { max-width: 520px; }
  .quick-list { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
  .grid-4, .gallery-grid, .contact-cards, .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps::before { display: none; }
  .sidebar { position: static; }
  .leader img { max-width: 320px; }
  .apb-cards { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) { .nav-close, .nav-backdrop { display: none; } .nav-panel { display: flex; align-items: center; gap: 1rem; } }
@media (max-width: 720px) {
  .tabs-nav { border-radius: 18px; }
  .topbar-info span:nth-child(n+2) { display: none; }
  .topbar-info span:first-child { font-size: .72rem; }
  .grid-2, .grid-3, .form-grid, .spot, .donut-wrap { grid-template-columns: 1fr; }
  .spot:nth-child(even) .spot-img { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic a:nth-child(4) { grid-column: span 1; }
  .news-row { grid-template-columns: 110px 1fr; }
  .timeline::before { left: 11px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; text-align: left; padding: 0 0 2rem 2.6rem; }
  .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
  .compass-grid { grid-template-columns: 1fr 1fr; }
  .compass-grid .c-c { grid-column: 1 / -1; grid-row: 1; }
  .compass-grid .c-n, .compass-grid .c-w, .compass-grid .c-e, .compass-grid .c-s { grid-column: auto; grid-row: auto; }
  .bar-row { grid-template-columns: 100px 1fr 54px; font-size: .82rem; }
  .agenda-card { grid-template-columns: 76px 1fr; }
  .agenda-card .date-buoy { width: 76px; height: 76px; }
  .agenda-card .status { grid-column: 2; justify-self: start; }
  .leader dl { grid-template-columns: 1fr; gap: 0; }
  .leader dd { margin-bottom: .5rem; }
  .donut { margin-inline: auto; }
  .page-hero .boat-deco { opacity: .35; }
}
@media (max-width: 520px) {
  .topbar-info { display: none; }
  .topbar .container { justify-content: center; }
  .quick { margin-top: -110px; }
  .quick-list { grid-template-columns: repeat(2, 1fr); }
  .buoy { width: 92px; height: 92px; }
  .buoy::before { inset: 19px; }
  .gallery-grid, .grid-4, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .brand-text small { display: none; }
  .brand img { width: 42px; height: 42px; }
  .tide-grid { grid-template-columns: 1fr 1fr; }
  .news-feature { min-height: 380px; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
  .lb-btn { width: 44px; height: 44px; }
}

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