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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(249, 112, 102, 0.2);
    color: #1A1A22;
}

/* ===== Scroll Reveal ===== */
.scroll-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);
}

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

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

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

    .scroll-reveal[data-delay="100"] { transition-delay: 0.1s; }
    .scroll-reveal[data-delay="200"] { transition-delay: 0.2s; }
    .scroll-reveal[data-delay="300"] { transition-delay: 0.3s; }
    .scroll-reveal[data-delay="400"] { transition-delay: 0.4s; }
}

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif {
    color: #1A1A22 !important;
}

#navbar.scrolled .text-charcoal-500 {
    color: #888899 !important;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ECECF0;
}

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

/* ===== Custom Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F97066;
    outline-offset: 2px;
}

/* ===== Smooth Image Loading ===== */
img {
    loading: lazy;
    decoding: async;
}

/* ===== Active Nav Link ===== */
.nav-link-active {
    color: #F97066 !important;
}

/* ===== Subtle Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== Loading State for Button ===== */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== Print Styles ===== */
@media print {
    #navbar, #contact-form, #form-success {
        display: none;
    }

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

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