/* =========================================================
   SmartTrip Custom Styles
   ========================================================= */

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================================
   iPhone 16 Mockup
   - Ukuran phone diatur lewat variabel --w (lebar bodi phone).
   - Semua isi layar memakai satuan --u, yaitu 1pt layar iPhone 16
     (lebar layar 393pt), jadi teks & elemen otomatis ikut
     mengecil/membesar mengikuti ukuran phone.
   - Rasio layar 1179 x 2556 (sama dengan iPhone 16 asli).
   ========================================================= */

.iphone16 {
  --w: 220px;
  --bezel: calc(var(--w) * 0.032);
  --frame: #0b0c10;
  --band: #4b4f59;

  position: relative;
  width: var(--w);
  padding: var(--bezel);
  border-radius: calc(var(--w) * 0.172);
  background: var(--frame);
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.007) var(--band),
    inset 0 0 0 calc(var(--w) * 0.012) #16171c,
    0 40px 70px -20px rgba(15, 23, 42, 0.45),
    0 14px 28px -12px rgba(15, 23, 42, 0.35);
}

/* Ukuran: phone tengah (utama) & phone samping */
.iphone16--main { --w: 220px; }
.iphone16--side { --w: 168px; }

@media (min-width: 640px) {
  .iphone16--main { --w: 272px; }
  .iphone16--side { --w: 220px; }
}

/* ---------- Tombol fisik ---------- */
/* Volume atas & bawah (kiri) */
.iphone16::before {
  content: "";
  position: absolute;
  left: calc(var(--w) * -0.011);
  top: 21.5%;
  width: calc(var(--w) * 0.014);
  height: 7%;
  border-radius: 3px 0 0 3px;
  background: var(--band);
  box-shadow: 0 calc(var(--w) * 0.2) 0 0 var(--band);
}

/* Tombol power (kanan) */
.iphone16::after {
  content: "";
  position: absolute;
  right: calc(var(--w) * -0.011);
  top: 29%;
  width: calc(var(--w) * 0.014);
  height: 11.5%;
  border-radius: 0 3px 3px 0;
  background: var(--band);
}

/* Action button (kiri atas) */
.iphone16__action {
  position: absolute;
  left: calc(var(--w) * -0.011);
  top: 13.5%;
  width: calc(var(--w) * 0.014);
  height: 3.6%;
  border-radius: 3px 0 0 3px;
  background: var(--band);
}

/* Camera Control (khas iPhone 16, kanan bawah) */
.iphone16__camctl {
  position: absolute;
  right: calc(var(--w) * -0.008);
  top: 59%;
  width: calc(var(--w) * 0.011);
  height: 8.5%;
  border-radius: 0 3px 3px 0;
  background: #3a3d45;
}

/* ---------- Layar ---------- */
.iphone16__screen {
  --u: calc(100cqw / 393);

  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1179 / 2556;
  border-radius: calc(var(--w) * 0.14);
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
  line-height: 1.25;
  container-type: inline-size;
}

/* kilau tipis di kaca layar */
.iphone16__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
  z-index: 6;
}

/* Dynamic Island */
.iphone16__island {
  position: absolute;
  top: calc(var(--u) * 11);
  left: 50%;
  width: calc(var(--u) * 126);
  height: calc(var(--u) * 37);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 5;
}

/* Status bar (jam + sinyal/wifi/baterai) */
.iphone16__status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--u) * 59);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--u) * 34) 0 calc(var(--u) * 44);
  font-size: calc(var(--u) * 16);
  font-weight: 700;
  color: #0f172a;
  z-index: 4;
}

.iphone16__status-icons {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  font-size: calc(var(--u) * 14);
}

/* Home indicator */
.iphone16__home {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * 8);
  width: calc(var(--u) * 134);
  height: calc(var(--u) * 5);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0f172a;
  z-index: 4;
}

/* ---------- Isi aplikasi di dalam layar ---------- */
.i16-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 14);
  padding: calc(var(--u) * 66) calc(var(--u) * 18) 0;
}

.i16-head { text-align: center; }

.i16-eyebrow {
  font-size: calc(var(--u) * 12);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.i16-title {
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 23);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.i16-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 44);
  padding: 0 calc(var(--u) * 16);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: calc(var(--u) * 14);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.i16-card {
  padding: calc(var(--u) * 14) calc(var(--u) * 16);
  border: 1px solid #e2e8f0;
  border-radius: calc(var(--u) * 20);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.i16-card--media {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.i16-card__body { padding: calc(var(--u) * 12) calc(var(--u) * 16) calc(var(--u) * 14); }

.i16-label {
  font-size: calc(var(--u) * 11);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.i16-label--blue  { color: #2563eb; }
.i16-label--teal  { color: #0d9488; }
.i16-label--slate { color: #94a3b8; }

.i16-card__title {
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 19);
  font-weight: 800;
  line-height: 1.2;
  color: #1e293b;
}

.i16-card__sub {
  margin-top: calc(var(--u) * 2);
  font-size: calc(var(--u) * 13);
  color: #64748b;
}
.i16-card__sub--teal { color: #0d9488; font-weight: 600; }

.i16-text {
  margin-top: calc(var(--u) * 4);
  font-size: calc(var(--u) * 13);
  line-height: 1.4;
  color: #475569;
}

/* Foto: otomatis mengisi sisa tinggi layar & di-crop rapi (object-fit: cover) */
.i16-photo {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--u) * 22);
  background: #cbd5e1;
}
.i16-photo--flat { border-radius: 0; }

.i16-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.i16-tag {
  position: absolute;
  left: calc(var(--u) * 12);
  bottom: calc(var(--u) * 12);
  padding: calc(var(--u) * 5) calc(var(--u) * 11);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: calc(var(--u) * 11);
  font-weight: 700;
}

/* Daftar populer (phone tengah) */
.i16-section {
  margin-bottom: calc(var(--u) * 8);
  font-size: calc(var(--u) * 13);
  font-weight: 800;
  color: #0f172a;
}

.i16-row {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 12);
  margin-bottom: calc(var(--u) * 8);
  padding: calc(var(--u) * 8);
  border: 1px solid #e2e8f0;
  border-radius: calc(var(--u) * 16);
  background: #fff;
}
.i16-row > div { flex: 1; min-width: 0; }
.i16-row__title { font-size: calc(var(--u) * 14); font-weight: 700; color: #1e293b; }
.i16-row__sub   { font-size: calc(var(--u) * 11.5); color: #64748b; }
.i16-row__chev  { font-size: calc(var(--u) * 11); color: #cbd5e1; padding-right: calc(var(--u) * 6); }

.i16-thumb {
  flex: none;
  width: calc(var(--u) * 42);
  height: calc(var(--u) * 42);
  border-radius: calc(var(--u) * 12);
  object-fit: cover;
}
.i16-thumb--grad {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #2dd4bf);
  color: #fff;
  font-size: calc(var(--u) * 17);
}

/* Tab bar bawah */
.i16-tabbar {
  display: flex;
  justify-content: space-around;
  margin: 0 calc(var(--u) * -18);
  padding: calc(var(--u) * 12) calc(var(--u) * 30) calc(var(--u) * 34);
  border-top: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.95);
  color: #94a3b8;
  font-size: calc(var(--u) * 20);
}
.i16-tabbar .is-active { color: #2563eb; }

/* ---------- Tambahan: layar Ulasan (bagian "Ulasan Aplikasi") ---------- */
.i16-rating {
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 20);
  font-weight: 800;
  color: #0f172a;
}
.i16-rating span { color: #f59e0b; letter-spacing: 0.05em; }

.i16-reviews {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 12);
}
.i16-reviews > .i16-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.i16-person {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  margin-bottom: calc(var(--u) * 6);
}
.i16-avatar {
  flex: none;
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 30);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--u) * 11);
  font-weight: 800;
}
.i16-avatar--blue { background: #dbeafe; color: #2563eb; }
.i16-avatar--teal { background: #ccfbf1; color: #0d9488; }
.i16-person__name  { font-size: calc(var(--u) * 13); font-weight: 800; color: #0f172a; }
.i16-person__stars { font-size: calc(var(--u) * 10); color: #f59e0b; letter-spacing: 0.05em; }

.i16-cta {
  padding: calc(var(--u) * 14) calc(var(--u) * 16);
  border-radius: calc(var(--u) * 20);
  background: #2563eb;
  color: #fff;
  text-align: center;
}
.i16-cta__title { font-size: calc(var(--u) * 20); font-weight: 800; }
.i16-cta__sub   { font-size: calc(var(--u) * 12); opacity: 0.9; }
.i16-avatar--green { background: #d1fae5; color: #059669; }

/* ---------- Tambahan: layar QR Code (bagian "Unduh App") ---------- */
.i16-center { text-align: center; }
.i16-heading {
  font-size: calc(var(--u) * 23);
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
}
.i16-desc {
  margin-top: calc(var(--u) * 8);
  font-size: calc(var(--u) * 14);
  line-height: 1.45;
  color: #64748b;
}
.i16-qr {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: calc(var(--u) * 24);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.i16-qr svg {
  width: calc(var(--u) * 250);
  height: calc(var(--u) * 250);
  color: #0f172a;
}
.i16-brand {
  font-size: calc(var(--u) * 12);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #2563eb;
}

/* =========================================================
   Hero showcase (3 HP, gaya referensi)
   - HP tengah tegak & besar, HP samping lebih kecil, lebih rendah,
     agak miring (3D) dan berada di belakang HP tengah.
   - Bagian bawah dipotong + fade ke putih, ada halo biru di belakang.
   ========================================================= */

.hero-showcase {
  position: relative;
  max-width: 64rem;
  --shift: 48px; /* seberapa jauh HP turun dari puncak halo */
  height: 398px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero-showcase { --shift: 64px; height: 514px; }
}

/* fade ke putih di bawah (menutup potongan HP) */
.hero-showcase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  z-index: 40;
  pointer-events: none;
}

/* halo / busur biru muda di belakang HP */
.hero-halo {
  position: absolute;
  left: 50%;
  top: 0;
  width: 680px;
  height: 520px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(to bottom, #dbeafe 0%, rgba(239, 246, 255, 0.7) 15%, rgba(255, 255, 255, 0) 30%);
  z-index: 0;
}
@media (min-width: 640px) {
  .hero-halo { top: 0; width: 820px; height: 700px; }
}

.hero-phone { position: absolute; }

.hero-phone--main {
  left: 50%;
  top: var(--shift);
  transform: translateX(-50%);
  z-index: 30;
}

/* HP samping: lebih kecil, lebih rendah, sedikit miring 3D */
.hero-phone--left,
.hero-phone--right { top: calc(var(--shift) + 62px); z-index: 10; }
.hero-phone--left  { right: calc(50% + 86px); transform: perspective(900px) rotateY(18deg) rotate(-4deg); }
.hero-phone--right { left:  calc(50% + 86px); transform: perspective(900px) rotateY(-18deg) rotate(4deg); }

@media (min-width: 640px) {
  .hero-phone--left,
  .hero-phone--right { top: calc(var(--shift) + 96px); }
  .hero-phone--left  { right: calc(50% + 112px); }
  .hero-phone--right { left:  calc(50% + 112px); }
}

.hero-showcase .iphone16--side { --w: 116px; }
@media (min-width: 640px) {
  .hero-showcase .iphone16--side { --w: 176px; }
}

/* Rangka HP: tepi silver tipis + bezel hitam (khusus hero) */
.hero-showcase .iphone16 {
  --band: #c9ccd3;
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.014) #d6d9df,
    inset 0 0 0 calc(var(--w) * 0.021) #8e929c,
    0 30px 50px -20px rgba(15, 23, 42, 0.35),
    0 12px 24px -12px rgba(15, 23, 42, 0.25);
}
.hero-showcase .iphone16__camctl { background: #aeb2ba; }

/* Screenshot aplikasi di dalam layar HP (hero) */
.iphone16__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
}


/* =========================================================
   Navbar bergerak (dipakai semua halaman)
   ========================================================= */

html { scroll-padding-top: 5.5rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f1f5f9;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background-color 0.3s ease;
  animation: nav-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes nav-in {
  from { transform: translateY(-100%); }
}
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-nav.is-hidden { transform: translateY(-100%); }

/* Garis progress baca di tepi bawah navbar */
.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #2dd4bf);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Tautan menu: garis bawah meluncur */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  padding: 0 0.8rem;
  color: #475569;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: #2563eb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover,
.nav-link.is-active,
.nav-dd.is-open > .nav-link { color: #2563eb; }
.nav-link:hover::after,
.nav-link.is-active::after,
.nav-dd.is-open > .nav-link::after { transform: scaleX(1); }
.nav-link:focus-visible,
.nav-dd-item:focus-visible,
.menu-btn:focus-visible,
.nav-cta:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; border-radius: 8px; }

.nav-chev { font-size: 0.6rem; transition: transform 0.3s ease; }
.nav-dd:hover .nav-chev,
.nav-dd:focus-within .nav-chev,
.nav-dd.is-open .nav-chev { transform: rotate(180deg); }

/* Dropdown */
.nav-dd { position: relative; height: 100%; display: flex; align-items: center; }
.nav-dd-panel {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 17rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.25s;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel,
.nav-dd.is-open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  color: #0f172a;
  transition: background-color 0.2s ease;
}
.nav-dd-item:hover { background: #eff6ff; }
.nav-dd-item i { margin-top: 0.15rem; width: 1.1rem; text-align: center; color: #2563eb; }
.nav-dd-item b { display: block; font-size: 0.85rem; font-weight: 800; }
.nav-dd-item small { display: block; margin-top: 0.1rem; font-size: 0.72rem; font-weight: 500; color: #64748b; }

/* Tombol CTA */
.nav-cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.5);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: #1e293b; transform: translateY(-1px); }

/* Hamburger */
.menu-btn { padding: 0.5rem; color: #475569; background: none; border: 0; cursor: pointer; border-radius: 0.5rem; }
.menu-btn i { display: inline-block; transition: transform 0.3s ease; }
.menu-btn.is-open i { transform: rotate(90deg); }

/* Menu mobile: tinggi membuka halus */
.mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  background: #fff;
  border-top: 1px solid transparent;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s, border-color 0.3s ease;
}
.mobile-panel.open {
  grid-template-rows: 1fr;
  visibility: visible;
  border-top-color: #f1f5f9;
  transition-delay: 0s;
}
.mobile-inner { overflow: hidden; padding: 0 1rem; max-height: calc(100vh - 5rem); overflow-y: auto; }
.mobile-panel.open .mobile-inner { padding-top: 0.75rem; padding-bottom: 1.25rem; }
.m-link { display: block; padding: 0.6rem 0.25rem; font-size: 0.875rem; font-weight: 700; color: #334155; }
.m-link:hover, .m-link.is-active { color: #2563eb; }
.m-sub { padding-left: 1rem; font-weight: 600; }
.m-group { margin-top: 0.75rem; padding: 0.25rem; font-size: 0.75rem; font-weight: 800; color: #94a3b8; }
.m-cta { margin-top: 1rem; width: 100%; text-align: center; padding: 0.8rem 1.25rem; }

/* =========================================================
   Halaman rekomendasi (destinasi & kuliner)
   ========================================================= */
.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: #0f172a; }
.chip.is-active { background: #0f172a; border-color: #0f172a; color: #fff; }
.chip:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.rec-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
}
.rec-media {
  position: relative;
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rec-media > i { font-size: 3rem; color: rgba(255, 255, 255, 0.85); }
.rec-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rec-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Halaman unduh: tandai kartu fitur yang dituju lewat tautan menu */
.feature-target { transition: box-shadow 0.4s ease, border-color 0.4s ease; }
.feature-target:target { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }

/* Isian yang perlu diganti (halaman Info PjBL) */
.isi { font-style: italic; font-weight: 600; color: #94a3b8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .site-nav, .site-nav *, .mobile-panel, .mobile-panel * { transition: none !important; animation: none !important; }
}