/* ==========================================================================
   Atlas & Dune — shared stylesheet
   Design tokens
   ========================================================================== */
:root {
  --night:    #14171F;   /* dusk sky, primary dark */
  --night-2:  #1D2230;   /* lifted panel on dark */
  --sand:     #EDE6D6;   /* paper / page background */
  --sand-2:   #E2D9C4;   /* card background on light */
  --clay:     #BD5B2A;   /* route-marker accent — desert */
  --oasis:    #33544D;   /* deep teal accent — mountain/oasis */
  --stone:    #6B6459;   /* muted secondary text */
  --ink:      #201C16;   /* primary text on light */
  --paper:    #FBF9F4;   /* off-white text on dark */

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

p { margin: 0 0 1em; color: var(--stone); }
p:last-child { margin-bottom: 0; }

/* ---------------- Header / nav ---------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 230, 214, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(32, 28, 22, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mark { color: var(--clay); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
}
.nav-links a.active { color: var(--clay); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand);
    border-bottom: 1px solid rgba(32,28,22,.1);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid rgba(32,28,22,.06); }
  .nav-toggle { display: block; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: var(--paper); }
.btn-primary:hover { background: #a54f22; }
.btn-ghost { border-color: rgba(251,249,244,0.4); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------------- Hero (dark, contour motif) ---------------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 128px 32px 96px;
}
.hero .eyebrow { color: #E39A6D; }
.hero h1 {
  color: var(--paper);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  margin: 18px 0 22px;
  max-width: 14ch;
}
.hero .lede {
  color: rgba(251,249,244,0.72);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.contour-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
}
.contour-field svg { width: 100%; height: 100%; }
.contour-field path { animation: driftline 26s ease-in-out infinite; }
.contour-field path:nth-child(odd) { animation-direction: reverse; }
@keyframes driftline {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2.5%); }
}

/* thin divider strip using the same contour language */
.divider-lines { line-height: 0; }
.divider-lines svg { width: 100%; height: 46px; display: block; }

/* ---------------- Stat / trail-data strip ---------------- */
.stats {
  background: var(--night-2);
  color: var(--paper);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(251,249,244,0.08);
}
.stat {
  background: var(--night-2);
  padding: 34px 28px;
  text-align: left;
}
.stat .n {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--clay);
  display: block;
}
.stat .label {
  font-size: 12px;
  color: rgba(251,249,244,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Sections ---------------- */
section { padding: 96px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head .desc { max-width: 42ch; }

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

.card {
  background: var(--paper);
  border: 1px solid rgba(32,28,22,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--clay); transform: translateY(-3px); }
.card .thumb { background: var(--sand-2); line-height: 0; }
.card .thumb svg { width: 100%; height: 150px; }
.card .thumb img { width: 100%; height: 170px; object-fit: cover; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* review snippet under a card */
.review {
  padding-top: 12px;
  border-top: 1px dashed rgba(32,28,22,0.15);
}
.review .stars {
  color: var(--clay);
  font-size: 13px;
  letter-spacing: 2px;
}
.review .quote {
  font-size: 13px;
  font-style: italic;
  color: var(--ink);
  margin: 6px 0 4px;
}
.review .author {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oasis);
}
.card h3 { font-size: 21px; }
.card .price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
}
.card .price strong { font-size: 16px; }
.card .meta {
  margin-top: auto;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  padding-top: 12px;
  border-top: 1px dashed rgba(32,28,22,0.15);
}

/* ---------------- Itinerary (legit numbered sequence) ---------------- */
.itinerary { display: flex; flex-direction: column; }
.day {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(32,28,22,0.12);
}
.day:last-child { border-bottom: 1px solid rgba(32,28,22,0.12); }
.day .num { font-family: var(--font-mono); color: var(--clay); font-size: 15px; }
.day h4 { font-size: 17px; margin-bottom: 6px; }

/* ---------------- Blog / journal ---------------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border: 1px solid rgba(32,28,22,0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--clay); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: var(--paper);
  border: 1px solid rgba(32,28,22,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 64px;
}
.featured-post .thumb { background: var(--night); line-height: 0; }
.featured-post .thumb svg { width: 100%; height: 100%; min-height: 320px; }
.featured-post .body { padding: 40px 40px 40px 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (max-width: 860px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .body { padding: 8px 28px 32px; }
  .featured-post .thumb svg { min-height: 220px; }
}

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

.post-card { display: none; }
.post-card.visible { display: flex; }

.read-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty-state {
  display: none;
  padding: 60px 0;
  text-align: center;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 13px;
}
.empty-state.visible { display: block; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--oasis);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 { color: var(--paper); font-size: clamp(26px, 4vw, 40px); margin-bottom: 16px; }
.cta-band p { color: rgba(251,249,244,0.78); max-width: 46ch; margin: 0 auto 30px; }

/* ---------------- Why choose us ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-item svg { width: 34px; height: 34px; color: var(--clay); margin-bottom: 16px; }
.why-item h4 { font-size: 16px; margin-bottom: 8px; }
.why-item p { font-size: 14px; }

/* ---------------- Contact / booking form ---------------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }

.form-aside h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.form-aside ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.form-aside li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--stone); }
.form-aside li svg { width: 20px; height: 20px; color: var(--clay); flex-shrink: 0; margin-top: 2px; }

.booking-form {
  background: var(--paper);
  border: 1px solid rgba(32,28,22,0.1);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stone);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid rgba(32,28,22,0.18);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
  border-color: var(--clay);
}

.form-note { font-size: 12px; color: var(--stone); margin-top: 4px; }

.form-confirm {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(51,84,77,0.1);
  border: 1px solid var(--oasis);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--oasis);
}
.form-confirm.visible { display: flex; }

/* ---------------- Footer ---------------- */
footer.site {
  background: var(--night);
  color: rgba(251,249,244,0.6);
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.footer-grid a { display: block; padding: 5px 0; color: rgba(251,249,244,0.62); }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(251,249,244,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
