/*
Theme Name: Javajivi Signature
Theme URI: https://javajivi.com
Author: Javajivi Backpacker
Author URI: https://javajivi.com
Description: A lightweight, premium one-page WordPress theme for Javajivi Backpacker.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: javajivi-signature
*/

:root {
  --ink: #14231f;
  --forest: #163a32;
  --forest-deep: #0c2621;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --terracotta: #cf6240;
  --gold: #d7ad61;
  --muted: #66716d;
  --line: rgba(20, 35, 31, .14);
  --radius: 24px;
  --shadow: 0 22px 60px rgba(12, 38, 33, .14);
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: 104px 0; }
.section--cream { background: var(--cream); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--terracotta);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 850px; margin-bottom: 24px; font-size: clamp(3.2rem, 8vw, 6.8rem); }
h2 { margin-bottom: 22px; font-size: clamp(2.25rem, 5vw, 4.3rem); }
h3 { margin-bottom: 12px; font-size: 1.35rem; }
p { margin-top: 0; }
.lead { max-width: 690px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: .93rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #b94f31; }
.button--ghost { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.button--ghost:hover { background: rgba(255,255,255,.16); }

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
body:not(.home) .site-header { position: relative; background: var(--forest-deep); }
.nav-shell { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1; }
.brand__main { font-family: Georgia, serif; font-size: 1.6rem; letter-spacing: .03em; }
.brand__sub { margin-top: 7px; font-size: .64rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; opacity: .78; }
.nav-links { display: flex; align-items: center; gap: 31px; }
.nav-links a { color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.nav-links > a:not(.button) { opacity: .82; }
.nav-links > a:not(.button):hover { opacity: 1; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 800; }

.hero {
  position: relative;
  display: grid;
  min-height: 860px;
  align-items: end;
  overflow: hidden;
  padding: 190px 0 92px;
  background-color: var(--forest-deep);
  background-position: center 7%;
  background-repeat: no-repeat;
  background-size: 145% auto;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 29, 25, .9) 0%, rgba(8, 29, 25, .58) 50%, rgba(8, 29, 25, .22) 100%), linear-gradient(0deg, rgba(8,29,25,.64), transparent 50%);
}
.hero__content { position: relative; z-index: 1; }
.hero .eyebrow { color: #f3c87d; }
.hero__copy { max-width: 690px; margin-bottom: 34px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trip-search {
  display: flex;
  max-width: 760px;
  margin-top: 28px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.trip-search input { flex: 1; min-width: 0; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.trip-search .button { border-radius: 13px; }
.hero__note { position: absolute; right: 4%; bottom: 70px; z-index: 2; max-width: 250px; padding: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(10,35,29,.55); backdrop-filter: blur(10px); }
.hero__note strong { display: block; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.hero__note span { display: block; margin-top: 5px; font-size: .78rem; line-height: 1.45; opacity: .72; }

.trust { position: relative; z-index: 3; margin-top: -1px; background: var(--forest); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.14); }
.trust__item:first-child { padding-left: 0; }
.trust__item:last-child { border-right: 0; }
.trust__item strong { display: block; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.trust__item span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .66; }

.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 9vw, 130px); align-items: start; }
.intro-copy { padding-top: 15px; }
.intro-copy p { color: var(--muted); }
.signature { margin-top: 32px; font-family: Georgia, serif; font-size: 1.5rem; font-style: italic; color: var(--forest); }

.audience-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.audience-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.audience-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 45px rgba(12,38,33,.09); }
.audience-card__number { color: var(--terracotta); font-family: Georgia, serif; font-size: 1.35rem; }
.audience-card h3 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.audience-card p { margin-bottom: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.audience-card__action { margin-top: 18px; color: var(--forest); font-size: .78rem; font-weight: 800; text-transform: uppercase; }

.destination-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.destination {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--forest);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto 175%;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease;
}
.destination:hover { transform: translateY(-4px); }
.destination::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,29,25,.88), transparent 65%); }
.destination strong { position: absolute; z-index: 1; bottom: 20px; left: 20px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { max-width: 700px; margin-bottom: 0; }
.journeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.journey.is-hidden { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: -12px 0 30px; }
.filter-button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.filter-button.is-active, .filter-button:hover { border-color: var(--forest); background: var(--forest); color: #fff; }
.search-empty { display: none; padding: 28px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.search-empty.is-visible { display: block; }
.journey { position: relative; min-height: 510px; overflow: hidden; border-radius: var(--radius); background-color: #17352f; background-position: center top; background-repeat: no-repeat; background-size: auto 180%; color: #fff; cursor: pointer; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease; }
.journey:hover { transform: translateY(-5px); }
.journey::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,25,21,.92), rgba(8,25,21,.04) 70%); }
.journey__body { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 30px; }
.journey__meta { display: block; margin-bottom: 11px; color: #f0c77f; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.journey h3 { margin-bottom: 9px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.journey p { margin-bottom: 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.journey__link { display: inline-block; margin-top: 16px; font-size: .78rem; font-weight: 800; text-transform: uppercase; }

.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(45px, 9vw, 120px); align-items: center; }
.feature-list { display: grid; gap: 15px; }
.feature { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.65); }
.feature strong { display: block; margin-bottom: 5px; }
.feature span { color: var(--muted); font-size: .92rem; }

.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.solution { padding: clamp(32px, 5vw, 54px); border-radius: var(--radius); background: var(--forest); color: #fff; }
.solution:nth-child(2) { background: var(--terracotta); }
.solution__label { display: inline-block; margin-bottom: 32px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.solution h3 { max-width: 430px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
.solution p { max-width: 500px; color: rgba(255,255,255,.72); }
.solution .button { margin-top: 18px; background: #fff; color: var(--forest); }

.proof-section { background: var(--paper); }
.proof-intro { max-width: 390px; margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.platform-card { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.platform-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 36px rgba(12,38,33,.08); }
.platform-card__mark { display: inline-flex; width: 48px; height: 48px; flex: 0 0 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cream); color: var(--terracotta); font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; }
.platform-card__name, .platform-card small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.platform-card strong { display: block; margin: 3px 0; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.platform-card small { letter-spacing: 0; text-transform: none; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { display: flex; min-height: 310px; flex-direction: column; justify-content: space-between; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.review-card__stars { color: #b97816; letter-spacing: .12em; }
.review-card__quote { margin: 30px 0; font-family: Georgia, serif; font-size: 1.32rem; line-height: 1.45; }
.review-card a { font-size: .78rem; font-weight: 800; text-decoration: none; }
.review-card--accent { background: var(--forest); color: #fff; }
.review-card--accent h3 { margin: 28px 0 14px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.review-card--accent p { color: rgba(255,255,255,.72); }
.review-card__label { color: var(--terracotta); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.review-card--accent .review-card__label { color: #f0c77f; }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.guide-card span { color: var(--terracotta); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-card h3 { margin-top: 22px; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.guide-card p { color: var(--muted); font-size: .9rem; }
.guide-card a { font-size: .8rem; font-weight: 800; text-decoration: none; }

.cta-card { position: relative; overflow: hidden; padding: clamp(46px, 8vw, 94px); border-radius: 32px; background: var(--forest-deep); color: #fff; }
.cta-card::after { content: "JAVA"; position: absolute; right: -30px; bottom: -90px; color: rgba(255,255,255,.045); font-family: Georgia, serif; font-size: clamp(9rem, 25vw, 20rem); line-height: 1; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { max-width: 760px; }
.cta-card p { max-width: 660px; color: rgba(255,255,255,.72); }
.cta-card .button { margin-top: 12px; }

.site-footer { padding: 64px 0 30px; background: #081d19; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 50px; padding-bottom: 52px; }
.footer-brand p { max-width: 360px; margin-top: 20px; color: rgba(255,255,255,.56); font-size: .9rem; }
.footer-brand .legal-name { margin-top: 10px; color: rgba(255,255,255,.75); font-size: .78rem; }
.footer-title { margin-bottom: 16px; color: #f0c77f; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-links span { color: rgba(255,255,255,.72); font-size: .9rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .76rem; }
.footer-bottom a { color: inherit; text-decoration: none; }
.whatsapp-float { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.24); text-decoration: none; font-size: 1.55rem; }
.whatsapp-float span { font-size: .72rem; font-weight: 900; letter-spacing: .03em; }

.page-shell { width: var(--wrap); min-height: 60vh; margin: 130px auto 80px; }
.page-shell h1 { color: var(--forest); font-size: clamp(2.8rem, 6vw, 5rem); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (max-width: 900px) {
  .section { padding: 78px 0; }
  .menu-toggle { display: inline-block; }
  .nav-links { position: fixed; inset: 0 0 0 25%; display: none; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; background: #0a2620; }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.25rem; }
  .hero { min-height: 760px; }
  .hero__note { display: none; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .intro-grid, .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .journeys { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .destination-grid { grid-template-columns: repeat(3, 1fr); }
  .guides { grid-template-columns: 1fr; }
  .platform-grid, .review-grid { grid-template-columns: 1fr; }
  .journey { min-height: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  body { font-size: 16px; }
  .nav-shell { min-height: 74px; }
  .brand__main { font-size: 1.35rem; }
  .hero { min-height: 720px; padding: 145px 0 68px; }
  .hero { background-position: center top; background-size: auto 165%; }
  .hero__actions .button { width: 100%; }
  .trip-search { display: grid; }
  .trip-search input { min-height: 48px; }
  .audience-grid, .destination-grid, .solutions { grid-template-columns: 1fr; }
  .audience-card { min-height: 190px; }
  .destination { min-height: 240px; }
  .trust__item { padding: 22px 12px; }
  .trust__item:first-child { padding-left: 12px; }
  .trust__item strong { font-size: 1.3rem; }
  .section-head { display: block; }
  .section-head .button { margin-top: 20px; }
  .journey { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
}
