/* Champion Garden Center — Custom Styles */
/* Additional custom styles beyond Tailwind */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #071024;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #22C55E;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@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;
    }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, .cta-banner, #contact, .section-divider, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-grid {
        min-height: auto;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Subtle pattern overlay for dark sections */
.cta-banner {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.04) 0%, transparent 50%);
}

/* Service card icon container */
.service-card .w-14 {
    transition: transform 0.3s ease;
}
.service-card:hover .w-14 {
    transform: scale(1.08) rotate(-3deg);
}

/* Counter animation */
.counter-num {
    display: inline-block;
}

/* Mobile menu animation */
.mobile-menu {
    will-change: transform;
}

/* Image hover zoom */
.img-grid img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Feature card hover */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar transition */
#navbar {
    will-change: background, box-shadow;
}

/* Ensure all links are visible */
a {
    text-decoration: none;
}

/* Ensure form buttons are clickable */
button[type="submit"] {
    appearance: button;
    -webkit-appearance: button;
}

/* Avoid content flash on load */
body {
    opacity: 1;
}

/* Map container hover */
.map-container:hover {
    filter: brightness(1.02);
    transition: filter 0.3s ease;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Custom focus styles for keyboard navigation */
a:focus-visible, button:focus-visible {
    outline: 2px solid #22C55E;
    outline-offset: 3px;
    border-radius: 4px;
}
