/* =====================================================================
   Rute Nusantara — Design Tokens
   Palette  : jungle teal + sunset amber + warm paper, muted clay accent
   Type     : Fraunces (display) / Inter (body) / IBM Plex Mono (utility)
   Signature: dashed "rute" line with pin markers connecting destinations
   ===================================================================== */

:root {
  --ink: #1b2b28;
  --ink-soft: #4a5a56;
  --paper: #f6f2e7;
  --paper-raised: #ffffff;
  --teal: #0e4b43;
  --teal-dark: #0a3530;
  --teal-tint: #e4efec;
  --amber: #e2a33d;
  --amber-dark: #c07f1f;
  --clay: #b5603f;
  --line: #ddd6c4;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(14, 75, 67, 0.25);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--amber-dark); }

/* ===== Buttons ===== */
.btn-brand {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-brand:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }

.btn-amber {
  background: var(--amber);
  border: 1px solid var(--amber);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-amber:hover { background: var(--amber-dark); color: var(--teal-dark); transform: translateY(-1px); }

.btn-outline-brand {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
}
.btn-outline-brand:hover { background: var(--teal-tint); color: var(--teal-dark); }

/* ===== Navbar ===== */
.site-navbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-navbar .brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal-dark);
}
.site-navbar .brand-logo { border-radius: 9px; }
.site-navbar .nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
}
.site-navbar .nav-link.active,
.site-navbar .nav-link:hover { color: var(--teal); }
/* Tombol Login + Hubungi Kami: tinggi disamakan supaya sejajar */
.site-navbar .nav-cta .btn-outline-brand { padding: 0.65rem 1.5rem; }
@media (max-width: 991.98px) {
  /* Di menu collapse (smartphone/tablet): tombol penuh lebar, bertumpuk rapi */
  .site-navbar .nav-cta { padding: 0.3rem 0; }
  .site-navbar .nav-cta .btn { display: block; width: 100%; text-align: center; }
}

/* ===== Hero + Route signature ===== */
.hero {
  background: linear-gradient(180deg, var(--teal-tint) 0%, var(--paper) 65%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--clay);
  font-weight: 600;
}

.route-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.route-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 92px;
}
.route-stop .pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--teal);
  margin-bottom: 0.4rem;
}
.route-stop .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  color: var(--ink-soft);
}
.route-line {
  flex: 1 1 auto;
  min-width: 24px;
  height: 0;
  border-top: 2px dashed var(--teal);
  opacity: 0.55;
  margin-top: -1.1rem;
}

/* ===== Hero Slider (vanilla, zero-dependency) ===== */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--teal-tint);
}
.hero-slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  display: block;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(10,53,48,0.82));
  color: #fff;
}
.hero-slide-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.hero-slide-subtitle { font-size: 0.85rem; color: #d9ece7; margin-top: 0.15rem; }
.hero-slider-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}
.hero-dot.is-active { background: var(--amber); width: 20px; border-radius: 999px; }

/* ===== Price block (Mulai Rp, nego, diskon) ===== */
.price-original {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: 0.75;
}
.price-badges { display: flex; gap: 0.4rem; margin-top: 0.4rem; flex-wrap: wrap; }
.badge-price {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  display: inline-block;
}
.badge-discount { background: var(--clay); color: #fff; }
.badge-nego { background: transparent; border: 1px solid var(--teal); color: var(--teal); }

/* ===== Language switcher ===== */
.lang-switcher {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.lang-switch-item {
  padding: 0.35rem 0.55rem;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1;
}
.lang-switch-item.is-active { background: var(--teal); color: #fff; }
.lang-switch-item:hover:not(.is-active) { background: var(--teal-tint); color: var(--teal-dark); }

/* ===== Cards ===== */
.card-brand {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.card-brand:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-brand .card-img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--teal-tint);
  overflow: hidden;
}
.card-brand .card-img-wrap.is-square { aspect-ratio: 1 / 1; }
.card-brand .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.card-brand .card-body { padding: 1.25rem; }
.card-brand .price-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--teal-dark);
}
.badge-soft {
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
}

/* ===== Sections ===== */
.section { padding: 3.5rem 0; }
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-alt { background: var(--teal-tint); }

/* ===== Steps (how it works) ===== */
.step-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--amber-dark);
  font-size: 1.1rem;
}

/* ===== Testimonial ===== */
.testi-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}
.testi-stars { color: var(--amber); letter-spacing: 0.1em; }

/* ===== Footer ===== */
.site-footer {
  background: var(--teal-dark);
  color: #eef4f2;
  padding: 3rem 0 1.5rem;
}
.site-footer a { color: #cfe6e1; }
.site-footer a:hover { color: var(--amber); }
.site-footer h5 { color: #fff; font-family: var(--font-display); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #a9c3bd;
}

/* ===== WhatsApp Floating Button ===== */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 1000;
  font-size: 1.5rem;
}
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ===== Forms ===== */
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 75, 67, 0.12);
}
label.form-label { font-weight: 600; color: var(--ink); font-size: 0.9rem; }

/* ===== Detail page ===== */
/* Rasio 4:3 disamakan dengan kartu grid supaya foto yang sama tampil
   KONSISTEN di mana pun (tidak beda crop antara kartu dan detail).
   Foto yang diupload sesuai rasio 4:3 (lihat keterangan di form admin)
   akan tampil penuh tanpa terpotong berarti. */
.detail-hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--ink-soft); }
.spec-row .v { font-weight: 600; font-family: var(--font-mono); }

/* ===== Konten rich text (deskripsi, itinerary, artikel, halaman) — rapi & konsisten ===== */
.rich-text-output p { margin: 0 0 1rem; }
.rich-text-output p:last-child { margin-bottom: 0; }
.rich-text-output h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 1.5rem 0 0.75rem;
}
.rich-text-output h3:first-child { margin-top: 0; }
.rich-text-output ul, .rich-text-output ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.rich-text-output li { margin-bottom: 0.35rem; }
.rich-text-output a { text-decoration: underline; }
.rich-text-output img { max-width: 100%; border-radius: 8px; margin: 0.5rem 0; }
.rich-text-output strong { font-weight: 700; }

/* ===== Utility ===== */
.text-teal { color: var(--teal); }
.text-amber { color: var(--amber-dark); }
.bg-paper-raised { background: var(--paper-raised); }
.rounded-brand { border-radius: var(--radius); }
.border-brand { border: 1px solid var(--line) !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
