/*
Theme Name: Mucho Wacho
Theme URI: https://muchowacho.com
Author: Mucho Wacho
Author URI: https://muchowacho.com
Description: A bold, interactive one-page theme for the Mucho Wacho energy drink brand featuring animated tracking eyes, a floating hero can, and vibrant info cards.
Version: 1.7.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muchowacho
*/

/* ───── Custom Font ───── */
@font-face {
  font-family: 'Kobalt';
  src: url('assets/fonts/KobaltStd-Black.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ───── Reset ───── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: #005050;
  width: 100vw;
  overflow-x: hidden;
  cursor: default;
  font-family: 'Inter', sans-serif;
}

/* ───── Sections (scrollable spacers) ───── */
.section {
  height: 100vh;
  position: relative;
  scroll-snap-align: start;
}

#section-hero {
  z-index: 15;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  pointer-events: none;
}

#section-info {
  z-index: 1;
}

/* ───── Dynamic headline (no glow) ───── */
.hero-headline {
  font-family: 'Kobalt', sans-serif;
  font-size: clamp(32px, 7vw, 88px);
  color: #a4cc00;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: lowercase;
  max-width: 80vw;
  pointer-events: auto;
}

/* ───── Fixed layer: Eyes ───── */
.eyes-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

/* ───── Eye styles ───── */
.eye {
  position: absolute;
  will-change: transform, opacity;
  transition: none;
}

.eye-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.eye-green {
  width: 100%;
  height: 100%;
  background: #a4cc00;
  z-index: 1;
}

.eye-white-wrapper {
  z-index: 2;
  overflow: hidden;
  clip-path: url(#eye-clip);
  transition: transform 0.15s ease-out, height 0.12s ease-in-out;
}

.eye-white-wrapper.blink {
  height: 6% !important;
}

.eye-white {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
}

.eye-pupil-group {
  z-index: 3;
  pointer-events: none;
  transition: transform 0.15s ease-out, opacity 0.04s ease-out, width 0.35s ease-out, height 0.35s ease-out;
}

.eye-pupil-group.blink {
  opacity: 0;
  transition: opacity 0.04s ease-out;
}

.eye-pupil {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 50%;
  position: relative;
}

.eye-highlight {
  position: absolute;
  width: 22%;
  height: 22%;
  background: #fff;
  border-radius: 50%;
  top: 18%;
  right: 18%;
}

/* ───── Fixed layer: Can + Shop button ───── */
.fixed-center-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-can-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.hero-can {
  height: clamp(300px, 55vh, 580px);
  width: auto;
  animation: levitate 3s ease-in-out infinite;
  cursor: pointer;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

@keyframes levitate {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* ───── Zum Shop button (no glow) ───── */
.shop-btn {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 18px 56px;
  padding-top: 22px;
  /* offset for Kobalt font baseline */
  background: #a4cc00;
  color: #005050;
  border: none;
  border-radius: 50px;
  font-family: 'Kobalt', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.25s, background 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.shop-btn:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.04);
  background: #b8e000;
}

/* ───── Fixed layer: Info panels (4 panels) ───── */
.info-panel {
  position: fixed;
  z-index: 40;
  max-width: 300px;
  width: 24vw;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  padding: 28px;
  transition: pointer-events 0s;
}

.info-panel.visible {
  pointer-events: auto;
}

.info-panel-left {
  left: 5vw;
  transform: translateY(-50%) translateX(-120%);
}

.info-panel-right {
  right: 5vw;
  transform: translateY(-50%) translateX(120%);
  text-align: right;
}

.info-panel-top {
  top: 32%;
}

.info-panel-bottom {
  top: 65%;
}

.info-panel h2 {
  font-family: 'Kobalt', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  color: #a4cc00;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: lowercase;
}

.info-panel p {
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.5;
  color: #fff;
}

/* ───── Marquee banner ───── */
.marquee-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #a4cc00;
  z-index: 55;
  overflow: hidden;
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-track span {
  font-family: 'Kobalt', sans-serif;
  font-size: 13px;
  color: #005050;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 4px 6px 0;
  flex-shrink: 0;
  line-height: 40px;
}

.marquee-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #005050;
  border-radius: 50%;
  margin: 2px 10px 0;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ───── Footer ───── */
.site-footer {
  background: #003c3c;
  padding: 24px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer.open {
  transform: translateY(0);
}

.footer-toggle {
  position: absolute;
  top: -40px;
  right: 5vw;
  width: 60px;
  height: 40px;
  background: #003c3c;
  border-radius: 30px 30px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #a4cc00;
  border: none;
  padding-bottom: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-toggle svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer.open .footer-toggle svg {
  transform: rotate(180deg);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links .footer-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  margin: 0 12px;
}

/* ───── Mobile Carousel (hidden on desktop) ───── */
.mobile-carousel {
  display: none;
}

/* ───── Mobile ───── */
@media (max-width: 768px) {
  html {
    scroll-snap-type: y mandatory;
  }

  #section-hero {
    padding-top: 5vh;
  }

  /* Much bigger headline on mobile */
  .hero-headline {
    font-size: clamp(42px, 14vw, 72px);
    max-width: 90vw;
  }

  /* Bigger can on mobile */
  .hero-can {
    height: clamp(280px, 55vh, 440px);
  }

  /* Bigger CTA, positioned higher */
  .shop-btn {
    bottom: 10vh;
    padding: 18px 56px;
    padding-top: 22px;
    font-size: 20px;
  }

  /* Section 2 becomes the viewport for the carousel */
  #section-info {
    height: 100vh;
    z-index: 1;
    position: relative;
    background: transparent;
    pointer-events: none;
  }

  /* Hide desktop info panels on mobile */
  .info-panel {
    display: none !important;
  }

  /* ── Mobile Carousel ── */
  .mobile-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90vw;
    max-width: 400px;
    position: fixed;
    top: calc(50vh - 20px);
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding-bottom: 10px;
  }

  .mobile-carousel-track {
    display: flex;
    width: 100%;
    gap: 0;
    transition: transform 0.35s ease-out;
  }

  .mobile-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    padding: 20px 16px;
  }

  .mobile-carousel-slide h3 {
    font-family: 'Kobalt', sans-serif;
    font-size: clamp(24px, 7vw, 36px);
    color: #a4cc00;
    text-transform: lowercase;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }

  .mobile-carousel-slide p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
  }

  .mobile-carousel-dots {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
  }

  .carousel-dot.active {
    background: #a4cc00;
    transform: scale(1.3);
  }

  /* Footer mobile */
  .site-footer {
    padding: 20px 6vw;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .footer-links a {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-can {
    height: clamp(240px, 50vh, 360px);
  }

  .hero-headline {
    font-size: clamp(36px, 13vw, 60px);
  }

  .shop-btn {
    padding: 16px 48px;
    padding-top: 20px;
    font-size: 18px;
  }
}

/* ───── WordPress Overrides ───── */
/* Hide WP admin bar when logged in to avoid z-index conflicts */
body.admin-bar .marquee-banner {
  top: 32px;
}