/* Custom styles for Ramsgate on 30A */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefcf8;
}
::-webkit-scrollbar-thumb {
    background: #d4a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c22d4c;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #6e1a2e;
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(254, 252, 248, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(161, 31, 56, 0.08);
}

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

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

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

/* Hamburger animation */
#menuLine1 {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
#menuLine2 {
    transition: opacity 0.2s ease;
}
#menuLine3 {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu-open #menuLine1 {
    transform: translateY(6px) rotate(45deg);
}
.menu-open #menuLine2 {
    opacity: 0;
}
.menu-open #menuLine3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group img {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    #hero .order-1 {
        order: 2;
    }
    #hero .order-2 {
        order: 1;
    }
}

/* Print styles */
@media print {
    nav, #contact, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
