/* Tailwind is still included via CDN, this file handles custom styles */

html {
  scroll-behavior: smooth;
}

section {
  padding: 0 2em 0 2em;
}

.hero {
  overflow: hidden;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 103%;
  height: 103%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.sky {
  background-image: url('../mnt/data/sky.webp');
  z-index: 0;
}

.foreground {
  background-image: url('../mnt/data/foreground.webp');
  z-index: 1;
  background-position: bottom;
  background-size: contain;
}

.bushes {
  background-image: url('../mnt/data/bushes-trees.webp');
  z-index: 2;
  background-position: bottom;
}

#services {
    background-image: url('../mnt/data/cranes-background.webp');
    z-index: 2;
    background-position: bottom;
    background-size: contain;
    background-repeat: no-repeat;
}

#services > div img {
  width: 9em;
  margin: 1em auto;
}

.inspired > div img {
  width: 4em;
}

@media (min-width: 1513px) {
  .foreground {
    background-image: url('../mnt/data/foreground-mobile.webp');
  }
}

@media (max-width: 768px) {
  .foreground {
    background-image: url('../mnt/data/foreground-mobile.webp');
    top: -2em;
  }
  .h-screen {
    height: 85vh;
  }
  .start {
    background-size: contain!important;
  }
}

.scrolled {
  background-color: #f5f2e6 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.scroll-indicator {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.start {
    background-image: url('../mnt/data/homepage-footer.webp');
}

.hamburger-open div:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-open div:nth-child(2) {
  opacity: 0;
}

.hamburger-open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.py-3 {
  padding-bottom: 0.55rem!important;
}

/* BaileyHill Logo Carousel */

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

.bh-logo-carousel {
  overflow: hidden;
  position: relative;
}

.bh-logo-track {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* fade edges */

.bh-logo-track::before,
.bh-logo-track::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.bh-logo-track::before {
  left: 0;
  background: linear-gradient(to left, rgba(59,77,63,0), #3b4d3f);
}

.bh-logo-track::after {
  right: 0;
  background: linear-gradient(to right, rgba(59,77,63,0), #3b4d3f);
}

/* pause on hover */

.bh-logo-track:hover .bh-logo-slide {
  animation-play-state: paused;
}

/* scrolling strip */

.bh-logo-slide {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: bh-logo-scroll 40s linear infinite;
}

/* logos */

.bh-logo-slide img {
  height: 4em;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0 4em;
}

/* mobile adjustments */

@media (max-width: 640px) {
  .bh-logo-slide img {
    height: 3.25em;
    margin: 0 1.5em;
  }

  .bh-logo-slide {
    animation: bh-logo-scroll 45s linear infinite;
  }

  .bh-logo-track::before,
  .bh-logo-track::after {
    width: 24px;
  }
}

 .word-enter {
    opacity: 0;
    transform: translateY(12px);
  }

  .word-active {
    opacity: 1;
    transform: translateY(0);
  }

  .word-exit {
    opacity: 0;
    transform: translateY(-12px);
  }