/* ============================================
   Agape Lodge — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(123, 45, 59, 0.2);
    color: #7B2D3B;
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(58, 18, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

header.scrolled #nav-logo-text,
header.scrolled #nav-subtitle {
    color: white;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Scroll reveal (progressive enhancement) */
.section-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

    .section-reveal:nth-child(2) { transition-delay: 0.1s; }
    .section-reveal:nth-child(3) { transition-delay: 0.2s; }
    .section-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Image hover */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(123, 45, 59, 0.6);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #931e33;
}

/* Print styles */
@media print {
    header, footer, #contact-form, #form-success {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
