/* Home page section layouts, chosen with the layout picker (design-options/home). */

.on-dark {
  background: var(--footer-bg, #000);
  color: rgba(255, 255, 255, 0.72);
}

.section.on-dark p,
.section.on-dark li {
  color: rgba(255, 255, 255, 0.68);
}

.on-dark h2,
.on-dark h3,
.section.on-dark .emphasis {
  color: #fff;
}

.section h2.no-rule::before {
  display: none;
}

.o1a-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.o1a-grid > * {
  padding: 8px clamp(24px, 4vw, 56px) 8px 0;
}

.o1a-grid > * + * {
  padding: 8px 0 8px clamp(24px, 4vw, 56px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.o1a-h {
  margin: 0;
}

.o1a-h span:not(.new-copy) {
  display: block;
}

.o1a-h span.o1a-grid {
  display: grid;
}

.o1a-h-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 18px;
}

.o1a .o1a-half {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
  margin: 0 0 28px;
}

.o1a-close {
  margin-top: 64px;
  text-align: center;
}

.section .o1a-close .emphasis {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 24em;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .o1a-grid {
    grid-template-columns: 1fr;
  }

  .o1a-grid > *,
  .o1a-grid > * + * {
    padding: 8px 0;
    border-left: 0;
  }

  .o1a-grid > * + * {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .o1a-close {
    margin-top: 40px;
  }
}

/* Rotating logo bar below the hero, adapted from the Emergent Execs site */
.logo-marquee {
  background: var(--off-white); /* same light grey as the shaded sections, such as "What you will experience" */
  padding: 20px 0;
  overflow: hidden;
}

.logo-marquee__track-wrap {
  display: flex;
  overflow: hidden;
  /* The edge fade below groups the logos on their own layer, so the logos blend with this
     background, not the section's. Keep the two the same color. */
  background: var(--off-white);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.logo-marquee__track {
  display: flex;
  flex: none;
  gap: 40px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
  background: var(--off-white); /* the moving strip is its own layer too; same color again */
  animation: logo-marquee-scroll 100s linear infinite;
}

.logo-marquee__track-wrap:hover .logo-marquee__track {
  animation-play-state: paused;
}

.logo-marquee__item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px; /* the logo files are square, with space around each logo */
  margin: 0;
}

.logo-marquee__item img {
  height: 100%;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  /* Grey, softened logos. Each file has a white square behind its logo: the filter keeps that
     white pure white (and the logo a mid grey), and multiply then makes the white take on the
     section's background, so no square shows. Opacity is not used because it would show them. */
  filter: grayscale(100%) contrast(0.5) brightness(1.5);
  mix-blend-mode: multiply;
}

/* Wide, short logos (Town of Vail) get a wider slot so they read at the same height as the rest */
.logo-marquee__item--wide img {
  max-width: 140px;
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; }
  .logo-marquee__track-wrap { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .logo-marquee__track[aria-hidden="true"] { display: none; }
  .logo-marquee__track { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
}

@media (max-width: 640px) {
  .logo-marquee__track {
    gap: 24px;
    padding: 0 12px;
  }

  .logo-marquee__item {
    height: 70px;
  }

  .logo-marquee__item img {
    max-width: 70px;
  }
}

/* Home hero: 60px above and below its content, on every screen size */
main > .hero {
  padding-top: 60px;
  padding-bottom: 60px;
}
