/* ============================================
   West End Villa — Custom Styles
   Classic & Elegant | Teal + Slate Palette
   ============================================ */

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

/* --- Selection --- */
::selection {
    background-color: #0f766e;
    color: #f0fdfa;
}

/* --- Scroll reveal base state (progressive enhancement) --- */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* --- Navbar transition --- */
#navbar {
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(8, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

#navbar.scrolled #nav-logo-icon {
    color: #2dd4bf;
}

/* --- Hero animations --- */
#hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

#hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

#hero-sub {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

#hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

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

/* --- Button focus states --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* --- Form textarea resize --- */
textarea {
    min-height: 120px;
}

/* --- Mobile menu transitions --- */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

/* --- Image aspect ratio fallbacks --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Print styles --- */
@media print {
    #navbar,
    #mobile-menu-btn,
    .scroll-reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
