/* Font dihosting sendiri (tanpa permintaan ke Google Fonts) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* ---------- Token ---------- */
:root {
  --ruby: #9b1b3f;
  --ruby-deep: #6e1130;
  --ruby-soft: #f6e3e8;
  --teal-deep: #0f2a33;
  --teal: #1f6f78;
  --glass: #eef4f5;
  --paper: #fbfcfc;
  --ink: #17313a;
  --muted: #55707a;
  --line: #cbd8db;
  --radius: 6px;
  --wrap: 1120px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::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: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ruby); text-underline-offset: 3px; }
a:hover { color: var(--ruby-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--teal-deep);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-deep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Motif skala ukur ---------- */
.ruler {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--teal) 0 1.5px, transparent 1.5px 60px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) bottom / 100% 7px no-repeat;
  opacity: .9;
}
.ruler--light {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 1.5px, transparent 1.5px 60px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1px, transparent 1px 12px) bottom / 100% 7px no-repeat;
}

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--teal-deep); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .custom-logo { height: 40px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; letter-spacing: .01em; color: var(--muted); margin-top: .25rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem; font: inherit; color: var(--teal-deep); cursor: pointer; }
.primary-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.primary-nav a { display: block; padding: .5rem .8rem; text-decoration: none; color: var(--ink); border-radius: var(--radius); font-weight: 500; }
.primary-nav a:hover { background: var(--glass); color: var(--teal-deep); }
.primary-nav .current > a { color: var(--ruby); box-shadow: inset 0 -2px 0 var(--ruby); border-radius: 0; }
.primary-nav .nav-cta a { background: var(--ruby); color: #fff; font-weight: 600; margin-left: .5rem; }
.primary-nav .nav-cta a:hover { background: var(--ruby-deep); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Tombol ---------- */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--ruby); color: #fff; }
.btn-primary:hover { background: var(--ruby-deep); color: #fff; }
.btn-ghost { border-color: var(--teal-deep); color: var(--teal-deep); background: transparent; }
.btn-ghost:hover { background: var(--teal-deep); color: #fff; }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--ruby-soft); color: var(--ruby-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 0; background: linear-gradient(180deg, var(--glass), var(--paper) 85%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.hero-figure { justify-self: center; width: min(100%, 300px); }
.hero-figure svg { width: 100%; display: block; }
.drop { animation: drop-in 1.1s cubic-bezier(.3, .7, .2, 1) .2s both; transform-origin: center; }
@keyframes drop-in { from { transform: translateY(-46px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: 200px; justify-self: start; }
}

/* ---------- Seksi ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--glass { background: var(--glass); }
.section--dark { background: var(--teal-deep); color: #d9e7ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: #b4cbd0; }

/* Layanan: baris dengan garis skala, bukan kartu */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal-deep); }
.service-list li { display: grid; grid-template-columns: .9fr 1.4fr auto; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.service-list h3 { margin: 0; }
.service-list p { margin: 0; color: var(--muted); }
.service-list a.more { white-space: nowrap; font-weight: 600; }
@media (max-width: 760px) { .service-list li { grid-template-columns: 1fr; gap: .5rem; } }

/* Bukti / keunggulan */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; margin: 0; padding: 0; list-style: none; }
.facts li { border-left: 3px solid var(--ruby); padding-left: 1.1rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--teal-deep); margin-bottom: .2rem; }
.facts span { color: var(--muted); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* Alur kerja (urutan nyata) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 1px solid rgba(255,255,255,.35); padding-top: 1rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ruby); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: .6rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { color: #b4cbd0; margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Dua kolom umum */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { padding: .55rem 0 .55rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 1rem; height: .5rem; border-left: 3px solid var(--ruby); border-bottom: 3px solid var(--ruby); transform: rotate(-45deg) scale(.8); }

/* ---------- Berita ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-item { display: flex; flex-direction: column; }
.news-item .thumb { display: block; aspect-ratio: 16 / 10; background: var(--glass); border-radius: var(--radius); overflow: hidden; margin-bottom: .9rem; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-item time, .post-meta { color: var(--muted); font-size: .92rem; }
.news-item h3 { margin: .2rem 0 .5rem; font-size: 1.2rem; }
.news-item h3 a { color: var(--teal-deep); text-decoration: none; }
.news-item h3 a:hover { color: var(--ruby); }
.news-item p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .news-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-list { grid-template-columns: 1fr; } }
.news-list--page { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .news-list--page { grid-template-columns: 1fr; } }
.empty-note { padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .45rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }

/* ---------- Halaman & artikel ---------- */
.page-hero { background: var(--glass); padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.page-hero .wrap { padding-bottom: 1.5rem; }
.page-hero p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose img { border-radius: var(--radius); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 1.2rem; border-left: 3px solid var(--ruby); color: var(--muted); }
.share { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share p { margin-bottom: .6rem; font-weight: 600; }
.share-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-links a { border: 1px solid var(--line); padding: .45rem .9rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: .95rem; }
.share-links a:hover { border-color: var(--ruby); color: var(--ruby); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--teal-deep); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #9db3b9; border-radius: var(--radius); padding: .75rem .9rem;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 4px solid; }
.notice--ok { background: #e6f3ee; border-color: #1c7a55; color: #0f4a33; }
.notice--err { background: var(--ruby-soft); border-color: var(--ruby); color: var(--ruby-deep); }
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.info-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; font-family: var(--font-display); color: var(--teal-deep); }

/* ---------- Sosial ---------- */
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; color: inherit; transition: background .15s, color .15s; }
.social a:hover { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.social svg { width: 20px; height: 20px; }

/* ---------- CTA & footer ---------- */
.cta-band { background: var(--ruby-deep); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0; max-width: 24ch; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.site-footer { background: var(--teal-deep); color: #b4cbd0; padding-top: 3rem; font-size: .98rem; }
.site-footer a { color: #d9e7ea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-grid h2 { font-size: 1.05rem; color: #fff; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0; font-size: .9rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drop { animation: none; }
  .social a { transition: none; }
}

/* ---------- Tambahan situs statis ---------- */
.custom-logo { display: none; }
.form-status { margin-bottom: 1.2rem; }
.form-status:empty { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.noscript-note { padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 640px; margin-inline: auto; background: var(--teal-deep); color: #e4eef0; padding: 1.1rem 1.25rem; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.28); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .8rem; font-size: .95rem; max-width: none; }
.consent a { color: #fff; }
.consent .btn-row { margin-top: 0; }
.consent .btn { padding: .6rem 1.1rem; }
.consent .btn-ghost { border-color: #9db3b9; color: #fff; }
.consent .btn-ghost:hover { background: #fff; color: var(--teal-deep); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
