/* ---------------------------------------------------------------
   qampo.com
   Breakpoints mirror the old Slider Revolution grid:
   desktop >1240, notebook <=1240, tablet <=1024, mobile <=778
   --------------------------------------------------------------- */

:root {
  --brand-blue: #4ba8df;
  --font-brand: soleil, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-brand); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;   /* live slideshow sits at 1, under the masthead's 102 */
  height: 100vh;
  min-height: 900px;
  overflow: hidden;
  background: #000;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* One wash sits over the video: a flat 20% black across the whole
   frame. The old module also carried a 380px white gradient, but its
   mask is opacity:0 on every slide, so it never renders - not
   reproduced here. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 7; /* paints over the white scrim, as the old module did */
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
}


.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 130px;
  z-index: 9;
  display: flex;
  justify-content: center;
}

.hero__headline {
  margin: 0;
  padding: 50px 30px 30px;
  color: #fff;
  text-align: center;
  font-family: var(--font-brand);
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: -1px;
}

/* Bullets: Clean Bars, 50x3px, 10px gap, 20px off the floor */
.hero__nav {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  gap: 10px;
}

.hero__bullet {
  width: 50px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 200ms ease;
}

.hero__bullet:hover,
.hero__bullet[aria-current="true"] {
  background: rgba(239, 235, 229, 0.5);
}

.hero__bullet:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1240px) {
  .hero__headline { font-size: 60px; font-weight: 800; line-height: 60px; padding: 40px 30px 30px; }
  .hero__caption  { bottom: 110px; }
}

@media (max-width: 1024px) {
  .hero__headline { font-size: 50px; line-height: 45px; padding: 30px 30px 20px; }
}

@media (max-width: 778px) {
  .hero { min-height: 720px; }
  .hero__headline { font-size: 40px; line-height: 35px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

/* Visually hidden, still read aloud */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ---------------------------------------------------------------
   Counter type sizes
   Ultimate VC applies these from a JSON blob at runtime; the IDs
   are regenerated per page load upstream, so they are pinned here
   to the ids frozen into index.php.
   --------------------------------------------------------------- */
#counter-responsv-wrap-1882 .stats-number { font-size: 120px; line-height: 156px; }
#counter-responsv-wrap-1882 .stats-text { font-size: 24px; line-height: 25.6px; }
#counter-responsv-wrap-1882 .counter_suffix.mycust { font-size: 120px; line-height: 25.6px; }
#counter-responsv-wrap-7389 .stats-number { font-size: 120px; line-height: 156px; }
#counter-responsv-wrap-7389 .stats-text { font-size: 24px; line-height: 25.6px; }
#counter-responsv-wrap-7389 .counter_suffix.mycust { font-size: 24px; line-height: 25.6px; }
#counter-responsv-wrap-8660 .stats-number { font-size: 120px; line-height: 156px; }
#counter-responsv-wrap-8660 .stats-text { font-size: 24px; line-height: 25.6px; }
#counter-responsv-wrap-8660 .counter_prefix.mycust { font-size: 24px; line-height: 25.6px; }
#counter-responsv-wrap-8660 .counter_suffix.mycust { font-size: 24px; line-height: 25.6px; }

/* ---------------------------------------------------------------
   Headings demoted for SEO

   The page carried seven <h1>s. Six were demoted to their real
   semantic level, and this restores the h1 sizing they had so the
   design is untouched. Mirrors The7's own h1 curve: 44/54 above
   1024, 34/54 below.
   --------------------------------------------------------------- */
/* The7 sets line-height per heading level with high specificity,
   so these need to outrank it. */
.uvc-main-heading h2.qampo-h1,
.uvc-main-heading h3.qampo-h1,
h2.qampo-h1, h3.qampo-h1 {
  font-size: 44px;
  line-height: 54px !important;
}

@media (max-width: 1024px) {
  .uvc-main-heading h2.qampo-h1,
  .uvc-main-heading h3.qampo-h1,
  h2.qampo-h1, h3.qampo-h1 {
    font-size: 34px;
    line-height: 54px !important;
  }
}

/* ---------------------------------------------------------------
   Carousel dragging
   --------------------------------------------------------------- */
.owl-carousel .owl-stage-outer {
  cursor: grab;
  touch-action: pan-y;          /* horizontal drag for us, vertical scroll for the page */
}
.owl-carousel.is-dragging .owl-stage-outer { cursor: grabbing; }
.owl-carousel.is-dragging .owl-stage,
.owl-carousel.is-dragging .owl-stage * { user-select: none; }
.owl-carousel img { -webkit-user-drag: none; user-select: none; }

/* ---------------------------------------------------------------
   Sticky header

   The7 builds this state in JavaScript from a config blob, which the
   static freeze doesn't carry. These rules reproduce the computed
   result measured on production: the bar fixes to the top, shrinks
   to 66px, fades in a translucent white ground, and swaps the cyan
   logo for the dark one.
   --------------------------------------------------------------- */

.masthead.mixed-header {
  transition: background 0.35s, top 0.35s;
}

.masthead.mixed-header.sticky-top-line-on {
  position: fixed;
  top: 0;
  height: 66px;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 102;
}
.masthead.mixed-header.sticky-top-line-on .header-bar,
.masthead.mixed-header.sticky-top-line-on .branding { height: 66px; }

/* One logo shows per state; the other parks off-canvas the way
   The7 does it, rather than display:none, so layout stays put. */
.masthead.mixed-header .branding > a.sticky-logo { position: absolute; left: -9999px; }
.masthead.mixed-header.sticky-top-line-on .branding > a.sticky-logo { position: static; left: auto; }
.masthead.mixed-header.sticky-top-line-on .branding > a:not(.sticky-logo) { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------
   Page loader

   The7 rendered a full-screen loader over the page until content was
   ready; the static freeze dropped it, which left a black hero while
   the first video downloaded. The7's own #load rules survive in
   the7.css (fixed, full-screen, z-index 9901, white, and
   .loader-removed fades it out) - this only supplies the spinner.
   --------------------------------------------------------------- */
.qampo-spinner { animation: qampo-spin 1s linear infinite; }
@keyframes qampo-spin { to { transform: rotate(360deg); } }

#load { transition: opacity 0.4s ease, visibility 0.4s ease; }

/* If JavaScript never runs, the loader must not trap the page. */
.no-js #load { display: none; }

@media (prefers-reduced-motion: reduce) {
  .qampo-spinner { animation: none; }
}

/* Full-width rows are positioned from a JS measurement. If that ever
   measures wrong, the page must still not scroll sideways. */
html, body { overflow-x: hidden; }
