/* ==========================================================================
   Lualaba Expeditions — Design System
   Palette: Copper / Malachite / Terracotta / Charcoal / Sand
   Type: Fraunces (display) + Source Sans 3 (body) + Noto Sans SC (zh)
   ========================================================================== */

:root {
  --copper: #B4642D;
  --copper-dark: #8F4E22;
  --copper-light: #E3A876;
  --malachite: #12805C;
  --malachite-dark: #0E5C43;
  --malachite-light: #D9EDE4;
  --terracotta: #C8563B;
  --charcoal: #26221F;
  --charcoal-soft: #4A433D;
  --sand: #F6F1E7;
  --sand-dark: #EBE2D0;
  --white: #FFFFFF;
  --line: rgba(38, 34, 31, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font-body);

  --container: 1180px;
  --radius: 6px;
  --shadow: 0 12px 32px rgba(38, 34, 31, 0.14);
}

html[lang="zh"] body { font-family: var(--font-zh); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--copper-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--malachite);
  outline-offset: 2px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 0.5em;
}
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4 {
  font-family: var(--font-zh);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--charcoal-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  font-weight: 700;
  margin-bottom: 0.6em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
html[lang="zh"] .btn { font-family: var(--font-zh); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-dark); color: var(--white); }
.btn-secondary { background: var(--malachite); color: var(--white); }
.btn-secondary:hover { background: var(--malachite-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }
.btn-whatsapp { background: #25D366; color: #06280F; }
.btn-whatsapp:hover { background: #1FBE5A; color: #06280F; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------------- Header ---------------- */
.topbar {
  background: var(--charcoal);
  color: var(--sand);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--sand); text-decoration: none; }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-contact a:hover { color: var(--copper-light); }
.lang-switch { display: flex; gap: 10px; }
.lang-switch a {
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.65;
}
.lang-switch a.active, .lang-switch a:hover { opacity: 1; background: rgba(255,255,255,0.12); }

.site-header {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--charcoal);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.brand-icon { grid-row: 1 / 3; width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; }
html[lang="zh"] .brand { font-family: var(--font-zh); }
.brand small { font-family: var(--font-body); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-dark); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.96rem;
}
.main-nav a:hover { color: var(--copper-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open ul { display: flex; }
  .main-nav ul li { border-top: 1px solid var(--line); }
  .main-nav ul li a { display: block; padding: 14px 0; }
  .main-nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(180deg, rgba(38,34,31,0.15) 0%, rgba(38,34,31,0.75) 100%), var(--charcoal);
  background-size: cover;
  background-position: center;
}
.hero-inner { padding-bottom: 80px; max-width: 760px; }
.hero .eyebrow { color: var(--copper-light); }
.hero h1 { color: var(--white); }
.hero p.lede { color: rgba(255,255,255,0.88); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

.page-hero {
  min-height: 46vh;
  background: linear-gradient(180deg, rgba(38,34,31,0.25) 0%, rgba(38,34,31,0.8) 100%), var(--charcoal);
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.page-hero .container { padding-bottom: 48px; }
.page-hero h1 { color: var(--white); margin-bottom: 0.2em; }
.breadcrumb { font-size: 0.85rem; opacity: 0.85; }
.breadcrumb a { color: var(--white); }

/* ---------------- Sections ---------------- */
section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--sand-dark); }
.section-dark { background: var(--charcoal); color: var(--sand); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-malachite { background: var(--malachite-dark); color: var(--white); }
.section-malachite h2, .section-malachite h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 3em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Trust bar ---------------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.trust-bar li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--charcoal-soft); }
.trust-bar li::before { content: "✓"; color: var(--malachite); font-weight: 900; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(38,34,31,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4/3; background: var(--sand-dark); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; gap: 12px; font-size: 0.82rem; color: var(--charcoal-soft); flex-wrap: wrap; }
.card-price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.card-price .from { font-size: 0.78rem; color: var(--charcoal-soft); display: block; }
.card-price .amount { font-family: var(--font-display); font-size: 1.4rem; color: var(--copper-dark); font-weight: 700; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--malachite-light);
  color: var(--malachite-dark);
  width: fit-content;
}
.tag.copper { background: #F3E1D2; color: var(--copper-dark); }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2em; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 20px; border-left: 3px solid var(--copper); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(38,34,31,0.08);
}
.testimonial .stars { color: var(--copper); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .who { margin-top: 14px; font-weight: 700; font-size: 0.9rem; }
.testimonial .who span { display: block; font-weight: 400; color: var(--charcoal-soft); font-size: 0.82rem; }

/* Instagram-style grid */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 880px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
.insta-tile { aspect-ratio: 1; background: var(--sand-dark); overflow: hidden; position: relative; }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.insta-tile:hover img { transform: scale(1.06); }

/* Newsletter */
.newsletter-box {
  background: var(--copper);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 780px) { .newsletter-box { grid-template-columns: 1fr; } }
.newsletter-box h2 { color: var(--white); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row input[type="email"], .form-row input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 0.85em 1em;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  padding: 0.75em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--charcoal);
}
html[lang="zh"] .field input, html[lang="zh"] .field select, html[lang="zh"] .field textarea { font-family: var(--font-zh); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); }
.form-note { font-size: 0.85rem; color: var(--charcoal-soft); }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--malachite-light); color: var(--malachite-dark); }
.form-status.err { background: #FBE3DC; color: #8A2E1A; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
html[lang="zh"] .faq-item summary { font-family: var(--font-zh); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--copper); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--charcoal-soft); }

/* Itinerary */
.itinerary-day { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.itinerary-day .daynum { font-family: var(--font-display); font-size: 1.6rem; color: var(--copper); font-weight: 700; }
html[lang="zh"] .itinerary-day .daynum { font-family: var(--font-zh); }
.inc-exc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .inc-exc { grid-template-columns: 1fr; } }
.inc-exc ul { list-style: none; padding: 0; margin: 0; }
.inc-exc li { padding: 6px 0 6px 1.6em; position: relative; }
.inc-list li::before { content: "✓"; position: absolute; left: 0; color: var(--malachite); font-weight: 900; }
.exc-list li::before { content: "✕"; position: absolute; left: 0; color: var(--terracotta); font-weight: 900; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--white); font-weight: 700; display: block; }
html[lang="zh"] .stat .num { font-family: var(--font-zh); }
.stat .label { font-size: 0.9rem; opacity: 0.85; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--sand-dark); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* Blog */
.blog-card .card-body { gap: 10px; }
.blog-meta { font-size: 0.8rem; color: var(--charcoal-soft); }
article.post { max-width: 760px; margin: 0 auto; }
article.post h2 { margin-top: 1.4em; }
article.post blockquote {
  border-left: 3px solid var(--copper);
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.4em;
  font-style: italic;
  color: var(--charcoal-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* Table (plan your trip) */
.info-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.info-table th, .info-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.info-table th { background: var(--sand-dark); font-family: var(--font-display); }
html[lang="zh"] .info-table th { font-family: var(--font-zh); }

/* Social buttons */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--sand);
  text-decoration: none;
  transition: background 0.15s ease;
}
.social-btn:hover { background: var(--copper); color: var(--white); }
.social-btn svg { width: 19px; height: 19px; fill: currentColor; }
.site-header .social-btn, .trust-bar .social-btn {}

/* Footer */
.site-footer { background: var(--charcoal); color: var(--sand); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6em; }
.footer-grid a { color: rgba(246,241,231,0.8); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--copper-light); }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 0.4em; }
html[lang="zh"] .footer-brand { font-family: var(--font-zh); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(246,241,231,0.6); }
.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge-pill { border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 4px 12px; font-size: 0.76rem; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  text-decoration: none;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Filters (tour catalog) */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.4em; }
.filter-btn {
  padding: 0.5em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
html[lang="zh"] .filter-btn { font-family: var(--font-zh); }
.filter-btn.active, .filter-btn:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.verify-box {
  background: #FBEFE9;
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 1.4em 0;
  font-size: 0.95rem;
}
.verify-box strong { color: #8A2E1A; }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--copper); color: #fff; padding: 10px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.lazy-img { background: var(--sand-dark) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"></svg>'); }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero-inner { padding-bottom: 48px; }
  .hero { min-height: 78vh; }
}
