/* ============================================================
   Baja Perkasa — Alat Berat (Heavy Equipment)
   DNA: Industrial corporate. Navy steel + safety amber + concrete.
   Tegas, teknis, kokoh. Spec-table forward, sharp corners,
   heavy type. Sans display (Archivo-ish -> we use 'Barlow
   Condensed' bold for headings, 'Inter' body). UNIQUE — bukan
   editorial (Bingkai) atau cozy (Kopi).
   ============================================================ */

:root {
  --bg:        #F4F5F7;   /* concrete light */
  --surface:   #FFFFFF;
  --panel:     #EBEDF0;
  --line:      #DBDEE3;
  --ink:       #16202E;   /* near-black navy */
  --ink-soft:  #47535F;
  --muted:     #7C8896;

  --navy:      #17324D;   /* steel navy brand */
  --navy-2:    #0F2438;
  --navy-tint: #E4EAF1;
  --amber:     #F5A21E;   /* safety amber accent */
  --amber-2:   #DB8B08;
  --amber-soft:#FCEBCB;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1220px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --section-py: clamp(70px, 8vw, 116px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .005em; }
em { font-style: normal; color: var(--amber-2); }

.reveal { opacity: 1; }
html.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js-reveal .reveal.visible { opacity: 1; transform: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-2); }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--amber); }
.sec-head { max-width: 700px; margin-bottom: 46px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 12px 0 0; color: var(--ink); }
.sec-head__sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; }
.sec-head--center .sec-head__sub { max-width: 580px; margin-left: auto; margin-right: auto; }

/* Buttons — sharp, industrial */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; letter-spacing: .02em; padding: 14px 28px; border-radius: 4px; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; text-transform: uppercase; }
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-2); box-shadow: 0 14px 28px -12px rgba(245,162,30,.6); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 14px 28px -12px rgba(23,50,77,.5); }
.btn-outline { background: transparent; color: var(--navy); border-color: rgba(23,50,77,.3); }
.btn-outline:hover { border-color: var(--navy); box-shadow: 0 12px 24px -14px rgba(23,50,77,.4); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- NAV ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; }
.nav-topline { background: var(--navy-2); color: rgba(255,255,255,.82); font-size: 0.8rem; }
.nav-topline__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav-topline__item { display: inline-flex; align-items: center; gap: 7px; }
.nav-topline__item svg { color: var(--amber); }
.nav-topline__cta { color: var(--amber); font-weight: 700; }
.nav-main { background: var(--navy); border-bottom: 3px solid var(--amber); transition: box-shadow .3s; }
.site-nav.scrolled .nav-main { box-shadow: 0 6px 22px -12px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav-brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,.82); transition: color .25s; position: relative; text-transform: uppercase; letter-spacing: .02em; }
.nav-links a:not(.btn):hover, .nav-links a.active:not(.btn) { color: #fff; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 3px; background: var(--amber); transition: width .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { width: 100%; }
.nav-cta { padding: 10px 20px; font-size: 0.82rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity: 0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,36,56,.94) 30%, rgba(15,36,56,.6) 70%, rgba(15,36,56,.35)); z-index: -1; }
.hero__inner { max-width: 820px; color: #fff; padding: 60px 0; }
.hero__eyebrow { margin-bottom: 20px; }
.hero__eyebrow.eyebrow { color: var(--amber); }
.hero__title { font-size: clamp(3rem, 8vw, 6.4rem); color: #fff; letter-spacing: -.01em; line-height: .92; }
.hero__title span { color: var(--amber); display: block; }
.hero__desc { margin: 22px 0 34px; font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 500px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 0; margin-top: 54px; padding-top: 0; border-top: none; }
.hero__stats > div { flex: 1; padding: 22px 26px 22px 0; border-left: 3px solid var(--amber); padding-left: 20px; }
.hero__stats > div:first-child { padding-left: 20px; }
.hero__stat-num { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 700; color: #fff; line-height: .9; letter-spacing: -.01em; }
.hero__stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,.7); margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- TRUST STRIP (marquee) ---------- */
.trust { background: var(--amber); color: var(--navy); padding: 15px 0; overflow: hidden; }
.trust__track { display: flex; width: max-content; animation: trust-scroll 32s linear infinite; }
.trust__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; padding: 0 32px; white-space: nowrap; }
.trust__item::after { content: ""; width: 7px; height: 7px; background: var(--navy); margin-left: 32px; transform: rotate(45deg); }
.trust:hover .trust__track { animation-play-state: paused; }
@keyframes trust-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust__track { animation: none; } }

/* ---------- KATALOG UNIT ---------- */
.katalog { padding: var(--section-py) 0; }
.unit-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.unit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.unit-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(22,32,46,.3); }
/* flagship: span full kolom kiri, 2 baris, layout foto+data berdampingan */
.unit-card--feature { grid-row: span 2; display: grid; grid-template-rows: 1fr auto; }
.unit-card--feature .unit-card__img { height: 100%; min-height: 320px; }
.unit-card--feature .unit-card__name { font-size: 2.3rem; }
.unit-card--feature .unit-specs li { font-size: 0.98rem; padding: 11px 0; }
.unit-card--feature .unit-card__body { padding: 30px 32px 34px; }
.unit-card__img { position: relative; height: 190px; overflow: hidden; background: var(--panel); }
.unit-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.unit-card:hover .unit-card__img img { transform: scale(1.05); }
.unit-card__status { position: absolute; top: 14px; left: 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 3px; }
.unit-card__status--ready { background: #1E9E5A; color: #fff; }
.unit-card__status--sewa { background: var(--amber); color: var(--navy); }
.unit-card__body { padding: 20px 22px 24px; }
.unit-card__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.unit-card__type { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.unit-specs { list-style: none; margin: 0 0 18px; padding: 0; }
.unit-specs li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.unit-specs li:last-child { border-bottom: none; }
.unit-specs li span:first-child { color: var(--muted); }
.unit-specs li span:last-child { color: var(--ink); font-weight: 600; }
.unit-card__cta { display: flex; gap: 10px; }
.unit-card__cta .btn { flex: 1; justify-content: center; padding: 11px 14px; font-size: 0.8rem; }

/* ---------- LAYANAN (sewa/beli/sparepart/service) ---------- */
.svc { padding: var(--section-py) 0; background: var(--navy); color: #fff; }
.svc .sec-head__title { color: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 32px 26px; transition: .3s; }
.svc-card:hover { background: rgba(255,255,255,.09); transform: translateY(-5px); }
.svc-card__icon { width: 52px; height: 52px; border-radius: 6px; background: var(--amber); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.svc-card p { font-size: 0.9rem; color: rgba(255,255,255,.75); line-height: 1.65; }

/* ---------- AFTER-SALES (key objection) ---------- */
.aftersales { padding: var(--section-py) 0; background: var(--navy-2); color: #fff; position: relative; overflow: hidden; }
.aftersales::before { content: "24"; position: absolute; top: -3%; right: -1%; font-family: var(--font-display); font-weight: 700; font-size: clamp(14rem, 32vw, 34rem); line-height: .8; color: rgba(245,162,30,.06); pointer-events: none; z-index: 0; }
.aftersales__row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.aftersales__media { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 24px 50px -22px rgba(0,0,0,.6); }
.aftersales__media img { width: 100%; height: 100%; object-fit: cover; }
.aftersales__badge { position: absolute; left: 0; bottom: 0; background: var(--amber); color: var(--navy); padding: 16px 22px; }
.aftersales__badge b { font-family: var(--font-display); font-size: 1.9rem; display: block; line-height: 1; }
.aftersales__badge span { font-size: 0.8rem; font-weight: 600; }
.aftersales .eyebrow { color: var(--amber); }
.aftersales .sec-head__title { color: #fff; }
.aftersales .sec-head__sub { color: rgba(255,255,255,.78); }
.aftersales__list { list-style: none; margin: 26px 0 0; padding: 0; }
.aftersales__list li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.aftersales__list li:last-child { border-bottom: none; }
.aftersales__list li b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.aftersales__list li span { font-size: 0.9rem; color: rgba(255,255,255,.72); }
.aftersales__list li svg { position: absolute; left: 0; top: 16px; width: 26px; height: 26px; color: var(--amber); }

/* ---------- TRACK RECORD / PROYEK ---------- */
.record { padding: var(--section-py) 0; background: var(--panel); }
.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.record-card { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.record-card:nth-child(2) { margin-top: 48px; }
.record-card:nth-child(3) { margin-top: 96px; }
.record-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.record-card:hover img { transform: scale(1.06); }
.record-card__cap { position: absolute; inset: auto 0 0 0; padding: 22px 20px 18px; background: linear-gradient(0deg, rgba(15,36,56,.9), transparent); color: #fff; }
.record-card__cap b { font-family: var(--font-display); font-size: 1.25rem; display: block; }
.record-card__cap span { font-size: 0.82rem; color: rgba(255,255,255,.8); }

/* ---------- CTA ---------- */
.cta-band { position: relative; padding: clamp(76px,10vw,120px) 0; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,36,56,.94), rgba(15,36,56,.6)); z-index: -1; }
.cta-band__content { max-width: 620px; color: #fff; }
.cta-band__title { font-size: clamp(2.1rem,4.4vw,3.4rem); color: #fff; }
.cta-band__desc { margin: 18px 0 30px; color: rgba(255,255,255,.85); font-size: 1.06rem; }
.cta-band__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- PAGE HERO ---------- */
.page-hero { position: relative; padding: clamp(66px,8vw,104px) 0; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,36,56,.8), rgba(15,36,56,.9)); z-index: -1; }
.page-hero__inner { max-width: 700px; color: #fff; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero__title { font-size: clamp(2.4rem,5vw,3.8rem); color: #fff; margin: 14px 0 0; }
.page-hero__sub { margin-top: 14px; color: rgba(255,255,255,.85); font-size: 1.06rem; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.72); padding: 66px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: 0.9rem; color: rgba(255,255,255,.72); transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a { width: 38px; height: 38px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: .25s; }
.footer-social a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.footer-bottom { padding-top: 22px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,.5); }

.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); z-index: 200; transition: transform .3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- CONTACT ---------- */
.contact { padding: var(--section-py) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info__item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info__item svg { color: var(--amber-2); flex-shrink: 0; margin-top: 3px; }
.contact-info__item b { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 3px; }
.contact-info__item span { color: var(--ink-soft); font-size: 0.94rem; }
.map-embed { margin-top: 18px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 34px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--font-body); font-size: 0.95rem; background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- GALLERY (unit list page) ---------- */
.gallery-page { padding: var(--section-py) 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .unit-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .unit-card--feature { grid-row: span 1; }
  .unit-card--feature .unit-card__img { height: 220px; }
  .unit-card--feature .unit-card__name { font-size: 1.6rem; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .aftersales__row { grid-template-columns: 1fr; gap: 32px; }
  .record-grid { grid-template-columns: 1fr 1fr; }
  .record-card:nth-child(2), .record-card:nth-child(3) { margin-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 12px; }
  .hero__stats > div { flex: 1 1 40%; }
}
@media (max-width: 768px) {
  .nav-topline { display: none; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 3px solid var(--amber); padding: 8px 0; box-shadow: 0 12px 32px -12px rgba(0,0,0,.4); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .nav-links.open { max-height: 440px; }
  .nav-links a:not(.btn) { padding: 14px 24px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin: 10px 24px; justify-content: center; }
}
@media (max-width: 560px) {
  .unit-grid, .svc-grid, .record-grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html.js-reveal .reveal { opacity: 1; transform: none; } }
