/*
 * EuroSwift Theme Main Styles
 * * NOTE: Dynamic Colors (Primary, Secondary, Accent, Buttons) are handled 
 * by the WordPress Customizer and injected via functions.php.
 * This file contains structural styles, animations, and default fallbacks.
 */

/* Core Styles */
html {
    scroll-behavior: smooth;
}
.premium-gradient { background: linear-gradient(135deg, #0F172A 0%, #020617 100%); }
.text-glow { text-shadow: 0 0 30px rgba(250, 204, 21, 0.4); }

/* Hero Slider */
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.0s ease-in-out; /* Sped up from 1.5s for faster load feel */ }
.hero-slide.active { opacity: 0.4; }

/* Trust Wall (Brand Scroll) */
.trust-item { flex-shrink: 0; display: flex; align-items: center; gap: 0.75rem; background: rgba(255,255,255,0.05); padding: 0.75rem 1.25rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s ease; /* Faster hover transition */ }
.trust-item:hover { background: rgba(255,255,255,0.15); border-color: rgba(250, 204, 21, 0.5); transform: translateY(-2px); }
.trust-item img, .trust-item i { height: 32px; width: auto; font-size: 28px; color: #FACC15; /* Default Accent Fallback */ }
.trust-item span { font-size: 0.95rem; font-weight: 600; color: #f1f5f9; white-space: nowrap; }

/* REDESIGNED WHY CHOOSE US (INTERACTIVE) */
.why-icon-btn {
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    border-radius: 1rem; 
    background: #f8fafc; 
    border: 2px solid #e2e8f0; 
    color: #334155; 
    font-size: 2rem; cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* Snappier transition */
}
.why-icon-btn:hover, .why-icon-btn.active {
    background: #FACC15; border-color: #FACC15; color: #0F172A; transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(250, 204, 21, 0.4);
}
.why-content-area {
    min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center;
    background: #ffffff; border-radius: 2rem; padding: 3rem;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.1); border: 1px solid #f1f5f9;
}

/* Fix for Why Us text visibility - Defaults */
/* Removed !important to allow Customizer override */
.why-content-area h3 {
    color: #0F172A; 
}
.why-content-area p {
    color: #000000; 
}
.why-content-area i {
    color: #FACC15; 
}

/* FAQ & Reviews Styles */
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary ~ * { animation: sweep .3s ease-in-out; }
@keyframes sweep { 0% {opacity: 0; transform: translateY(-10px)} 100% {opacity: 1; transform: translateY(0)} }

.marquee-wrapper { display: flex; flex-direction: column; gap: 2rem; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; animation: marquee-scroll 240s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track.reverse { animation-direction: reverse; }

/* Feature Bar Wrapper */
.feature-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    overflow: hidden;
}

/* Faster Marquee Track */
.marquee-track-fast {
    display: flex;
    gap: 1rem; 
    width: max-content;
    animation: marquee-scroll 80s linear infinite; 
}
.marquee-track-fast:hover { animation-play-state: paused; }
.marquee-track-fast.reverse { animation-direction: reverse; }

.review-card-marquee { width: 350px; flex-shrink: 0; background: #ffffff; padding: 1.75rem; border-radius: 1.25rem; border: 1px solid #f1f5f9; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); display: flex; flex-direction: column; justify-content: space-between; }

/* Feature item style */
.feature-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.feature-item:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.5);
    color: #FACC15;
}

@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Animations */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(-10%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
.animate-bounce-slow {
  animation: bounce-slow 2s infinite;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    /* UPDATED: Faster animation duration (0.4s) for snappy feel */
    animation: fade-in 0.4s ease-out;
}

/* NEW: Ripple Animation for Emergency Button */
@keyframes ripple-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}
/* Apply this class to the fixed Red button for extra attention */
.bg-euro-red.animate-pulse {
    animation: ripple-red 1.5s infinite !important;
}

/* Button Base Style (Enhanced via Customizer) */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out; /* Faster hover transition */
    cursor: pointer;
    /* Defaults, overridden by functions.php */
    background-color: #FACC15;
    color: #0F172A;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}
/* Ensure links inside buttons fill the container */
.button a {
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fixed Button Z-Index Safety */
.fixed.bottom-6 {
    z-index: 9999; /* Ensure floating buttons are always on top */
}