/* ==========================================================
   Arkan Legalitas — Website Jasa Perizinan
   Stylesheet utama
   ========================================================== */

:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --blue: #1D4ED8;
  --blue-dark: #1E3A8A;
  --blue-soft: #E8EFFD;
  --sky: #93B4F5;
  --light: #F4F7FC;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #475569;
  --on-navy: #C7D2E5;
  --radius: 16px;
  --container: 1200px;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
svg { flex: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; color: #FFFFFF; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); color: var(--navy); }
.btn-ghost { border-color: #4B6A9B; color: #FFFFFF; font-weight: 600; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.btn-navy { background: var(--navy); color: #FFFFFF; min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn-navy:hover { background: var(--navy-deep); color: #FFFFFF; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.site-nav a, .site-footer a { white-space: nowrap; word-spacing: 0.12em; }
/* nav-nowrap */
.site-nav a:not(.btn):hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero beranda (foto full-width) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #FFFFFF;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(7, 26, 51, .94) 0%,
    rgba(11, 37, 69, .84) 38%,
    rgba(11, 37, 69, .40) 70%,
    rgba(11, 37, 69, .20) 100%);
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: 640px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero .lead { font-size: 18px; line-height: 1.7; color: #DCE4F2; max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

@media (max-width: 880px) {
  .hero-bg { object-position: 78% 25%; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 26, 51, .70) 0%, rgba(7, 26, 51, .92) 100%);
  }
  .hero-inner { min-height: 560px; align-items: flex-end; }
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
}
.check-list li { display: flex; align-items: center; gap: 12px; }
.check {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

/* ---------- Statistik ---------- */
.stats { border-bottom: 1px solid var(--border); }
.stats-inner { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.stat { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat span { font-size: 15px; color: var(--muted); }

/* ---------- Section umum ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--light); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #FFFFFF;
}
.section-light .card { border-color: transparent; }
.card h3 { font-size: 19px; font-weight: 700; color: var(--navy); }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card-lg { padding: 32px; gap: 14px; }
.card-lg h3 { font-size: 20px; }
.card-lg p { line-height: 1.7; }
.step-num { font-size: 14px; font-weight: 800; color: var(--blue); }
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.card .icon-box { margin-bottom: 4px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.stat-ic { color: var(--blue); padding-bottom: 6px; }
.group-title { display: flex; align-items: center; gap: 18px; }
.group-img { width: 96px; height: 64px; flex: none; object-fit: cover; border-radius: 12px; }
.card-photo { padding: 0; gap: 0; overflow: hidden; }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 26px 26px; }

/* ---------- Ajakan (CTA) ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 48px;
  border-radius: 24px;
  background: var(--navy);
  color: #FFFFFF;
}
.cta-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; font-weight: 800; }
.cta p { font-size: 17px; line-height: 1.6; color: var(--on-navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); }
.footer-inner { display: flex; flex-direction: column; gap: 40px; padding-top: 64px; padding-bottom: 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.footer-col.wide { flex: 2 1 280px; }
.footer-col.narrow { flex: 1 1 200px; }
.footer-title { font-weight: 700; color: #FFFFFF; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: #FFFFFF; }
.footer-logo { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 12px; background: #FFFFFF; }
.brand img, .footer-logo img { object-fit: contain; }
.footer-col p { max-width: 340px; line-height: 1.7; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.footer-addr-name { color: #FFFFFF; font-weight: 700; }
.office-name { color: var(--navy); font-weight: 700; }
.footer-bottom { padding-top: 24px; border-top: 1px solid #1E3558; font-size: 14px; color: #94A3B8; }

/* ---------- Header halaman dalam ---------- */
.page-hero { background: var(--light); }
.page-hero-inner { display: flex; flex-direction: column; gap: 16px; padding-top: 80px; padding-bottom: 80px; }
.page-hero-inner.tight { padding-bottom: 56px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.page-hero h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.page-hero .lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 640px; }

/* Header halaman dengan foto latar */
.page-hero.has-photo { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo .hero-overlay {
  background: linear-gradient(90deg, rgba(7, 26, 51, .94) 0%, rgba(11, 37, 69, .82) 45%, rgba(11, 37, 69, .45) 100%);
}
.page-hero.has-photo .page-hero-inner { padding-top: 112px; padding-bottom: 112px; }
.page-hero.has-photo h1 { color: #FFFFFF; }
.page-hero.has-photo .lead { color: #DCE4F2; }
.page-hero.has-photo .breadcrumb,
.page-hero.has-photo .breadcrumb a { color: var(--on-navy); }
.page-hero.has-photo .breadcrumb a:hover { color: #FFFFFF; }
.page-hero.has-photo .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #FFFFFF; }
.page-hero.has-photo .chip:hover { background: #FFFFFF; color: var(--navy); }
.page-hero.photo-right .page-hero-bg { left: auto; right: 0; width: 58%; }
.page-hero.photo-right .hero-overlay {
  background: linear-gradient(90deg, #0B2545 0%, #0B2545 42%, rgba(11, 37, 69, .55) 60%, rgba(11, 37, 69, .15) 100%);
}
@media (max-width: 880px) {
  .page-hero.photo-right .page-hero-bg { width: 100%; }
  .page-hero.has-photo .hero-overlay { background: linear-gradient(180deg, rgba(7, 26, 51, .78) 0%, rgba(7, 26, 51, .92) 100%); }
  .page-hero.has-photo .page-hero-inner { padding-top: 72px; padding-bottom: 72px; }
}

/* ---------- Tentang Kami ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-copy p { font-size: 17px; line-height: 1.8; color: var(--muted); }

.status-panel {
  flex: 1 1 380px;
  min-width: 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 20px;
  background: var(--navy);
}
.status-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: #FFFFFF;
}
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 4px; }
.status-head strong { font-size: 16px; color: var(--navy); }
.status-head span { font-size: 12px; font-weight: 600; color: var(--muted); }
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-done { color: #166534; background: #DCFCE7; }
.badge-progress { color: #1E40AF; background: #DBEAFE; }

.stats-plain { display: flex; flex-wrap: wrap; gap: 24px; }
.stats-plain .stat strong { font-size: 36px; }

/* ---------- Layanan ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #D5DEEC;
  background: #FFFFFF;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }

.service-list { display: flex; flex-direction: column; gap: 64px; padding-top: 72px; padding-bottom: 24px; }
.service-group { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px; }
.service-group h2 { font-size: 26px; font-weight: 800; color: var(--navy); }
.service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.service-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.service-item:hover { border-color: var(--blue); box-shadow: 0 6px 20px rgba(11, 37, 69, .08); }
.service-item strong { font-size: 17px; color: var(--text); }
.service-item span { font-size: 14px; font-weight: 600; color: var(--blue); }

/* ---------- Kontak ---------- */
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  padding-top: 80px;
  padding-bottom: 40px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
a.contact-card:hover { border-color: var(--blue); color: var(--text); }
.contact-card .ic { color: var(--blue); }
.contact-card .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-card .value { font-size: 21px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.contact-card .sub { font-size: 16px; color: var(--muted); }
.contact-card .action { font-size: 15px; font-weight: 600; color: var(--blue); }
.contact-card.primary { background: var(--blue); border-color: var(--blue); }
.contact-card.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.contact-card.primary .ic,
.contact-card.primary .value,
.contact-card.primary .action { color: #FFFFFF; }
.contact-card.primary .label { color: #DCE6FB; }

.office {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  margin-bottom: 96px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--light);
}
.office-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 48px; }
.office-info h2 { font-size: 28px; font-weight: 800; color: var(--navy); }
.office-info p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.office-info .btn { align-self: flex-start; }
.office-info .social { font-size: 14px; }
.pin {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--navy);
  color: #FFFFFF;
}
.office-map { flex: 1 1 420px; min-width: 0; min-height: 360px; background: #DCE6F5; }
.office-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Tombol WhatsApp melayang ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(11, 37, 69, .28);
}
.wa-float:hover { background: var(--blue-dark); color: #FFFFFF; }

/* ---------- Responsif ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 20px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px rgba(11, 37, 69, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .site-nav .btn { margin-top: 16px; }
}

@media (max-width: 600px) {
  .hero-inner { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .section { padding: 64px 0; }
  .page-hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .cta { padding: 40px 24px; }
  .status-panel { padding: 24px; min-height: 0; }
  .office-info { padding: 32px 24px; }
  .office { margin-bottom: 64px; }
  .btn-row .btn { width: 100%; }
}
