/* Custom styles for Grace O'Malley's Whiskey Chapel */

/* Hero clip path */
.clip-hero-right {
    clip-path: polygon(25% 0%, 100% 0, 100% 100%, 0% 100%);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #6B0F1A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a0c15;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(107, 15, 26, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-logo-sub {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #6B0F1A;
}

#navbar.scrolled .nav-logo-sub {
    color: #dc2f55;
}

/* Mobile menu transitions */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

/* Reveal animations - progressive enhancement */
.reveal {
    /* Default state: visible for no-JS */
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-10px) rotate(45deg); }
}

.absolute.top-32.right-\[55%\] {
    animation: float-slow 6s ease-in-out infinite;
}

.absolute.bottom-48.right-\[52%\] {
    animation: float 4s ease-in-out infinite;
}

.absolute.top-\[45%\].left-8 {
    animation: float 5s ease-in-out infinite;
}

/* Button hover effects */
a[href^="tel:"], a[href^="mailto:"] {
    text-decoration: none;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #6B0F1A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fdf2f4 50%, #FDEAE0 100%);
}

/* Selection color */
::selection {
    background: #6B0F1A;
    color: #FFFBF7;
}
