/* =========================================================
   PT. DEWA RUCITA MAKMUR — style.css
   ========================================================= */
:root {
  --orange: #f26722;
  --orange-dark: #d9540f;
  --orange-soft: #fff3ec;
  --navy: #10243c;
  --navy-2: #16324f;
  --navy-3: #1c3e60;
  --ink: #17202e;
  --body: #4b5768;
  --muted: #8592a3;
  --line: #e7ebf1;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --footer: #14161c;
  --footer-2: #1c1f27;

  --shadow-sm: 0 2px 8px rgba(16, 36, 60, .06);
  --shadow-md: 0 14px 34px rgba(16, 36, 60, .10);
  --shadow-lg: 0 26px 64px rgba(14, 28, 48, .18);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 84px;

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Barlow Condensed', 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .93rem; letter-spacing: .3px;
  padding: 13px 24px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242,103,34,.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(16,36,60,.28); }
.btn-navy:hover { background: var(--navy-2); }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: #fff5ee; }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: #cfd6e0; }
.btn-outline-dark:hover { background: #fff; border-color: var(--navy); }
.btn-outline-dark .chev { font-size: 1.4em; line-height: 0; }
.btn-sm { padding: 10px 18px; font-size: .84rem; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .92rem; letter-spacing: .3px; color: var(--ink); }
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-weight: 600; font-size: .92rem; color: var(--body);
  padding: 8px 14px; border-radius: 8px; position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.active { color: var(--orange); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.btn-nav { margin-left: 10px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px; padding: 11px;
  background: var(--bg-soft); border: none; border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (light) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 30px) 0 60px;
  background: #eef1f5; overflow: hidden;
}
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background-size: cover; background-position: center; z-index: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, #eef1f5 0%, #eef1f5 34%, rgba(238,241,245,.72) 46%, rgba(238,241,245,0) 60%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-content { max-width: 600px; }
.eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: .82rem; margin: 0 0 14px; }
.hero-title {
  font-family: var(--font-head); font-weight: 800; color: var(--navy);
  font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .5px; line-height: .98;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-title .accent { color: var(--orange); }
.hero-sub { color: #3f4a5a; font-size: 1.08rem; max-width: 470px; margin-bottom: 28px; }

.hero-features { display: flex; flex-wrap: wrap; gap: 20px 26px; margin-bottom: 32px; }
.hero-features li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  color: var(--navy); font-size: .68rem; font-weight: 700; letter-spacing: .4px; line-height: 1.25; width: 76px;
}
.feat-ico {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--navy); color: var(--navy); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.hero-features li:hover .feat-ico { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); }
.feat-ico svg { width: 27px; height: 27px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Section base ---------- */
.section { padding: 92px 0; position: relative; }
.section-eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: .8rem; margin: 0 0 10px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.5px; color: var(--navy); margin-bottom: 16px; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-lead { color: var(--body); font-size: 1.05rem; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--body); }
.vision-box {
  display: flex; gap: 16px; align-items: flex-start; background: var(--orange-soft);
  border-left: 4px solid var(--orange); padding: 20px 22px; border-radius: 12px; margin-top: 26px;
}
.vision-box p { margin: 0; font-size: .96rem; }
.vision-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--orange); }
.vision-ico svg { width: 24px; height: 24px; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 460px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; right: -14px; bottom: -22px; background: var(--orange); color: #fff;
  border-radius: 16px; padding: 18px 22px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md);
}
.about-badge strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: #fff; }
.about-badge strong span { font-size: 1.6rem; }
.about-badge small { font-size: .8rem; font-weight: 600; line-height: 1.2; }

/* ---------- Visi & Misi ---------- */
.vm { background: var(--bg-soft); padding-top: 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.vm-visi { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); border: none; }
.vm-visi h3, .vm-visi p { color: #fff; }
.vm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.vm-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--orange); color: #fff; flex: none; }
.vm-ico svg { width: 24px; height: 24px; }
.vm-head h3 { font-size: 1.4rem; }
.vm-visi p { font-size: 1.02rem; opacity: .95; }
.misi-list li { position: relative; padding: 7px 0 7px 30px; color: var(--body); border-bottom: 1px dashed var(--line); }
.misi-list li:last-child { border-bottom: none; }
.misi-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4L19 6' stroke='%23f26722' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Products ---------- */
.products { background: var(--bg); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; text-align: left;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-media {
  height: 170px; margin-bottom: 16px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); padding: 14px; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-card h3 { font-size: 1.04rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.product-card h3 span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.product-card p { font-size: .89rem; color: var(--body); margin: 0; }

/* Sparepart strip */
.sparepart-strip {
  margin-top: 40px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 26px; display: flex; align-items: center; gap: 20px;
}
.strip-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-soft); color: var(--orange); }
.strip-ico svg { width: 30px; height: 30px; }
.strip-text { flex: 1; min-width: 0; }
.strip-text strong { display: block; color: var(--navy); font-size: 1.04rem; }
.strip-text small { color: var(--muted); font-size: .88rem; }

/* ---------- Keunggulan (navy) ---------- */
.why { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); overflow: hidden; }
.why-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .10;
  background: url("images/hero-composite.jpg") center/cover;
  mix-blend-mode: luminosity;
}
.why-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 44px; align-items: center;
}
.why-title { color: #fff; font-size: 1.3rem; letter-spacing: .5px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.why-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--orange); border-radius: 2px; }
.check-list li {
  position: relative; padding: 9px 0 9px 34px; color: rgba(255,255,255,.9); font-size: .96rem; font-weight: 500;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4L19 6' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.check-list.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.why-center { text-align: center; padding: 0 10px; }
.years { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 9vw, 6.5rem); color: var(--orange); line-height: .9; }
.years-label { display: block; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 3px; line-height: 1.05; margin-top: 4px; }
.stars { display: flex; gap: 4px; justify-content: center; margin-top: 16px; }
.stars svg { width: 26px; height: 26px; fill: var(--orange); }

/* ---------- CTA banner (orange) ---------- */
.cta-banner { background: linear-gradient(100deg, var(--orange) 0%, var(--orange-dark) 100%); overflow: hidden; }
.cta-inner { display: flex; align-items: center; gap: 30px; padding: 26px 24px; }
.cta-forklift { width: 210px; flex: none; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.cta-text { flex: 1; min-width: 0; }
.cta-text h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,.94); font-size: .95rem; margin: 0; }
.cta-btn { flex: none; box-shadow: 0 10px 26px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255,255,255,.68); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.1fr; gap: 40px; padding: 60px 24px 44px; }
.brand--footer .brand-text strong { color: #fff; }
.brand--footer .brand-text small { color: rgba(255,255,255,.55); }
.footer-desc { margin-top: 16px; font-size: .92rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--footer-2); color: #fff; transition: background .2s ease, transform .2s ease; }
.socials a:hover { background: var(--orange); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.foot-line { display: flex; gap: 10px; font-size: .92rem; line-height: 1.6; }
.fico { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.fico svg { width: 20px; height: 20px; }
.foot-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .92rem; }
.foot-contact a:hover { color: var(--orange); }
.map-card {
  position: relative; display: block; height: 130px; border-radius: 12px; overflow: hidden;
  background: #223047; border: 1px solid var(--footer-2);
}
.map-grid { position: absolute; inset: 0; background:
  linear-gradient(#2c3d57 1px, transparent 1px) 0 0/100% 26px,
  linear-gradient(90deg, #2c3d57 1px, transparent 1px) 0 0/34px 100%,
  radial-gradient(circle at 30% 70%, #33465f 0 40px, transparent 41px); opacity: .7; }
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); }
.map-pin svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.map-label { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(255,255,255,.92); color: #23303f; font-size: .74rem; font-weight: 600; padding: 6px 8px; border-radius: 8px; line-height: 1.3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); }
.footer-bottom .container { padding-top: 18px; padding-bottom: 18px; text-align: center; }
.footer-bottom p { margin: 0; font-size: .85rem; }

/* ---------- Floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; z-index: 90;
  box-shadow: 0 10px 26px rgba(37,211,102,.5); transition: transform .2s ease; animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}
.to-top {
  position: fixed; right: 24px; bottom: 90px; width: 46px; height: 46px; border-radius: 12px; border: none;
  background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 90;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  :root { --header-h: 72px; }
  .section { padding: 70px 0; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 24px; box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-link { padding: 12px 14px; border-radius: 10px; }
  .nav-link.active::after { display: none; }
  .btn-nav { margin: 8px 0 0; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; flex-direction: column; align-items: stretch; padding: calc(var(--header-h) + 40px) 0 44px; }
  .hero-inner { order: 1; }
  .hero-photo {
    position: relative; order: 2;
    width: calc(100% - 48px); max-width: var(--container); margin: 26px auto 0;
    height: 320px; clip-path: none; background-position: center;
    border-radius: 16px; box-shadow: var(--shadow-md);
  }
  .hero-shade { display: none; }
  .hero-content { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 46px; }
  .about-media img { height: 380px; }
  .vm-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .why-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .why-title::after { left: 50%; transform: translateX(-50%); }
  .check-list li { text-align: left; }
  .check-list.two-col { max-width: 460px; margin: 0 auto; }
  .why-center { order: -1; }

  .cta-inner { flex-wrap: wrap; text-align: center; justify-content: center; }
  .cta-forklift { width: 150px; }
  .cta-text { flex-basis: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }

  .brand-text strong { font-size: .8rem; }
  .hero-features { gap: 16px 18px; }
  .hero-features li { width: 66px; font-size: .62rem; }
  .feat-ico { width: 50px; height: 50px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-photo { height: 240px; width: calc(100% - 36px); }

  .product-grid { grid-template-columns: 1fr; }
  .product-media { height: 210px; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .sparepart-strip { flex-direction: column; text-align: center; }

  .about-media img { height: 280px; }
  .about-badge { right: 12px; bottom: -16px; padding: 14px 18px; }
  .about-badge strong { font-size: 2.1rem; }
  .vm-card { padding: 24px; }

  .cta-btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 46px 18px 34px; }

  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .to-top { right: 18px; bottom: 78px; }
}

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