/* =============================================================
   Hello Traveler — Stylesheet
   Version: 1.0
   ============================================================= */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Design Tokens ── */
:root {
  --ink:       #1a1714;
  --paper:     #f7f3ec;
  --sand:      #e8dcc8;
  --rust:      #c05a2b;
  --teal:      #2a7a72;
  --mist:      #9ba8a6;
  --white:     #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h:    64px;
  --max-w:    1160px;
  --gap:      clamp(1.5rem, 4vw, 3rem);

  --radius-sm: 4px;
  --radius:    10px;

  --ease:      cubic-bezier(.4,0,.2,1);
  --duration:  300ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  background: rgba(247,243,236,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  z-index: 100;
  transition: box-shadow var(--duration) var(--ease);
}
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(26,23,20,.08); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink);
}
.nav-logo span { color: var(--rust); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--rust);
  transition: width var(--duration) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--rust); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform var(--duration) var(--ease), opacity var(--duration);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Offset ── */
.page-body { padding-top: var(--nav-h); }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gap);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--sand) 0%, var(--paper) 55%, #dce8e6 100%);
  z-index: 0;
}
.hero-compass {
  position: absolute;
  right: -80px; bottom: -80px;
  width: 420px; height: 420px;
  opacity: .07;
  z-index: 0;
  animation: slow-spin 60s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: #5a5550;
  max-width: 520px;
  margin: 0 auto 2.4rem;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--rust);
  color: var(--white);
  border: 2px solid var(--rust);
}
.btn-primary:hover { background: #a8491e; border-color: #a8491e; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ── Section Helpers ── */
.section { padding: clamp(4rem, 8vw, 7rem) var(--gap); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-sub {
  font-size: 1rem;
  color: #6b6360;
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,23,20,.1);
}
.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: var(--sand);
}
.card-img-placeholder {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sand) 0%, #d4c9b3 100%);
  font-size: 3rem;
}
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-tag {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .5rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: .5rem;
  color: var(--ink);
}
.card-desc {
  font-size: .875rem;
  color: #6b6360;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 0;
}

/* ── Page Header (inner pages) ── */
.page-header {
  padding: clamp(3rem, 7vw, 5rem) var(--gap) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--sand) 0%, var(--paper) 70%);
  text-align: center;
  border-bottom: 1px solid var(--sand);
}
.page-header .section-label { margin-bottom: .5rem; }
.page-header .section-title { margin-bottom: .75rem; }

/* ── Two Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── Stat Row ── */
.stat-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { flex: 1; min-width: 120px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--rust);
}
.stat-label {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: .25rem;
}

/* ── Feature List ── */
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.feature-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: .25rem;
}
.feature-item p {
  font-size: .875rem;
  color: #6b6360;
  font-weight: 300;
}

/* ── Quote / Testimonial ── */
.quote-block {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) var(--gap);
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  max-width: 760px;
  margin: 0 auto 1.5rem;
}
.quote-attribution {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ── Map Placeholder ── */
.map-placeholder {
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #d4c9b3 0%, #c2b89e 100%);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #8a7d6b;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--sand);
}

/* ── Form ── */
.contact-form { max-width: 600px; display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
label { display: flex; flex-direction: column; gap: .4rem; font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
input, textarea, select {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 300;
  padding: .7rem 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--teal);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  z-index: 200;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gap);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--paper);
}
.footer-logo span { color: var(--rust); }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color var(--duration) var(--ease);
}
.footer-links a:hover { color: var(--paper); }
.footer-copy {
  font-size: .75rem;
  letter-spacing: .04em;
  color: #5a5550;
}

/* ── Version Badge ── */
.version-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--mist);
  padding: .15rem .55rem;
  border-radius: 99px;
  margin-left: .5rem;
  vertical-align: middle;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Blog / Journal ── */
.journal-list { display: flex; flex-direction: column; gap: 2rem; }
.journal-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sand);
}
.journal-item:last-child { border-bottom: none; }
.journal-date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--rust);
  padding-top: .2rem;
}
.journal-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: .5rem;
  color: var(--ink);
}
.journal-item p { font-size: .9rem; font-weight: 300; color: #6b6360; line-height: 1.7; }
.read-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: .75rem;
  transition: gap var(--duration) var(--ease);
}
.read-link:hover { gap: .6rem; }

/* ── Gear / Packing List ── */
.gear-category { margin-bottom: 2.5rem; }
.gear-category h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--sand);
  color: var(--ink);
}
.gear-items { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gear-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  font-weight: 300;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--sand);
  cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.gear-item:hover { border-color: var(--teal); }
.gear-item.checked { background: #edf5f4; border-color: var(--teal); }
.gear-item input[type="checkbox"] { accent-color: var(--teal); width: 15px; height: 15px; }
.gear-item.checked span { text-decoration: line-through; color: var(--mist); }

/* ── About ── */
.team-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand) 0%, #c2b89e 100%);
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: .25rem;
}
.team-card p { font-size: .85rem; color: var(--mist); font-weight: 300; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--sand);
    transform: translateY(-110%);
    transition: transform var(--duration) var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    display: block;
    padding: 1rem var(--gap);
    border-bottom: 1px solid var(--sand);
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }

  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .form-row { grid-template-columns: 1fr; }
  .journal-item { grid-template-columns: 1fr; gap: .5rem; }
  .journal-date { font-size: .9rem; }
  .hero-compass { width: 250px; height: 250px; right: -40px; bottom: -40px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-compass { animation: none; }
  .fade-in { transition: none; }
}
