/* =========================================================
   PT. DHIVELADO TIGO PUTRO — Halaman Utama
   Warna diambil dari logo (toska, oranye, biru).
   Ubah warna di bawah ini bila perlu.
   ========================================================= */
:root {
  --toska: #17605f;
  --toska-2: #1d7a72;
  --biru: #2648b5;
  --oranye: #ee8a3a;
  --oranye-2: #d9731f;
  --kuning: #f2c230;
  --gelap: #0f2a2e;
  --teks: #17292d;
  --pudar: #5a6c70;
  --latar: #ffffff;
  --latar-2: #f3f7f7;
  --garis: #dfe9ea;
  --radius: 16px;
  --bayangan: 0 10px 30px rgba(15, 42, 46, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--teks); background: var(--latar); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ===== Tombol ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--oranye); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--oranye);
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(238, 138, 58, .35);
}
.btn:hover { background: var(--oranye-2); border-color: var(--oranye-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.btn-wa { background: #25d366; border-color: #25d366; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #1eb457; border-color: #1eb457; }

/* ===== Navigasi ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 14px 0;
}
.nav.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.08); padding: 8px 0; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: .98rem; letter-spacing: .02em; }
.brand small { font-size: .72rem; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.nav.scrolled .brand { color: var(--teks); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { text-decoration: none; color: #fff; font-weight: 600; font-size: .93rem; opacity: .92; }
.menu a:hover { opacity: 1; }
.menu a.btn { color: #fff; opacity: 1; }
.nav.scrolled .menu a:not(.btn) { color: var(--teks); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav.scrolled .menu-btn span { background: var(--teks); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 40, 42, .92) 0%, rgba(16, 70, 74, .78) 40%, rgba(30, 60, 150, .25) 100%),
    linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%);
}
.hero-in { position: relative; z-index: 2; max-width: 1180px; }
.hero-in > * { max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kuning); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { color: var(--oranye); }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: .9; margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Keunggulan ===== */
.usp { position: relative; z-index: 3; margin-top: -48px; }
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--bayangan); overflow: hidden;
}
.usp-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; border-right: 1px solid var(--garis); }
.usp-item:last-child { border-right: 0; }
.usp-item svg { flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(23, 96, 95, .1); fill: none; stroke: var(--toska); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.usp-item b { display: block; font-size: .98rem; }
.usp-item span { font-size: .85rem; color: var(--pudar); line-height: 1.45; display: block; }

/* ===== Section umum ===== */
.section { padding: 96px 0; }
.section.alt { background: var(--latar-2); }
.section.dark { background: linear-gradient(135deg, var(--gelap), #12354f); color: #e8f1f1; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--oranye);
  margin-bottom: 10px;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--oranye); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; font-weight: 800; margin-bottom: 16px; letter-spacing: -.01em; }
.section p { color: var(--pudar); margin-bottom: 14px; }
.section.dark p { color: #b9cfd0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.head .kicker::after { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--oranye); }
.sub { font-size: 1.02rem; }

/* ===== Tentang ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { position: relative; padding: 0 0 60px 0; }
.about-img img { border-radius: var(--radius); box-shadow: var(--bayangan); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.about-img img + img {
  position: absolute; right: -20px; bottom: 0; width: 55%; aspect-ratio: 4/3;
  border: 6px solid #fff;
}
.checks { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--toska) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks.light li { color: #fff; }
.checks.light li::before { background-color: var(--oranye); }
.link-arrow { color: var(--toska); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--oranye); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ===== Layanan ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--bayangan); transition: transform .25s, box-shadow .25s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 42, 46, .16); }
.svc img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.svc-body { padding: 22px 22px 26px; border-top: 4px solid var(--oranye); }
.svc h3 { font-size: 1.12rem; margin-bottom: 8px; }
.svc p { font-size: .93rem; margin: 0; }

/* ===== Armada ===== */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fleet figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--bayangan); }
.fleet img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .5s; }
.fleet figure:hover img { transform: scale(1.05); }
.fleet figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; color: #fff; font-weight: 700;
  background: linear-gradient(0deg, rgba(10, 30, 32, .9), transparent);
}

/* ===== Workshop ===== */
.work { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.video { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); }
.video video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }

/* ===== Galeri ===== */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .4s, filter .4s; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.05); }

/* ===== Kontak ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch; }
.info { list-style: none; display: grid; gap: 18px; margin: 26px 0 30px; }
.info li { display: flex; gap: 14px; align-items: flex-start; }
.info svg { flex: 0 0 42px; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: var(--bayangan); fill: none; stroke: var(--toska); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info a { color: var(--teks); font-weight: 700; text-decoration: none; align-self: center; }
.info a:hover { color: var(--toska); }
.info .wa-row svg { stroke: #1eb457; }
.info span { color: var(--teks); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--bayangan); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== Footer ===== */
.footer { background: var(--gelap); color: #b9cfd0; padding: 48px 0 28px; }
.foot { display: grid; gap: 24px; justify-items: center; text-align: center; }
.footer .brand { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; }
.footer nav a { text-decoration: none; color: #d6e6e6; font-weight: 600; font-size: .92rem; }
.footer nav a:hover { color: var(--oranye); }
.copy { font-size: .82rem; opacity: .75; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; width: 100%; }

/* ===== WhatsApp mengambang ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
[hidden] { display: none !important; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(5, 15, 18, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ===== Animasi muncul ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Tablet ===== */
@media (max-width: 1000px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-item:nth-child(2) { border-right: 0; }
  .usp-item:nth-child(-n+2) { border-bottom: 1px solid var(--garis); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .about, .work, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about-img img + img { right: 0; }
}

/* ===== HP ===== */
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu {
    position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.2); padding: 8px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .menu a, .nav.scrolled .menu a:not(.btn) { color: var(--teks); padding: 14px 16px; border-radius: 10px; }
  .menu a:hover { background: var(--latar-2); }
  .menu a.btn { margin-top: 6px; }
  .nav.open .menu { opacity: 1; pointer-events: auto; transform: none; }
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand b { font-size: .86rem; }
  .brand img { width: 38px; height: 38px; }
  .hero { min-height: 88vh; padding-top: 110px; }
  .hero-bg { object-position: 60% center; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 40, 42, .75) 0%, rgba(12, 52, 56, .88) 100%); }
  .section { padding: 72px 0; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item { border-right: 0; border-bottom: 1px solid var(--garis); }
  .usp-item:last-child { border-bottom: 0; }
  .services { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; }
  .about-img { padding-bottom: 40px; }
  .about-img img + img { width: 60%; border-width: 4px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
