/*
Theme Name: Wandorld Journeys
Theme URI: https://staging.wandorld.com
Author: Wandorld
Description: A lightweight, inquiry-first WordPress theme for private China journeys.
Version: 0.1.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: wandorld
*/

:root {
  --wd-ink: #182522;
  --wd-green: #0d5c4a;
  --wd-green-2: #184f44;
  --wd-sage: #dfeae3;
  --wd-sand: #f5efe5;
  --wd-paper: #fffdf9;
  --wd-clay: #c76c45;
  --wd-gold: #c79a55;
  --wd-line: rgba(24, 37, 34, .14);
  --wd-muted: #64706d;
  --wd-radius: 22px;
  --wd-shadow: 0 18px 55px rgba(20, 48, 41, .12);
  --wd-wrap: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wd-ink);
  background: var(--wd-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wd-wrap { width: var(--wd-wrap); margin-inline: auto; }
.wd-skip-link { position: absolute; left: -9999px; }
.wd-skip-link:focus { left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; background: #fff; }

.wd-eyebrow {
  margin: 0 0 10px;
  color: var(--wd-clay);
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 2.05rem); }
p { margin-top: 0; }
.wd-lede { max-width: 680px; color: var(--wd-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.wd-section { padding: clamp(72px, 9vw, 126px) 0; }
.wd-section--sand { background: var(--wd-sand); }
.wd-section--green { color: #fff; background: var(--wd-green); }
.wd-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.wd-section-head h2 { max-width: 720px; margin-bottom: 0; }

.wd-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--wd-clay);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.wd-button:hover { transform: translateY(-2px); background: #ae5836; }
.wd-button--ghost { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.06); }
.wd-button--ghost:hover { background: rgba(255,255,255,.14); }
.wd-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--wd-green); font-weight: 750; }
.wd-text-link::after { content: "\2192"; transition: transform .2s ease; }
.wd-text-link:hover::after { transform: translateX(4px); }

/* Header */
.wd-site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--wd-line);
  background: rgba(255,253,249,.94);
  backdrop-filter: blur(14px);
}
.wd-site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .wd-site-header.is-sticky { top: 32px; }
.wd-nav { min-height: 82px; display: flex; align-items: center; gap: 34px; }
.wd-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.wd-brand__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50% 50% 48% 52%; color: #fff; background: var(--wd-green); font-family: Georgia, serif; font-size: 1.15rem; }
.wd-brand__text { font-family: Georgia, serif; font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; }
.wd-brand .custom-logo { max-height: 48px; width: auto; }
.wd-nav-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.wd-nav-menu a { font-size: .94rem; font-weight: 650; }
.wd-nav-menu a:hover, .wd-nav-menu .current-menu-item > a { color: var(--wd-clay); }
.wd-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--wd-sand); cursor: pointer; }
.wd-menu-toggle .wd-menu-line, .wd-menu-toggle::before, .wd-menu-toggle::after { content: ""; display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--wd-ink); }

/* Hero */
.wd-hero { min-height: min(780px, calc(100vh - 82px)); position: relative; display: grid; align-items: end; overflow: hidden; color: #fff; background: #17332d; }
.wd-hero__media { position: absolute; inset: 0; background-position: center; background-size: cover; transform: scale(1.02); }
.wd-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,25,.82) 0%, rgba(7,31,25,.42) 56%, rgba(7,31,25,.12) 100%), linear-gradient(0deg, rgba(7,25,21,.54), transparent 55%); }
.wd-hero__content { position: relative; z-index: 1; max-width: 800px; padding: clamp(90px, 14vw, 170px) 0 clamp(70px, 9vw, 110px); }
.wd-hero h1 { max-width: 780px; margin-bottom: 20px; }
.wd-hero__sub { max-width: 610px; margin-bottom: 32px; color: rgba(255,255,255,.88); font-size: clamp(1.08rem, 1.65vw, 1.35rem); }
.wd-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.wd-hero__note { position: absolute; right: max(20px, calc((100vw - 1180px) / 2)); bottom: 42px; z-index: 2; display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.88); font-size: .84rem; }
.wd-hero__note::before { content: ""; width: 42px; height: 1px; background: rgba(255,255,255,.55); }

.wd-trust { background: #fff; border-bottom: 1px solid var(--wd-line); }
.wd-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.wd-trust__item { padding: 24px 22px; border-right: 1px solid var(--wd-line); }
.wd-trust__item:first-child { padding-left: 0; }
.wd-trust__item:last-child { border-right: 0; }
.wd-trust__item strong { display: block; color: var(--wd-green); font-size: .98rem; }
.wd-trust__item span { color: var(--wd-muted); font-size: .83rem; }

/* Cards */
.wd-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wd-tour-card { position: relative; min-width: 0; min-height: 490px; overflow: hidden; border: 0; border-radius: var(--wd-radius); color: #fff; background: var(--wd-green); box-shadow: 0 8px 30px rgba(20,48,41,.10); transition: transform .25s ease, box-shadow .25s ease; }
.wd-tour-card:hover { transform: translateY(-5px); box-shadow: var(--wd-shadow); }
.wd-tour-card__image { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--wd-sage); }
.wd-tour-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,31,25,.92) 0%, rgba(7,31,25,.56) 42%, rgba(7,31,25,.05) 78%); }
.wd-tour-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wd-tour-card:hover img { transform: scale(1.035); }
.wd-tour-card__body { position: absolute; z-index: 2; inset: auto 0 0; padding: 28px; }
.wd-tour-card__meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 12px; color: #f2c89e; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.wd-tour-card h3 { margin-bottom: 10px; color: #fff; font-size: 1.72rem; }
.wd-tour-card p { margin-bottom: 18px; color: rgba(255,255,255,.78); font-size: .91rem; }
.wd-tour-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.28); }
.wd-tour-card .wd-price small { color: rgba(255,255,255,.62); }
.wd-tour-card .wd-price strong, .wd-tour-card .wd-text-link { color: #fff; }
.wd-price small { display: block; color: var(--wd-muted); font-size: .7rem; text-transform: uppercase; }
.wd-price strong { color: var(--wd-green); font-size: 1.08rem; }

.wd-destination-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: repeat(2, 250px); gap: 16px; }
.wd-destination { position: relative; min-height: 220px; overflow: hidden; border-radius: var(--wd-radius); color: #fff; background: var(--wd-green); }
.wd-destination:first-child { grid-row: 1 / 3; }
.wd-destination img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wd-destination::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,31,25,.78), rgba(7,31,25,.06) 65%); }
.wd-destination:hover img { transform: scale(1.04); }
.wd-destination__label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; }
.wd-destination__label h3 { margin-bottom: 2px; }
.wd-destination__label span { color: rgba(255,255,255,.78); font-size: .86rem; }

.wd-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 8vw, 110px); align-items: center; }
.wd-split__image { min-height: 600px; overflow: hidden; border-radius: 160px 22px 22px 22px; box-shadow: var(--wd-shadow); }
.wd-split__image img { width: 100%; height: 100%; object-fit: cover; }
.wd-steps { counter-reset: steps; margin: 34px 0 0; padding: 0; list-style: none; }
.wd-steps li { counter-increment: steps; position: relative; padding: 0 0 26px 58px; }
.wd-steps li::before { content: "0" counter(steps); position: absolute; left: 0; top: 0; color: var(--wd-clay); font-weight: 800; }
.wd-steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 32px; bottom: 7px; width: 1px; background: var(--wd-line); }
.wd-steps strong { display: block; margin-bottom: 4px; font-family: Georgia, serif; font-size: 1.25rem; }
.wd-steps span { color: var(--wd-muted); }

.wd-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.wd-value { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--wd-radius); background: rgba(255,255,255,.06); }
.wd-value__num { color: #e8c78f; font-family: Georgia, serif; font-size: 2.2rem; }
.wd-value p { margin-bottom: 0; color: rgba(255,255,255,.72); }

.wd-quote { max-width: 900px; margin: 0 auto; text-align: center; }
.wd-quote blockquote { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(1.7rem, 3.3vw, 3.2rem); line-height: 1.28; }
.wd-quote cite { color: var(--wd-muted); font-style: normal; }
.wd-final-cta { position: relative; overflow: hidden; padding: clamp(84px, 12vw, 150px) 0; color: #fff; background: var(--wd-green); }
.wd-final-cta::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 580px; height: 580px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.wd-final-cta__inner { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.wd-final-cta h2 { max-width: 760px; margin-bottom: 0; }

/* Archive and page */
.wd-page-hero { padding: clamp(84px, 10vw, 140px) 0 62px; background: var(--wd-sand); }
.wd-page-hero h1 { max-width: 920px; margin-bottom: 18px; font-size: clamp(2.8rem, 6vw, 5.7rem); }
.wd-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 42px; }
.wd-chip { padding: 8px 14px; border: 1px solid var(--wd-line); border-radius: 999px; color: var(--wd-green); background: #fff; font-size: .88rem; font-weight: 700; }
.wd-chip:hover { border-color: var(--wd-green); }
.wd-pagination { margin-top: 44px; }
.wd-pagination .nav-links { display: flex; gap: 8px; }
.wd-pagination a, .wd-pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--wd-line); border-radius: 50%; }
.wd-pagination .current { color: #fff; background: var(--wd-green); }
.wd-content { padding: 72px 0 110px; }
.wd-prose { max-width: 760px; font-size: 1.06rem; }
.wd-prose h2, .wd-prose h3 { margin-top: 2em; }
.wd-prose a { color: var(--wd-clay); text-decoration: underline; }

/* Tour detail */
.wd-tour-hero { padding: 54px 0 56px; background: var(--wd-sand); }
.wd-breadcrumb { margin-bottom: 30px; color: var(--wd-muted); font-size: .85rem; }
.wd-tour-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 50px; align-items: end; }
.wd-tour-hero h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 5.2vw, 5.2rem); }
.wd-tour-summary { color: var(--wd-muted); font-size: 1.1rem; }
.wd-tour-facts { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 26px; }
.wd-tour-facts div { min-width: 130px; }
.wd-tour-facts small { display: block; color: var(--wd-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.wd-tour-facts strong { font-size: 1rem; }
.wd-tour-cta { padding: 26px; border-radius: var(--wd-radius); background: #fff; box-shadow: var(--wd-shadow); }
.wd-tour-cta .wd-price strong { font-size: 1.8rem; }
.wd-tour-cta .wd-button { width: 100%; margin-top: 18px; }
.wd-tour-gallery { padding: 30px 0; }
.wd-tour-gallery img { width: 100%; max-height: 680px; object-fit: cover; border-radius: var(--wd-radius); }
.wd-tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 70px; align-items: start; }
.wd-tour-sidebar { position: sticky; top: 120px; padding: 24px; border: 1px solid var(--wd-line); border-radius: var(--wd-radius); }
.wd-tour-sidebar ul { margin: 0; padding-left: 20px; color: var(--wd-muted); }
.wd-itinerary { margin: 38px 0 0; }
.wd-day { padding: 26px 0; border-top: 1px solid var(--wd-line); }
.wd-day h3 { margin-bottom: 8px; }

/* Forms */
.wd-form-shell { display: grid; grid-template-columns: .72fr 1.28fr; overflow: hidden; border: 1px solid var(--wd-line); border-radius: 30px; background: #fff; box-shadow: var(--wd-shadow); }
.wd-form-intro { padding: clamp(34px, 5vw, 62px); color: #fff; background: var(--wd-green); }
.wd-form-intro h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.wd-form-intro p { color: rgba(255,255,255,.76); }
.wd-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: clamp(32px, 5vw, 62px); }
.wd-field { display: grid; gap: 7px; }
.wd-field--full { grid-column: 1 / -1; }
.wd-field label { font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.wd-field input, .wd-field select, .wd-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--wd-line); border-radius: 12px; color: var(--wd-ink); background: var(--wd-paper); }
.wd-field textarea { min-height: 130px; resize: vertical; }
.wd-field input:focus, .wd-field textarea:focus, .wd-field select:focus { outline: 2px solid rgba(13,92,74,.18); border-color: var(--wd-green); }
.wd-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--wd-muted); font-size: .84rem; }
.wd-consent input { width: auto; min-height: 0; margin-top: 5px; }
.wd-consent a { color: var(--wd-green); text-decoration: underline; }
.wd-honeypot { position: absolute; left: -9999px; }
.wd-alert { margin-bottom: 24px; padding: 14px 18px; border-radius: 12px; color: #17553f; background: #e4f4ea; }
.wd-alert--error { color: #8e2d21; background: #fae6e0; }

/* Footer */
.wd-site-footer { padding: 66px 0 26px; color: rgba(255,255,255,.82); background: #10251f; }
.wd-footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr 1fr; gap: 50px; }
.wd-footer-grid h3 { color: #fff; font-size: 1.15rem; }
.wd-footer-grid ul { margin: 0; padding: 0; list-style: none; }
.wd-footer-grid li { margin: 7px 0; }
.wd-footer-grid a:hover { color: #e8c78f; }
.wd-footer-brand { max-width: 300px; }
.wd-footer-brand .wd-brand { margin-bottom: 18px; }
.wd-footer-brand .wd-brand__text { color: #fff; }
.wd-footer-small { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; }

@media (max-width: 960px) {
  .wd-menu-toggle { display: block; }
  .wd-nav > .wd-button { display: none; }
  .wd-nav-menu { position: fixed; inset: 82px 0 auto; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 24px 20px 34px; background: var(--wd-paper); box-shadow: 0 20px 30px rgba(0,0,0,.12); }
  .wd-nav-menu.is-open { display: flex; }
  .wd-nav-menu li { border-bottom: 1px solid var(--wd-line); }
  .wd-nav-menu a { display: block; padding: 14px 0; }
  .wd-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .wd-trust__item:nth-child(2) { border-right: 0; }
  .wd-trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--wd-line); }
  .wd-destination-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 220px); }
  .wd-destination:first-child { grid-column: 1 / -1; grid-row: auto; }
  .wd-split, .wd-tour-hero__grid, .wd-tour-layout, .wd-form-shell { grid-template-columns: 1fr; }
  .wd-split__image { min-height: 430px; }
  .wd-tour-sidebar { position: static; }
  .wd-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --wd-wrap: min(100% - 28px, 1180px); }
  .admin-bar .wd-site-header.is-sticky { top: 46px; }
  .wd-nav { min-height: 72px; }
  .wd-nav-menu { top: 72px; }
  .wd-brand__text { font-size: 1.35rem; }
  .wd-brand__mark { width: 32px; height: 32px; }
  .wd-hero { min-height: 690px; }
  .wd-hero__note { display: none; }
  .wd-trust__item { padding: 18px 10px; }
  .wd-trust__item:nth-child(odd) { padding-left: 0; }
  .wd-card-grid, .wd-values, .wd-footer-grid, .wd-form { grid-template-columns: 1fr; }
  .wd-tour-card { min-height: 460px; }
  .wd-destination-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .wd-destination:first-child { grid-column: auto; }
  .wd-section-head, .wd-final-cta__inner, .wd-footer-small { align-items: start; flex-direction: column; }
  .wd-split__image { min-height: 360px; border-radius: 90px 18px 18px 18px; }
  .wd-field--full { grid-column: auto; }
}

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