/* ============================================
   LG Florida Awning Corp. — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefcfb;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11d3f;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6f1f34;
}

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 252, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(109, 31, 52, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled span.font-display {
    color: #6f1f34 !important;
}

#navbar.scrolled .text-burgundy-500 {
    color: #a11d3f !important;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu button */
#menu-btn[aria-expanded="true"] #menu-icon-open {
    opacity: 0;
    pointer-events: none;
}

#menu-btn[aria-expanded="true"] #menu-icon-close {
    opacity: 1;
    pointer-events: auto;
}

#menu-btn[aria-expanded="false"] #menu-icon-open {
    opacity: 1;
    pointer-events: auto;
}

#menu-btn[aria-expanded="false"] #menu-icon-close {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-btn[aria-expanded="true"] #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menu-btn[aria-expanded="true"] #bar2 {
    transform: scaleX(0);
    opacity: 0;
}
#menu-btn[aria-expanded="true"] #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* Service card hover */
.service-card {
    will-change: transform;
}

/* Gallery hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Back to top */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .service-card:hover {
        transform: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #a11d3f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    #mobile-menu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
}
