/* ============================================================
   PT PUTRA PERDANA NUSAJAYA — Website
   Palet biru korporat (warisan Compro v8) + kemasan modern
   ============================================================ */

:root {
  --blue-deepest: #001144;
  --blue-deep: #001A6B;
  --blue: #0020A0;
  --blue-primary: #0030B0;
  --blue-mid: #0070F0;
  --blue-light: #00A0F0;
  --gold: #F5C518;
  --gold-light: #FFD84A;
  --pale: #E8F4FE;
  --ink: #13315C;
  --text: #2A3A52;
  --muted: #5A6B82;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FD;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15,36,64,.08);
  --shadow-md: 0 6px 20px rgba(15,36,64,.10);
  --shadow-lg: 0 16px 44px rgba(15,36,64,.16);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; }

a { text-decoration: none; color: inherit; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 78px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 13px; }
.nav-brand img { height: 44px; display: block; transition: transform .25s; }
.nav-brand:hover img { transform: scale(1.05); }
.nav-brand-text {
  display: flex; flex-direction: column; line-height: 1.12;
  font-size: 16px; color: var(--ink); letter-spacing: -0.01em;
}
.nav-brand-text strong { font-weight: 800; color: var(--blue-primary); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink);
  position: relative; transition: color .2s;
}
.nav-links a:not(.nav-login)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav-links a:not(.nav-login):hover { color: var(--blue-primary); }
.nav-links a:not(.nav-login):hover::after { width: 100%; }
.nav-login {
  padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--muted) !important; font-size: 14px;
  cursor: not-allowed; opacity: .65; position: relative;
}
.nav-login::before {
  content: 'Segera'; position: absolute; top: -8px; right: -6px;
  font-size: 8px; font-weight: 800; background: var(--gold); color: var(--ink);
  padding: 1px 6px; border-radius: 999px; letter-spacing: .03em;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 120px 28px 60px; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(160deg, var(--blue-deepest) 0%, var(--blue-deep) 45%, var(--blue-primary) 100%);
  margin: 0 calc(-50vw + 50%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  margin: 0 calc(-50vw + 50%);
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero-content { max-width: 760px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-light);
  padding: 7px 16px; border: 1px solid rgba(245,197,24,.4); border-radius: 999px; margin-bottom: 26px;
}
.hero-title { font-size: clamp(38px, 6vw, 68px); font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.hero-title span {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.82); margin-top: 26px; max-width: 620px; }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(245,197,24,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,197,24,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.hero-stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 36px; max-width: 760px;
}
.stat-num {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; letter-spacing: -0.02em;
}
.stat-lbl { font-size: 13.5px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--blue-deepest), var(--blue-deep)); }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-primary); margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-light); }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-dark .sec-head h2 { color: #fff; }
.sec-head .lead { font-size: 17px; color: var(--muted); margin-top: 18px; }
.section-dark .sec-head .lead { color: rgba(255,255,255,.75); }

/* ============ TENTANG ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--text); margin-bottom: 16px; }
.info-list { margin-top: 26px; border-top: 1px solid var(--line); }
.info-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row span { color: var(--muted); font-size: 14.5px; flex-shrink: 0; }
.info-row strong { color: var(--ink); font-size: 14.5px; text-align: right; font-weight: 600; }

.vm-card { border-radius: var(--radius); padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.vm-visi { background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid)); color: #fff; }
.vm-misi { background: #fff; border: 1px solid var(--line); }
.vm-lbl { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.vm-visi .vm-lbl { color: var(--gold-light); }
.vm-misi .vm-lbl { color: var(--blue-primary); }
.vm-visi p { font-size: 17px; font-weight: 600; line-height: 1.5; }
.vm-misi ul { list-style: none; }
.vm-misi li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 14.5px; color: var(--text); }
.vm-misi li::before { content: '▪'; position: absolute; left: 4px; color: var(--gold); font-size: 14px; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 56px; }
.value { text-align: center; padding: 28px 14px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-ic { font-size: 22px; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.value-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* ============ LAYANAN ============ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-ic {
  width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
}
.svc h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.svc p { font-size: 14.5px; color: var(--muted); }

.quality { margin-top: 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow-sm); }
.quality h3 { font-size: 22px; margin-bottom: 12px; }
.quality > p { font-size: 15.5px; color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.flow-step { display: flex; align-items: center; gap: 10px; background: var(--pale); color: var(--ink); font-weight: 700; padding: 12px 22px; border-radius: 999px; font-size: 14.5px; }
.flow-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.flow-arrow { color: var(--gold); font-weight: 900; font-size: 18px; }

/* ============ MENGAPA / KEUNGGULAN ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.why:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-ic {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--blue-primary); margin-bottom: 16px; background: var(--pale);
}
.why h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why p { font-size: 14px; color: var(--muted); }

/* ============ COVERAGE MAP (peta Jawa, dari compro) ============ */
.coverage-block {
  background: linear-gradient(135deg, var(--pale) 0%, #fff 100%);
  border-radius: var(--radius); padding: 24px; margin-top: 18px;
  display: grid; grid-template-columns: 3fr 2fr; gap: 26px; align-items: center;
}
.coverage-map { position: relative; }
.coverage-map svg { width: 100%; height: auto; display: block; }
.coverage-info h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.coverage-list { list-style: none; padding: 0; margin: 0; }
.coverage-list .ci {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 7px;
  background: #fff; border: 1px solid var(--line);
}
.coverage-list .ci.active { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.coverage-list .ci .yr { font-size: 15px; font-weight: 800; min-width: 46px; }
.coverage-list .ci.active .yr { color: var(--gold-light); }
.coverage-list .ci .reg { font-size: 14px; }

/* ============ PENGALAMAN / GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gal-lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; filter: saturate(1.05); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px;
  background: linear-gradient(transparent, rgba(0,17,68,.85));
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.coverage { margin-top: 40px; padding: 32px 36px; border-radius: var(--radius); background: var(--bg-soft); border-left: 4px solid var(--gold); }
.coverage h3 { font-size: 20px; margin-bottom: 8px; }
.coverage p { color: var(--muted); font-size: 15px; }

/* ============ KONTAK ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 34px 28px; text-align: center; transition: transform .25s, background .25s;
}
a.contact-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); }
.cc-ic { font-size: 28px; color: var(--gold); margin-bottom: 14px; }
.cc-lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.cc-val { font-size: 16px; font-weight: 600; color: #fff; word-break: break-word; }
.cc-val.muted { color: rgba(255,255,255,.45); font-weight: 500; }

/* ============ FOOTER ============ */
.footer { background: var(--blue-deepest); padding: 50px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.footer-brand img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; max-width: 420px; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-meta span { color: rgba(255,255,255,.45); font-size: 13px; }

/* ============ REVEAL ANIMATION ============ */
/* Reveal only hides when JS is active — no-JS users / crawlers see everything */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gal-lg { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0;
    transform: translateY(-130%); transition: transform .35s; box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 28px; width: 100%; }
  .nav-login { margin: 10px 28px; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-brand img { height: 42px; }
  .nav-brand-text { font-size: 14px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .coverage-block { grid-template-columns: 1fr; gap: 18px; }
  .gallery { grid-template-columns: 1fr; }
  .gal-lg { grid-column: span 1; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .flow { gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-step { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
