/* =============================================================================
   Vinrul Tech — dokumen profil perusahaan (versi cetak & PDF)
   Tampilan di layar menyerupai halaman A4; saat dicetak/di-PDF-kan aturan @page
   di bawah yang dipakai. Semua warna dicetak apa adanya (print-color-adjust).
   ============================================================================= */

:root {
  --ink: #101a2b;
  --soft: #46556e;
  --muted: #6c7a92;
  --line: #d6deeb;
  --line-soft: #e9eef6;
  --brand: #1d4ed8;
  --brand-2: #0e7490;
  --tint: #eef4ff;
  --ok: #067a55;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #e8edf5;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); text-decoration: none; }

/* -------------------------------------------------------------- bilah alat */
.doc-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #0b1424;
  color: #fff;
}

.doc-toolbar p { font-size: 0.86rem; color: #b9c6dc; }

.doc-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.doc-btn:hover { background: rgba(255, 255, 255, 0.14); }

.doc-btn-primary {
  background: linear-gradient(96deg, #4d7cff, #22d3ee);
  border-color: transparent;
}

.doc-btn-primary:hover { background: linear-gradient(96deg, #3f6df5, #17c3dd); }

/* -------------------------------------------------------------------- kertas */
.doc {
  width: 210mm;
  margin: 26px auto 48px;
  padding: 16mm 15mm 14mm;
  background: #fff;
  box-shadow: 0 30px 70px -34px rgba(9, 20, 40, 0.55);
}

/* --------------------------------------------------------------- halaman 1 */
.doc-cover { break-after: page; }

.doc-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.doc-brand__id { display: flex; align-items: center; gap: 12px; }

.doc-brand__mark svg,
.doc-brand__mark img { display: block; }

.doc-brand__name { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }

.doc-brand__tag {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-brand__meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.doc-cover h1 {
  margin: 26px 0 8px;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
}

.doc-cover__lead { max-width: 62ch; color: var(--soft); font-size: 1rem; }

.doc-cover__rule {
  margin: 18px 0 22px;
  height: 4px;
  width: 96px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.doc-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.doc-meta > div {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.doc-meta > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }

.doc-meta > div:nth-last-child(-n+2) { border-bottom: none; }

.doc-meta dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-meta dd { margin: 3px 0 0; font-size: 0.9rem; font-weight: 600; }

.doc-shot {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0b1424;
}

.doc-shot img { width: 100%; }

.doc-shot figcaption {
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.doc-cover__note {
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: var(--tint);
  color: var(--soft);
  font-size: 0.84rem;
}

/* ------------------------------------------------------------------ bagian */
.doc-section { margin-top: 26px; }

.doc-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.18rem;
}

.doc-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.doc-section h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.doc-section > p { margin-top: 10px; color: var(--soft); }

.doc-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
  margin-top: 10px;
}

.doc-list { display: grid; gap: 6px; margin-top: 10px; }

.doc-list li {
  position: relative;
  padding-left: 19px;
  color: var(--soft);
  font-size: 0.9rem;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}

.doc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.doc-chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafd;
  color: var(--soft);
  font-size: 0.78rem;
}

/* ------------------------------------------------------------------ tabel */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.88rem;
}

.doc-table caption {
  caption-side: top;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.mono { font-family: var(--mono); letter-spacing: 0.02em; }

.doc-table th,
.doc-table td {
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  width: 34%;
  background: #f7f9fd;
  color: var(--soft);
  font-weight: 600;
  font-size: 0.82rem;
}

.doc-table td { font-weight: 600; }

/* ------------------------------------------------------------ layanan doc */
.doc-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 12px;
}

.doc-service {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand-2);
  border-radius: 8px;
  background: #fafcff;
  break-inside: avoid;
}

.doc-service h3 { margin: 0 0 4px; font-size: 0.93rem; }

.doc-service p { color: var(--soft); font-size: 0.85rem; }

/* ------------------------------------------------------------- portofolio */
.doc-project {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  break-inside: avoid;
}

.doc-project:first-of-type { border-top: none; padding-top: 6px; }

.doc-project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}

.doc-project__cat {
  color: var(--brand-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-project__client { color: var(--muted); font-size: 0.8rem; }

.doc-project h3 { margin: 6px 0 6px; font-size: 1.02rem; }

.doc-project__sub { color: var(--brand); font-size: 0.86rem; font-weight: 600; }

.doc-project__desc { margin-top: 8px; color: var(--soft); font-size: 0.9rem; }

.doc-project__link {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.doc-project__link span { font-family: var(--mono); color: var(--soft); }

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  break-inside: avoid;
}

.shots figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.shots img { width: 100%; }

.shots figcaption {
  padding: 6px 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------- penutup */
.sign-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 22px;
  break-inside: avoid;
}

.sign-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sign-box p { color: var(--soft); font-size: 0.86rem; }

.sign-box__space { height: 46px; }

.sign-box__name {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.sign-box__role { color: var(--muted); font-size: 0.78rem; }

.doc-footer {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
}

/* ------------------------------------------------------------------ cetak */
@page {
  size: A4;
  margin: 14mm 14mm 15mm;
}

@media print {
  body { background: #fff; font-size: 10.4pt; }

  .doc-toolbar,
  .no-print { display: none !important; }

  .doc {
    width: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .doc-brand { padding-bottom: 10px; }
  .doc-cover h1 { font-size: 2.1rem; }
  .doc-section { margin-top: 18px; }

  a { color: inherit; }

  .doc-project,
  .doc-table tr,
  .shots,
  .sign-block,
  .doc-meta { break-inside: avoid; }
}
