/* Custom styles beyond Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffdf8;
}
::-webkit-scrollbar-thumb {
    background: #f9d0d9;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec748a;
}

/* Hero image gradient overlay on mobile */
@media (max-width: 1023px) {
    .hero-img-wrapper {
        position: relative;
    }
    .hero-img-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(to top, rgba(253,253,248,1) 0%, transparent 100%);
        pointer-events: none;
        border-radius: 0 0 1.5rem 1.5rem;
    }
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.card-float {
    animation: float 4s ease-in-out infinite;
}

.card-float:nth-child(2) {
    animation-delay: -1.3s;
}

.card-float:nth-child(3) {
    animation-delay: -2.6s;
}

/* Reduce motion for floating cards */
@media (prefers-reduced-motion: reduce) {
    .card-float {
        animation: none;
    }
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

/* Nav active state */
.nav-link.active {
    color: #781f2a;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #781f2a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #fce7eb;
    color: #781f2a;
}

/* Subtle pattern for gallery section */
.gallery-grid {
    display: grid;
    gap: 1rem;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Testimonial card shimmer */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
