/* =====================================================
   Pesona Trans — Landing Page
   Design tokens diambil langsung dari mockup LP PESONA TRANS.pdf
   ===================================================== */

:root {
  --blue: #006DBC;          /* teks harga, label fitur, logo */
  --blue-dark: #0B4E80;
  --green: #80C447;         /* judul section & subjudul hero */
  --green-text: #4F8A1D;    /* varian hijau lebih gelap untuk teks di latar terang (kontras WCAG) */
  --wa-green: #00BF63;      /* tombol WhatsApp */
  --wa-green-dark: #00A855;
  --yellow: #FFDE59;        /* tombol List Armada */
  --yellow-dark: #F5CE2E;
  --ink: #1E2530;           /* teks utama */
  --ink-soft: #55606E;
  --card-bg: #F6F6F6;
  --page-bg: #FFFFFF;
  --header-h: 92px;
  --radius: 18px;
  --container: 1240px;
  --shadow-card: 0 10px 30px rgba(30, 37, 48, 0.10);
}

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

html { scroll-padding-top: calc(var(--header-h) + 12px); }

/* Fallback bila JS tidak jalan — smooth scroll ditangani js/main.js */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Animasi muncul saat di-scroll. Kelas .js-reveal dipasang oleh JS,
   jadi tanpa JS konten tetap terlihat penuh. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-icon { width: 22px; height: 22px; flex: 0 0 auto; }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 191, 99, 0.35);
}
.btn-wa:hover { background: var(--wa-green-dark); }

.btn-yellow {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(255, 222, 89, 0.4);
}
.btn-yellow:hover { background: var(--yellow-dark); }

.btn-sm { padding: 12px 22px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 14px rgba(30, 37, 48, 0.08);
}

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

.brand-logo { height: 68px; width: auto; }

.main-nav { display: flex; gap: 42px; }

.nav-link {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover { color: var(--green); }
.nav-link.is-active { color: var(--green); border-bottom-color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: url("../assets/img/hero-bg.jpg") center/cover no-repeat;
  padding: 90px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 18, 0.82) 0%, rgba(10, 14, 18, 0.55) 55%, rgba(10, 14, 18, 0.35) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 100%; }

.hero-title {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-subtitle {
  display: block;
  color: var(--green);
  margin-top: 6px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
  margin-top: 26px;
  font-size: 17px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: 30px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.pt-icon {
  width: 34px;
  height: 34px;
  color: var(--green);
  flex: 0 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.hero-note {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.hero-note strong {
  color: var(--yellow);
  font-weight: 800;
  font-size: 17px;
}

/* ---------- Feature strip ---------- */
.features { padding: 70px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.feature-icon {
  width: 72px;
  height: 72px;
  color: var(--green);
  margin: 0 auto 14px;
}

.feature-label {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

/* ---------- Section title ---------- */
.section-title {
  color: var(--green-text);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ---------- Services (Sewa Mobil) ---------- */
.services { padding: 40px 0 80px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.service-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(128, 196, 71, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-badge svg { width: 32px; height: 32px; color: var(--green); }

.service-card h3 {
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card p { color: var(--ink-soft); }

.service-card .btn { margin-top: auto; }

/* ---------- Steps (Cara Pesan) ---------- */
.steps { margin-top: 80px; }

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 2px solid rgba(128, 196, 71, 0.35);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 14px;
}

.step h3 {
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.step p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Fleet (List Armada) ---------- */
.fleet { padding: 80px 0; background: #fff; }

/* Flex + wrap: jumlah kartu ganjil tetap rapi karena baris terakhir ikut center.
   flex-basis 260px menjaga tombol "Pesan Sekarang" (nowrap) tidak pernah terjepit. */
.fleet-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.car-card {
  flex: 1 1 260px;
  max-width: 290px;
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 22px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 37, 48, 0.16);
}

.car-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.car-photo {
  padding: 8px;
}

.car-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.car-class {
  color: var(--green-text);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 8px;
}

.car-models {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.car-card .btn { margin-top: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 70px 0;
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.cta-inner h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
}

.cta-inner p { opacity: 0.9; }
.cta-inner .btn { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #10151C; color: rgba(255, 255, 255, 0.8); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 44px;
}

.footer-logo {
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 16px;
}

.footer-brand p { font-size: 14.5px; max-width: 34ch; }

.footer-col h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 191, 99, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.wa-float:hover { transform: translateY(-3px); background: var(--wa-green-dark); }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- Utilitas aksesibilitas ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 0; }

.btn:focus-visible,
.nav-link:focus-visible,
.wa-float:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible,
.footer-col a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.hero .btn:focus-visible,
.wa-float:focus-visible,
.site-footer a:focus-visible,
.cta-banner .btn:focus-visible {
  outline-color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 26px; }
}

@media (max-width: 720px) {
  :root { --header-h: 74px; }

  .brand-logo { height: 52px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
    box-shadow: 0 14px 24px rgba(30, 37, 48, 0.12);
    display: none;
  }

  .main-nav.is-open { display: flex; }

  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(30, 37, 48, 0.08); }
  .nav-link.is-active { border-bottom-color: rgba(30, 37, 48, 0.08); }

  .hero { padding: 70px 0; }

  .hero-points { flex-direction: column; gap: 14px; }

  /* sisakan ruang kanan-bawah agar tidak tertutup tombol WhatsApp mengambang */
  .hero-actions .btn { width: 100%; max-width: calc(100% - 72px); }

  .cta-banner { padding: 56px 0 110px; }

  .features-grid { grid-template-columns: 1fr; gap: 30px; }

  .services-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }

  .car-card { flex-basis: 100%; max-width: none; }

  .footer-grid { grid-template-columns: 1fr; padding: 48px 24px 36px; }

  .wa-float span { display: none; }
  .wa-float { padding: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
}
