/* ===== Tokens ===== */
:root {
  --terracotta: #b5432a;
  --terracotta-dark: #8f3220;
  --saffron: #e3a23b;
  --majorelle: #2f4fa8;
  --teal: #1f6b66;
  --sand: #f6ecd9;
  --sand-2: #efe1c6;
  --ink: #2a1a14;
  --ink-2: #5c4a40;
  --night: #1e1420;
  --white: #fffaf2;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(42, 26, 20, .28);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 4l5.8 14.2L44 24l-14.2 5.8L24 44l-5.8-14.2L4 24l14.2-5.8z' fill='none' stroke='%23fff' stroke-opacity='.18' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* Chinese pages: keep the Latin fonts for Latin text, fall back to good CJK system fonts */
html:lang(zh) {
  --serif: "Fraunces", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .8em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--terracotta);
  background: var(--terracotta); color: var(--white); font-weight: 600; text-decoration: none;
  font-size: .95rem; cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
  font-family: var(--sans);
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,250,242,.7); }
.btn-ghost:hover { background: rgba(255,250,242,.14); border-color: var(--white); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--terracotta); text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s;
  color: var(--white);
}
.site-header.is-scrolled { background: rgba(255,250,242,.96); color: var(--ink); box-shadow: 0 2px 20px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6em; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; }
.logo strong { font-weight: 700; }
.logo-mark { width: 36px; height: 36px; }
.logo-mark rect { fill: var(--terracotta); }
.logo-mark path { fill: none; stroke: var(--sand); stroke-width: 3.5; stroke-linejoin: round; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.8rem; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.main-nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.main-nav li.lang-switch { display: flex; gap: 2px; }
.main-nav li.lang-switch a:not(.btn) { padding: .3em .5em; border-radius: 6px; font-size: .8rem; font-weight: 600; opacity: .7; text-decoration: none; }
.main-nav li.lang-switch a:not(.btn):hover { opacity: 1; background: rgba(255,250,242,.14); }
.main-nav li.lang-switch a[aria-current] { opacity: 1; background: rgba(255,250,242,.18); }
.site-header.is-scrolled .main-nav li.lang-switch a[aria-current],
.site-header.is-scrolled .main-nav li.lang-switch a:not(.btn):hover { background: var(--sand-2); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; background: var(--night);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30,20,32,.55) 0%, transparent 25%),
    linear-gradient(90deg, rgba(30,20,32,.82) 0%, rgba(30,20,32,.5) 50%, rgba(30,20,32,.1) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 120px 0 80px; max-width: 1180px; }
.hero-content > * { max-width: 660px; }
.hero .eyebrow { color: var(--saffron); }
.hero .lead { font-size: 1.2rem; opacity: .92; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 3rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; font-size: .92rem; opacity: .92; }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--saffron); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--night) var(--zellige); color: var(--sand); }
.section-dark .eyebrow { color: var(--saffron); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head p:last-child { color: var(--ink-2); }
.section-dark .section-head p:last-child { color: inherit; }

/* ===== Tours ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.chip {
  border: 1.5px solid var(--sand-2); background: var(--white); color: var(--ink); padding: .5em 1.1em;
  border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--terracotta); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.tour-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(42,26,20,.35); }
.tour-card.is-hidden { display: none; }
.tour-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.tour-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tour-card:hover .tour-art img { transform: scale(1.05); }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--white); color: var(--terracotta);
  font-size: .75rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; letter-spacing: .03em;
}


.tour-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tour-body p { color: var(--ink-2); font-size: .96rem; }
.tour-meta { font-size: .8rem !important; font-weight: 600; letter-spacing: .03em; color: var(--teal) !important; margin-bottom: .5em; }
.tour-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--sand-2); }
.price { font-size: .88rem; color: var(--ink-2); }
.price strong { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }

/* Day-by-day itinerary inside a tour card */
.itinerary { margin: 0 0 1em; border-top: 1px solid var(--sand-2); }
.itinerary summary {
  cursor: pointer; list-style: none; padding: 12px 0 4px; font-weight: 600; font-size: .92rem; color: var(--terracotta);
}
.itinerary summary::-webkit-details-marker { display: none; }
.itinerary summary::after { content: " +"; }
.itinerary[open] summary::after { content: " −"; }
.itinerary ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.itinerary li { border-left: 3px solid var(--saffron); padding-left: 14px; }
.itinerary h4 { font-family: var(--sans); font-size: .9rem; font-weight: 600; margin: 0 0 .4em; color: var(--ink); line-height: 1.4; }
.itinerary li p { font-size: .9rem; margin: 0 0 .6em; }
.itinerary li p:last-child { margin-bottom: 0; }
.itinerary .inc { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin-top: 16px; padding: 14px 16px; background: var(--sand); border-radius: 10px; }
.itinerary .inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.itinerary .inc li { border: 0; padding: 0 0 0 20px; position: relative; font-size: .88rem; color: var(--ink-2); }
.itinerary .inc li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.itinerary .inc .no li::before { content: "✕"; color: #c0392b; }

.tour-card-custom { background: var(--terracotta) var(--zellige); color: var(--white); justify-content: center; }
.tour-card-custom .eyebrow { color: var(--saffron); }
.tour-card-custom p { color: rgba(255,250,242,.88); }
.tour-card-custom .btn { background: var(--white); color: var(--terracotta); border-color: var(--white); align-self: flex-start; margin-top: auto; }
.tour-card-custom .btn:hover { background: var(--sand); }

/* ===== Destinations ===== */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .dest-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .dest figcaption { padding: 40px 12px 12px; } .dest h3 { font-size: 1.1rem; } .dest p { display: none; } }
.dest {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--sand-2); color: var(--white); box-shadow: var(--shadow);
}
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dest:hover img { transform: scale(1.06); }
.dest figcaption {
  position: absolute; inset: auto 0 0; padding: 60px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(30,20,32,.85));
}
.dest h3 { margin-bottom: .2em; font-size: 1.4rem; }
.dest p { margin: 0; font-size: .9rem; opacity: .9; }

/* ===== Why ===== */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.why-intro p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1.6rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.why-list li { display: flex; gap: 18px; }
.why-list h3 { margin-bottom: .25em; font-size: 1.2rem; }
.why-list p { margin: 0; color: var(--ink-2); }
.icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--sand); display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--terracotta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: rgba(255,250,242,.06); border: 1px solid rgba(255,250,242,.14); border-radius: var(--radius); padding: 28px; }
.steps span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: var(--night);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem;
}
.steps p { margin: 0; opacity: .82; }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--sand-2); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--terracotta); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 12px; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info > p { color: var(--ink-2); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list strong { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.contact-list a, .contact-list span { font-size: 1.1rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--sans); color: var(--ink); padding: .75em .9em; border: 1.5px solid var(--sand-2); border-radius: 10px; background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(181,67,42,.15); }
.contact-form .is-invalid { border-color: #c0392b; }
.form-note { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-note.ok { color: var(--teal); }
.form-note.err { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: var(--night); color: rgba(246,236,217,.8); padding: 64px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--sand); font-size: 1rem; margin-bottom: 1em; }
.site-footer nav a, .site-footer div > a:not(.logo) { display: block; text-decoration: none; margin-bottom: .5em; }
.site-footer a:hover { color: var(--saffron); }
.logo-light { color: var(--sand); margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(246,236,217,.12); margin-top: 40px; padding-top: 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .why, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav ul {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); color: var(--ink);
    padding: 8px 16px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.1); transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .main-nav ul.is-open { transform: none; }
  .main-nav li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--sand-2); }
  .main-nav li .btn { display: block; text-align: center; margin-top: 14px; }
  .main-nav li.lang-switch { padding: 10px 0; border-bottom: 1px solid var(--sand-2); gap: 6px; }
  .main-nav li.lang-switch a:not(.btn) { display: inline-block; padding: 8px 12px; border-bottom: 0; font-size: .9rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .field-row { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(30,20,32,.55), rgba(30,20,32,.35)); }
}
