/* ============================================
   Rental Mobil Bangka Balun Ijuk — Mobile-first
   ============================================ */

:root {
  --color-primary: #0b5ed7;
  --color-primary-dark: #084298;
  --color-gold: #d4af37;
  --color-gold-hover: #c5a028;
  --color-white: #ffffff;
  --color-bg: #f5f7fa;
  --color-text: #1a1d21;
  --color-text-muted: #5c6370;
  --shadow-sm: 0 2px 8px rgba(11, 94, 215, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 94, 215, 0.12);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --container-max: 1200px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--color-gold);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.logo:hover .logo-img {
  opacity: 0.92;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--color-primary);
}

.burger:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  margin-inline: auto;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  background: var(--color-white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, box-shadow 0.35s ease;
  box-shadow: none;
}

.nav.is-open {
  max-height: min(70vh, 400px);
  box-shadow: var(--shadow-md);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1.25rem;
}

.nav-link {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.nav-link:hover {
  background: rgba(11, 94, 215, 0.06);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-gold);
  background: rgba(11, 94, 215, 0.06);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #1e4a9e;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.88) 0%, rgba(30, 74, 158, 0.82) 45%, rgba(8, 66, 152, 0.92) 100%);
  z-index: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(212, 175, 55, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: var(--color-gold);
  color: #1a1508;
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: #1a1508;
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
  width: 100%;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ----- Sections ----- */
.section {
  padding: 3.25rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

.section-lead {
  margin: 0 auto 2rem;
  max-width: 560px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.12), rgba(212, 175, 55, 0.15));
  color: var(--color-primary);
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-icon--text {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.feature-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Fleet */
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.car-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11, 94, 215, 0.18);
}

.car-image-wrap {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #e8ecf2;
}

.car-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.car-card:hover .car-image-wrap img {
  transform: scale(1.04);
}

.car-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.car-name {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.car-trans {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* About */
.about {
  background: var(--color-white);
}

.about-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.about-text {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Location */
.address-block {
  font-style: normal;
  margin: 0 0 1.25rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-gold);
  color: var(--color-text);
  line-height: 1.7;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  line-height: 0;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 280px;
}

/* Contact */
.contact-card {
  max-width: 480px;
  margin-inline: auto;
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-card p {
  margin: 0 0 1rem;
}

.contact-card a[href^="tel"] {
  font-weight: 600;
  font-size: 1.1rem;
}

.address-inline {
  font-style: normal;
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0));
  margin-top: 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-domain {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--color-gold);
  text-decoration: none;
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  z-index: 900;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-wa:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  text-decoration: none;
  color: var(--color-white);
}

.float-wa:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* Bottom nav — mobile only */
.bottom-nav {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  height: var(--bottom-nav-height);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--color-white);
  border-top: 1px solid rgba(11, 94, 215, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.35rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  min-width: 0;
}

.bottom-nav-item:hover {
  color: var(--color-primary);
  text-decoration: none;
  background: rgba(11, 94, 215, 0.04);
}

.bottom-nav-item.is-active {
  color: var(--color-primary);
}

.bottom-nav-item.is-active .bottom-nav-icon {
  color: var(--color-primary);
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.bottom-nav-wa {
  color: #128c7e;
}

.bottom-nav-wa:hover {
  color: #075e54;
}

.bottom-nav-wa.is-active {
  color: #075e54;
}

.bottom-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Tablet: 768px — 2 col fleet, 2 col features */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 70vh;
    padding: 4rem 0 5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }
}

/* Desktop: nav horizontal, hide burger & bottom nav */
@media (min-width: 769px) {
  .burger {
    display: none;
  }

  .nav {
    position: static;
    max-height: none !important;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }

  .nav-link {
    padding: 0.5rem 0.85rem;
    border-left: none;
    border-radius: var(--radius);
  }

  .nav-link.is-active {
    border-left: none;
    background: rgba(11, 94, 215, 0.1);
  }

  .nav-overlay {
    display: none !important;
  }

  .bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .float-wa {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
    right: 1.5rem;
  }

  .site-footer {
    margin-bottom: 0;
  }
}

/* Desktop fleet 3 columns */
@media (min-width: 992px) {
  .fleet-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small mobile padding for float WA above bottom bar */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--bottom-nav-height) + 0.5rem + env(safe-area-inset-bottom, 0));
  }

  .float-wa {
    bottom: calc(var(--bottom-nav-height) + 0.75rem + env(safe-area-inset-bottom, 0));
  }

  .site-footer {
    padding-bottom: calc(2rem + var(--bottom-nav-height) + env(safe-area-inset-bottom, 0));
  }
}

/* Container width note: user asked tablet 768 — we use same container with padding */
@media (min-width: 480px) {
  .container {
    padding-inline: 1.5rem;
  }
}
