/* ==========================================================================
   ENROUTE BASTAR — Bastar Experiential Travel
   Refined & cultural · museum-like · quiet luxury
   ========================================================================== */

:root {
  /* Bastar-inspired palette */
  --indigo: #1a2742;
  --indigo-deep: #0f1729;
  --vermillion: #c8451f;
  --vermillion-soft: #a8391a;
  --brass: #b08948;
  --brass-soft: #8c6d39;
  --charcoal: #1a1a1a;
  --bone: #f5f0e6;
  --bone-warm: #ede5d3;
  --bone-cool: #efe9dc;
  --ink: #0f1729;
  --line: rgba(26, 39, 66, 0.14);
  --line-strong: rgba(26, 39, 66, 0.32);
  /* 0.62 measured ~4.0-4.4:1 against --bone/--bone-warm/white — below WCAG AA's
     4.5:1 for normal text. 0.72 clears it (~5.3-6.2:1) with the same look. */
  --muted: rgba(26, 39, 66, 0.72);

  /* Type — "Lithograph" pairing (baked in; previously applied at runtime) */
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* Rhythm */
  --section-y: 120px;
  --gutter: 48px;
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--vermillion); color: var(--bone); }

/* ---------- Focus states (keyboard navigation) ---------- */
/* :focus-visible (not :focus) so the ring only shows for keyboard/assistive
   navigation, not on every mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--vermillion);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Inside the CTA section the page background IS vermillion, so a vermillion
   ring on the elements sitting on it would be invisible — swap to bone. */
#contact a:focus-visible,
#contact button:focus-visible {
  outline-color: var(--bone);
}

/* ---------- Type system ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-vermillion { color: var(--vermillion); }

.label-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

.display-xl {
  font-family: var(--serif);
  font-size: clamp(64px, 9.2vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.024em;
  font-weight: 400;
}

.display-l {
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -0.018em;
  font-weight: 400;
}

.display-m {
  font-family: var(--serif);
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  font-weight: 400;
}

.display-s {
  font-family: var(--serif);
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.15;
  font-weight: 400;
}

.italic { font-style: italic; }

.body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.body-lg {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  font-weight: 400;
}

/* ---------- Layout ---------- */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 720px) {
  :root { --gutter: 22px; --section-y: 72px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; --section-y: 64px; }
}

.section { padding: var(--section-y) 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(.2,.6,.2,1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--vermillion);
  color: var(--bone);
}
.btn-primary:hover { background: var(--vermillion-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: var(--bone);
  border-color: rgba(245, 240, 230, 0.32);
}
.btn-ghost-light:hover { border-color: var(--bone); }

/* ---------- Placeholder image ---------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(26, 39, 66, 0.05) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #d6cdb8, #c8bfa8);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.ph-dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 240, 230, 0.06) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #1f2c4a, #131c33);
}

.ph-warm {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(26, 39, 66, 0.06) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #d4a878, #b8895a);
}

.ph-vermillion {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 240, 230, 0.07) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #c8451f, #9a3416);
}

.ph::after {
  /* subtle grain */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.5;
}

.ph-label {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 41, 0.55);
  background: rgba(245, 240, 230, 0.85);
  padding: 6px 10px;
  z-index: 1;
}

.ph-dark .ph-label,
.ph-vermillion .ph-label { color: rgba(245, 240, 230, 0.85); background: rgba(15, 23, 41, 0.5); }

/* ---------- Divider ornament (Dhokra-inspired) ---------- */

.dhokra-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}
.dhokra-rule .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.dhokra-rule .dots {
  display: flex; gap: 6px;
}
.dhokra-rule .dots span {
  width: 4px; height: 4px;
  background: var(--brass);
  border-radius: 50%;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(245, 240, 230, 0.0);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-on-dark {
  color: var(--bone);
}
.nav-on-dark.is-scrolled {
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 44px;
  width: 44px;
  display: block;
  object-fit: contain;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a { opacity: 0.85; }
.nav-links a:hover { opacity: 1; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 1180px) {
  .brand-sub { font-size: 9px; }
}

/* ---------- Utility ---------- */

.divider {
  height: 1px;
  background: var(--line);
  margin: 0 auto;
  max-width: var(--max);
}

.full-rule {
  height: 1px;
  background: var(--line);
}

.kbd-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  display: inline-block;
}

/* ---------- Reveal animation (gentle) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
/* Covers every animation/transition on the site in one place — the scroll-
   triggered .reveal fade-ups, the hero marquee's infinite scroll, the hero
   slider's crossfade + progress bar, itinerary/testimonial fadeUp entrances,
   and the request-form modal's open/close — without editing each one
   individually. Longhand !important rules override inline `style={{
   animation/transition: ... }}` (inline styles can't set !important
   themselves, so a stylesheet !important always wins). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   MOBILE — one consolidated pass
   ========================================================================== */

@media (max-width: 860px) {
  .display-xl { font-size: clamp(44px, 11vw, 72px); line-height: 0.98; letter-spacing: -0.018em; }
  .display-l  { font-size: clamp(36px, 8.4vw, 56px); line-height: 1.02; }
  .display-m  { font-size: clamp(28px, 6.4vw, 40px); line-height: 1.08; }
  .display-s  { font-size: clamp(20px, 4.4vw, 26px); }
  .body-lg    { font-size: 17px; line-height: 1.55; }
  .body       { font-size: 15px; line-height: 1.6; }

  .btn { padding: 14px 20px; font-size: 11px; min-height: 48px; }
  .section { padding: var(--section-y) 0; }
}

/* ---- Nav drawer ---- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: rgba(245, 240, 230, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.nav-toggle .bars {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }

@media (max-width: 1080px) {
  .nav-cta { display: none !important; }
  .nav-toggle { display: flex; }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 200;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.6,.2,1), visibility 0s linear 0.35s;
  color: var(--ink);
  overflow-y: auto;
}
.nav-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.6,.2,1), visibility 0s;
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-drawer-close {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px;
}
.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.nav-drawer-links li { border-bottom: 1px solid var(--line); }
.nav-drawer-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.nav-drawer-links .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nav-drawer-cta { margin-top: auto; }

/* ---- Hero mobile ---- */
@media (max-width: 1024px) {
  .hero-editorial { padding-top: 110px !important; padding-bottom: 56px !important; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr !important; gap: 4px !important; }
  .hero-fullbleed-shell { padding-top: 140px !important; padding-bottom: 60px !important; }
  .hero-split { min-height: auto !important; padding-top: 0 !important; }
  .hero-split-text { padding: 96px 24px 48px !important; justify-content: flex-start !important; }
  .hero-split-img { min-height: 320px !important; }
  .hero-meta-row { margin-bottom: 36px !important; }
  .hero-cta-row { flex-direction: column !important; align-items: stretch !important; }
  .hero-cta-row .btn { justify-content: center; }
}
@media (max-width: 640px) {
  .hero-split-text { padding: 88px 20px 40px !important; }
  .hero-split-img { min-height: 260px !important; }
}

/* ---- Manifesto mobile ---- */
@media (max-width: 860px) {
  .mani-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .mani-cols { grid-template-columns: 1fr !important; gap: 22px !important; }
}

/* ---- Tour types mobile ---- */
@media (max-width: 860px) {
  .tt-grid { grid-template-columns: 1fr !important; }
}

/* ---- Itineraries mobile ---- */
@media (max-width: 860px) {
  .itin-tabs { display: grid !important; grid-template-columns: 1fr !important; }
  .itin-tabs button { flex: none !important; min-width: 0 !important; padding: 18px 20px !important; border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .itin-grid { grid-template-columns: 1fr !important; gap: 28px !important; padding: 36px 0 !important; }
  .itin-img { aspect-ratio: 4/5 !important; }
  .itin-cta-row { flex-direction: column !important; align-items: stretch !important; }
  .itin-cta-row .btn { justify-content: center; }
}

/* ---- Field notes (reels) mobile ---- */
@media (max-width: 1100px) {
  .reels-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .reels-grid > *:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .reels-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Voices mobile ---- */
@media (max-width: 860px) {
  .voices-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .voices-quote-mark { font-size: 48px !important; }
  .voices-author { gap: 20px !important; }
}

/* ---- CTA mobile ---- */
@media (max-width: 860px) {
  #contact { padding: 88px 0 !important; }
  .cta-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cta-founder { gap: 16px !important; }
}

/* ---- Footer mobile ---- */
@media (max-width: 860px) {
  .ft-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; margin-bottom: 56px !important; }
}
@media (max-width: 480px) {
  .ft-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .ft-meta { flex-direction: column; align-items: flex-start; gap: 8px !important; }
}
