/* base.css — shared shell for design review (v1–v3) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -9999px; z-index: 100;
  padding: 12px 18px; background: var(--brand); color: #fff; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; }
.wrap { width: min(var(--container), 100% - 48px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link, .nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; background: none;
  color: var(--ink-soft); font-weight: 600; font-size: 14.5px; border-radius: 8px;
}
.nav-link:hover, .nav-btn:hover { background: var(--hover); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-btn::after {
  content: ""; width: 5px; height: 5px; margin-left: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(13, 35, 56, .16); display: none;
}
.nav-item.open .nav-menu { display: block; }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft); }
.nav-menu a:hover { background: var(--hover); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; margin-left: auto; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; font-weight: 700;
}
.nav .nav-cta { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border: 1px solid transparent; border-radius: var(--pill);
  font-weight: 700; font-size: 14.5px; line-height: 1.2;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1e9e55; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* Sections */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 62ch; }

/* Grid + cards */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.card-link { font-weight: 700; font-size: 14px; color: var(--brand); }
.card-link:hover { text-decoration: underline; }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: var(--icon-radius); background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Media */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--pill);
  font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--surface);
}
.feature { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature strong { display: block; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.num { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .1em; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 44px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .86; max-width: 52ch; }
.cta-band .btn { margin-left: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer p, .site-footer a { color: var(--footer-ink); font-size: 14.5px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { height: 44px; width: auto; background: #fff; padding: 6px 8px; border-radius: 8px; margin-bottom: 16px; }
.footer-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--footer-line); font-size: 13px; }
.footer-note p { margin: 0; }

/* Responsive */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 24px 24px; background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-btn { width: 100%; justify-content: space-between; }
  .nav-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 8px 14px; }
  .nav .nav-cta { display: inline-flex; margin-top: 10px; }
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { padding: 32px; }
  .cta-band .btn { margin-left: 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .section { padding: calc(var(--section-pad) * .62) 0; }
}

/* V1 — Bersih Medis */
:root {
  --font-head: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --container: 1180px;
  --header-h: 76px;
  --header-bg: rgba(255, 255, 255, .95);
  --brand: #1163B5;
  --brand-dark: #0C4A8A;
  --brand-soft: #E8F1FC;
  --on-brand: #fff;
  --ink: #102C4A;
  --ink-soft: #38536E;
  --muted: #5F758C;
  --bg: #fff;
  --bg-alt: #F4F9FD;
  --surface: #fff;
  --line: #DCE8F3;
  --line-strong: #C5D8EA;
  --hover: #F1F7FD;
  --focus: #1163B5;
  --pill: 999px;
  --radius: 16px;
  --radius-sm: 10px;
  --icon-radius: 14px;
  --shadow: 0 10px 30px rgba(16, 44, 74, .06);
  --section-pad: 92px;
  --gap: 20px;
  --footer-bg: #0E2B47;
  --footer-ink: #B9CEDF;
  --footer-line: #1E4060;
  --wa: #25D366;
}

.hero { padding: 64px 0 80px; background: linear-gradient(180deg, #F7FBFF 0%, #fff 72%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 18px; }
.hero .lead { font-size: 18px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero-media { position: relative; }
.hero-media > img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: 24px; box-shadow: 0 30px 60px rgba(16, 44, 74, .16);
}
.hero-card {
  position: absolute; left: -26px; bottom: 28px; width: 286px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; box-shadow: 0 18px 40px rgba(16, 44, 74, .14);
}
.hero-card strong { display: block; margin-bottom: 4px; font-size: 15px; }
.hero-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.hero-card a { font-size: 13.5px; font-weight: 700; color: var(--brand); }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trust ul {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
}

.mcu-card { display: flex; flex-direction: column; }
.mcu-card ul { margin-bottom: 18px; }
.mcu-card li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 8px; }
.mcu-card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 5px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.mcu-card .mcu-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mcu-price { font-weight: 800; color: var(--brand); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split .photo img { height: 420px; }
.split .eyebrow { margin-top: 0; }

.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner {
  display: flex; align-items: center; justify-content: center; height: 78px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 800; letter-spacing: .06em; color: #7A93AA; font-size: 15px;
}
.partner-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media > img { height: 360px; }
  .hero-card { position: static; width: auto; margin-top: 14px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .photo img { height: 320px; }
  .partners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 56px; }
  .hero-media > img { height: 300px; }
  .hero-actions .btn { width: 100%; }
  .partners { grid-template-columns: repeat(2, 1fr); }
}

/* Fase 3 — halaman publik */
.nav-btn.is-active { color: var(--brand); }

.page-hero {
  padding: 54px 0 48px;
  background: linear-gradient(180deg, #F7FBFF 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--brand); }
.breadcrumb span { color: var(--muted); }

.note { font-size: 13.5px; color: var(--muted); }
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 28px; background: #fff; color: var(--muted); font-size: 14.5px;
}
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; }

.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
}
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg-alt); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num-cell { white-space: nowrap; }

.package-items { margin: 12px 0 16px; }
.package-items li { font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; margin-bottom: 6px; }
.package-items li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.badge-cat { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--brand); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; margin-bottom: 14px; }
.contact-card strong { display: block; font-size: 16px; }
.contact-card .role { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.contact-card a { color: var(--brand); font-weight: 700; font-size: 14px; }
.contact-meta { margin-top: 22px; font-size: 14.5px; color: var(--ink-soft); }
.contact-meta dt { font-weight: 700; color: var(--ink); margin-top: 12px; }
.contact-meta dd { margin: 2px 0 0; color: var(--muted); }

.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; box-shadow: 0 18px 40px rgba(16, 44, 74, .06); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 14.5px;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); outline: 2px solid rgba(17, 99, 181, .18); }
.textarea { min-height: 120px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.checkbox input { margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: #EEF9F1; border-color: #BFE6C9; color: #1D6B33; }
.alert-error { background: #FDF0F0; border-color: #F2C6C6; color: #8C2B2B; }
.alert-info { background: var(--bg-alt); border-color: var(--line); color: var(--ink-soft); }

.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.promo-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.promo-card h3 { font-size: 18px; }
.promo-card p { font-size: 14px; color: var(--muted); }
.period { font-size: 12.5px; font-weight: 700; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.portfolio-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.portfolio-card .cover { height: 180px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.portfolio-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card .body { padding: 18px; }
.portfolio-card h3 { font-size: 17px; margin-bottom: 6px; }
.portfolio-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 0; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.result-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.result-type { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.result-type strong { display: block; margin-bottom: 6px; }
.result-type p { font-size: 13.5px; color: var(--muted); margin: 0; }

.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 12px 30px rgba(16, 44, 74, .24);
}
.float-wa svg { width: 22px; height: 22px; fill: currentColor; }
.float-wa:hover { background: #1e9e55; }
.float-wa:focus-visible { outline-color: #fff; box-shadow: 0 0 0 4px rgba(37, 211, 102, .4); }

.section-head.spaced { margin-top: 48px; }
.card-photo { margin-bottom: 16px; }
.btn-row { margin-top: 20px; }
.data-table tbody th { background: transparent; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .promo-grid, .portfolio-grid, .result-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .promo-grid, .portfolio-grid, .result-types { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .float-wa { right: 12px; bottom: 12px; padding: 11px 15px; }
  .page-hero { padding: 38px 0 34px; }
}
