/* ===========================
   Faerveldir Brewing Company
   Custom Styles
   =========================== */

/* Custom Font - Market Deco */
@font-face {
  font-family: 'Market Deco';
  src: url('../assets/fonts/Market_Deco.woff2') format('woff2'),
       url('../assets/fonts/Market_Deco.woff') format('woff'),
       url('../assets/fonts/Market_Deco.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Arrow link hover effect */
.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #3b6341;
}

.arrow-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #3b6341;
}

.arrow-link svg {
  transition: transform 0.2s ease;
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

/* Active nav indicator — vertical line dropping from text to header bottom border */
.nav-active {
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 8px;
  background-color: #ccc;
}

/* Scroll indicator dots */
.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3b6341;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.scroll-dot.active {
  opacity: 1;
}

/* Mobile menu slide animation */
#mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  pointer-events: none;
}

#mobile-menu.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Newsletter input */
.newsletter-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #3b6341;
  color: #3b6341;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 0 4px 0;
  outline: none;
  width: 100%;
}

.newsletter-input::placeholder {
  color: #999;
}
