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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #E86A5E;
    color: #fff;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible if JS is disabled */
.no-js .reveal,
.js .reveal {
    opacity: 1;
    transform: none;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-blur-xl;
    box-shadow: 0 1px 0 rgba(46, 46, 60, 0.06);
}

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

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(46, 46, 60, 0.06);
}

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

/* ===== Hero Image Stack ===== */
@media (max-width: 1023px) {
    .lg\:col-start-8 {
        order: 2 !important;
    }
}

/* ===== Smooth Image Loading ===== */
img {
    background-color: rgba(46, 46, 60, 0.05);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #d4d4df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b0c2;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E86A5E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Input Autofill ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f7f7f8 inset !important;
    -webkit-text-fill-color: #2e2e3c !important;
}

/* ===== Map Container ===== */
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}
