/* =========================================================
   ATMOSPHERE BHUTAN — Design System
   Direction: calm / spiritual minimalism
   Palette drawn from the physical world of Bhutan itself:
   limewashed dzong walls, aged timber, juniper-clad slopes,
   butter-lamp gold, monastic maroon, Himalayan mist.
   ========================================================= */

:root {
  /* --- Color tokens --- */
  --parchment:      #E7E1D2; /* limewashed dzong wall */
  --parchment-dim:   #DCD5C3; /* shaded plaster, for panels */
  --ink:             #2A2622; /* aged timber, primary text */
  --ink-soft:        #55504A; /* secondary text */
  --juniper:         #4B5D48; /* juniper slope, links/accents */
  --juniper-deep:    #37452F; /* hover state */
  --saffron:         #B98A3D; /* butter-lamp gold, primary accent */
  --saffron-soft:    #E4C989; /* tint for backgrounds/badges */
  --maroon:          #6B3430; /* monastic robe, secondary accent */
  --mist:            #7F9AA0; /* Himalayan mist, quiet dividers */
  --mist-soft:       #C9D4D3;
  --paper:           #FBF9F3; /* near-white, for cards on parchment */

  /* --- Type tokens --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* --- Rhythm --- */
  --section-pad: clamp(4.5rem, 9vw, 9rem);
  --content-max: 1180px;
  --measure: 42rem; /* comfortable reading width for long-form text */

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--juniper);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--juniper-deep); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1.2em; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); }

.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: '';
  width: 1.4em;
  height: 1px;
  background: var(--maroon);
  display: inline-block;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section { padding: var(--section-pad) 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--maroon); color: var(--paper); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231, 225, 210, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--maroon);
  font-weight: 500;
}
.brand .brand-lines { display: flex; flex-direction: column; line-height: 1.15; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
nav.primary-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
nav.primary-nav a.is-active, nav.primary-nav a:hover { color: var(--maroon); }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-left: 1px solid rgba(42,38,34,0.15);
  padding-left: 1rem;
  margin-left: 0.4rem;
}
.lang-switch a { color: var(--ink-soft); }
.lang-switch a.is-active { color: var(--maroon); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  nav.primary-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--parchment);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid rgba(42,38,34,0.1);
  }
  nav.primary-nav.is-open { transform: translateX(0); }
  nav.primary-nav a { font-size: 1.15rem; }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink); /* fallback color while images load */
  color: var(--paper);
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(42,38,34,0.12), rgba(42,38,34,0.6));
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(3rem, 8vw, 6rem); padding-top: 8rem; }
.hero .eyebrow { color: var(--saffron-soft); }
.hero .eyebrow::before { background: var(--saffron-soft); }
.hero h1 {
  color: var(--paper);
  max-width: 15ch;
}
.hero h1 .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: word-rise 0.7s var(--ease) forwards;
}
@keyframes word-rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .reveal-word { opacity: 1; transform: none; animation: none; }
}
.hero p.lede { color: rgba(251,249,243,0.85); max-width: 34ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-photo-caption {
  position: absolute;
  bottom: 1.2rem;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(251,249,243,0.55);
}

/* --- Motif divider (druk cloud-line signature element) --- */
.motif-divider {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
}
.motif-divider svg { width: 180px; height: 40px; color: var(--maroon); }
.motif-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.motif-divider.is-drawn path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .motif-divider path { stroke-dashoffset: 0; }
}

/* --- Two-column story blocks (about / culture pages) --- */
.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story-block.flip { direction: rtl; }
.story-block.flip > * { direction: ltr; }
.story-figure {
  aspect-ratio: 4/5;
  background: var(--parchment-dim);
  border: 1px solid rgba(42,38,34,0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
  background-image:
    linear-gradient(135deg, rgba(75,93,72,0.08) 25%, transparent 25%),
    linear-gradient(315deg, rgba(107,52,48,0.08) 25%, transparent 25%);
  background-size: 40px 40px;
}
.story-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .story-block, .story-block.flip { grid-template-columns: 1fr; direction: ltr; }
}

/* --- Stat / fact strip --- */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  border-top: 1px solid rgba(42,38,34,0.12);
  border-bottom: 1px solid rgba(42,38,34,0.12);
  padding: 2.4rem 0;
}
.fact-strip dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4em; }
.fact-strip dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon); }

/* --- Tour cards --- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.tour-card {
  background: var(--paper);
  border: 1px solid rgba(42,38,34,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -20px rgba(42,38,34,0.35); }
.tour-card-media {
  aspect-ratio: 16/10;
  background: var(--parchment-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(42,38,34,0.1);
}
.tour-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tour-card-days {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--maroon);
  letter-spacing: 0.05em;
}
.tour-card-body h3 { margin-bottom: 0.2em; }
.tour-card-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; flex: 1; }
.tour-card-footer { margin-top: 1rem; }
.tour-card-footer a { font-weight: 700; font-size: 0.9rem; }

.filter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.5em 1em;
  border: 1px solid rgba(42,38,34,0.2);
  border-radius: 999px;
  color: var(--ink-soft);
}
.filter-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --- Testimonials --- */
.testimonial {
  background: var(--paper);
  border-left: 3px solid var(--saffron);
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
}
.testimonial p { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.testimonial cite { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); font-style: normal; }

/* --- Itinerary list (tour detail) --- */
.itinerary { border-top: 1px solid rgba(42,38,34,0.12); }
.itinerary-day {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(42,38,34,0.12);
}
.itinerary-day .day-num { font-family: var(--font-mono); color: var(--maroon); font-size: 0.95rem; padding-top: 0.2em; }
.itinerary-day h4 { margin-bottom: 0.35em; }
.itinerary-day p { color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 640px) {
  .itinerary-day { grid-template-columns: 1fr; }
}

.needs-content {
  display: inline-block;
  margin-top: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--maroon);
  background: var(--saffron-soft);
  padding: 0.25em 0.6em;
}

/* --- Panels / callouts --- */
.panel {
  background: var(--parchment-dim);
  border: 1px solid rgba(42,38,34,0.1);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.panel-dark {
  background: var(--ink);
  color: var(--paper);
}
.panel-dark .eyebrow { color: var(--saffron-soft); }
.panel-dark .eyebrow::before { background: var(--saffron-soft); }
.panel-dark p { color: rgba(251,249,243,0.8); }

/* --- Forms --- */
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5em; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid rgba(42,38,34,0.25);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
}
.field textarea { min-height: 140px; resize: vertical; }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(251,249,243,0.75);
  padding: var(--section-pad) 0 2.5rem;
}
.site-footer h4 { color: var(--paper); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 500; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-grid a { color: rgba(251,249,243,0.75); display: block; margin-bottom: 0.6em; }
.footer-grid a:hover { color: var(--saffron-soft); }
.footer-bottom { border-top: 1px solid rgba(251,249,243,0.15); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
