/* =========================================
   Prosecco Finishing & Preservation
   Professional Animation Package (Safe)
   - No page-load animations (prevents opacity:0 issues)
   - Hover effects, transitions, smooth scroll preserved
   ========================================= */

/* --- Smooth Scrolling --- */
html {
  scroll-behavior: smooth !important;
}

/* --- Button Hover Effects --- */
.wp-block-button__link,
.wp-element-button {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(87, 0, 45, 0.25) !important;
  filter: brightness(1.08);
}

.wp-block-button__link:active,
.wp-element-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(87, 0, 45, 0.2) !important;
}

/* Outline button hover - fill effect */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: #57002d !important;
  color: #ffffff !important;
  border-color: #57002d !important;
}

/* --- Image Hover Zoom --- */
.wp-block-image img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

.wp-block-image:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* --- Card/Block Hover Lift --- */
.wp-block-group[style*="border-radius"]:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Link Hover Transitions --- */
a {
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

/* Navigation link underline animation */
.wp-block-navigation-item a {
  position: relative;
  transition: color 0.25s ease;
}

.wp-block-navigation-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #57002d;
  transition: width 0.3s ease, left 0.3s ease;
}

.wp-block-navigation-item a:hover::after {
  width: 100%;
  left: 0;
}

/* Footer link hover enhancement */
footer .wp-block-group.has-link-color a:hover,
footer .wp-block-navigation-item a:hover {
  color: #ffffff !important;
  transition: color 0.2s ease;
}

/* --- Focus Styles (Accessibility) --- */
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
a:focus-visible {
  outline: 3px solid #57002d;
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 0.2s ease;
}

/* --- Cookie Banner Slide-In --- */
@keyframes proseccoSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#cmplz-cookiebanner-container,
.cc-window,
.cc-banner {
  animation: proseccoSlideIn 0.5s ease-out 0.5s both !important;
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print Styles --- */
@media print {
  * {
    animation: none !important;
    transition: none !important;
  }
}
