/* Rakha Rentcar - Sewa Hiace Jepara | Ocean blue theme */

:root {
  --primary: #0077b6;
  --secondary: #00b4d8;
  --accent: #0096c7;
  --light: #caf0f8;
  --white: #ffffff;
  --text: #03045e;
  --text-muted: #46507a;
  --shadow: 0 8px 30px rgba(3, 4, 94, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --bottom-nav-h: 64px;
  --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: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.text-accent {
  color: var(--secondary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 119, 182, 0.12);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-disc {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 4px;
  box-sizing: border-box;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(3, 4, 94, 0.1);
}

.logo-disc .logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.logo-disc--footer {
  width: 72px;
  height: 72px;
  padding: 4px;
  margin-bottom: 0.65rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-desktop .nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

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

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }
}

.mobile-menu {
  border-top: 1px solid rgba(0, 119, 182, 0.12);
  background: var(--white);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.mobile-nav-list a {
  display: block;
  padding: 0.85rem clamp(1rem, 4vw, 1.5rem);
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--light);
}

.mobile-nav-list li:last-child a {
  border-bottom: none;
}

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

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.45);
  color: var(--white);
}

.btn-secondary {
  background: var(--light);
  color: var(--primary);
  border-color: transparent;
}

.btn-secondary:hover {
  background: #b8e8f5;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 119, 182, 0.08);
  color: var(--primary);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-wa i {
  font-size: 1.1em;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(3, 4, 94, 0.82) 0%, rgba(0, 119, 182, 0.55) 45%, rgba(0, 180, 216, 0.35) 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

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

.section-alt {
  background: linear-gradient(180deg, var(--light) 0%, rgba(202, 240, 248, 0.35) 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid-armada {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 119, 182, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(3, 4, 94, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--light), var(--white));
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  text-decoration: none;
  color: var(--accent);
}

/* Fleet */
.fleet-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 119, 182, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.fleet-card:hover {
  transform: translateY(-4px);
}

.fleet-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.fleet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fleet-card:hover .fleet-img-wrap img {
  transform: scale(1.05);
}

.fleet-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fleet-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.fleet-meta {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.fleet-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.fleet-body p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.fleet-body .btn {
  align-self: flex-start;
}

/* Tour */
.tour-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 119, 182, 0.08);
}

.tour-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.tour-body {
  padding: 1.35rem;
}

.tour-body h3 {
  margin: 0 0 0.5rem;
}

.tour-body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tour-custom {
  display: flex;
  align-items: stretch;
  min-height: 280px;
}

.tour-custom-inner {
  padding: 2rem;
  text-align: center;
  width: 100%;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.tour-custom-inner h3 {
  margin: 0;
}

.tour-custom-inner p {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 320px;
}

.tour-custom-inner .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: none;
}

.tour-custom-inner .btn-primary:hover {
  background: var(--light);
  color: var(--primary);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 119, 182, 0.06);
}

.feature i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.15rem;
}

.feature strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 auto;
  margin: 0;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 119, 182, 0.08);
}

.testimonial-card p {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  font-style: italic;
}

.testimonial-card footer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stars {
  margin-top: 0.75rem;
  color: #f4b400;
  letter-spacing: 2px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}

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

.slider-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Kontak */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .kontak-grid {
    grid-template-columns: 1fr;
  }
}

.kontak-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 119, 182, 0.08);
}

.address-block {
  font-style: normal;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.contact-line {
  margin: 0 0 1rem;
}

.contact-line a {
  font-weight: 600;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  border: 1px solid rgba(0, 119, 182, 0.1);
}

.map-wrap iframe {
  width: 100%;
  height: min(450px, 55vw);
  display: block;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 2rem;
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .logo-disc {
    margin-inline: auto;
  }
}

.footer-brand p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  opacity: 0.9;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.footer-meta {
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer-meta a {
  color: var(--secondary);
}

/* Bottom navigation */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 119, 182, 0.15);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 24px rgba(3, 4, 94, 0.08);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
}

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

.bottom-nav-item i {
  font-size: 1.15rem;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
  color: var(--primary);
  text-decoration: none;
}

.bottom-nav-wa {
  color: var(--primary);
}

.bottom-nav-wa i {
  font-size: 1.25rem;
}

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

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

/* FAB WhatsApp desktop */
.fab-wa {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.15s ease;
}

.fab-wa:hover {
  transform: scale(1.06);
  color: var(--white);
  text-decoration: none;
}

@media (min-width: 769px) {
  .desktop-only-fab {
    display: flex;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
