/* ============================================================
   VELORENT — Desain Eksklusif Rental Mobil & Motor
   ------------------------------------------------------------
   Warna Utama : Sporty Crimson Red (#e11d48) & Dark Slate (#0f172a)
   Layout      : Floating Pill Header, Hero dengan Search Widget,
                 serta Kalkulator Estimasi Biaya Interaktif.
   ============================================================ */

:root {
  --primary: #e11d48;        /* Sporty Red */
  --primary-dark: #be123c;
  --primary-light: #ffe4e6;
  --accent: #0f172a;         /* Dark Slate */

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 35px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px rgba(225, 29, 72, 0.15);

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.bg-soft { background: var(--bg-soft); }
.text-center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-pill:hover { background: var(--primary); color: var(--white); }

/* ==================== FLOATING PILL NAVBAR ==================== */
.header-wrap {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 1000;
  padding: 0 20px;
}

.nav-container {
  max-width: 1080px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}
.header-wrap.scrolled .nav-container { box-shadow: var(--shadow-md); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.logo b { color: var(--primary); }

.nav-menu { display: flex; gap: 28px; }
.nav-menu a {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==================== HERO & SEARCH WIDGET ==================== */
.hero {
  padding: 180px 0 100px;
  background: radial-gradient(circle at 50% 20%, #fff1f2 0%, var(--bg) 60%);
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 40px; }

.text-gradient {
  background: linear-gradient(90deg, var(--primary), #f43f5e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Search Widget Card */
.search-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr auto;
  gap: 16px;
  align-items: end;
  max-width: 960px;
  margin: 0 auto;
}

.search-field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.search-field label { font-size: 0.85rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.search-field label i { color: var(--primary); }

.search-field select, .search-field input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
.search-field select:focus, .search-field input:focus { border-color: var(--primary); background: var(--white); }

/* ==================== BRAND STRIP ==================== */
.brand-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.brand-strip-inner { text-align: center; }
.brand-strip-inner p { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.brand-strip-inner .brands-list { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text-muted); opacity: 0.85; }
.brand-strip-inner .brands-list span { display: inline-flex; align-items: center; gap: 8px; }

/* ==================== KATALOG ARMADA ==================== */
.tagline { display: inline-block; color: var(--primary); font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); margin-bottom: 10px; }
.section-head p { color: var(--text-muted); font-size: 1rem; }

.fleet-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tab-btn {
  padding: 10px 26px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: var(--shadow-sm); }

.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fleet-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.fleet-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.fleet-card:hover .card-img img { transform: scale(1.05); }

.badge-cat {
  position: absolute; top: 12px; right: 12px;
  background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px);
  color: var(--white); font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
}

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 12px; }

.specs { display: flex; flex-wrap: gap; gap: 12px; margin-bottom: 18px; font-size: 0.85rem; color: var(--text-muted); }
.specs i { color: var(--primary); }

.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.price { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.price span { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* ==================== KALKULATOR ESTIMASI (INTERAKTIF) ==================== */
.calc-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-md); display: grid;
  grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  max-width: 900px; margin: 0 auto;
}
.calc-inputs { display: grid; gap: 20px; }
.calc-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.calc-group label { font-weight: 700; font-size: 0.9rem; }
.calc-group select, .calc-group input {
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-soft);
  font-family: inherit; font-size: 0.95rem; outline: none;
}
.calc-group select:focus, .calc-group input:focus { border-color: var(--primary); background: var(--white); }

.calc-result {
  background: var(--primary-light); border-radius: var(--radius-sm);
  padding: 30px; text-align: center; display: flex; flex-direction: column; gap: 14px;
}
.res-title { font-size: 0.9rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.res-price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--text); }
.res-note { font-size: 0.75rem; color: var(--text-muted); }

/* ==================== KEUNGGULAN ==================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feat-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ==================== FAQ ==================== */
.faq-container { max-width: 740px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: none; border: none; padding: 18px 22px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  color: var(--text); text-align: left; cursor: pointer;
}
.faq-question i { color: var(--primary); transition: transform 0.3s ease; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ==================== FOOTER ==================== */
.footer { background: #0b0f19; color: #94a3b8; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 20px; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); display: inline-flex;
  align-items: center; justify-content: center; color: var(--white); transition: var(--transition);
}
.socials a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col a { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; padding: 5px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-col a i { color: var(--primary); font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; text-align: center; font-size: 0.85rem; }

/* ==================== WHATSAPP FLOAT ==================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #22c55e; color: var(--white); font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4); z-index: 900;
  animation: pulse 2.5s infinite; transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==================== REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .search-widget { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-box { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .nav-menu {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    padding: 10px 24px 20px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); transform: translateY(-120%);
    opacity: 0; visibility: hidden; transition: var(--transition); border-radius: 0 0 24px 24px;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-cta .btn-pill { display: none; }
  .hamburger { display: flex; }
  .fleet-grid { grid-template-columns: 1fr; }
}
