/* =========================================================
   SAPTECH — style.css (website publik)
   Mobile-first, CSS murni tanpa framework.
   Warna utama diatur lewat CSS variable (dapat diubah dari Admin → Tema).
   ========================================================= */

:root {
  --primary: #0B1220;
  --secondary: #14233B;
  --accent: #0EA5E9;
  --cyan: #22D3EE;
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --surface-2: #EEF3F9;
  --text: #1E293B;
  --heading: #0B1220;
  --muted: #64748B;
  --border: #E2E8F0;
  --on-dark: #E6EEF8;
  --on-dark-muted: #9FB0C8;
  --danger: #DC2626;
  --success: #16A34A;
  --warning: #D97706;
  --wa: #22C55E;

  --gradient-accent: linear-gradient(135deg, var(--accent), var(--cyan));
  --gradient-dark: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
                   radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 60%),
                   linear-gradient(180deg, var(--primary), var(--secondary));

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-heading: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 3px rgba(11, 18, 32, .04);
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 18, 32, .30);
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 12px 40px -12px color-mix(in srgb, var(--accent) 55%, transparent);

  --header-h: 68px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  --bg: #0A111D;
  --surface: #111B2C;
  --surface-2: #16233A;
  --text: #D7E1EE;
  --heading: #F4F8FD;
  --muted: #93A4BC;
  --border: #22314A;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
}

/* ---------- Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
body.no-scroll, body.nav-open { overflow: hidden; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--heading); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.noscript { padding: 16px; text-align: center; background: #FEF3C7; color: #78350F; margin: 0; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: .5rem .9rem; font-size: .875rem; }
.btn--block { width: 100%; white-space: normal; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--secondary); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
[data-theme="dark"] .btn--primary { background: var(--accent); color: var(--primary); }
.btn--accent { background: var(--gradient-accent); color: var(--primary); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--accent:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn--ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.btn--outline { background: transparent; color: var(--heading); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.btn--soft { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.btn--soft:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.btn--link { background: none; color: var(--muted); padding-inline: .5rem; }
.btn--link:hover { color: var(--accent); }
.btn .icon { width: 1.15em; height: 1.15em; }

/* ---------- Label kecil ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.eyebrow--light { color: var(--cyan); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.badge--glass { position: absolute; left: 12px; top: 12px; background: rgba(11, 18, 32, .72); color: #fff; backdrop-filter: blur(6px); }
.badge--sample { background: #FEF3C7; color: #92400E; }
.pf-card__media .badge--sample { position: absolute; right: 12px; top: 12px; }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .75rem; font-weight: 500; padding: .25rem .6rem; border-radius: 8px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.chip--accent { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--heading); border-color: color-mix(in srgb, var(--accent) 25%, transparent); font-size: .82rem; padding: .35rem .75rem; }

/* ---------- Header & navigasi ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body.nav-open .site-header {
  background: color-mix(in srgb, var(--primary) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px -16px rgba(0, 0, 0, .5);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none !important; }
.brand__logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.brand__name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; }

.nav-toggle { width: 46px; height: 46px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; }
.nav-toggle__bar { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--primary); border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 20px 24px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .25s var(--ease), opacity .2s, visibility .2s;
}
body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
.nav__list { display: flex; flex-direction: column; }
.nav__link { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--on-dark); font-weight: 500; border-radius: 10px; text-decoration: none !important; }
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link.is-active { color: var(--cyan); }
.nav__cta { width: 100%; margin-top: 12px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; opacity: 1; visibility: visible; background: none; border: 0; padding: 0; max-height: none; overflow: visible; display: flex; align-items: center; gap: 1.25rem; }
  .nav__list { flex-direction: row; gap: .15rem; }
  .nav__link { min-height: 40px; font-size: .92rem; padding: 0 .75rem; position: relative; background: none !important; }
  .nav__link.is-active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gradient-accent); }
  .nav__cta { width: auto; margin: 0; min-height: 42px; }
  body.nav-open { overflow: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--on-dark); background: var(--gradient-dark); padding: calc(var(--header-h) + 48px) 0 40px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__title { color: #fff; font-size: clamp(2rem, 6.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .45em; }
.hero__subtitle { font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--on-dark-muted); max-width: 58ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__points { display: grid; gap: .6rem; }
.hero__points li { display: flex; align-items: center; gap: .6rem; color: var(--on-dark); font-weight: 500; font-size: .95rem; }
.hero__points .icon { color: var(--cyan); }
.hero__visual { position: relative; }
.hero__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); aspect-ratio: 16 / 9; background: var(--secondary); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.float-card { position: absolute; display: none; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(13, 22, 39, .78); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); color: #fff; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: .88rem; }
.float-card small { display: block; font-size: .75rem; color: var(--on-dark-muted); }
.float-card__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--gradient-accent); color: var(--primary); }
.float-card--a { left: -18px; bottom: 18%; }
.float-card--b { right: -14px; top: 10%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tech-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark-muted); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tech-strip li { display: inline-flex; align-items: center; gap: .6rem; }
.tech-strip li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; margin-right: .9rem; }

@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__points { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
  .hero__points li { white-space: nowrap; }
}
@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 72px) 0 48px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .float-card { display: flex; }
  .tech-strip { justify-content: space-between; }
}

/* ---------- Section umum ---------- */
.section { position: relative; padding: 72px 0; }
.section--white { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); font-weight: 800; }
.section-head p:last-child { color: var(--muted); font-size: 1.02rem; margin: 0; }
.section-head--light h2 { color: #fff; }
.section-head--light p:last-child { color: var(--on-dark-muted); }
.section--dark { background: var(--gradient-dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section--dark__glow { position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 70%); }
.lead { font-size: 1.05rem; color: var(--muted); }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state .icon { width: 32px; height: 32px; color: var(--accent); }
.data-note { margin: 24px auto 0; max-width: 720px; text-align: center; font-size: .85rem; color: var(--muted); }
.muted-note { color: var(--muted); font-style: italic; }
@media (min-width: 1024px) { .section { padding: 104px 0; } .section-head { margin-bottom: 56px; } }

/* Animasi muncul (hanya aktif bila JavaScript berjalan) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Layanan ---------- */
.services-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: .25rem;
  padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--gradient-accent); opacity: 0; transition: opacity .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; }
.svc-card:hover::before { opacity: 1; }
.svc-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.svc-card__icon .icon { width: 26px; height: 26px; }
.svc-card__title { font-size: 1.15rem; margin-bottom: .35rem; }
.svc-card__desc { color: var(--muted); font-size: .94rem; margin-bottom: .4rem; }
.svc-card__detail { font-size: .85rem; color: var(--text); font-weight: 500; margin-bottom: .6rem; }
.svc-card__list { display: grid; gap: .45rem; margin: .5rem 0 .25rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.svc-card__item { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; }
.svc-card__item .icon { width: 16px; height: 16px; margin-top: .25rem; color: var(--accent); }
.svc-card__item.is-extra { display: none; }
.svc-card.is-expanded .svc-card__item.is-extra { display: flex; }
.svc-card__more { align-self: flex-start; background: none; border: 0; padding: .4rem 0; min-height: 36px; font-size: .85rem; font-weight: 600; color: var(--accent); }
.svc-card__more:hover { text-decoration: underline; }
.svc-card__cta { margin-top: auto; }
.svc-card__list + .svc-card__cta, .svc-card__more + .svc-card__cta { margin-top: 1rem; }
.services-grid > *, .pf-grid > *, .adv-grid > *, .testi-grid > *, .steps > * { min-width: 0; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .svc-card { padding: 22px; } }

/* ---------- Tentang ---------- */
.about { display: grid; gap: 40px; }
.about__main h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); font-weight: 800; }
.check-list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.check-list li { display: flex; align-items: center; gap: .75rem; font-weight: 500; color: var(--heading); }
.check-list .icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.about__cards { display: grid; gap: 16px; }
.vm-card { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.vm-card h3 { font-size: 1.1rem; margin: .75rem 0 .5rem; }
.vm-card p { margin: 0; color: var(--muted); }
.vm-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vm-card--dark { background: var(--gradient-dark); border-color: transparent; color: var(--on-dark); box-shadow: var(--shadow-lg); }
.vm-card--dark h3 { color: #fff; }
.vm-card--dark p { color: var(--on-dark); font-size: 1.02rem; }
.vm-card--dark .vm-card__icon { background: var(--gradient-accent); color: var(--primary); }
.mission-list { display: grid; gap: .55rem; }
.mission-list li { display: flex; gap: .55rem; color: var(--muted); font-size: .94rem; }
.mission-list .icon { width: 16px; height: 16px; margin-top: .3rem; color: var(--accent); }
@media (min-width: 768px) { .about__cards { grid-template-columns: 1fr 1fr; } .vm-card--dark { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } .about__main { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Keunggulan ---------- */
.adv-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.adv-card { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.adv-card:hover { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.adv-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 16px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--cyan) 50%, transparent); }
.adv-card__title { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.adv-card__desc { color: var(--on-dark-muted); font-size: .92rem; margin: 0; }
@media (min-width: 640px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .adv-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: .5rem; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 20px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter-btn { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; transition: all .2s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="dark"] .filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.filter-btn__count { font-size: .72rem; min-width: 22px; padding: 0 .35rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.filter-btn.is-active .filter-btn__count { background: rgba(255, 255, 255, .16); color: inherit; }
@media (min-width: 768px) { .filters { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.pf-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.pf-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pf-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.pf-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pf-card:hover .pf-card__img { transform: scale(1.04); }
.img-fallback { display: grid; place-items: center; color: var(--muted); }
.img-fallback .icon { width: 40px; height: 40px; }
.pf-card__body { display: flex; flex-direction: column; gap: .6rem; padding: 20px; flex: 1; }
.pf-card__title { font-size: 1.08rem; margin: 0; }
.pf-card__year { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.pf-card__desc { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-card__actions { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .5rem; }
@media (min-width: 640px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Dialog */
.modal { width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgba(5, 10, 20, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .25s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: rgba(11, 18, 32, .7); color: #fff; }
.modal__body { display: grid; }
.modal__media { aspect-ratio: 3 / 2; background: var(--surface-2); }
.modal__img { width: 100%; height: 100%; object-fit: cover; }
.modal__content { padding: 24px; }
.modal__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.modal__title { font-size: 1.4rem; }
.modal__desc { color: var(--muted); }
.modal__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .5rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .modal__body { grid-template-columns: 1.1fr 1fr; } .modal__media { aspect-ratio: auto; min-height: 100%; } .modal__content { padding: 32px; } }

/* ---------- Proses kerja ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding: 22px 22px 22px 84px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step__num { position: absolute; left: 20px; top: 20px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-family: var(--font-heading); font-weight: 800; color: var(--primary); background: var(--gradient-accent); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 46px; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); }
  .step { padding: 92px 20px 24px; text-align: center; background: var(--surface); }
  .step__num { left: 50%; transform: translateX(-50%); top: 22px; }
}

/* ---------- Testimoni ---------- */
.testi-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.testi-card { position: relative; margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.testi-card__badge { position: absolute; right: 16px; top: 16px; }
.testi-card__stars { display: flex; gap: 2px; }
.star { color: var(--border); }
.star.is-on { color: #F59E0B; }
.star .icon { width: 18px; height: 18px; }
.testi-card__quote { margin: 0; color: var(--text); font-size: .98rem; flex: 1; }
.testi-card__author { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testi-card__author strong { display: block; color: var(--heading); font-size: .95rem; }
.testi-card__author small { display: block; color: var(--muted); font-size: .82rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--initials { display: grid; place-items: center; background: var(--gradient-accent); color: var(--primary); font-weight: 700; font-size: .9rem; }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 32px; }
.faq__intro h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); font-weight: 800; }
.faq__intro > p:not(.eyebrow) { color: var(--muted); }
.cta-card { margin-top: 1.5rem; padding: 24px; border-radius: var(--radius); background: var(--gradient-dark); color: var(--on-dark); }
.cta-card h3 { color: #fff; font-size: 1.1rem; }
.cta-card p { color: var(--on-dark-muted); font-size: .92rem; }
.faq__list { display: grid; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq-item.is-open { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); background: var(--surface); }
.faq-item__heading { margin: 0; font-size: 1rem; }
.faq-item__btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px; border: 0; background: none; text-align: left; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--heading); border-radius: 14px; }
.faq-item__chev { width: 20px; height: 20px; color: var(--accent); transition: transform .25s var(--ease); }
.faq-item.is-open .faq-item__chev { transform: rotate(180deg); }
.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__inner { overflow: hidden; }
.faq-item__inner p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
@media (min-width: 1024px) { .faq { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } .faq__intro { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Kontak ---------- */
.contact { display: grid; gap: 20px; }
.contact-info { padding: 28px; border-radius: var(--radius-lg); background: var(--gradient-dark); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.contact-info h3 { color: #fff; font-size: 1.25rem; }
.contact-info > p { color: var(--on-dark-muted); font-size: .94rem; }
.contact-info__list { display: grid; gap: 18px; margin: 1.5rem 0; }
.contact-info__row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--cyan); }
.contact-info__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); }
.contact-info__value { display: block; color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.contact-info__value a { color: #fff; }
.contact-info__value a:hover { color: var(--cyan); }
.contact-info .muted-note { color: var(--on-dark-muted); }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-link { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s, color .2s; }
.social-link:hover { background: var(--accent); color: var(--primary); }
.contact-form { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.form-grid { display: grid; gap: 4px 16px; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; }
.field label { font-size: .88rem; font-weight: 600; color: var(--heading); margin-bottom: .35rem; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 16px; /* mencegah zoom otomatis di iOS */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field__error { min-height: 1.2em; margin: .25rem 0 .4rem; font-size: .8rem; color: var(--danger); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent); }
.form-note { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } .contact-form { padding: 32px; } }
@media (min-width: 1024px) { .contact { grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; } .contact-info { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--on-dark-muted); padding: 64px 0 24px; }
.footer__grid { display: grid; gap: 36px; }
.brand--light { margin-bottom: 1rem; }
.footer__tagline { color: #fff; font-weight: 600; }
.footer__desc { font-size: .9rem; max-width: 44ch; }
.socials--footer { margin-top: 1rem; }
.footer__col h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { color: var(--on-dark-muted); font-size: .92rem; }
.footer__col a:hover { color: var(--cyan); text-decoration: none; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; overflow-wrap: anywhere; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: .2rem; color: var(--cyan); }
.footer__col .footer__wa { margin-top: 1.25rem; color: var(--primary); }
.footer__col .footer__wa:hover { color: var(--primary); }
.footer__bottom { display: flex; flex-direction: column; gap: .4rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer__bottom p { margin: 0; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr .8fr 1fr 1.1fr; gap: 48px; } .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- WhatsApp FAB ---------- */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(34, 197, 94, .6); transition: transform .2s var(--ease); }
.wa-fab .icon { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab.is-unset { filter: grayscale(.35); }
body.nav-open .wa-fab { opacity: 0; pointer-events: none; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 10px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .7rem; padding: 14px 14px 14px 16px; border-radius: 14px; background: #0F1A2D; color: #fff; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); font-size: .92rem; line-height: 1.45; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: none; }
.toast span { flex: 1; }
.toast__icon { width: 20px; height: 20px; margin-top: 1px; }
.toast--success .toast__icon { color: #4ADE80; }
.toast--error .toast__icon { color: #F87171; }
.toast--warning .toast__icon { color: #FBBF24; }
.toast--info .toast__icon { color: var(--cyan); }
.toast__close { border: 0; background: none; color: rgba(255, 255, 255, .7); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; padding: 0; }
.toast__close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.toast__close .icon { width: 16px; height: 16px; }

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