/* Fix Font Awesome icon sizing — inline elements ignore w/h utilities */
i[class*="fa-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Alpine.js - hide until ready */
[x-cloak] { display: none !important; }

/* Back to Top */
#backToTop {
    transition: all 0.3s ease;
}

/* ===== Custom Styles ===== */

/* Fix horizontal scrollbar - clip on html (doesn't break sticky) */
html {
    overflow-x: clip;
}
body {
    overflow-x: clip;
    margin: 0;
    padding: 0;
}

/* Reset margins */
* {
    margin: 0;
    padding: 0;
}

/* Ticker - prevent overflow */
.ticker-scroll {
    animation: ticker-scroll 35s linear infinite;
}
.ticker-scroll:hover {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Swiper - prevent overflow */
.swiper {
    overflow: hidden;
}

/* Hero Swiper Pagination */
.hero-pagination .swiper-pagination-bullet {
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #00A63E;
    width: 48px;
}

/* Testimonial Swiper Pagination */
.testimonial-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: #00A63E;
    width: 28px;
    border-radius: 5px;
}

/* Mobile Drawer */
#mobilePanel.open {
    transform: translateX(0);
}

/* Counter Animation */
.counter-animate {
    transition: all 0.1s;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00A63E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #008C33;
}

/* Gallery Lightbox Spinner */
#galleryLightbox .border-3 {
    border-width: 3px;
}

/* Dropdown hover fix for desktop */
@media (min-width: 1024px) {
    .group:hover > .group-hover\\:block {
        display: block;
    }
}
