/* ============================================================
   HOME — section landing page + halaman proyek/divisi
   ============================================================ */

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--ink); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 40px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.02em;
}
.hero-title .text-accent { display: block; }
.hero-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 560px; }

.hero-showcase { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-panel { position: relative; height: clamp(320px, 36vw, 440px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 28, 44, .45)); pointer-events: none; }
.hero-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 16px 20px; justify-content: space-between; align-items: flex-end;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--card-glass); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none;
}
.hero-card:hover { color: var(--ink); }
.hero-card-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-card-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.2; }
.hero-card-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.hero-card-spec { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; white-space: nowrap; }

.hero-stats { position: relative; border-top: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 36px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 3.6vw, 48px); line-height: 1; }
.stat-suffix { font-size: .46em; color: var(--accent-ink); margin-left: 2px; }
.stat-label { font-size: 15px; color: var(--muted); }

/* ── Klien ── */
.clients { background: var(--surface); border-bottom: 1px solid var(--line); }
.clients-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; padding-top: 26px; padding-bottom: 26px; }
.clients-list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.clients-list span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--muted); opacity: .85; }
.clients-list img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.clients-list a:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .clients-list img { filter: grayscale(1) brightness(1.8); }
.clients-list a { text-decoration: none; }

/* ── Portal divisi ── */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.portal {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.portal:hover { color: var(--ink); }
.portal-media { position: relative; display: block; height: 190px; }
.portal-img { width: 100%; height: 100%; object-fit: cover; }
.portal-media .badge { position: absolute; top: 14px; right: 14px; }
.portal-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.portal-title { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.2; }
.portal-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }
.portal-cta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; color: var(--link); }

/* ── Peta proyek ── */
.section-map { background: var(--map-bg); }
.map-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.map-panel { flex: 999 1 600px; min-width: 0; background: var(--map-panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 2.5vw, 28px); }
.map-canvas { position: relative; width: 100%; aspect-ratio: 1000 / 383; }
.map-land {
  position: absolute; inset: 0; background: var(--island);
  -webkit-mask: var(--map-src) center / 100% 100% no-repeat;
          mask: var(--map-src) center / 100% 100% no-repeat;
}
.map-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.map-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--pin); border: 3px solid var(--pin-ring);
  transition: width .2s ease, height .2s ease, background-color .2s ease;
  animation: pin-pulse 2.4s ease-out infinite;
}
.map-pin.is-active .map-dot, .map-pin:hover .map-dot { width: 22px; height: 22px; background: var(--accent); }
@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, .55); }
  70% { box-shadow: 0 0 0 14px rgba(242, 169, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 169, 59, 0); }
}
.map-legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.map-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.map-detail { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.map-detail:hover { color: var(--ink); }
.map-detail-media { display: block; height: 160px; background-color: var(--ph); background-image: repeating-linear-gradient(135deg, var(--ph-stripe) 0 2px, transparent 2px 14px); }
.map-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.map-detail-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.map-detail-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.map-detail-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.map-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.map-row {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 16px; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.map-row:hover { border-color: var(--line-strong); }
.map-row.is-active { border-color: var(--accent); color: var(--ink); background: var(--surface); }
.map-row-main { display: flex; flex-direction: column; gap: 2px; }
.map-row-main strong { font-weight: 600; font-size: 15px; color: var(--ink); }
.map-row-main span { font-size: 13px; }
.map-row-spec { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }

/* ── Studi kasus ── */
.case { display: flex; flex-wrap: wrap; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.case-media { flex: 1 1 500px; min-height: 380px; position: relative; }
.case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-body { flex: 1 1 440px; min-width: 0; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.case-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.case-points { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.6; }
.case-points dt { display: inline; font-weight: 700; }
.case-points dd { display: inline; margin: 0 0 0 4px; color: var(--muted); }
.case-summary { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ── Produk ── */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(180px, 1fr)); gap: 14px; min-height: 420px; }
.mosaic > * { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.mosaic-a { grid-row: span 2; }

/* ── Alur kerja ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 24px 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--link); }
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.step-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ── Legalitas ── */
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; }
.legal-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 6px; }
.legal-text { color: var(--muted); font-size: 15px; }

/* ── Kontak ── */
.section-contact { background: var(--brand); color: #FFFFFF; }
.section-contact .section-lead { color: #D4DEE7; }
.section-contact .eyebrow-num { color: var(--accent); }
.contact-addr { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; font-size: 15px; line-height: 1.6; color: #D4DEE7; }
.contact-addr strong { color: #FFFFFF; }

/* ── Halaman proyek & divisi ── */
.page-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-hero .container { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.page-hero-center { min-height: 60vh; display: flex; align-items: center; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.015em; max-width: 960px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 8px; }
.meta-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta-row dd { margin: 2px 0 0; font-weight: 600; }

.detail-media { margin: clamp(28px, 4vw, 48px) 0; border-radius: var(--radius-xl); overflow: hidden; }
.detail-img { width: 100%; max-height: 620px; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-body { max-width: 780px; display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }
.detail-h { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 48px; }
.gallery-item { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.cta-inline { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.cta-inline div { display: flex; flex-direction: column; gap: 2px; }
.cta-inline span { color: var(--muted); }
