/* Francis House — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f1e9;
}
::-webkit-scrollbar-thumb {
    background: #1a3a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d442d;
}

/* Selection */
::selection {
    background: #c8a96e;
    color: #0f241a;
}

/* Scroll Reveal Base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll Reveal with animation - only when JS is available */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        animation: fadeInUp 0.8s ease forwards;
    }
    .scroll-reveal.animated.delay-100 {
        animation-delay: 100ms;
    }
    .scroll-reveal.animated.delay-200 {
        animation-delay: 200ms;
    }
    .scroll-reveal.animated.delay-300 {
        animation-delay: 300ms;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 58, 42, 0.08);
}

/* Mobile menu */
.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c8a96e;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #dce6df 0%, #ebe4d5 100%);
}

/* Smooth image transitions */
img {
    transition: opacity 0.3s ease;
}

img[data-loaded="true"] {
    opacity: 1;
}

img:not([data-loaded]) {
    opacity: 0;
}

/* Gold accent line animation */
@keyframes growWidth {
    from { width: 0; }
    to { width: 6rem; }
}

/* Hero decorative pulse */
@keyframes gentlePulse {
    0%, 100% { opacity: 0.05; transform: scale(1); }
    50% { opacity: 0.08; transform: scale(1.05); }
}

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

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