/* ==========================================================================
   LISAM TOURS KENYA - lx-2026.css  (header + hero v3, Oct 2026)
   Load AFTER theme-2026.css. Uses the existing --lt-* brand tokens.
   ========================================================================== */
:root {
  --lx-forest: #002119;
  --lx-forest-2: #0B3A2C;
  --lx-gold: #FEC01A;
  --lx-gold-dark: #E5A800;
  --lx-cream: #FBF7EE;
  --lx-header-h: 84px;
  --lx-ease: cubic-bezier(.22, .8, .24, 1);
}

/* Hide the legacy header pieces if any old markup is still cached */
.lt-topbar-thin, .lt-header, .lt-navband, .lt-nav-backdrop { display: none !important; }

/* ---------------- Buttons ---------------- */
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .95rem/1 var(--lt-font-body); letter-spacing: .01em; text-decoration: none;
  transition: transform .25s var(--lx-ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  cursor: pointer; white-space: nowrap;
}
.lx-btn:hover { transform: translateY(-2px); }
.lx-btn--sm { padding: .7rem 1.2rem; font-size: .88rem; }
.lx-btn--gold { background: var(--lx-gold); color: var(--lx-forest); box-shadow: 0 10px 24px rgba(254,192,26,.28); }
.lx-btn--gold:hover { background: #fff; color: var(--lx-forest); }
.lx-btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.lx-btn--glass:hover { background: #fff; color: var(--lx-forest); border-color: #fff; }
.lx-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.lx-btn--ghost:hover { border-color: var(--lx-gold); color: var(--lx-gold); }

/* ---------------- Header ---------------- */
.lx-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--lx-forest);
  transition: background .35s, box-shadow .35s, height .35s;
}
.lx-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.lx-header--overlay::before { /* soft top scrim so white text reads on bright photos */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,20,15,.55), rgba(0,20,15,0));
  transition: opacity .35s;
}
.lx-header.is-scrolled { background: rgba(0,33,25,.94); backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.lx-header.is-scrolled::before { opacity: 0; }

.lx-header-inner {
  position: relative; max-width: 1360px; margin: 0 auto; padding: 0 24px;
  height: var(--lx-header-h); display: flex; align-items: center; gap: 28px;
  transition: height .35s;
}
.lx-header.is-scrolled .lx-header-inner { height: 70px; }

.lx-logo img { height: 52px; width: auto; display: block; transition: height .35s; }
.lx-header.is-scrolled .lx-logo img { height: 44px; }

/* desktop menu */
.lx-nav { flex: 1; display: flex; justify-content: center; }
.lx-nav-head, .lx-nav-foot { display: none; }
.lx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.lx-menu > li { position: relative; }
.lx-menu > li.lx-has-mega { position: static; } /* mega centres on the header, not the item */
.lx-menu > li > a, .lx-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: none; border: 0; color: #fff; font: 600 .95rem/1 var(--lt-font-body);
  text-decoration: none; position: relative; cursor: pointer;
}
.lx-menu-btn i { font-size: .62rem; opacity: .75; transition: transform .25s; }
.lx-menu > li > a::after, .lx-menu-btn::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--lx-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--lx-ease);
}
.lx-menu > li:hover > a::after, .lx-menu > li:hover > .lx-menu-btn::after,
.lx-menu > li.active > a::after, .lx-menu > li.is-active > a::after,
.lx-menu > li.active > .lx-menu-btn::after, .lx-menu > li.is-active > .lx-menu-btn::after { transform: scaleX(1); }
.lx-menu > li:hover > .lx-menu-btn i { transform: rotate(180deg); }

/* dropdowns */
.lx-drop, .lx-mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,33,25,.22);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .25s, transform .3s var(--lx-ease), visibility .25s;
}
.lx-drop::before, .lx-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.lx-menu > li:hover > .lx-drop, .lx-menu > li:hover > .lx-mega,
.lx-menu > li:focus-within > .lx-drop, .lx-menu > li:focus-within > .lx-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.lx-drop { list-style: none; margin: 0; padding: 12px; min-width: 230px; }
.lx-drop--2col { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; column-gap: 6px; }
.lx-drop a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--lt-ink); font-size: .92rem; text-decoration: none; transition: background .2s, color .2s; }
.lx-drop a:hover { background: var(--lt-bg-soft); color: var(--lx-forest-2); }

.lx-mega { top: calc(100% - 4px); width: min(920px, 92vw); padding: 26px; display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 22px; }
.lx-mega::before { top: -34px; height: 34px; }
.lx-mega-label { display: block; margin: 0 0 10px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lt-muted); }
.lx-mega-link { display: flex; gap: 14px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.lx-mega-link i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: var(--lt-bg-soft); color: var(--lx-forest-2); font-size: .95rem; transition: background .2s, color .2s; }
.lx-mega-link strong { display: block; color: var(--lt-ink); font-size: .95rem; }
.lx-mega-link small { display: block; color: var(--lt-muted); font-size: .8rem; margin-top: 2px; }
.lx-mega-link:hover { background: var(--lx-cream); }
.lx-mega-link:hover i { background: var(--lx-gold); color: var(--lx-forest); }
.lx-mega-feature {
  position: relative; border-radius: 14px; overflow: hidden; min-height: 240px; padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background-size: cover; background-position: center; color: #fff; text-decoration: none;
}
.lx-mega-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,33,25,.05) 20%, rgba(0,33,25,.88)); }
.lx-mega-feature > * { position: relative; }
.lx-mega-feature-tag { align-self: flex-start; background: var(--lx-gold); color: var(--lx-forest); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.lx-mega-feature strong { font-family: var(--lt-font-head); font-size: 1.3rem; line-height: 1.2; }
.lx-mega-feature-cta { font-weight: 600; font-size: .9rem; color: var(--lx-gold); }

/* right actions */
.lx-header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lx-call { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.lx-call-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.35); font-size: .85rem; transition: background .25s, border-color .25s, color .25s; }
.lx-call:hover .lx-call-ic { background: var(--lx-gold); border-color: var(--lx-gold); color: var(--lx-forest); }
.lx-call-txt { display: flex; flex-direction: column; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.lx-call-txt small { font-weight: 500; font-size: .72rem; opacity: .75; }

.lx-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.lx-burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.lx-burger span:nth-child(2) { width: 14px; margin-left: 6px; }

.lx-nav-backdrop { position: fixed; inset: 0; background: rgba(0,15,11,.6); z-index: 999; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lx-nav-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 1299px) {
  .lx-call-txt { display: none; }
  .lx-menu > li > a, .lx-menu-btn { padding: 10px 11px; font-size: .9rem; }
}

/* ---------------- Mobile drawer (<1200px) ---------------- */
@media (max-width: 1199px) {
  :root { --lx-header-h: 72px; }
  .lx-header-inner { gap: 12px; padding: 0 16px; }
  .lx-logo img { height: 44px; }
  .lx-burger { display: inline-flex; }
  /* backdrop-filter would trap the fixed drawer inside the header box */
  .lx-header.is-scrolled { backdrop-filter: none; background: var(--lx-forest); }
  .lx-call { display: none; }

  .lx-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 88vw); z-index: 1100;
    background: var(--lx-forest); flex-direction: column; justify-content: flex-start;
    padding: 0 0 24px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--lx-ease);
  }
  .lx-nav.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,.35); }
  .lx-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .lx-nav-head img { height: 40px; width: auto; }
  .lx-nav-close { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 1.1rem; }

  .lx-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 12px; }
  .lx-menu > li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .lx-menu > li > a, .lx-menu-btn { width: 100%; justify-content: space-between; padding: 16px 10px; font-size: 1.05rem; }
  .lx-menu > li > a::after, .lx-menu-btn::after { display: none; }
  .lx-menu > li.active > a, .lx-menu > li.is-active > a, .lx-menu > li.is-active > .lx-menu-btn { color: var(--lx-gold); }
  .lx-menu > li:hover > .lx-menu-btn i { transform: none; }
  .lx-menu > li.open > .lx-menu-btn i { transform: rotate(180deg); }

  .lx-drop, .lx-mega {
    position: static; transform: none !important; opacity: 1; visibility: visible;
    background: transparent; box-shadow: none; border-radius: 0; width: auto; min-width: 0;
    display: none; padding: 0 0 12px;
  }
  .lx-drop::before, .lx-mega::before { display: none; }
  .lx-menu > li.open > .lx-drop, .lx-menu > li.open > .lx-mega { display: block; }
  .lx-drop a { color: rgba(255,255,255,.8); padding: 10px 14px; }
  .lx-drop a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .lx-mega-label { color: rgba(255,255,255,.45); margin-top: 8px; }
  .lx-mega-link strong { color: #fff; }
  .lx-mega-link small { color: rgba(255,255,255,.55); }
  .lx-mega-link i { background: rgba(255,255,255,.08); color: var(--lx-gold); }
  .lx-mega-link:hover { background: rgba(255,255,255,.06); }
  .lx-mega-feature { display: none; }

  .lx-nav-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 0; }
  .lx-nav-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .lx-nav-contact a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
  .lx-nav-contact i { color: var(--lx-gold); width: 18px; }
}

/* ---------------- HERO ---------------- */
.lx-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1000px; overflow: hidden; background: var(--lx-forest); color: #fff; }
.lx-hero-swiper, .lx-hero .swiper-wrapper, .lx-hero .swiper-slide { height: 100%; }
.lx-hero .swiper-slide { position: relative; overflow: hidden; }

.lx-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); }
.lx-hero .swiper-slide-active .lx-hero-bg { animation: lxKenBurns 9s ease-out forwards; }
@keyframes lxKenBurns { from { transform: scale(1.12); } to { transform: scale(1); } }

.lx-hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,20,15,.15), rgba(0,20,15,.55) 75%),
    linear-gradient(180deg, rgba(0,20,15,.25) 0%, rgba(0,20,15,.1) 40%, rgba(0,20,15,.8) 100%);
}

.lx-hero-content {
  position: relative; z-index: 2; height: 100%; max-width: 980px; margin: 0 auto; padding: calc(var(--lx-header-h) + 20px) 24px 190px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.lx-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font: 700 .78rem/1 var(--lt-font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--lx-gold);
}
.lx-hero-eyebrow::before, .lx-hero-eyebrow::after { content: ""; width: 34px; height: 1.5px; background: currentColor; opacity: .7; }
.lx-hero-title {
  font-family: var(--lt-font-head); font-weight: 600; color: #fff; margin: 0 0 20px;
  font-size: clamp(2.5rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.lx-hero-title em { padding-right: .1em; font-style: italic; color: var(--lx-gold); font-weight: 500; }
.lx-hero-text { max-width: 620px; margin: 0 auto 32px; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; color: rgba(255,255,255,.88); }
.lx-hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* staggered entrance per slide */
.lx-hero-content > * { opacity: 0; transform: translateY(26px); }
.lx-hero .swiper-slide-active .lx-hero-content > * { animation: lxRise .9s var(--lx-ease) forwards; }
.lx-hero .swiper-slide-active .lx-hero-content > :nth-child(2) { animation-delay: .12s; }
.lx-hero .swiper-slide-active .lx-hero-content > :nth-child(3) { animation-delay: .24s; }
.lx-hero .swiper-slide-active .lx-hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes lxRise { to { opacity: 1; transform: none; } }

.lx-hero-tag { position: absolute; z-index: 2; left: 32px; bottom: 150px; font-size: .8rem; color: rgba(255,255,255,.75); }
.lx-hero-tag i { color: var(--lx-gold); margin-right: 4px; }

/* right rail: counter, progress, arrows */
.lx-hero-rail { position: absolute; z-index: 5; right: 32px; bottom: 150px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.lx-hero-count { font: 500 .9rem/1 var(--lt-font-body); color: rgba(255,255,255,.7); letter-spacing: .08em; }
.lx-hero-count b { font-family: var(--lt-font-head); font-size: 1.6rem; color: #fff; font-weight: 600; margin-right: 2px; }
.lx-hero-bar { width: 150px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.lx-hero-bar i { display: block; height: 100%; width: 0; background: var(--lx-gold); }
.lx-hero-bar i.run { animation: lxBar var(--lx-delay, 7s) linear forwards; }
@keyframes lxBar { from { width: 0; } to { width: 100%; } }
.lx-hero-arrows { display: flex; gap: 8px; }
.lx-hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06); color: #fff; backdrop-filter: blur(6px); transition: background .25s, color .25s, border-color .25s; cursor: pointer; }
.lx-hero-arrows button:hover { background: var(--lx-gold); border-color: var(--lx-gold); color: var(--lx-forest); }

/* trip finder (glass bar) */
.lx-finder {
  position: absolute; z-index: 6; left: 50%; bottom: 44px; transform: translateX(-50%);
  width: min(920px, calc(100% - 32px)); display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.96); border-radius: 999px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.lx-finder-field { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 24px; border-right: 1px solid var(--lt-border); }
.lx-finder-field label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lt-muted); margin-bottom: 2px; }
.lx-finder-field label i { color: var(--lx-gold-dark); margin-right: 4px; }
.lx-finder-field select { border: 0; background: transparent; padding: 0; font: 600 1rem var(--lt-font-body); color: var(--lt-ink); cursor: pointer; outline: none; }
.lx-finder-go { margin-left: 8px; }
.lx-finder-wa { display: flex; align-items: center; gap: 8px; padding: 0 18px 0 16px; color: var(--lx-forest-2); font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.lx-finder-wa i { font-size: 1.35rem; color: #25D366; }
.lx-finder-wa:hover { color: var(--lx-forest); text-decoration: underline; }

/* scroll cue */
.lx-hero-scroll { position: absolute; z-index: 6; left: 50%; bottom: 8px; transform: translateX(-50%); width: 22px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; }
.lx-hero-scroll span { position: absolute; left: 50%; top: 4px; width: 2px; height: 10px; margin-left: -1px; background: rgba(255,255,255,.8); border-radius: 2px; animation: lxScroll 1.8s infinite; }
@keyframes lxScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 991px) {
  .lx-hero { min-height: 680px; max-height: none; }
  .lx-hero-content { padding-bottom: 230px; }
  .lx-hero-tag, .lx-hero-rail { display: none; }
  .lx-finder { flex-wrap: wrap; border-radius: 22px; padding: 10px; bottom: 34px; }
  .lx-finder-field { flex: 1 1 45%; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--lt-border); }
  .lx-finder-go { flex: 1 1 100%; margin: 10px 0 0; }
  .lx-finder-wa { display: none; }
}
@media (max-width: 575px) {
  .lx-hero-content { padding: calc(var(--lx-header-h) + 10px) 18px 300px; }
  .lx-hero-eyebrow { letter-spacing: .18em; font-size: .7rem; }
  .lx-hero-eyebrow::before, .lx-hero-eyebrow::after { width: 18px; }
  .lx-hero-text { font-size: .98rem; margin-bottom: 24px; }
  .lx-hero-btns .lx-btn { flex: 1 1 100%; }
  .lx-hero-rail { display: none; }
  .lx-finder-field { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-hero .swiper-slide-active .lx-hero-bg, .lx-hero-bar i.run, .lx-hero-scroll span { animation: none; }
  .lx-hero-content > * { opacity: 1; transform: none; animation: none !important; }
}
