/* Custom styles for Sand-N-Sun Pet Grooming */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 26, 46, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Hero parallax-like effect */
#hero {
    background-attachment: fixed;
}

/* Gold gradient accent line */
.gold-accent {
    background: linear-gradient(90deg, #d4a843, #c49b32);
    height: 3px;
    width: 60px;
    border-radius: 2px;
}

/* Service card hover glow */
.group:hover .group-hover\\:bg-gold-400 {
    background: linear-gradient(135deg, #d4a843, #c49b32) !important;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 39, 68, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #1a2744;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f1a2e;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus states */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Gallery image hover overlay */
.rounded-xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}
.rounded-xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* Ensure images have proper aspect ratio */
img {
    max-width: 100%;
    height: auto;
}
