/*
Theme Name: Diva Travel
Theme URI: https://github.com/spidolster/mitra-jaya-travel
Author: Samsul
Description: Tema custom untuk Diva Travel — layanan travel & carter Kalimantan Timur. Diadaptasi dari versi HTML statis.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: diva-travel
*/

:root {
  --biru: #0d3b66;
  --biru-tua: #082848;
  --emas: #d5a63a;
  --emas-tua: #a6751b;
  --oranye-aksi: #f27922;
  --abu: #f5f7fa;
  --abu-teks: #5a6b7b;
  --putih: #ffffff;
  --hijau-wa: #25d366;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 59, 102, 0.08);
  --shadow-hover: 0 18px 45px rgba(13, 59, 102, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--biru-tua);
  line-height: 1.6;
  background: var(--putih);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--biru);
  margin-bottom: 12px;
}
.section-head p { color: var(--abu-teks); font-size: 1.05rem; }

/* ---------- TOMBOL ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: .25s;
  font-family: inherit;
}
.btn-emas { background: var(--emas); color: var(--biru-tua); }
.btn-emas:hover { background: var(--emas-tua); transform: translateY(-2px); }
.btn-wa { background: var(--hijau-wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* ---------- NAVBAR ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
}
nav { display: flex; align-items: center; justify-content: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--biru); white-space: nowrap; }
.brand-logo-crop {
  width: 62px; height: 48px; flex: 0 0 62px; overflow: hidden;
  display: block; border-radius: 4px; background: #fff;
}
.brand-logo-crop img { width: 62px; max-width: none; height: auto; }
.logo-text { display: flex; align-items: center; gap: 7px; line-height: 1; }
.logo-name, .logo-category { font-size: 1.22rem; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.logo-name { color: var(--emas-tua); }
.logo-category { color: var(--biru); }
.logo-img { height: 42px; width: auto; display: block; }
@media (max-width: 560px) {
  .logo { gap: 8px; }
  .logo-text { gap: 5px; }
  .logo-name, .logo-category { font-size: 1.04rem; letter-spacing: .07em; }
  .brand-logo-crop { width: 46px; height: 36px; flex-basis: 46px; }
  .brand-logo-crop img { width: 46px; }
  .logo-img { height: 38px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 580px; display: flex; align-items: center;
  background:
    linear-gradient(to right,
      rgba(8,40,72,.94) 0%, rgba(8,40,72,.86) 26%,
      rgba(8,40,72,.55) 48%, rgba(8,40,72,.15) 72%, rgba(8,40,72,0) 92%),
    url('hero-innova.jpg') right center / cover no-repeat;
  background-color: #082848;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--emas); }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 32px; max-width: 600px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- KARTU GRID ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--putih); border: 1px solid #eef1f5; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card h3 { font-size: 1.2rem; color: var(--biru); margin-bottom: 10px; }
.card p { color: var(--abu-teks); font-size: .96rem; }

.btn-pesan { width: 100%; justify-content: center; margin-top: 14px; padding: 12px; }

/* ---------- POPUP PEMESANAN (WIZARD) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 40, 72, .6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff; width: 100%; max-width: 580px;
  border-radius: 20px 20px 0 0; padding: 26px 24px;
  position: relative; animation: naik .25s ease;
  max-height: 85vh; overflow-y: auto;
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: 20px; }
}
@keyframes naik { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }
.modal h3 { color: var(--biru); font-size: 1.3rem; margin-bottom: 4px; }
.modal-sub { color: var(--abu-teks); font-size: .88rem; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: var(--abu); color: var(--biru-tua);
  font-size: 1rem; cursor: pointer; display: grid; place-items: center;
}
.opsi {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; background: #fff; cursor: pointer;
  border: 1.5px solid #e3e9f0; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px; font-family: inherit; font-size: 1rem; transition: .2s;
}
.opsi:hover { border-color: var(--emas); background: rgba(244,163,0,.06); }
.opsi b { color: var(--biru-tua); display: block; }
.opsi small { color: var(--abu-teks); font-size: .82rem; }
.opsi .opsi-harga { font-weight: 800; color: var(--emas-tua); white-space: nowrap; }
.opsi--seat .opsi-harga { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; }
.opsi-samping { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.opsi-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 5px 10px; border-radius: 7px;
  background: var(--oranye-aksi); color: var(--biru-tua); font-size: .73rem; font-weight: 800; white-space: nowrap;
}
.opsi:hover .opsi-cta { background: #e96915; }
.pilihan-kapsul {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px;
  margin-bottom: 12px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--oranye-aksi); color: var(--biru-tua); box-shadow: 0 7px 16px rgba(242, 121, 34, .2);
  cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 800; text-align: center;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.pilihan-kapsul:hover { background: #e96915; box-shadow: 0 10px 20px rgba(242, 121, 34, .28); transform: translateY(-1px); }
.pilihan-kapsul:focus-visible { outline: 3px solid rgba(13, 59, 102, .4); outline-offset: 3px; }
.pilihan-kapsul--tujuan { justify-content: space-between; }
.kapsul-harga { font-size: .84rem; white-space: nowrap; }
.alur-wa {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 12px;
  border-radius: 10px; background: #f2faf5; color: #3f5b4d; font-size: .82rem; line-height: 1.45;
}
.alur-wa-icon {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--hijau-wa); color: #fff;
}
.link-kembali {
  background: none; border: none; padding: 0; margin-bottom: 14px;
  color: var(--abu-teks); font-family: inherit; font-size: .9rem; cursor: pointer;
}
.link-kembali:hover { color: var(--biru); }
.ringkas { background: var(--abu); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.ringkas div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .95rem; }
.ringkas .lbl { color: var(--abu-teks); }
.ringkas .val { font-weight: 600; text-align: right; }
.ringkas .val.harga-final { font-weight: 800; color: var(--emas-tua); font-size: 1.1rem; }
.info-layanan { background: var(--abu); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.info-layanan > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.info-layanan span, .info-layanan p { color: var(--abu-teks); font-size: .9rem; }
.info-layanan strong { color: var(--biru-tua); text-align: right; }
.info-layanan p { border-top: 1px solid #dce4ec; margin-top: 10px; padding-top: 14px; line-height: 1.55; }

/* ---------- LAYANAN ---------- */
#layanan { background: #f8fafc; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.service-card {
  min-height: 255px; display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px; border: 1px solid #f0d3a7; border-radius: var(--radius); background: #fff5e7;
  box-shadow: var(--shadow); color: var(--biru-tua); cursor: pointer; text-align: left;
  font-family: inherit; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--emas); box-shadow: var(--shadow-hover); }
.service-card:focus-visible { outline: 3px solid rgba(213,166,58,.45); outline-offset: 3px; }
.service-kind { color: var(--emas-tua); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.service-name { color: var(--biru); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; line-height: 1.16; margin: 13px 0 12px; }
.service-copy { color: var(--abu-teks); font-size: .96rem; line-height: 1.6; max-width: 34ch; }
.service-price { color: var(--biru-tua); font-size: 1.05rem; font-weight: 800; margin-top: 20px; }
.service-action {
  align-self: stretch; margin-top: 28px; padding: 13px 16px; border-radius: 10px;
  background: var(--oranye-aksi); color: var(--biru-tua); font-size: .94rem; font-weight: 800; text-align: center;
  box-shadow: 0 8px 18px rgba(242, 121, 34, .22);
}
.service-card--gelap, .service-card--emas, .service-card--biru { background: #fff5e7; border-color: #f0d3a7; }
.service-card--gelap .service-kind { color: var(--emas-tua); }
.service-card--gelap .service-price { color: var(--biru-tua); }
.service-card--gelap .service-name { color: var(--biru); }
.service-card--gelap .service-copy { color: var(--abu-teks); }
.service-card--gelap .service-action { background: var(--oranye-aksi); color: var(--biru-tua); }
.service-card:hover .service-action { background: #e96915; box-shadow: 0 10px 22px rgba(242, 121, 34, .3); }

/* ---------- CARA PESAN ---------- */
#cara-pesan { background: #fff; }
.proses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proses-card { border-top: 3px solid var(--emas); padding: 20px 4px 0; }
.proses-card h3 { color: var(--biru); font-size: 1.08rem; margin-bottom: 8px; }
.proses-card p { color: var(--abu-teks); font-size: .92rem; line-height: 1.65; }

/* ---------- KONTAK ---------- */
#kontak { background: linear-gradient(135deg, var(--biru) 0%, var(--biru-tua) 100%); color: #fff; }
#kontak .section-head h2 { color: #fff; }
#kontak .section-head p { color: rgba(255,255,255,.8); }
.kontak-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.kontak-item { display: block; background: rgba(255,255,255,.08); padding: 22px; border-radius: var(--radius); }
.kontak-item .label { font-size: .85rem; opacity: .75; }
.kontak-item .val { font-weight: 600; font-size: 1.05rem; }
.kontak-cta { text-align: center; }
.kontak-cta .btn { font-size: 1.1rem; padding: 16px 36px; }

/* ---------- FOOTER ---------- */
footer { background: var(--biru-tua); color: rgba(255,255,255,.7); text-align: center; padding: 30px 0; font-size: .9rem; }
footer .logo { justify-content: center; color: #fff; margin-bottom: 10px; }

/* ---------- RESPONSIVE / HP ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(to bottom, rgba(8,40,72,.82) 0%, rgba(8,40,72,.9) 100%),
      url('hero-innova.jpg') center 28% / cover no-repeat;
    background-color: #082848;
  }
}
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .kontak-grid { grid-template-columns: 1fr; }
  .service-grid, .proses-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 228px; padding: 28px; }
}
@media (max-width: 599px) {
  .modal-overlay { align-items: stretch; }
  .modal { max-width: none; max-height: none; border-radius: 0; padding: 30px 22px; }
}

/* ---------- ADMIN SETTINGS (wp-admin) ---------- */
.mjt-admin-wrap { max-width: 900px; }
.mjt-admin-wrap h2 { margin: 32px 0 12px; font-size: 1.3rem; }
.mjt-admin-wrap .description { color: #666; margin-bottom: 14px; }
.mjt-repeater-row {
  background: #fff; border: 1px solid #dcdcde; border-radius: 6px;
  padding: 16px; margin-bottom: 12px; position: relative;
}
.mjt-repeater-row .mjt-field { margin-bottom: 10px; }
.mjt-repeater-row label { display: block; font-weight: 600; margin-bottom: 3px; font-size: .85rem; }
.mjt-repeater-row input[type="text"],
.mjt-repeater-row textarea { width: 100%; max-width: 460px; }
.mjt-repeater-row .mjt-remove-row {
  position: absolute; top: 12px; right: 12px; color: #b32d2e; cursor: pointer;
  background: none; border: none; text-decoration: underline; font-size: .82rem;
}
.mjt-add-row { margin-top: 4px; }
.mjt-inline { display: flex; gap: 16px; flex-wrap: wrap; }
.mjt-inline > div { flex: 1; min-width: 180px; }
