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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 74, 0.3);
    color: #4A1E3F;
}

/* ─── Hero Animations ─── */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ─── Scroll Reveal ─── */
.reveal-fade {
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-fade {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
    }

    .reveal-fade.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0);
    }
}

/* ─── Navbar ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A04A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ─── Mobile Menu ─── */
.mobile-link {
    position: relative;
}

/* ─── Form Styling ─── */
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='%236B2D5B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* ─── Subtle line decorations ─── */
.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #D4A04A, transparent);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F9F0F7;
}
::-webkit-scrollbar-thumb {
    background: #D4A04A;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8822E;
}

/* ─── Image aspect ratios ─── */
img {
    display: block;
    max-width: 100%;
}

/* ─── Focus visible ─── */
*:focus-visible {
    outline: 1px solid #D4A04A;
    outline-offset: 2px;
}
