/* =====================================================================
   ADOTOURISM — "Luxe" layer
   ---------------------------------------------------------------------
   Optional enrichment loaded last (after adotourism.css,
   adotourism-pages.css and adotourism-lodge.css). It adds the
   signature adotourism touches that are safe to layer on top of the
   existing system: scroll parallax, glassmorphism, a reading-progress
   rail, sheen on media, and calmer motion. Nothing here changes the
   markup contract G7Bill renders — every rule degrades gracefully when
   the matching class is absent and is disabled for reduced motion.
   ===================================================================== */

:root {
  --ado-glass-bg:     rgba(255, 255, 255, .12);
  --ado-glass-bg-2:   rgba(255, 255, 255, .72);
  --ado-glass-line:   rgba(255, 255, 255, .28);
  --ado-glass-dark:   rgba(36, 21, 17, .42);
  --ado-glass-blur:   14px;
  --ado-parallax:     0px;
}

/* ---------------------------------------------------------------------
   1. PARALLAX — any element with data-ado-parallax gets a translateY
      driven by --ado-parallax (set in JS from its distance from the
      viewport centre). Media inside a parallax frame is over-scaled so
      the edges never show.
   --------------------------------------------------------------------- */
[data-ado-parallax] { will-change: transform; transform: translate3d(0, var(--ado-parallax), 0); }
.ado-parallax { position: relative; overflow: hidden; }
.ado-parallax-media {
  position: absolute; inset: -12% 0; background-size: cover; background-position: center;
  transform: translate3d(0, var(--ado-parallax), 0); will-change: transform; z-index: 0;
}
.ado-parallax > .container, .ado-parallax > .ado-parallax-content { position: relative; z-index: 1; }
.ado-parallax::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(36, 21, 17, .62), rgba(36, 21, 17, .42) 45%, rgba(36, 21, 17, .68));
}
.ado-parallax.ado-parallax-light::after { background: linear-gradient(180deg, rgba(36, 21, 17, .3), rgba(36, 21, 17, .18)); }

/* a parallax band can carry its own picture via --ado-hero-img */
.ado-parallax { background-image: var(--ado-hero-img, none); background-size: cover; background-position: center; background-attachment: fixed; }
@media (hover: none) { .ado-parallax { background-attachment: scroll; } }
.ado-parallax > .container { padding-top: 6px; padding-bottom: 6px; }
/* frosted panel floating on a parallax band */
.ado-test.ado-glass { padding: 40px 8px; border-radius: 22px; box-shadow: 0 40px 90px -55px rgba(0, 0, 0, .9); }
@media (max-width: 767px) { .ado-test.ado-glass { padding: 30px 6px; } }

/* ---------------------------------------------------------------------
   2. GLASSMORPHISM — frosted surfaces for overlays, bars and cards.
      .ado-glass on dark media, .ado-glass-light on paper backgrounds.
   --------------------------------------------------------------------- */
.ado-glass {
  background: var(--ado-glass-dark) !important;
  -webkit-backdrop-filter: blur(var(--ado-glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--ado-glass-blur)) saturate(140%);
  border: 1px solid var(--ado-glass-line) !important;
}
.ado-glass-light {
  background: var(--ado-glass-bg-2) !important;
  -webkit-backdrop-filter: blur(var(--ado-glass-blur)) saturate(130%);
  backdrop-filter: blur(var(--ado-glass-blur)) saturate(130%);
  border: 1px solid rgba(255, 255, 255, .5) !important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ado-glass { background: rgba(36, 21, 17, .82) !important; }
  .ado-glass-light { background: rgba(255, 255, 255, .94) !important; }
}

/* glass hero caption card */
.ado-hero-box.ado-glass {
  padding: clamp(20px, 3vw, 40px); border-radius: 10px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .85);
}

/* glass sticky nav once scrolled */
.ado-stuck .ado-navbar.ado-glass-nav {
  background: rgba(71, 40, 29, .82) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

/* ---------------------------------------------------------------------
   3. READING PROGRESS — thin rail pinned to the top of the viewport,
      width driven by --ado-progress (0..100%).
   --------------------------------------------------------------------- */
.ado-progress-rail {
  position: fixed; left: 0; top: 0; z-index: 1100; height: 3px; width: 100%;
  background: transparent; pointer-events: none;
}
.ado-progress-rail > span {
  display: block; height: 100%; width: var(--ado-progress, 0%);
  background: linear-gradient(90deg, var(--ado-gold), #F0803F 60%, var(--ado-gold-600));
  box-shadow: 0 0 12px rgba(222, 79, 29, .55);
  transition: width .12s linear;
}

/* ---------------------------------------------------------------------
   4. MEDIA SHEEN — a soft light sweep across images on hover.
   --------------------------------------------------------------------- */
.ado-sheen { position: relative; overflow: hidden; }
.ado-sheen::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .9s var(--ado-ease);
}
.ado-sheen:hover::before { transform: translateX(120%); }

/* ---------------------------------------------------------------------
   5. LUXE TYPE TOUCHES — drop-cap lead, hairline rule, gold underline.
   --------------------------------------------------------------------- */
.ado-dropcap::first-letter {
  float: left; font-family: var(--ado-font-head); font-size: 3.4em; line-height: .82;
  padding: 4px 12px 0 0; color: var(--ado-gold-600); font-weight: 600;
}
.ado-rule { display: flex; align-items: center; gap: 14px; color: var(--ado-gold); }
.ado-rule::before, .ado-rule::after { content: ""; height: 1px; flex: 1 1 auto; background: currentColor; opacity: .35; }
.ado-gold-underline {
  background-image: linear-gradient(90deg, var(--ado-gold), var(--ado-gold));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  transition: background-size .4s var(--ado-ease);
}
.ado-gold-underline:hover { background-size: 100% 2px; }

/* ---------------------------------------------------------------------
   6. FLOAT / REVEAL HELPERS (parallax-adjacent motion).
   --------------------------------------------------------------------- */
.ado-float { animation: ado-float 7s ease-in-out infinite; }
@keyframes ado-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ado-zoom-in img { transition: transform 1.2s var(--ado-ease); }
.ado-zoom-in:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  [data-ado-parallax], .ado-parallax-media { transform: none !important; }
  .ado-float { animation: none; }
  .ado-sheen::before { display: none; }
  .ado-progress-rail > span { transition: none; }
}

@media print {
  .ado-progress-rail { display: none !important; }
}

/* ---------------------------------------------------------------------
   7. HOOK COMPLETION — every `ado-` class a template can emit gets a
   rule here, so no element ever falls back to unstyled Metronic defaults.
   These are thin wrappers: the parent structure (.ado-list-card, .ado-kb-
   layout, .ado-field-grid, .ado-result, .portlet) already carries the look.
   --------------------------------------------------------------------- */
.ado-content { min-width: 0; }
.ado-panel-head { align-items: center; }
.ado-pagehead-text { min-width: 0; }
.ado-list-inner { display: block; }
.ado-list-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ado-list-toolbar-right { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ado-tabs-body, .ado-tab-content { padding-top: 18px; }
.ado-fields { margin: 0; }
.ado-ff-wide { grid-template-columns: minmax(0, 1fr); }
.ado-ff-wide > .ado-ff-label { padding-top: 0 !important; }
.ado-input-split-a, .ado-input-split-b { min-width: 0; }
.ado-input-split-a .form-group, .ado-input-split-b .form-group { margin: 0; }
.ado-aff { display: grid; gap: 14px; }
.ado-aff-link { display: grid; gap: 8px; }
.ado-aff-link .form-control { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .01em; }
.ado-quick-call .ado-quick-ico { background: var(--ado-royal); color: #fff; }
.ado-result-body { min-width: 0; }
.ado-state-next { display: flex; align-items: center; gap: 10px; color: var(--ado-ink-2); font-size: 14.5px; }
.ado-state-next i { color: var(--ado-gold-600); }
.ado-ticket-head-main { min-width: 0; }
.ado-dev-hero-text { max-width: 620px; }
.ado-team { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ado-kb { display: block; }
.ado-plugin { border-left: 3px solid var(--ado-royal); }
.ado-plugin.is-grass { border-left-color: var(--ado-grass); }
.ado-plugin.is-cardinal { border-left-color: var(--ado-cardinal); }
.ado-plugin.is-royal { border-left-color: var(--ado-royal); }
.ado-plugin-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; }
.ado-plugin-media { display: flex; align-items: center; justify-content: center; }
.ado-plugin-logo { max-width: 100%; height: auto; }
.ado-checkout-form { display: block; }
.ado-theme-reset { display: inline-block; }
.ado-sms-more { margin-top: 10px; }
.ado-article-layout { margin-bottom: 0; }
.ado-comments { margin-top: 26px; }
@media (max-width: 767px) { .ado-plugin-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------------------------------------------------------------------
   8. SIGNATURE DETAILS — restrained, non-conflicting flourishes.
   The hero owns its own scale/fade transition, so nothing here touches
   the carousel; these are hover/focus accents only, and every one
   collapses under prefers-reduced-motion (block 9).
   --------------------------------------------------------------------- */
/* Member / team tiles catch a soft light sweep on hover. */
.ado-member, .ado-focus-item { overflow: hidden; }
.ado-member::after, .ado-focus-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .32) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .9s var(--ado-ease); opacity: 0;
}
.ado-member:hover::after, .ado-focus-item:hover::after { transform: translateX(130%); opacity: 1; }

/* Gold buttons carry a travelling highlight on hover. */
.ado-btn-gold { position: relative; overflow: hidden; }
.ado-btn-gold::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ado-ease);
}
.ado-btn-gold:hover::before { left: 130%; }

/* Keyboard focus ring consistency. */
.ado-btn-gold:focus-visible, .ado-btn-primary:focus-visible, .ado-btn-outline:focus-visible,
.ado-icon-btn:focus-visible, .ado-nav a:focus-visible { outline: 2px solid var(--ado-gold); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   9. REDUCED MOTION — switch off every non-essential animation.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ado-member::after, .ado-focus-item::after, .ado-btn-gold::before { display: none !important; }
}

/* =====================================================================
   10. CONSOLIDATED HEADER — one thin top bar + one sticky navbar.
   Replaces the old three-deck chrome (topbar + 108px masthead + navbar).
   Brand moves into the navbar; contact/currency/socials collapse into a
   slim dark top bar. Navbar is paper-white with the green logo so the
   page reads calm and serious instead of stacked.
   ===================================================================== */
.ado-topbar { background: var(--ado-night); color: #E8D9C9; font-size: 12px; letter-spacing: .02em; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ado-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.ado-topbar-left, .ado-topbar-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ado-topbar-item { display: inline-flex; align-items: center; gap: 7px; color: #E8D9C9; }
.ado-topbar-item i { color: var(--ado-gold); font-size: 11px; }
.ado-topbar-item:hover { color: #fff; }
.ado-topbar .ado-tagline { font-family: var(--ado-font-head); font-style: italic; font-size: 13px; color: var(--ado-gold); letter-spacing: .02em; }
.ado-topbar .ado-tagline i { margin-right: 6px; font-size: 11px; color: var(--ado-gold); }
.ado-topbar .dropdown > a { display: inline-flex; align-items: center; gap: 6px; color: #E8D9C9; }
.ado-topbar .dropdown > a:hover { color: #fff; }
.ado-topbar .ado-social { display: inline-flex; gap: 2px; }
.ado-topbar .ado-social a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; color: #E8D9C9; transition: background .2s, color .2s; }
.ado-topbar .ado-social a:hover { background: var(--ado-gold); color: #fff; }

.ado-navbar {
  position: sticky; top: 0; z-index: 1040; background: #fff;
  border-bottom: 1px solid var(--ado-line);
  box-shadow: 0 12px 30px -26px rgba(28, 14, 8, .55);
}
.ado-navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--ado-gold) 25%, var(--ado-gold) 75%, transparent); opacity: .55; }
.ado-navbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 26px; min-height: var(--ado-nav-h); }
.ado-brand { justify-self: start; display: inline-flex; align-items: center; position: relative; }
.ado-brand img { height: 50px; width: auto; max-width: 210px; object-fit: contain; transition: height .25s var(--ado-ease); }
.ado-brand sup { position: absolute; right: -12px; top: 2px; }
.ado-brand sup .flag-icon { width: 18px !important; height: 13px !important; border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.ado-nav-actions { justify-self: end; display: inline-flex; align-items: center; gap: 12px; }
.ado-nav-actions .ado-icon-btn { width: 40px; height: 40px; }
.ado-nav-actions .ado-text-link { color: var(--ado-ink-2); white-space: nowrap; }

/* nav links sit on paper now, not on green */
.ado-navbar .ado-nav .nav > li > a, .ado-navbar .ado-nav > ul > li > a { color: var(--ado-ink) !important; }
.ado-navbar .ado-nav .nav > li > a > i { color: var(--ado-gold) !important; }
.ado-navbar .ado-nav .nav > li:hover > a, .ado-navbar .ado-nav .nav > li:focus-within > a,
.ado-navbar .ado-nav .nav > li.active > a { color: var(--ado-royal) !important; }
.ado-navbar .ado-nav .nav > li:hover > a::before, .ado-navbar .ado-nav .nav > li.active > a::before { background: var(--ado-gold); }

/* pinned: frosted paper, tighter brand */
.ado-stuck .ado-navbar.ado-glass-nav {
  background: rgba(255, 255, 255, .9) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 18px 40px -30px rgba(28, 14, 8, .6);
}
.ado-stuck .ado-brand img { height: 42px; }

/* ---- responsive: keep the bar, turn only the menu into a drawer ---- */
.ado-hide-sm { }
@media (max-width: 991px) { .ado-hide-sm { display: none !important; } }
@media (max-width: 1199px) {
  .ado-navbar { position: sticky; top: 0; height: auto; background: #fff; box-shadow: 0 12px 30px -26px rgba(28, 14, 8, .55); }
  .ado-navbar::after { display: block; }
  .ado-navbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; min-height: 64px; padding: 0; }
  .ado-brand { justify-self: start; }
  .ado-brand img { height: 44px; max-width: 168px; }
  .ado-nav-actions { gap: 8px; }
  .ado-nav { justify-content: flex-end; }
  .ado-nav-cta { display: inline-flex !important; padding: 9px 16px; }
  .ado-nav .nav > li > a { color: #EADBCB !important; }
  .ado-nav .nav > li:hover > a, .ado-nav .nav > li.active > a { color: #fff !important; }
  .ado-nav .nav > li > a > i { color: var(--ado-gold) !important; }
  .ado-nav .dropdown-menu > li > a { color: var(--ado-ink) !important; }
}
@media (max-width: 767px) {
  .ado-topbar .container { justify-content: space-between; }
  .ado-topbar-left { gap: 10px; }
  .ado-navbar-inner { gap: 10px; }
  .ado-brand img { height: 38px; max-width: 140px; }
  .ado-nav-actions .ado-icon-btn { display: none; }
  .ado-user-btn .ado-user-name { display: none; }
  .ado-user-btn { padding: 4px; }
}

/* =====================================================================
   11. HERO CLEARANCE + HEADER FIT
   --------------------------------------------------------------------- */
/* Keep the hero copy clear of the sticky bar: a taller stage and a
   smaller bottom lift stop the headline from growing up behind the nav. */
.ado-hero .carousel-inner > .item, .ado-hero-scene { height: clamp(600px, 88vh, 880px); }
.ado-hero-caption { padding-bottom: clamp(120px, 17vh, 190px); }
.ado-hero-caption h1 { font-size: clamp(32px, 5.2vw, 68px); line-height: 1.05; }
.ado-hero-copy { max-width: 680px; }
.ado-hero-copy .ado-hero-brand { font-size: clamp(14px, 1.3vw, 17px); margin-top: 14px; }
.ado-hero-cta { margin-top: 22px; }
@media (max-width: 991px) { .ado-hero-caption { padding-bottom: 150px; } }

/* Smaller brand mark so the menu never crowds the cart / account cluster. */
.ado-navbar-inner { gap: 18px; }
.ado-brand img { height: 42px; max-width: 176px; }
.ado-stuck .ado-brand img { height: 36px; }
.ado-navbar .ado-nav .nav > li > a, .ado-navbar .ado-nav > ul > li > a { padding: 0 12px; font-size: 11.5px; letter-spacing: .12em; }
@media (max-width: 1199px) { .ado-brand img { height: 40px; max-width: 150px; } }
@media (max-width: 767px) { .ado-brand img { height: 34px; max-width: 124px; } }
