/* 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;
}

/* 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;
}

/* ===== Public form feedback (contact form) ===== */
.form-alert {
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.form-alert--success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.form-alert--error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.input-invalid {
    border-color: #f87171 !important;
}

.field-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #dc2626;
}

/* ===== Signed-in admin topbar (public site) ===== */
.admin-topbar {
    background-color: #1e3a5f;
    border-bottom: 1px solid #2f4d74;
}

.admin-topbar .topbar-link {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-topbar .topbar-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.admin-topbar .topbar-logout {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-topbar .topbar-logout:hover {
    background-color: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

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