/* Modern Styles & Animations for Walker's Tea */

:root {
  /* Animation Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-short: 300ms;
  --duration-medium: 600ms;
  --duration-long: 1000ms;

  /* Enhanced Colors (deriving from existing palette) */
  --color-accent-hover: #098953;
  --color-surface-glass: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Brand Colors */
  --color-brand-primary: #054f30;
  --color-brand-accent: #f8c51a;
  --color-golden-glow: rgba(248, 197, 26, 0.5);
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION SUPPORT
   ============================================ */

@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;
  }
  
  /* Disable parallax and floating animations */
  .uui-heroheader02_image.float-animate {
    animation: none !important;
    transform: none !important;
  }
  
  /* Disable transform animations */
  .uui-heading-xlarge,
  .uui-text-size-xlarge,
  .uui-button-row-2,
  .div-block-8,
  .team-block,
  .uui-faq03_content {
    transform: none !important;
  }
}

/* --- Global Elements --- */

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10001;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--color-brand-accent);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* --- General Animations --- */

/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-medium) ease, transform var(--duration-medium) var(--ease-out-expo);
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delay Helpers */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

/* --- Hero Section Enhancements --- */

.heading_h1 {
  /* Animating the main title */
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s var(--ease-out-expo) forwards;
  animation-delay: 0.2s;
}

.subheading {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s var(--ease-out-expo) forwards;
  animation-delay: 0.4s;
}

.button-group {
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out-expo) forwards;
  animation-delay: 0.6s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HERO SECTION - TEXT ANIMATIONS
   ============================================ */

/* Hero Text Elements - Initial State */
.uui-heading-xlarge,
.uui-text-size-xlarge,
.uui-button-row-2 {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

/* Hero Title Animation */
.uui-heading-xlarge.in-view {
  animation: heroSlideUpFade 0.8s var(--ease-out-expo) forwards;
  animation-delay: 300ms;
}

/* Hero Subtitle Animation */
.uui-text-size-xlarge.in-view {
  animation: heroSlideUpFade 0.8s var(--ease-out-expo) forwards;
  animation-delay: 500ms;
}

/* Hero Buttons Animation with Scale */
.uui-button-row-2.in-view {
  animation: heroSlideUpFadeScale 0.8s var(--ease-out-expo) forwards;
  animation-delay: 700ms;
}

@keyframes heroSlideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideUpFadeScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   HERO SECTION - GEOMETRIC SHAPES ANIMATIONS
   ============================================ */

/* Floating Animation for Geometric Shapes */
.uui-heroheader02_image.float-animate {
  will-change: transform;
  animation: float var(--float-duration, 20s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transition: transform 0.2s ease-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(var(--float-rotation, 5deg));
  }
}

/* Mobile: Simplify animation, reduce visible shapes */
@media screen and (max-width: 767px) {
  .uui-heroheader02_image.hide-mobile-portrait {
    display: none;
  }
  
  .uui-heroheader02_image.float-animate {
    animation-duration: 25s;
    animation-timing-function: ease-in-out;
  }
}

/* Parallax effect - handled by JS, but ensure smooth transitions */
.uui-heroheader02_image {
  transition: transform 0.1s ease-out;
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Button Hover & Click Effects */
.button.on-inverse,
.uui-button-2 {
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .button.on-inverse:hover,
  .uui-button-2:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
  }
}

.button.on-inverse:active,
.uui-button-2:active {
  transform: scale(0.98);
}

/* Ripple Effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Link Underline Animation */
.animated-link {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .animated-link:hover::after {
    width: 100%;
  }
}

/* Image Zoom on Hover (Desktop Only) */
.zoom-on-hover {
  transition: transform 0.3s var(--ease-out-expo);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .zoom-on-hover:hover {
    transform: scale(1.05);
  }
}

/* Hero Checkmarks Animation */
.list-item-2,
.list-item-3,
.list-item-4,
.list-item-5 {
  opacity: 0;
  transform: translateX(-10px);
  animation: slideInRight 0.5s var(--ease-out-expo) forwards;
}

.list-item-2 {
  animation-delay: 0.8s;
}

.list-item-3 {
  animation-delay: 0.9s;
}

.list-item-4 {
  animation-delay: 1.0s;
}

.list-item-5 {
  animation-delay: 1.1s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Product Cards Enhancements --- */

.product-card {
  transition: transform var(--duration-short) ease, box-shadow var(--duration-short) ease !important;
  border: 1px solid transparent;
  border-radius: 12px;
  /* Smoother corners */
  overflow: hidden;
  background: white;
  opacity: 0;
  /* Initially hidden for scroll reveal */
  transform: translateY(20px);
  /* Initially down */
}

.product-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  /* Removed lift effect as requested */
  /* transform: translateY(-5px) !important; */
  /* box-shadow: var(--shadow-md) !important; */
  /* border-color: rgba(0,0,0,0.05); */
  z-index: 2;
}

.option-button {
  transition: all 0.2s ease;
  border-radius: 6px !important;
}

.option-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0 !important;
  z-index: 10;
  position: relative;
}

/* ============================================
   HISTORY SECTION ANIMATIONS
   ============================================ */

/* Section Heading */
#about-section .heading-4 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

#about-section .heading-4.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* History Cards - Stagger Reveal */
.div-block-8 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), box-shadow 0.3s ease;
  will-change: transform, opacity;
}

.div-block-8.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* History Cards Hover (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
  .div-block-8:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
}

/* Statistics Count-Up Animation */
.stat-number {
  color: var(--color-brand-accent);
  display: inline-block;
  font-weight: 700;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.stat-number.animation-complete {
  text-shadow: 0 0 10px var(--color-golden-glow);
}

@keyframes pulseHighlight {
  0%, 100% {
    text-shadow: 0 0 10px var(--color-golden-glow);
  }
  50% {
    text-shadow: 0 0 20px var(--color-golden-glow), 0 0 30px var(--color-golden-glow);
  }
}

/* Larry Walker Tribute - Respectful Animation */
.tribute-image-wrapper {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  will-change: transform, opacity;
}

.tribute-image-wrapper.in-view {
  opacity: 1;
  transform: scale(1);
}

.tribute-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.5s ease;
  display: block;
}

/* Golden Glow Animation for Legacy Honor */
.tribute-image-wrapper.in-view .tribute-image {
  animation: goldenGlow 2s ease-out 0.5s forwards;
}

@keyframes goldenGlow {
  0% {
    box-shadow: 0 0 0 var(--color-golden-glow);
  }
  50% {
    box-shadow: 0 0 15px var(--color-golden-glow), 0 0 25px var(--color-golden-glow);
  }
  100% {
    box-shadow: 0 0 10px var(--color-golden-glow);
  }
}

.tribute-caption {
  margin-top: 15px;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.5s ease 0.7s;
}

.tribute-image-wrapper.in-view .tribute-caption {
  opacity: 1;
}

/* ============================================
   TEAM SLIDER ENHANCEMENTS
   ============================================ */

/* Smooth Slide Transitions */
.team-slider-wrapper .w-slider-mask {
  transition: transform 500ms ease-in-out;
}

/* Team Cards - Scale In Animation */
.team-block {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  will-change: transform, opacity;
}

.team-block.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Team Member Images - Zoom on Hover (Desktop) */
.team-member-image-two {
  transition: transform 0.3s var(--ease-out-expo);
  border-radius: 12px;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .team-block:hover .team-member-image-two {
    transform: scale(1.05);
  }
}

/* Team Bio Text - Fade In After Image */
.team-block-info {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.team-block.in-view .team-block-info {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder Shimmer Effect */
img[src*="placeholder"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   FAQ SECTION ANIMATIONS
   ============================================ */

/* FAQ Entrance - Stagger Reveal */
.uui-faq03_content {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  will-change: transform, opacity;
}

.uui-faq03_content.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* FAQ Question - Hover States (No click needed, answers always visible) */
.uui-faq03_question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  padding: 15px;
  border-radius: 8px;
  position: relative;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .uui-faq03_question:hover {
    background-color: rgba(5, 79, 48, 0.05);
  }
}

/* FAQ Answer - Always Visible */
.uui-faq03_content .uui-text-size-medium-2 {
  display: block !important;
  overflow: visible !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-sizing: border-box;
}

/* CTA Section */
.uui-uui-faq03_cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.uui-uui-faq03_cta.in-view {
  opacity: 1;
  transform: translateY(0);
}

.uui-uui-faq03_cta {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out-expo);
}

.uui-uui-faq03_cta.in-view {
  opacity: 1;
  transform: translateY(0);
}

.add-to-cart {
  transition: background-color 0.3s ease, transform 0.2s ease !important;
  position: relative;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
  min-height: 48px;
  /* Slightly taller to prevent cutoff */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 24px !important;
  /* Explicit comfortable padding */
  box-sizing: border-box !important;
  line-height: 1.2 !important;
}

.add-to-cart:focus,
.add-to-cart:active {
  outline: none !important;
  /* Remove native focus ring which can look like cutoff */
  box-shadow: none !important;
  /* Remove conflicting shadows on focus */
}

.text-block-5 {
  overflow: visible !important;
  white-space: nowrap;
  line-height: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}

/* --- Cart Modal Modernization --- */

#cart-modal {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
  /* Force fixed positioning and full coverage */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  /* Extremely high to sit on top of everything */
  display: none;
  /* Hidden by default */
  align-items: flex-start;
  /* Or center? Webflow used flex-start for column? */
  justify-content: flex-end;
  /* Slide in from right usually? */
}

#cart-content {
  /* transform: translateX(100%); Slide in from right effect handled by webflow interaction usually, but we can enhance */
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
  /* border-radius: 20px 0 0 20px; */
  /* Maybe square edges for side panel look? */
  background-color: white;
  width: 100%;
  max-width: 400px;
  /* Standard cart width */
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}



/* Cart Items */
#cart-items-list>div {
  transition: background-color 0.2s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

#cart-items-list>div:hover {
  background-color: #fafafa;
}

/* --- Floating/Flying Element Animation (JS uses this) --- */
.flying-img {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.8s var(--ease-in-out);
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* --- Navigation --- */
.nav {
  backdrop-filter: blur(10px);
  background-color: rgba(5, 79, 48, 0.95);
  /* Semi-transparent accent color */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - adds shadow and enhanced backdrop */
.nav.scrolled {
  background-color: rgba(5, 79, 48, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  transform: translateY(0);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide down animation for when nav becomes sticky */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Enhanced nav link hover effect - subtle opacity change */
.nav_link {
  transition: opacity 0.3s ease;
}

.nav_link:hover {
  opacity: 0.8;
}

/* Fix navbar click glitch - prevent background from disappearing on click */
.nav_link.on-inverse:active {
  background-color: color-mix(in srgb, currentColor 20%, transparent) !important;
}

.nav_link.on-inverse.w--current {
  background-color: color-mix(in srgb, currentColor 10%, transparent) !important;
}

/* ============================================
   TABLET/iPAD - Match Mobile Style
   ============================================ */

/* iPad and tablet sizes (768px - 1024px) - use same navigation and spacing as mobile */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* Navigation - match mobile style */
  .nav_container {
    padding-top: var(--_sizes---spacing--0-5x) !important;
    padding-bottom: var(--_sizes---spacing--0-5x) !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .nav_left {
    flex: auto !important;
    justify-content: center !important;
  }

  .nav_right {
    flex: 0 60px !important;
    justify-content: center !important;
    align-self: center !important;
  }

  /* Navbar logo - match mobile scaling */
  .nav_logo {
    max-width: 100%;
    height: 2.5rem;
    flex-shrink: 1;
    display: flex;
    align-items: center;
  }

  .nav_logo-icon {
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav_logo-icon img,
  .nav_logo-icon .image-5 {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 2.5rem !important;
    object-fit: contain !important;
    display: block;
  }

  /* Navigation menu - ensure it matches mobile (collapsed menu) */
  /* Allow menu to show when opened via data-nav-menu-open attribute */
  .nav-menu.w-nav-menu:not([data-nav-menu-open]) {
    display: none;
  }

  /* Ensure mobile menu button is visible on tablet */
  .nav_mobile-menu-button {
    display: block !important;
    flex: 0 60px !important;
    margin-right: 1rem !important;
  }

  /* Spacing - match mobile exactly */
  .section {
    padding-top: var(--_sizes---spacing--2x) !important;
    padding-bottom: var(--_sizes---spacing--2x) !important;
  }

  .uui-padding-vertical-xhuge-3 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .uui-padding-vertical-xhuge-4 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .uui-padding-vertical-xhuge-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* Container spacing - proper padding to avoid content touching edges */
  .container,
  .w-container,
  .uui-container-large,
  .uui-container-large-3,
  .uui-container-large-4,
  .uui-container-large-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Grid spacing - match mobile */
  .grid_2-col {
    grid-column-gap: var(--_sizes---gap--sm-gap) !important;
    grid-row-gap: var(--_sizes---gap--sm-gap) !important;
  }

  /* Button group spacing - match mobile */
  .button-group {
    gap: var(--_sizes---spacing--1x) !important;
  }

  /* Image sizing - ensure images scale properly on tablet */
  img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Hero images and product images - proper sizing */
  .uui-heroheader02_image img,
  .team-member-image-two img,
  .tribute-image img,
  .div-block-8 img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Product images in grid */
  .product-image img,
  .image-5,
  img[src*="Label_Logo"],
  img[src*="Walkers"] {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Ensure tablet uses desktop hover effects (same as desktop) */
  @media (hover: hover) and (pointer: fine) {
    .div-block-8:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
    }

    .team-block:hover .team-member-image-two {
      transform: scale(1.05);
    }

    .zoom-on-hover:hover {
      transform: scale(1.05);
    }

    .button.on-inverse:hover,
    .uui-button-2:hover {
      transform: scale(1.02);
      box-shadow: var(--shadow-md);
    }

    .animated-link:hover::after {
      width: 100%;
    }
  }

  /* Keep geometric shapes animation same as desktop */
  .uui-heroheader02_image.float-animate {
    animation-duration: var(--float-duration, 20s);
  }

  /* Ensure parallax works on tablet (same as desktop) */
  .uui-heroheader02_image {
    transition: transform 0.1s ease-out;
  }

  /* Same animation timing as desktop */
  .div-block-8,
  .team-block,
  .uui-faq03_content {
    transition-duration: 0.6s;
  }

  /* Ensure all animations work the same */
  .uui-heading-xlarge,
  .uui-text-size-xlarge,
  .uui-button-row-2 {
    animation: heroSlideUpFade 0.8s var(--ease-out-expo) forwards;
  }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media screen and (max-width: 767px) {
  /* Disable hover effects on mobile */
  .product-card:hover,
  .div-block-8:hover,
  .team-block:hover .team-member-image-two,
  .zoom-on-hover:hover {
    transform: none !important;
  }

  /* Simplify geometric shapes animation */
  .uui-heroheader02_image.float-animate {
    animation-duration: 25s;
  }

  /* Reduce parallax intensity */
  .uui-heroheader02_image {
    transform: none !important;
  }

  /* Ensure touch targets are 44px minimum */
  .button,
  .uui-button-2,
  .uui-faq03_question {
    min-height: 44px;
    min-width: 44px;
  }

  /* Simplify animations for performance */
  .div-block-8,
  .team-block,
  .uui-faq03_content {
    transition-duration: 0.4s;
  }

  /* Fix navbar logo scaling on mobile - shrink to fit */
  .nav_left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .nav_logo {
    max-width: 100%;
    height: 2.5rem;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .nav_logo-icon {
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav_logo-icon img,
  .nav_logo-icon .image-5 {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 2.5rem !important;
    object-fit: contain !important;
    display: block;
  }
}

/* Specific overrides for the navbar cart button */
#cart-button {
  background-color: transparent !important;
}

/* Remove fade-in animation for the navbar button group containing the cart */
.nav_mobile.button-group {
  animation: none !important;
  opacity: 1 !important;
}