/* ========== BASE RESET & GLOBAL ========== */
*, *::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;
}

img, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: #f4bfb8;
    color: #6e2a24;
}

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

#navbar.scrolled {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ========== HERO DECORATIVE ========== */
#hero::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(224, 99, 86, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

#hero::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 2%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(224, 99, 86, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ========== SMOOTH IMAGE TRANSITIONS ========== */
.rounded-2xl img,
.rounded-xl img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #d4d4d4;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf6ec;
}

::-webkit-scrollbar-thumb {
    background: #f4bfb8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e06356;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
    #hero::before,
    #hero::after {
        display: none;
    }

    .font-serif {
        line-height: 1.1;
    }
}

/* ========== 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;
    }
}
