/* =========================================================
   CV. SIMPATI TRANS — Halaman Daftar Mobil (rental.html)
   Extension dari css/style.css — gunakan variabel & komponen
   yang sama agar tampilan konsisten dengan halaman dashboard.
   ========================================================= */

:root {
  --navy: #031f4e;
  --navy-2: #0746b0;
  --navy-dark: #021533;
  --red: #810404;
  --red-soft: #fcf0f1;
  --blue: #01218f;
  --steel: #254b7c;
  --orange: #f8430a;
  --gold: #ffb400;
  --green: #2ecb71;
  --wa: #25d366;
  --ink: #343f52;
  --muted: #60697b;
  --line: #e7e9f0;
  --bg: #fefefe;
  --bg-soft: #f6f8fc;
  --white: #ffffff;
  --radius: .6rem;
  --radius-lg: 1rem;
  --shadow: 0 .35rem 1.5rem rgba(3, 31, 78, .08);
  --shadow-lg: 0 1.25rem 2.5rem rgba(3, 31, 78, .14);
  --grad: linear-gradient(120deg, #031f4e 0%, #0746b0 100%);
  --grad-red: linear-gradient(to right, #ff0100, #810404);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg);
}

/* ---------- Scroll progress ---------- */
.scroll-prog {
  position: fixed; top: 0; left: 0;
  height: 4px; width: 0;
  background: var(--grad-red);
  border-radius: 0 4px 4px 0;
  z-index: 9999;
  transition: width .1s linear;
}

/* ---------- Page hero (konsisten dgn hero dashboard) ---------- */
.page-hero {
  text-align: left;
  padding: 4.6rem 0 5.6rem;
  isolation: isolate;
  position: relative;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/ikon makassar lanscape.jpg") center/cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.1) brightness(.95);
}
/* overlay gradasi — menyerupai .hero-overlay di dashboard */
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(2,21,51,.93) 8%, rgba(3,31,78,.72) 50%, rgba(7,70,176,.32) 100%),
    linear-gradient(to top, rgba(2,21,51,.75), transparent 55%);
}
.page-hero-blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.page-hero-blobs span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .45; }
.page-hero-blobs span:nth-child(1) { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #ff8a3d, #810404); top: -70px; left: -40px; animation: floaty 9s ease-in-out infinite; }
.page-hero-blobs span:nth-child(2) { width: 150px; height: 150px; background: radial-gradient(circle at 30% 30%, #4f8dff, #01218f); bottom: -50px; right: 10%; animation: floaty 7s ease-in-out infinite 1s; }
.page-hero-blobs span:nth-child(3) { width: 80px;  height: 80px;  background: radial-gradient(circle at 30% 30%, #ffd166, #f8430a); top: 28%; right: 28%; animation: floaty 11s ease-in-out infinite .5s; }

.page-hero-grid { position: relative; z-index: 3; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: .7rem; }
.page-hero p { color: #cfe0ff; max-width: 640px; font-size: 1.02rem; }

.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #9fc1ff; font-weight: 600; margin-bottom: 1rem;
}
.breadcrumb a { color: #cfe0ff; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .55; }

/* wave putih di bawah hero — sama seperti dashboard */
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 60c180 32 360 32 720 0s540-32 720 0v30H0V60z'/%3E%3Cpath fill='%23ffffff' opacity='.55' d='M0 74c240 22 480 22 720 0s480-22 720 0v16H0V74z'/%3E%3C/svg%3E") bottom center/100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- Filter bar (card menumpuk di atas hero, spt intro-grid) ---------- */
.filter-bar {
  background: transparent;
  position: relative; z-index: 6;
  padding: 0;
}
.fb-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  transform: translateY(-46px);
  margin-bottom: -46px;
}
.fb-wrap.reveal { transform: translateY(-14px); opacity: 0; }
.fb-wrap.reveal.in { transform: translateY(-46px); opacity: 1; }

.fb-search {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: 50rem; padding: .55rem 1.15rem;
  min-width: 270px; flex: 1;
  transition: .3s;
}
.fb-search:focus-within { border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 4px rgba(7,70,176,.12); }
.fb-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.fb-search input {
  border: none; background: none; outline: none; width: 100%;
  font-family: inherit; font-size: .92rem; color: var(--ink);
}
.fb-search input::placeholder { color: #9aa3b5; }

.fb-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill {
  padding: .45rem 1rem; border-radius: 50rem;
  font-size: .85rem; font-weight: 700;
  background: var(--bg-soft); color: var(--muted);
  border: 1.5px solid var(--line);
  transition: .3s;
}
.pill:hover { border-color: var(--navy-2); color: var(--navy-2); transform: translateY(-2px); }
.pill.active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 .5rem 1rem rgba(3,31,78,.22);
}

.fb-count { margin-left: auto; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.fb-count b { color: var(--red); font-family: var(--font-head); font-size: 1.05rem; }

/* ---------- Fleet: animasi saat filter ---------- */
.fleet-grid-fade .car-card { transition: opacity .18s ease, transform .2s ease, box-shadow .35s ease; }
.fleet-grid-fade.is-filtering .car-card { opacity: 0; transform: translateY(14px) scale(.98); }

/* spec highlight (mis. "Lepas Kunci") */
.spec.tag { background: var(--navy); color: #fff; }

/* ---------- Cara Sewa (jalan-jalan) ---------- */
.how { padding-bottom: 8rem; overflow: hidden; }
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
  position: relative; z-index: 2;
}
.how-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.3rem 1.5rem 1.8rem;
  text-align: center; position: relative; transition: .35s;
}
.how-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.how-card .ico {
  width: 74px; height: 74px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  box-shadow: .55rem .75rem 1.3rem rgba(3,31,78,.26);
  transition: .4s;
}
.how-card:hover .ico { background: var(--red); transform: rotate(-8deg) scale(1.06); }
.how-card .ico svg { width: 30px; height: 30px; fill: currentColor; }
.how-num {
  position: absolute; top: 1rem; right: 1.2rem;
  font-family: var(--font-head); font-weight: 800; font-size: 2.1rem;
  color: rgba(3,31,78,.12); line-height: 1;
}
.how-card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.how-card p { font-size: .9rem; }

/* jalanan + mobil di bagian bawah section */
.road-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  pointer-events: none; z-index: 1;
}
.road-line {
  position: absolute; left: -2%; right: -2%; bottom: 0; height: 16px;
  background: linear-gradient(to bottom, #0b1739, #021533);
  border-radius: 12px 12px 0 0;
}
.road-line::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 6px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,209,102,.85) 0 36px, transparent 36px 76px);
}
.road-cars svg {
  position: absolute; bottom: 12px; width: 50px; height: 50px;
  color: var(--navy-2); fill: currentColor;
  filter: drop-shadow(0 6px 8px rgba(2,21,51,.35));
}
.road-cars .rc1 { animation: drive 15s linear infinite; }
.road-cars .rc2 { color: var(--red); animation: drive 21s linear infinite 4s; }
@keyframes drive {
  from { transform: translateX(-90px); }
  to   { transform: translateX(calc(100vw + 90px)); }
}

/* ---------- Kalkulasi Estimasi ---------- */
.calc {
  background: linear-gradient(115deg, #021533, #031f4e 55%, #0746b0);
  color: #fff; overflow: hidden; isolation: isolate;
}
.calc::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.2px);
  background-size: 26px 26px; opacity: .5;
}
.calc-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.calc-card {
  background: #fff; color: var(--muted);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: 0 2rem 4rem rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.4);
}
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc .field input[disabled] { background: var(--bg-soft); color: #8b93a5; }
.calc .res {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--bg-soft); border: 1.5px dashed var(--line);
  border-radius: 1rem; padding: .9rem 1.2rem; margin: .3rem 0 1.2rem;
  font-size: .92rem;
}
.calc .res b { font-family: var(--font-head); font-size: 1.6rem; color: var(--red); line-height: 1; }
.calc-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: .9rem; }
.calc-actions .btn { flex: 1; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; align-items: start; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: .35s;
}
.faq-item.open { box-shadow: var(--shadow-lg); border-color: transparent; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  text-align: left; padding: 1.15rem 1.3rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink);
  transition: .3s;
}
.faq-q:hover { color: var(--navy-2); }
.faq-item.open .faq-q { color: var(--navy-2); }
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--red); transition: transform .35s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { padding: 0 1.3rem 1.3rem; font-size: .92rem; }

/* =========================================================
   Responsive (mengikuti breakpoint style.css)
   ========================================================= */
@media (max-width: 1100px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .calc-grid, .faq-grid { grid-template-columns: 1fr; }
  .fb-wrap { transform: translateY(-30px); margin-bottom: -30px; }
  .fb-wrap.reveal, .fb-wrap.reveal.in { transform: translateY(-30px); }
  .page-hero { padding: 3.8rem 0 4.6rem; }
}
@media (max-width: 640px) {
  .fb-wrap { transform: none; margin-bottom: 0; padding: .9rem; gap: .7rem; }
  .fb-wrap.reveal { transform: translateY(20px); opacity: 0; }
  .fb-wrap.reveal.in { transform: none; opacity: 1; }
  .fb-search { min-width: 0; width: 100%; }
  .fb-pills { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .fb-pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; }
  .fb-count { margin-left: 0; }
  .how { padding-bottom: 6rem; }
  .how-grid { grid-template-columns: 1fr; }
  .calc .row { grid-template-columns: 1fr; }
  .calc-card { padding: 1.5rem; }
}
