/* ITERVO DESIGN-8 — additive preview-only scoped rules. No global brand changes. */
body.stage22-home .stage13-hero.itervo-design8-slideshow {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: clamp(565px, 70svh, 710px);
  padding-block: clamp(38px, 5vw, 70px) 80px;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: var(--green-900, #173B2A);
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,26,18,.80) 0%, rgba(9,26,18,.64) 33%, rgba(9,26,18,.32) 65%, rgba(9,26,18,.10) 100%);
  pointer-events: none;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--it-hero-desktop-focal, center);
  opacity: 0;
  transition: opacity .85s ease;
  pointer-events: none;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide.is-active { opacity: 1; }
body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy :is(.eyebrow,h1,h1 span,.s192-positioning,.s26-text-link,.hero-trust-row span) {
  color: var(--paper, #fff);
  text-shadow: 0 2px 10px rgba(0,0,0,.48);
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy h1 {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dot {
  appearance: none;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dot::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 1px 4px rgba(0,0,0,.30);
  transition: width .2s ease, background-color .2s ease;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dot[data-state="active"]::after {
  width: 23px;
  background: #fff;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dot[data-state="paused"]::after {
  width: 19px;
  background: rgba(255,255,255,.86);
  outline: 1px solid rgba(255,255,255,.58);
  outline-offset: 3px;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -2px;
}
/* Preserve the functioning search fallback, while reducing brief extra header space. */
body.stage22-home .itervo-search-fallback {
  margin-top: 2px;
  margin-bottom: 2px;
  min-height: 46px;
}
/* Original scanner shortcut reappears after the visitor scrolls beyond the hero. */
body.stage22-home.itervo-design8-hero-visible .itervo-scan-corner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow {
    grid-template-columns: minmax(0,1fr);
    min-height: 620px;
    height: auto;
    gap: 0;
    padding: 38px 18px 82px;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-layer::after {
    background: linear-gradient(180deg, rgba(8,24,17,.83) 0%, rgba(8,24,17,.64) 58%, rgba(8,24,17,.30) 100%);
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide {
    object-position: var(--it-hero-mobile-focal, center);
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy { max-width: 100%; }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy h1 {
    font-size: clamp(37px, 10.5vw, 58px);
  }

}
@media (max-width: 380px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide { transition: none; }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dot::after { transition: none; }
}

/* DESIGN-8C — founder-approved, preview-only homepage refinements (2026-10-13).
 * The shared navigation, logo, link destinations and search machinery are unmodified. */

/* Less empty white space around the real navigation and logo. */
body.stage22-home .itervo-nav-wrap .itervo-nav {
  min-height: 74px;
  padding-top: 6px;
  padding-bottom: 6px;
}
body.stage22-home #unifiedNavMount .s22-fallback-nav {
  min-height: 74px;
  padding-top: 6px;
  padding-bottom: 6px;
}
/* The real unified role finder or the non-JS fallback is visually anchored to
 * the top edge of the photographic hero, without removing/duplicating search. */
body.stage22-home .itervo-role-finder,
body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
  margin-top: 0;
  margin-bottom: -13px;
  transform: translateY(7px);
  z-index: 74;
}
body.stage22-home .itervo-role-finder .itervo-finder-shell {
  min-height: 48px;
  padding-top: 5px;
  padding-bottom: 5px;
}
/* Match the non-JS search form's spacing if JavaScript is unavailable. */
body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
  min-height: 48px;
}
/* Approved two-line marketing copy: photo-dependent, never a second heading.
 * No white panels, brand-token changes or extra CTAs. */
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-quote {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 82px;
  z-index: 1;
  width: max-content;
  max-width: min(300px, 28vw);
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 700;
  letter-spacing: -.016em;
  line-height: 1.3;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0,0,0,.72);
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-quote > span {
  display: block;
}
@media (max-width: 780px) {
  body.stage22-home .itervo-nav-wrap .itervo-nav,
  body.stage22-home #unifiedNavMount .s22-fallback-nav {
    min-height: 67px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  body.stage22-home .itervo-role-finder,
  body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
    margin-bottom: -11px;
    transform: translateY(6px);
  }
  /* On phones, quote follows the existing content in normal flow: no overlap
   * with the existing links, trust information or slideshow dots. */
  body.stage22-home .stage13-hero.itervo-design8-slideshow {
    padding-top: 54px;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-quote {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: start;
    max-width: 100%;
    margin-top: 18px;
    text-align: left;
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-quote {
    margin-top: 14px;
    font-size: 15px;
  }
}

/* DESIGN-8G: premium compact header + translucent search.
 * Preview-only; all original wording, navigation and service behaviour untouched. */
body.stage22-home .itervo-nav-wrap .itervo-nav,
body.stage22-home #unifiedNavMount .s22-fallback-nav {
  min-height: 68px;
  padding-block: 4px;
}
body.stage22-home .itervo-nav-wrap .itervo-nav-account {
  width: 152px;
  min-height: 46px;
  padding: 6px 10px;
  gap: 8px;
  border-radius: 12px;
}
body.stage22-home .itervo-nav-wrap .itervo-nav-account .itervo-account-avatar {
  width: 33px;
  min-width: 33px;
  height: 33px;
}
body.stage22-home .itervo-nav-wrap .itervo-nav-account b { font-size: 14px; }
body.stage22-home .itervo-nav-wrap .itervo-nav-account small { font-size: 11px; line-height: 1.25; }
body.stage22-home .itervo-role-finder,
body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
  position: relative;
  width: min(770px, calc(100% - 40px));
  margin: 0 auto -49px;
  transform: translateY(22px);
  z-index: 92;
}
body.stage22-home .itervo-role-finder .itervo-finder-shell,
body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
  min-height: 49px;
  padding: 5px 10px;
  background: rgba(255,255,255,.87);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 9px 26px rgba(5,26,16,.16);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}
body.stage22-home .itervo-role-finder .itervo-finder-panel {
  z-index: 110;
  background: rgba(255,255,255,.99);
}
body.stage22-home .stage13-hero.itervo-design8-slideshow {
  min-height: clamp(630px, 76svh, 790px);
  padding-top: clamp(118px, 10vw, 142px);
  padding-bottom: 95px;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-quote {
  font-size: clamp(13px, 1.03vw, 16px);
  font-weight: 560;
  right: max(32px, calc((100vw - 1280px) / 2));
  bottom: 82px;
  opacity: .91;
}
/* These are three real links INSIDE the photo hero, not a second homepage,
 * fake booking buttons or an extra full-width section below the hero. */
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  max-width: 770px;
  gap: 10px;
  margin-top: 23px;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:66px;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.4);
  border-radius:15px;
  background:rgba(10,39,28,.49);
  -webkit-backdrop-filter:blur(13px);
  backdrop-filter:blur(13px);
  color:#fff;
  text-decoration:none;
  box-shadow:0 8px 26px rgba(5,27,17,.18);
  transition:background-color .16s ease, transform .16s ease;
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door:hover {
  background:rgba(10,39,28,.72);
  transform:translateY(-2px);
}
body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door:focus-visible {
  outline:3px solid #fff;
  outline-offset:3px;
}
body.stage22-home .itervo-design8-door-symbol {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  background:rgba(255,255,255,.16);
  border-radius:11px;
  font-size:19px;
}
body.stage22-home .itervo-design8-hero-door > span:nth-child(2) {display:grid;gap:2px;min-width:0;}
body.stage22-home .itervo-design8-hero-door strong {
  font-size:14px;
  line-height:1.2;
  font-weight:800;
}
body.stage22-home .itervo-design8-hero-door small {
  font-size:11px;
  line-height:1.2;
  color:rgba(255,255,255,.84);
}
body.stage22-home .itervo-design8-door-arrow {margin-left:auto;font-size:17px;}
@media (max-width:1060px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy {max-width:710px;}
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {max-width:710px;}
}
@media (max-width:780px) {
  body.stage22-home .itervo-nav-wrap .itervo-nav,
  body.stage22-home #unifiedNavMount .s22-fallback-nav {min-height:66px;padding-block:4px;}
  body.stage22-home .itervo-role-finder,
  body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
    width:calc(100% - 26px);
    margin-bottom:-50px;
    transform:translateY(19px);
  }
  body.stage22-home .itervo-role-finder .itervo-finder-shell {min-height:50px;padding:5px 9px;}
  body.stage22-home .stage13-hero.itervo-design8-slideshow {
    min-height:660px;
    padding-top:117px;
    padding-bottom:84px;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:19px;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door {
    min-height:65px;
    padding:10px 9px;
    gap:6px;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door:last-child {
    grid-column:1/-1;
  }
  body.stage22-home .itervo-design8-door-symbol {width:30px;height:30px;flex-basis:30px;font-size:17px;}
  body.stage22-home .itervo-design8-hero-door strong {font-size:12.5px;}
  body.stage22-home .itervo-design8-hero-door small {font-size:10.5px;}
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-quote {
    position:relative;right:auto;bottom:auto;max-width:100%;
    margin-top:14px;font-size:13px;font-weight:550;text-align:left;
  }
}
@media (max-width:380px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow {padding-top:126px;}
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {
    grid-template-columns:minmax(0,1fr);
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door:last-child {grid-column:auto;}
}
@media (prefers-reduced-motion:reduce) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door {transition:none;}
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door:hover {transform:none;}
}


/* DESIGN-8H — approved micro-polish for the existing homepage preview.
 * Visual-only CSS: the original account/search behavior, slideshow and all
 * Green Pilot / ATGO Deliveries / Explore ITERVO destinations are unchanged.
 * Scoped to the homepage; do not copy these rules into shared navigation. */
@media (min-width:781px) {
  /* Compact, slightly rectangular signed-in account dropdown trigger. */
  body.stage22-home .itervo-nav-wrap .itervo-nav-account {
    width: 144px;
    min-height: 44px;
    grid-template-columns: 30px minmax(0,1fr) 12px;
    padding: 5px 8px;
    gap: 6px;
    border-radius: 9px;
  }
  body.stage22-home .itervo-nav-wrap .itervo-nav-account .itervo-account-avatar {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  body.stage22-home .itervo-nav-wrap .itervo-nav-account b {
    font-size: 12.5px;
  }
  body.stage22-home .itervo-nav-wrap .itervo-nav-account small {
    font-size: 10.5px;
    line-height: 1.2;
  }

  /* Keep one real search/finder, centered and narrower; cover JS + fallback. */
  body.stage22-home .itervo-role-finder,
  body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
    width: min(660px, calc(100% - 40px));
  }
  body.stage22-home .itervo-role-finder .itervo-finder-shell,
  body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
    min-height: 46px;
    padding: 4px 9px;
    border-radius: 14px;
  }

  /* Raise the original heading, CTAs, trust row and the 3 in-hero paths together. */
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy {
    transform: translateY(-28px);
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {
    margin-top: 12px;
  }
}
/* Medium desktop: smaller lift avoids crowding the hero under wider text wraps. */
@media (min-width:781px) and (max-width:1060px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy {
    transform: translateY(-16px);
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {
    margin-top: 14px;
  }
}
/* Phones retain normal flow, visible shortcuts and adequate tap target sizes. */
@media (max-width:780px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {
    margin-top: 16px;
  }
}
