/* ==========================================================================
   LEGEND NEPAL - navigational chrome only.
   Generated by split_css.py - edit preview/assets/css/legend.css and re-run.
   Contains NO content resets: the WooCommerce product page and the ova-brw
   booking form must keep their own layout.
   ========================================================================== */

/* ==========================================================================
   LEGEND NEPAL — design system
   Layout/component system ported from the Exodus Travels theme
   (tokens read from exodustravels.com global.css).
   Fonts swapped to free equivalents of the commercial originals:
     Miller Display Bold -> Playfair Display      (display headings)
     MillerText          -> Source Serif 4        (card / section headings)
     Merriweather Sans   -> Merriweather Sans     (exact match, OFL)
     Futura PT           -> Jost                  (signature / eyebrows)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand palette (Exodus token values) */
  --color-teal:            #00a8b6;
  --color-dark-teal:       #077e86;
  --color-light-teal:      #eff9fa;
  --color-dark-cool-gray:  #373e3e;
  --color-cool-gray:       #5b6a6a;
  --color-mid-cool-gray:   #4e6061;
  --color-almost-black:    #161717;
  --color-off-white:       #f3f1ec;
  --color-smoke-white:     #f1f1f1;
  --color-pale-gray:       #ebebeb;
  --color-border:          #e6e6e6;
  --color-page-bg:         #fafafa;
  --color-dark-blue:       #1a2940;
  --color-star-yellow:     #f1cf6a;
  --color-red:             #b02946;
  --color-saving-green:    #008800;
  --color-light-yellow:    #fdebb4;
  --color-footer-border:   #454f4f;
  --color-footer-text:     #747f7f;

  /* typography */
  --font-body:      "Merriweather Sans", system-ui, -apple-system, sans-serif;
  --font-heading:   "Source Serif 4", Georgia, serif;
  --font-display:   "Playfair Display", Georgia, serif;
  --font-signature: "Jost", "Futura PT", sans-serif;

  --fw-light: 300; --fw-regular: 400; --fw-500: 500;
  --fw-demi: 600;  --fw-bold: 700;    --fw-heavy: 900;

  /* layout */
  --wrap-width:      75rem;      /* 1200px */
  --paragraph-wrap:  60.625rem;  /* 970px  */
  --section-gutter:  3.75rem;    /* 60px   */
  --col-gutter:      1.875rem;   /* 30px   */
  --sidebar-width:   20.125rem;

  /* surfaces */
  --radius:        5px;
  --radius-sm:     3px;
  --radius-pill:   999px;
  --shadow:        0 15px 20px 0 rgba(0,0,0,.19);
  --shadow-soft:   0 4px 18px 0 rgba(22,23,23,.08);
  --shadow-hover:  0 20px 25px 0 rgba(0,0,0,.2);
  --transition:    0.3s cubic-bezier(0.42,0,0.58,1);
}

/* Legend brand palette — applied when <html data-palette="gold"> */
html[data-palette="gold"] {
  --color-teal:      #c9a227;
  --color-dark-teal: #9a7b16;
  --color-light-teal:#fdf8e9;
  --color-dark-blue: #241b06;
}

/* ---------- 2. Reset / base (chrome edition) ----------
   Deliberately minimal. This stylesheet loads on pages still rendered by the
   parent theme, so it resets only what Legend's own header and footer need -
   never .site-main, which is where WooCommerce and the booking form live. */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-dark-cool-gray);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.site-header img, .site-footer img { max-width: 100%; display: block; }
.site-header a, .site-footer a, .utility-bar a { color: inherit; text-decoration: none; }
.site-header button, .site-footer button { font: inherit; cursor: pointer; }
.site-header h1, .site-header h2, .site-header h3, .site-header h4,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.main-nav, .main-nav ul, .mega, .footer-cols, .contact-band {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Layout + a11y helpers the header and footer rely on. */
.wrap { max-width: var(--wrap-width); margin-inline: auto; padding-inline: 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.eyebrow {
  font-family: var(--font-signature);
  font-size: .8125rem;
  font-weight: var(--fw-500);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--color-mid-cool-gray);
}
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .display { margin-bottom: .75rem; }
.section-head p { color: var(--color-cool-gray); max-width: var(--paragraph-wrap); margin-inline: auto; font-size: 1.0625rem; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: 13px; font-weight: var(--fw-bold);
  letter-spacing: .84px; text-transform: uppercase;
  padding: .8125rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center; line-height: 1.2; white-space: nowrap;
}
.btn--primary { background: var(--color-teal); color: var(--color-almost-black); }
.btn--primary:hover { background: var(--color-dark-teal); color: #fff; }
.btn--outline { background: #fff; border-color: var(--color-dark-cool-gray); color: var(--color-dark-cool-gray); }
.btn--outline:hover { background: var(--color-dark-cool-gray); color: #fff; }
.btn--ghost-light { background: #fff; color: var(--color-almost-black); }
.btn--ghost-light:hover { background: var(--color-off-white); }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 2rem; font-size: 14px; }

/* ---------- 5. Utility / promo bar ---------- */
.utility-bar {
  background: var(--color-off-white);
  font-size: .8125rem;
  color: var(--color-mid-cool-gray);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.utility-bar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; height: 42px; white-space: nowrap; }
.utility-bar a { display: inline-flex; align-items: center; gap: .375rem; font-weight: var(--fw-demi); white-space: nowrap; }
.utility-bar svg { width: 15px; height: 15px; }
.utility-bar a:hover { color: var(--color-dark-teal); }

/* ---------- 6. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.125rem;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: .625rem; flex: 0 0 auto; }
.logo img { height: 44px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 1.4375rem; font-weight: var(--fw-bold); color: var(--color-dark-teal); letter-spacing: -.5px; white-space: nowrap; }
.logo__sub { font-family: var(--font-signature); font-size: .4375rem; letter-spacing: 2.2px; text-transform: uppercase; color: var(--color-mid-cool-gray); margin-top: 2px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 1.125rem; margin-left: .25rem; min-width: 0; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .875rem; font-weight: var(--fw-500); color: var(--color-dark-cool-gray);
  padding: .75rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav > li > a:hover, .main-nav > li.is-active > a { color: var(--color-dark-teal); border-bottom-color: var(--color-teal); }
.main-nav .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }

/* mega menu */
.mega {
  position: absolute; top: calc(100% + 1px); left: -1.5rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.5rem; min-width: 620px;
  display: none; gap: 2rem; z-index: 70;
}
.main-nav > li:hover .mega { display: flex; }
.mega__col { min-width: 150px; }
.mega__title { font-family: var(--font-signature); font-size: .75rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-mid-cool-gray); margin-bottom: .625rem; }
.mega__col a { display: block; padding: .3125rem 0; font-size: .875rem; color: var(--color-dark-cool-gray); }
.mega__col a:hover { color: var(--color-dark-teal); text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  background: transparent; border: 0; color: var(--color-dark-cool-gray);
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--color-off-white); }
.icon-btn svg { width: 19px; height: 19px; }
.header-phone { font-size: .9375rem; font-weight: var(--fw-demi); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.header-cta { display: inline-flex; align-items: center; gap: .75rem; }
.header-cta__caret { border-left: 1px solid rgba(0,0,0,.18); padding-left: .75rem; font-size: 10px; }
.nav-toggle { display: none; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--color-dark-cool-gray); color: #fff; padding-block: 3.75rem 2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--color-footer-border); }
.footer-cols h4 { font-family: var(--font-signature); font-size: .8125rem; letter-spacing: 1.8px; text-transform: uppercase; color: #fff; margin-bottom: 1.125rem; font-weight: var(--fw-demi); }
.footer-cols a { display: block; padding: .375rem 0; font-size: .875rem; color: #cfd6d6; }
.footer-cols a:hover { color: var(--color-teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2rem; flex-wrap: wrap; }
.socials { display: flex; gap: .625rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background var(--transition); }
.socials a:hover { background: var(--color-teal); }
.socials svg { width: 17px; height: 17px; fill: #fff; }
.footer-legal { font-size: .8125rem; color: var(--color-footer-text); }
.footer-legal a:hover { color: #fff; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1400px) {
  .header-phone { display: none; }
}
@media (max-width: 1240px) {
  .utility-bar__inner a:nth-child(2) { display: none; }
  .main-nav { gap: .875rem; }
  .main-nav > li > a { font-size: .8125rem; }
}
@media (max-width: 1100px) {
  .trip-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__item:nth-child(3n) { border-right: 0; }
  .trip-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar__submit { grid-column: 1 / -1; padding: .875rem; }
}
@media (max-width: 860px) {
  .trip-grid, .trip-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .usp__col { border-right: 0; border-bottom: 1px solid var(--color-border); padding: 1.5rem 1rem; }
  .usp__col:nth-child(3), .usp__col:nth-child(4) { border-bottom: 0; }
  .tile-grid, .promo-row { grid-template-columns: 1fr; }
  .reviews__track { grid-template-columns: 1fr; }
  .contact-band { grid-template-columns: 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero__slide { min-height: 480px; }
  .hero__nav { display: none; }
}
@media (max-width: 560px) {
  .trip-grid, .trip-grid--3, .guide-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .site-header__inner { gap: .5rem; height: 64px; }
  .logo { gap: .375rem; }
  .logo img { height: 30px; }
  .logo__name { font-size: 1.0625rem; }
  .logo__sub { font-size: .375rem; letter-spacing: 1.4px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .header-cta { display: none; }
  .utility-bar__inner { gap: .875rem; font-size: .75rem; }
  .utility-bar__inner a:nth-child(3) { display: none; }
  .hero__slide { min-height: 420px; }
  .hero__title { font-size: 1.9375rem; letter-spacing: -.4px; }
  .hero__lede { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero__content { padding: 3rem 0; }
  .search-bar { margin-top: -2rem; }
  .promo-tile__overlay { padding: 1.5rem; }
  .promo-tile__big { font-size: 1.5rem; }
  .newsletter form { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}
