/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #d9a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0506e;
}

/* ── Navigation ── */
#navbar {
    color: #fff;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    color: #56232f;
    box-shadow: 0 1px 0 rgba(127, 48, 67, 0.08);
}

#navbar.scrolled .nav-link {
    color: #56232f;
}

#navbar.scrolled .nav-link:hover {
    color: #d4880a;
}

#navbar.scrolled a {
    color: #56232f;
}

#navbar.scrolled .border.border-current {
    border-color: #56232f;
    color: #56232f;
}

/* ── Hero Animations ── */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Line ── */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ── Mobile Menu ── */
#mobile-menu {
    z-index: 40;
}

#mobile-menu.open {
    transform: translateX(0);
}

#menu-btn.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active #line2 {
    opacity: 0;
    width: 0;
}

#menu-btn.active #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-nav-link {
    color: #56232f;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #d4880a;
}

/* ── Form Styles ── */
input::placeholder,
textarea::placeholder {
    opacity: 1;
}

input:focus,
textarea:focus {
    border-color: #ffd247 !important;
}

/* ── Menu Item Hover ── */
.group:hover h3 {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
