/* Western Altai Tours – modern layer (Dec 2026)
   Glass header + menu, floating contact bar, Tripadvisor trust block, smooth motion.
   Loaded after site.css; only overrides, no layout rewrites. */

:root {
  --ease: cubic-bezier(.22, .8, .24, 1);
  --glass: rgba(255, 255, 255, .72);
  --glass-dark: rgba(15, 37, 61, .72);
  --glass-line: rgba(255, 255, 255, .55);
  --shadow-soft: 0 10px 30px rgba(19, 49, 79, .10);
  --shadow-lift: 0 18px 44px rgba(19, 49, 79, .16);
  --wa: #1FAF5B;
}

/* ---------- Header: frosted glass, shrinks a little on scroll ---------- */
/* The blur sits on a pseudo-element: a backdrop-filter on .header itself would trap the
   fixed-position mobile menu inside the header box. */
.header {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid rgba(220, 228, 235, .7);
  transition: box-shadow .35s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  transition: background .35s var(--ease);
}
.header .wrap { transition: min-height .35s var(--ease); }
.header.is-scrolled { box-shadow: 0 8px 28px rgba(19, 49, 79, .08); }
.header.is-scrolled::before { background: rgba(255, 255, 255, .84); }
.brand b { transition: color .2s; }
.brand:hover b { color: var(--sky-deep); }

/* Desktop nav: underline grow + animated dropdown */
.nav > ul > li > a { position: relative; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; transition: color .2s, background .2s; }
.nav > ul > li > a:hover { background: rgba(44, 108, 168, .08); }
.nav .chev { transition: transform .3s var(--ease); }
.nav-extra { display: none; }

@media (min-width: 861px) {
  .dropdown {
    display: block; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top left;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(220, 228, 235, .8); border-radius: 16px; padding: 12px;
  }
  .has-dd:hover .dropdown, .has-dd:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-dd:hover .chev, .has-dd:focus-within .chev { transform: rotate(180deg); }
  .dropdown a { border-radius: 10px; transition: background .2s, padding-left .25s var(--ease), color .2s; }
  .dropdown a:hover { padding-left: 18px; color: var(--sky-deep); }
}

/* Buttons: soft lift + light sweep */
.btn { position: relative; overflow: hidden; border-radius: 999px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(19, 49, 79, .16); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--book::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
}
.btn--book:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn--glass { background: rgba(255, 255, 255, .7); border: 1px solid rgba(19, 49, 79, .14); color: var(--navy); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; color: var(--navy); }

/* Cards: smoother hover */
.card, .ticket, .review, .mini-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
a.card:hover, a.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__media img, .card img { transition: transform .7s var(--ease); }
a.card:hover .card__media img, a.card:hover > img { transform: scale(1.05); }
.card__media { overflow: hidden; }

/* ---------- Mobile: glass menu drawer ---------- */
.burger { position: relative; width: 20px; height: 14px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .topbar { display: none; }
  .header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open .header::before { background: rgba(255, 255, 255, .92); }
  .menu-toggle {
    border-radius: 14px; border: 1px solid rgba(19, 49, 79, .12); background: rgba(255, 255, 255, .6);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, transform .2s;
  }
  .menu-toggle:active { transform: scale(.94); }

  .nav {
    display: flex !important; top: var(--nav-top, 64px);
    background: rgba(246, 249, 252, .96); -webkit-backdrop-filter: saturate(1.6) blur(24px); backdrop-filter: saturate(1.6) blur(24px);
    border-top: 0; padding: 10px 20px calc(130px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  .nav > ul > li { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .45s var(--ease); }
  .nav.is-open > ul > li { opacity: 1; transform: none; }
  .nav.is-open > ul > li:nth-child(1) { transition-delay: .04s; }
  .nav.is-open > ul > li:nth-child(2) { transition-delay: .08s; }
  .nav.is-open > ul > li:nth-child(3) { transition-delay: .12s; }
  .nav.is-open > ul > li:nth-child(4) { transition-delay: .16s; }
  .nav.is-open > ul > li:nth-child(5) { transition-delay: .20s; }
  .nav.is-open > ul > li:nth-child(6) { transition-delay: .24s; }

  .nav > ul > li > a {
    display: flex; justify-content: space-between; width: 100%; padding: 17px 4px; border-radius: 0;
    font: 500 1.45rem/1.1 var(--display); letter-spacing: -.01em; color: var(--navy);
    border-bottom: 1px solid rgba(19, 49, 79, .08); background: none;
  }
  .nav > ul > li > a:hover { background: none; color: var(--sky-deep); }
  .nav .chev { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: rgba(19, 49, 79, .06); flex: none; }
  .has-dd.is-expanded > a .chev { transform: rotate(180deg); background: var(--navy); color: #fff; }

  /* accordion sub-menus */
  .dropdown {
    display: grid; grid-template-rows: 0fr; padding: 0; margin: 0;
    background: none; border: 0; box-shadow: none; transition: grid-template-rows .4s var(--ease);
  }
  .dropdown > * { min-height: 0; }
  .dropdown-inner { overflow: hidden; }
  .has-dd.is-expanded .dropdown { grid-template-rows: 1fr; }
  /* site.css opens dropdowns on :hover/:focus-within (desktop); on touch that kept them stuck open */
  .has-dd:hover .dropdown, .has-dd:focus-within .dropdown { display: grid; }
  .nav > ul > li > a:focus { outline: none; }
  .nav > ul > li > a:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
  .dropdown-inner { padding: 0; }
  .dropdown-inner > :first-child { margin-top: 4px; }
  .dropdown-inner > :last-child { margin-bottom: 12px; }
  .dropdown a { font: 400 1.02rem/1.3 var(--sans); padding: 10px 12px; margin: 2px 0; border-radius: 12px; color: var(--ink); }
  .dropdown a:hover, .dropdown a:active { background: rgba(255, 255, 255, .9); }
  .dropdown .dd-label { padding: 14px 12px 4px; }

  .nav-extra { display: grid; gap: 12px; margin-top: 22px; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease) .26s, transform .5s var(--ease) .26s; }
  .nav.is-open .nav-extra { opacity: 1; transform: none; }
  .nav-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 16px; font: 600 1.02rem/1 var(--sans); text-decoration: none; }
  .nav-cta--book { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(227, 179, 79, .35); }
  .nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-quick a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px;
    background: rgba(255, 255, 255, .85); border: 1px solid rgba(19, 49, 79, .1); color: var(--navy); font-weight: 600; text-decoration: none;
  }
  .nav-quick a + a { color: var(--wa); }
  .nav-ta { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .6); border: 1px dashed rgba(19, 49, 79, .16); color: var(--body); text-decoration: none; font-size: .92rem; }
  .nav-ta__stars { color: #00AA6C; letter-spacing: 1px; }
  .nav-ta b { color: var(--navy); }

  /* ---------- Floating glass contact bar ---------- */
  .mobile-bar {
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; gap: 6px;
    border-radius: 22px; background: var(--glass-dark);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 34px rgba(8, 22, 38, .32);
    /* coming back: a soft spring up */
    transform: translateY(0) scale(1); opacity: 1;
    transition: transform .65s cubic-bezier(.34, 1.45, .55, 1), opacity .45s ease-out;
    /* "backwards" (not "both"): once the entrance ends, the transitions above take over */
    animation: barIn .8s cubic-bezier(.34, 1.45, .55, 1) .3s backwards;
  }
  /* going away: glide down smoothly */
  .mobile-bar.is-hidden, body.menu-open .mobile-bar {
    transform: translateY(150%) scale(.94); opacity: 0;
    transition: transform .55s cubic-bezier(.55, 0, .45, 1), opacity .4s ease-in .1s;
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 9px 4px; border-radius: 16px; font: 600 .78rem/1 var(--sans); letter-spacing: .02em;
    color: #fff; background: transparent; transition: transform .2s var(--ease), background .2s;
  }
  .mobile-bar a:active { transform: scale(.94); }
  .mobile-bar .call { background: rgba(255, 255, 255, .1); }
  .mobile-bar .wa { background: var(--wa); color: #fff; }
  .mobile-bar .eq { background: var(--gold); color: var(--navy); flex: 1.15; }
  .mobile-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@keyframes barIn { from { transform: translateY(140%); opacity: 0; } }

/* Nothing may push the page sideways on phones (third-party widgets included) */
body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }

/* ---------- Tripadvisor trust block ---------- */
.ta { display: grid; gap: 22px; }
.ta__card {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 28px 30px; border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #F1F7F4 100%); border: 1px solid #D6E8DF; box-shadow: var(--shadow-soft);
}
.ta__score { display: flex; align-items: baseline; gap: 4px; padding-right: 26px; border-right: 1px solid #D6E8DF; }
.ta__num { font: 600 3.6rem/1 var(--display); color: var(--navy); }
.ta__of { font-size: 1.1rem; color: var(--muted); }
.ta__meta { flex: 1; min-width: 240px; }
.ta__meta p { margin: 8px 0 14px; color: var(--body); }
.ta__meta b { color: var(--navy); }
.ta__stars { display: inline-flex; gap: 3px; color: #00AA6C; }
.ta__widget { display: flex; justify-content: center; min-height: 40px; max-width: 100%; overflow: hidden; }
.ta__widget > div, .ta__widget [id^="CDSWID"] { max-width: 100% !important; box-sizing: border-box; }
.ta__widget [id^="CDSWID"] { width: 100% !important; border-radius: 18px !important; border: 1px solid #D6E8DF !important; padding: 18px !important; background: #fff !important; box-shadow: var(--shadow-soft); }
.ta__widget [id^="CDSWID"] * { max-width: 100% !important; }
.ta--full .ta__widget > div { width: 100%; max-width: 760px !important; }
.ta__widget ul { list-style: none; margin: 0; padding: 0; }
.ta__widget img { height: auto; }
.ta--badge .ta__card { padding: 18px 20px; }
@media (max-width: 600px) {
  .ta__card { padding: 22px; gap: 16px; }
  .ta__score { border-right: 0; padding-right: 0; }
  .ta__num { font-size: 3rem; }
}

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal="zoom"].is-in { transform: none; }

/* Hero entrance */
.js .hero h1, .js .hero .lead, .js .hero__ctas, .js .photo-head h1, .js .photo-head .lead, .js .photo-head .eyebrow {
  animation: heroIn 1s var(--ease) both;
}
.js .hero .lead, .js .photo-head .lead { animation-delay: .12s; }
.js .hero__ctas { animation-delay: .24s; }
.hero__img, .photo-head__img { animation: heroZoom 14s ease-out both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } }
@keyframes heroZoom { from { transform: scale(1.08); } }

/* Images fade in as they load */
.js img.lazy-fade { opacity: 0; transition: opacity .7s var(--ease); }
.js img.lazy-fade.is-loaded { opacity: 1; }

/* Scroll progress line */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sky), var(--gold)); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}

/* Logo (Taskhyn's original logo, white background removed) */
.brand { flex-direction: row; align-items: center; }
.brand__logo { display: block; height: 54px; width: auto; transition: transform .35s var(--ease), height .35s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.03); }
.header.is-scrolled .brand__logo { height: 48px; }
@media (max-width: 860px) {
  .brand__logo { height: 46px; }
  .header.is-scrolled .brand__logo { height: 42px; }
}

/* ---------- Videos: click-to-play YouTube ---------- */
.yt { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #0d1f33; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow-soft); transform: translateZ(0); }
.yt--short { aspect-ratio: 9 / 16; }
.yt img { color: transparent; font-size: 0; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.yt:hover img { transform: scale(1.06); }
.yt__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 20, 34, .82) 0%, rgba(8, 20, 34, .1) 45%, rgba(8, 20, 34, 0) 70%); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy); background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), background .25s;
}
.yt__play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: ytPulse 2.4s var(--ease) infinite; }
.yt:hover .yt__play { transform: scale(1.1); background: var(--gold); }
.yt--short .yt__play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.yt__meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.yt__title { font: 600 1rem/1.3 var(--sans); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.yt--short .yt__title { font-size: .88rem; }
.yt__time { flex: none; font: 600 .75rem/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing .yt__shade, .yt.is-playing .yt__play, .yt.is-playing .yt__meta, .yt.is-playing img { display: none; }
@keyframes ytPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* Shorts rail: swipe like reels */
.reel-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.reel-rail > .yt { scroll-snap-align: start; }
.videos { display: grid; gap: 18px; margin-top: 18px; }
.videos__main { max-width: 760px; }

/* Home "Watch the Altai" */
.watch { background: linear-gradient(180deg, #0F2A45 0%, #13314F 100%); color: #D8E3EE; }
.watch h2 { color: #fff; }
.watch .eyebrow { color: var(--gold); }
.watch .link-arrow { color: #fff; }
.watch__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.watch__grid .reel-rail { grid-auto-columns: minmax(160px, 1fr); }
.watch__more { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 22px; }
.watch .yt { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
@media (max-width: 980px) {
  .watch__grid { grid-template-columns: minmax(0, 1fr); }
  .watch__grid .reel-rail { grid-auto-columns: minmax(150px, 46%); }
}

/* Social icons */
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; transition: transform .3s var(--ease), background .25s, color .25s; }
.social a:hover { transform: translateY(-3px); }
.social--footer { margin-top: 16px; }
.social--footer a { background: rgba(255, 255, 255, .08); color: #E4ECF3; }
.social--footer a:hover { background: var(--gold); color: var(--navy); text-decoration: none; }
.social--watch { margin-top: 26px; }
.social--watch a { background: rgba(255, 255, 255, .1); color: #fff; }
.social--watch a:hover { background: var(--gold); color: var(--navy); }
.social--menu { display: none; }
@media (max-width: 860px) {
  .social--menu { display: flex; justify-content: center; }
  .social--menu a { background: rgba(255, 255, 255, .85); border: 1px solid rgba(19, 49, 79, .1); color: var(--navy); }
}

/* Thank-you page WhatsApp card */
.wa-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, #F2FBF5, #fff); border: 1px solid #CDEBD8; box-shadow: var(--shadow-soft); max-width: 760px; }
.wa-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.wa-card__icon { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--wa); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17924B; color: #fff; }
@media (max-width: 600px) { .wa-card { flex-direction: column; padding: 22px; } }
