/* =========================================================
   JIRAN TRAVEL — MAIN CSS (V3 FINAL)
   ========================================================= */

/* ============ root ============ */
:root {
  --bg: #f7fbf8;
  --surface: #ffffff;
  --surface-2: #eef6f1;
  --border: #dcebe2;
  --border-strong: #17352b;
  --primary: #168a63;
  --secondary: #f59e0b;
  --accent: #ef6c4d;
  --ink: #17352b;
  --text: #17352b;
  --text-muted: #668077;
  --text-soft: #93a8a0;
  --gradient: linear-gradient(135deg, #168a63, #35b77d);
  --gradient-hover: linear-gradient(135deg, #0f7553, #2aa66d);
  --shadow-sm: 0 4px 12px rgba(26, 74, 57, 0.05);
  --shadow-md: 0 18px 40px rgba(26, 74, 57, 0.08);
  --shadow-lg: 0 30px 70px rgba(26, 74, 57, 0.14);
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --wa: #25d366;
}

/* ============ reset ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .4s, visibility .4s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800;
  color: var(--primary); letter-spacing: -1px;
}
.loader-logo em { font-style: italic; color: var(--accent); }

/* ============ WA FLOAT ============ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 30px rgba(37,211,102,.35);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all .35s;
}
.wa-float.show { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }

/* =========================================================
   NAVBAR
   ========================================================= */
#navbar {
  position: fixed; top: 0; left: 0;
  width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%;
  transition: background .35s, padding .35s, border-color .35s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
#navbar.navbar-solid,
#navbar.scrolled {
  background: rgba(247, 251, 248, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 53, 43, 0.08);
  padding: 12px 5%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.6px;
  transition: color .3s;
  z-index: 2;
}

.nav-logo-mark {
  height: 38px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.nav-logo:hover .nav-logo-mark {
  transform: scale(1.05);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.6px;
}
.nav-logo-text em {
  font-style: italic;
  color: var(--secondary);
}

/* Navbar solid / scrolled — warna gelap */
#navbar.navbar-solid .nav-logo,
#navbar.scrolled .nav-logo { color: var(--ink); }
#navbar.navbar-solid .nav-logo-text em,
#navbar.scrolled .nav-logo-text em { color: var(--primary); }

/* ===== DESKTOP NAV LINKS ===== */
.nav-links {
  display: flex; gap: 26px;
}
.nav-links a {
  color: rgba(255,255,255,.9);
  font-weight: 600; font-size: .86rem;
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--secondary);
  transition: width .3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: #fff; }

#navbar.navbar-solid .nav-links a,
#navbar.scrolled .nav-links a { color: var(--text-muted); }
#navbar.navbar-solid .nav-links a::after,
#navbar.scrolled .nav-links a::after { background: var(--primary); }
#navbar.navbar-solid .nav-links a:hover,
#navbar.navbar-solid .nav-links a.active,
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active { color: var(--primary); }

/* CTA desktop */
.nav-cta {
  padding: 10px 22px;
  background: var(--gradient); color: #fff;
  border-radius: 100px;
  font-weight: 700; font-size: .85rem;
  transition: all .3s;
  white-space: nowrap;
  z-index: 2;
}
.nav-cta:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22,138,99,.25);
}

/* CTA mobile & panel kontak — hidden by default di desktop */
.nav-cta-mobile-wrap,
.nav-close,
.nav-menu-panel { display: none; }

/* Menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 1.5rem;
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  padding: 0;
  transition: background .3s;
  z-index: 2;
}
#navbar.navbar-solid .menu-toggle,
#navbar.scrolled .menu-toggle { color: var(--text); }

/* =========================================================
   MOBILE NAV fs
   ========================================================= */
@media (max-width: 768px) {
  .nav-logo {
    gap: 8px;
  }
  .nav-logo-mark {
    height: 32px;
  }
  .nav-logo-text {
    font-size: 1.2rem;
  }


  .menu-toggle { display: flex; }
  .nav-cta { display: none; }  

  /* CTA menu */
  .nav-cta-mobile-wrap { display: block; }

  /* ===== MENU PANEL ==== */
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 100px 8% 240px 8%;
    overflow-y: auto;
    counter-reset: menu-item;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s, visibility .3s, transform .3s;
    pointer-events: none;
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Menu items */
  .nav-links li:not(.nav-cta-mobile-wrap) {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links li:first-child {
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .nav-links li:not(.nav-cta-mobile-wrap) a {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 600;
    letter-spacing: -.5px;
    line-height: 1.1;
    padding: 20px 0;
    counter-increment: menu-item;
    transition: color .25s, padding-left .25s;
  }
  .nav-links li:not(.nav-cta-mobile-wrap) a::before {
    content: counter(menu-item, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    flex: 0 0 32px;
    transition: color .25s;
  }
  .nav-links li:not(.nav-cta-mobile-wrap) a::after {
    content: '→';
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: rgba(255,255,255,.2);
    margin-left: auto;
    transition: transform .25s, color .25s;
  }
  .nav-links li:not(.nav-cta-mobile-wrap) a:hover,
  .nav-links li:not(.nav-cta-mobile-wrap) a.active {
    color: var(--secondary);
    padding-left: 8px;
  }
  .nav-links li:not(.nav-cta-mobile-wrap) a:hover::before,
  .nav-links li:not(.nav-cta-mobile-wrap) a.active::before { color: var(--secondary); }
  .nav-links li:not(.nav-cta-mobile-wrap) a:hover::after,
  .nav-links li:not(.nav-cta-mobile-wrap) a.active::after {
    color: var(--secondary);
    transform: translateX(4px);
  }

  /* CTA mobile */
  .nav-cta-mobile-wrap {
    margin-top: 40px;
  }
  .nav-cta-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px 28px;
    background: var(--secondary);
    color: var(--ink) !important;
    border-radius: 100px;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    transition: all .3s;
  }
  .nav-cta-mobile::before,
  .nav-cta-mobile::after { display: none !important; }
  .nav-cta-mobile:hover {
    background: #ffb733;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245,158,11,.35);
    padding-left: 28px !important;
  }

  /* ===== CLOSE BUTTON ===== */
  .nav-close {
    display: flex;
    position: fixed;
    top: 16px;
    right: 5%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: rotate(-90deg);
    pointer-events: none;
    transition: opacity .3s, visibility .3s, transform .3s, background .3s;
  }
  .nav-close.active {
    opacity: 1;
    visibility: visible;
    transform: rotate(0);
    pointer-events: auto;
  }
  .nav-close:hover {
    background: rgba(255,255,255,.2);
    transform: rotate(90deg);
  }

  /* ===== CONTACT PANEL===== */
  .nav-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: fixed;
    bottom: 32px;
    left: 8%;
    right: 8%;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .3s, visibility .3s, transform .3s;
  }
  .nav-menu-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-menu-panel-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 4px;
  }
  .nav-menu-panel a {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color .25s;
  }
  .nav-menu-panel a:hover { color: var(--secondary); }
  .nav-menu-panel a i {
    color: var(--secondary);
    font-size: .9rem;
    width: 16px;
  }
}

/* ============ SECTIONS ============ */
section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.08;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--primary); }
.section-desc {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  font-size: .98rem;
}
.section-header { margin-bottom: 50px; max-width: 800px; }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s, transform .8s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 5% 30px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-brand-name em { font-style: italic; color: var(--primary); }
.footer-brand p {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text);
  font-size: .85rem;
  margin-bottom: 10px;
  transition: color .25s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-soft);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .3s;
  font-size: .82rem;
}
.footer-social a:hover {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  section { padding: 70px 5%; }
  .footer-top { grid-template-columns: 1fr; }
}