/* ==========================================================================
   PT PRIMA INDO GREEN — Corporate Website
   Design system: Swiss/minimal corporate. Latar putih, warna solid, tanpa gradient.
   Palet diambil dari logo perusahaan (company profile): navy #213084, hijau #00843C.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Warna merek */
  --brand: #213084;
  --brand-700: #1a2669;
  --brand-900: #121a49;
  --green: #00843C;
  --green-700: #006a30;
  --accent-red: #d6242c;

  /* Netral */
  --ink: #14181f;
  --ink-soft: #3b4452;
  --muted: #5a6170;
  --line: #e2e5ec;
  --line-strong: #c9ced9;
  --surface: #f6f7f9;
  --white: #ffffff;

  /* Tipografi */
  --font-head: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Ritme spasi (8pt) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, .06);
  --shadow-md: 0 6px 20px rgba(20, 24, 31, .09);

  --ease: cubic-bezier(.2, .6, .3, 1);
  --z-header: 100;
  --z-overlay: 900;
  --z-lightbox: 1000;
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.08rem + .5vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p { margin: 0 0 var(--space-3); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
ul, ol { color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 1100;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--space-3); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* --- 3. Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head { max-width: 760px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-2);
}
.eyebrow--green { color: var(--green-700); }

.lead { font-size: 1.0625rem; color: var(--muted); max-width: 68ch; }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px)  { .grid--3-sm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- 4. Tombol ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .975rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { flex: none; }

.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.btn--wa { background: var(--green); border-color: var(--green); color: #fff; }
.btn--wa:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.btn--outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

.btn--light { background: #fff; border-color: #fff; color: var(--brand); }
.btn--light:hover { background: var(--surface); border-color: var(--surface); color: var(--brand-700); }

.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand);
  min-height: 44px;
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- 5. Header / Navigasi ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { width: auto; height: 42px; }
@media (max-width: 420px) { .brand img { height: 34px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--brand);
  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; }

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0; padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: .975rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav .nav-cta { margin-left: var(--space-2); }
.nav .nav-cta a { border-bottom: 0; }

@media (max-width: 1023px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) 0 var(--space-5);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--gutter);
  }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { min-height: 56px; width: 100%; border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom: 0; }
  .nav .nav-cta { margin: var(--space-4) 0 0; border-top: 0 !important; }
  .nav .nav-cta .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { display: block !important; }
  .nav[hidden] { display: block; }
}

/* --- 6. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 62vh, 620px);
  padding-block: var(--space-8);
  background-color: var(--brand-900);
  text-align: center;
  isolation: isolate;
}
.hero--compact { min-height: clamp(300px, 42vh, 400px); padding-block: var(--space-7); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(14, 19, 38, .62);
}

.hero__content { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero p {
  color: rgba(255, 255, 255, .93);
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  max-width: 62ch;
  margin-inline: auto;
}
.hero .btn-row { margin-top: var(--space-5); }

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

/* --- 7. Breadcrumb ------------------------------------------------------ */
.breadcrumb { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0; padding: 14px 0;
  font-size: .875rem;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* --- 8. Blok konten ----------------------------------------------------- */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); }
  .split--media-first .split__media { order: -1; }
  .split--top { align-items: start; }
  .split__media--sticky { position: sticky; top: 100px; }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.prose { max-width: 70ch; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose h3 { margin-top: var(--space-5); }
.prose ul { padding-left: 1.15rem; margin: 0 0 var(--space-3); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand); }

/* Statistik */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 3px solid var(--brand); padding-left: var(--space-3); }
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.stat__label { font-size: .875rem; color: var(--muted); }

/* --- 9. Kartu layanan --------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.card--link:hover { transform: translateY(-3px); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: var(--surface);
  overflow: hidden;
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-4);
  gap: var(--space-2);
}
@media (min-width: 720px) { .card__body { padding: var(--space-5); } }

.card__body h3 { margin-bottom: 0; }
.card__body p { font-size: .975rem; color: var(--muted); }
.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
}
.card__actions .btn { flex: 1 1 auto; font-size: .9rem; padding-inline: 16px; }

/* Kartu yang seluruhnya bisa diklik */
.card--link { position: relative; }
.card--link .stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Kartu nilai perusahaan */
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  height: 100%;
}
.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand);
}
.value-card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.value-card p { font-size: .9375rem; color: var(--muted); margin: 0; }

/* Kartu kontak */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand);
}
.contact-card__icon--green { color: var(--green-700); }
.contact-card h2 { font-size: 1.375rem; margin: 0; }
.contact-card address { font-style: normal; color: var(--ink-soft); }
.contact-card dl { margin: 0; display: grid; gap: 10px; }
.contact-card dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.contact-card dd { margin: 0; color: var(--ink-soft); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

/* Langkah proses produksi */
.process-step { margin: 0; }
.process-step img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.process-step figcaption {
  margin-top: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
}

/* Daftar proyek */
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.project-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-4);
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.project-list li:first-child { border-top: 1px solid var(--line); }
.project-list .project-name { font-weight: 600; color: var(--ink); }
.project-list .project-year {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

/* --- 10. Galeri + lightbox ---------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.gallery__item:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.gallery__item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 13, 24, .92);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox__figure img {
  max-height: 76vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}
.lightbox__caption {
  margin-top: var(--space-3);
  color: rgba(255,255,255,.88);
  font-size: .9375rem;
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.lightbox__prev { left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }

/* --- 11. CTA band ------------------------------------------------------- */
.cta {
  background: var(--brand);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto; }
.cta .btn-row { margin-top: var(--space-5); }
.cta__note { margin-top: var(--space-4); font-size: .9375rem; color: rgba(255,255,255,.82); }
.cta__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --- 12. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: var(--section-y);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr; } }

.footer-brand img { height: 44px; width: auto; margin-bottom: var(--space-3); }
.footer-brand p { font-size: .9375rem; color: var(--muted); max-width: 42ch; }

.site-footer h2 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--brand); }

.footer-contact { font-style: normal; font-size: .9375rem; color: var(--ink-soft); display: grid; gap: 10px; }
.footer-contact a { color: var(--ink-soft); }
.footer-contact a:hover { color: var(--brand); }
.footer-contact .wa-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  color: var(--green-700);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  font-size: .875rem;
  color: var(--muted);
}

/* --- 13. Tombol WhatsApp mengambang ------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: var(--z-overlay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: background-color .2s var(--ease);
}
.wa-float:hover { background: var(--green-700); color: #fff; }

/* --- 14. Animasi (halus & opsional) ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Tanpa JavaScript: pastikan konten tetap terlihat */
.no-js .reveal { opacity: 1; transform: none; }
