/* Jogjapadelsport — Premium UI Enhancement */

/* === BASE === */
html { scroll-behavior: smooth; }
body { cursor: default; }

/* Hide Webflow badge */
.w-webflow-badge { display: none !important; }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; }

/* === HERO VIDEO OVERLAY === */
.video-grid-desktop > div,
.video-grid-mobile {
  position: relative;
}
.video-grid-desktop > div::after,
.video-grid-mobile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
  z-index: 2;
}
.video-grid-desktop > div .video-label,
.video-grid-mobile .video-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* === HOVER EFFECTS === */
/* Cards */
.card, .card-with-image, .product-link, .service-list-item {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease !important;
}
.card:hover, .card-with-image:hover, .product-link:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;
}

/* Service thumbnail hover */
.service-thumbnail-wrapper {
  overflow: hidden;
}
.service-thumbnail-wrapper img,
.service-thumbnail-wrapper video {
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1) !important;
}
.service-list-item:hover .service-thumbnail-wrapper img,
.service-list-item:hover .service-thumbnail-wrapper video {
  transform: scale(1.05) !important;
}

/* Buttons */
.button-primary, .w-button {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease !important;
  position: relative;
  overflow: hidden;
}
.button-primary:hover, .w-button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(21,101,192,0.28) !important;
}
.button-primary:active, .w-button:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Shine sweep on hover */
.button-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transition: left 0.6s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  z-index: 3;
}
.button-primary:hover::after {
  left: 130%;
}

/* Arrow slide on hover */
.button-primary .right-arrow-icon {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease !important;
}
.button-primary .right-arrow-icon.hover {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-8px);
  opacity: 0;
}
.button-primary:hover .right-arrow-icon:not(.hover) {
  transform: translateX(6px);
  opacity: 0;
}
.button-primary:hover .right-arrow-icon.hover {
  transform: translateX(0);
  opacity: 1;
}

/* Entrance: fade-up stagger */
@keyframes heroBtnFadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-btn {
  animation: heroBtnFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-btn:nth-child(1) { animation-delay: 0.3s; }
.hero-btn:nth-child(2) { animation-delay: 0.45s; }

/* Button-naked underline */
.button-naked .button-underline,
.button-naked .button-underline-hover {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1) !important;
}

/* Links */
a {
  transition: color 0.3s ease, opacity 0.3s ease;
}
.menu-link:hover, .nav-menu-link:hover .menu-label {
  opacity: 0.7;
}

/* === ABOUT SECTION PARALLAX === */
.about-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* === SECTION TRANSITIONS === */
.section {
  position: relative;
}

/* === CTA OVERLAY === */
.cta-wrapper {
  position: relative;
}
.cta-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
  pointer-events: none;
}
.cta-content-wrapper {
  position: relative;
  z-index: 2;
}

/* === CURSOR DOT (hero only) === */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #1565C0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-dot.is-active {
  opacity: 1;
}

/* === DIVIDER ANIMATION === */
.divider {
  transition: width 1s cubic-bezier(0.16,1,0.3,1);
}

/* === MARQUEE LABEL HOVER === */
.label-wrapper {
  transition: opacity 0.3s ease;
}

/* === IMAGE ZOOM ON HOVER === */
.image-detail {
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1) !important;
}
.card-list-link:hover .image-detail {
  transform: scale(1.03) !important;
}

/* === ACCORDION === */
.tab-list-item {
  transition: background-color 0.3s ease !important;
}
.tab-list-item:hover {
  background-color: rgba(21,101,192,0.03) !important;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .cursor-dot { display: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
}

/* === MOBILE NAV: center brand === */
@media (max-width: 991px) {
  .navbar { position: relative; }
  .nav-left { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
  .nav-right { position: relative; z-index: 2; }
}

/* === MOBILE POLISH === */
html, body { overflow-x: hidden; }

@media (max-width: 991px) {
  .nav-button { display: flex !important; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0; }
  .nav-menu[data-nav-menu-open] { display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-menu[data-nav-menu-open] .nav-menu-link { display: block; padding: 1.25rem 0; }
}

@media (max-width: 767px) {
  .heading-style-h1 { font-size: clamp(2.25rem, 9vw, 3.5rem) !important; }
  .heading-style-h2 { font-size: clamp(1.75rem, 7.5vw, 2.75rem) !important; }
  .video-grid-mobile { height: 260px; }
  .hero-stacked-wrapper.no-gap { grid-row-gap: 3.5rem; }
  .hero-title-mobile { margin-top: 2rem; }
  .button-group { flex-direction: column !important; align-items: stretch !important; width: 100% !important; gap: 0.75rem !important; }
  .button-primary { width: 100% !important; justify-content: center; }
}

@media (max-width: 479px) {
  .padding-section-huge { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .button-primary { justify-content: center; }
}
