/* ===== CUSTOM STYLES ===== */

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

/* Selection color */
::selection {
    background-color: rgba(165, 23, 54, 0.2);
    color: #711a36;
}

/* ===== REVEAL ANIMATIONS (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        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);
    }

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Ensure content is visible even without JS */
.no-js .reveal,
.js .reveal {
    opacity: 1;
    transform: none;
}

/* ===== NAVBAR SCROLL STATE ===== */
.navbar-scrolled {
    background-color: rgba(255, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(165, 23, 54, 0.08);
}

.navbar-scrolled .font-serif {
    color: #711a36 !important;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu.menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href^="tel:"] {
    text-decoration: none;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #a51736;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFFAF5;
}

::-webkit-scrollbar-thumb {
    background: #d4c8ba;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a51736;
}

/* ===== IMAGE LAZY LOAD ===== */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

img[loading="lazy"]:loaded {
    opacity: 1;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== MOBILE MENU FULLSCREEN ===== */
#mobile-menu {
    padding: 2rem;
}

/* ===== MAP CONTAINER ===== */
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}

/* ===== FORM STYLES (for future use) ===== */
input,
textarea {
    font-family: 'Nunito', system-ui, sans-serif;
}
