/* ===== RESET & FOUNDATION ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== PERSISTENT LOGO (above indicators, bottom-right) ===== */
.persistent-logo {
  position: fixed;
  bottom: 56px;
  right: 40px;
  z-index: 1000;
  pointer-events: none;
  /* Match the total width of the indicator group: 3×28 + 1×40 + 3×10 = 154px */
  width: 154px;
  display: flex;
  justify-content: center;
}

.persistent-logo img {
  width: 100%;
  height: auto;
  opacity: 0.85;
}

/* ===== SLIDESHOW CONTAINER ===== */
.slideshow {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ===== INDIVIDUAL SLIDES ===== */
.slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  visibility: hidden;
}

.slide.active {
  visibility: visible;
  z-index: 2;
}

/* ===== SLIDE BACKGROUNDS ===== */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: none;
}

/* Bottom scrim — ensures text is always legible over any video content */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 25%,
    rgba(0, 0, 0, 0.0) 55%
  );
  pointer-events: none;
}

/* Video and image backgrounds */
video.slide-bg,
img.slide-bg {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* Gradient placeholders — unique moody tones per brand */
.slide-bg--caddyshack {
  background: linear-gradient(160deg, #0d2818 0%, #060f08 40%, #0a1f10 70%, #000000 100%);
}

.slide-bg--mcg {
  background: linear-gradient(160deg, #0c1a2e 0%, #070d17 40%, #0f1f35 70%, #000000 100%);
}

.slide-bg--sonar {
  background: linear-gradient(160deg, #1a0e30 0%, #0a0618 40%, #150c28 70%, #000000 100%);
}

.slide-bg--lawnthusiast {
  background: linear-gradient(160deg, #0a2a1a 0%, #050e08 40%, #0d2f18 70%, #000000 100%);
}

/* ===== TRANSITION STATES ===== */

/* Outgoing slide: smooth fade out */
.slide.transition-out {
  visibility: visible;
  z-index: 3;
  animation: slideOut 1.6s ease-in-out forwards;
}

/* Incoming slide: smooth fade in */
.slide.transition-in {
  visibility: visible;
  z-index: 2;
  animation: slideIn 1.6s ease-in-out forwards;
}

@keyframes slideOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ===== SLIDE CONTENT (bottom-left) ===== */
.slide-content {
  position: absolute;
  bottom: 60px;
  left: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0s;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Brand logo (left of //) */
.slide-brand__logo {
  height: 32px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Separator */
.slide-brand__separator {
  color: #ffffff;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 1px;
  user-select: none;
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Right side: subtitle + link stacked vertically */
.slide-brand__right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Subtitle */
.slide-brand__subtitle {
  color: #ffffff;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.5;
  max-width: 420px;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Visit link */
.slide-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

a.slide-link:hover {
  color: #ffffff;
  letter-spacing: 2.5px;
}

.slide-link--coming-soon {
  color: #ffffff;
  font-style: italic;
  cursor: default;
}

/* ===== SLIDE INDICATORS ===== */
.slide-indicators {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator {
  width: 28px;
  height: 2px;
  border: none;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.indicator.active {
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ===== PROGRESS BAR ===== */
.slide-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1000;
  width: 0%;
  transition: none;
}

.slide-progress.running {
  width: 100%;
  transition: width linear;
}

/* ===== BURGER MENU BUTTON ===== */
.burger {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 3000;
  width: 36px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1),
              opacity 0.4s cubic-bezier(0.77, 0, 0.18, 1),
              background-color 0.4s ease;
  transform-origin: center;
}

/* When menu is open: lines become X, color turns black */
.burger.is-open .burger__line {
  background: #000;
}

.burger.is-open .burger__line:first-child {
  transform: translateY(5px) rotate(45deg);
}

.burger.is-open .burger__line:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* ===== FULLSCREEN MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-overlay.is-open {
  transform: translateX(0);
}

.menu-overlay__list {
  list-style: none;
  padding: 0 clamp(40px, 8vw, 120px) 0 0;
  margin: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-overlay__link {
  color: #000;
  text-decoration: none;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 4px 0;
}

.menu-overlay__link:hover {
  color: #0053A1;
  transform: translateX(-12px);
}

/* Staggered entrance animation for menu items */
.menu-overlay.is-open .menu-overlay__list li {
  opacity: 0;
  transform: translateX(40px);
  animation: menuItemIn 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.menu-overlay.is-open .menu-overlay__list li:nth-child(1) { animation-delay: 0.15s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(2) { animation-delay: 0.22s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(3) { animation-delay: 0.29s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(4) { animation-delay: 0.36s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(5) { animation-delay: 0.43s; }

/* Reset when closed */
.menu-overlay:not(.is-open) .menu-overlay__list li {
  opacity: 0;
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== MENU SOCIAL LINKS ===== */
.menu-overlay__social {
  position: absolute;
  bottom: clamp(32px, 5vh, 60px);
  right: clamp(40px, 8vw, 120px);
  display: flex;
  gap: 20px;
}

.menu-overlay__social-link {
  color: #000;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.menu-overlay__social-link:hover {
  color: #0053A1;
  transform: scale(1.15);
}

.menu-overlay__social-link svg {
  width: 28px;
  height: 28px;
}

/* Staggered entrance for social icons */
.menu-overlay.is-open .menu-overlay__social-link {
  opacity: 0;
  animation: menuItemIn 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.menu-overlay.is-open .menu-overlay__social-link:nth-child(1) { animation-delay: 0.5s; }
.menu-overlay.is-open .menu-overlay__social-link:nth-child(2) { animation-delay: 0.57s; }

.menu-overlay:not(.is-open) .menu-overlay__social-link {
  opacity: 0;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  /* Meinert logo: top-left on mobile */
  .persistent-logo {
    top: 24px;
    left: 24px;
    bottom: auto;
    right: auto;
    width: 110px;
    justify-content: flex-start;
  }

  /* Slide content: logo // on one row, subtitle+link on next */
  .slide-content {
    bottom: 64px;
    left: 24px;
    right: 24px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  /* Brand logo */
  .slide-brand__logo {
    height: 26px;
    max-width: 180px;
  }

  /* Separator stays inline with logo */
  .slide-brand__separator {
    font-size: 20px;
  }

  /* Right block drops to its own full-width row */
  .slide-brand__right {
    width: 100%;
    flex-basis: 100%;
    gap: 3px;
  }

  /* Subtitle */
  .slide-brand__subtitle {
    font-size: 12px;
    white-space: normal;
    max-width: 100%;
    line-height: 1.4;
  }

  /* Link */
  .slide-link {
    font-size: 11px;
  }

  /* Indicators: bottom-center on mobile */
  .slide-indicators {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    gap: 8px;
  }

  .indicator {
    width: 20px;
  }

  .indicator.active {
    width: 30px;
  }

  /* Burger: adjust position for mobile */
  .burger {
    top: 24px;
    right: 24px;
  }

  .menu-overlay__list {
    padding-right: clamp(24px, 6vw, 40px);
  }

  .menu-overlay__link {
    font-size: clamp(28px, 8vw, 48px);
  }

  .menu-overlay__social {
    right: clamp(24px, 6vw, 40px);
  }
}
