*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

img {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    color: #3D1D11;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

#navbar.scrolled .nav-link::after {
    background: #B85C38;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #B85C38;
}

#menu-close .menu-line-close:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-close .menu-line-close:last-child {
    transform: rotate(-45deg) translate(-1px, 1px);
}

/* ── Hero ── */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(45, 25, 15, 0.55) 0%,
        rgba(45, 25, 15, 0.40) 50%,
        rgba(45, 25, 15, 0.70) 100%
    );
}

.hero-scroll {
    transition: opacity 0.6s ease;
}

/* Hero animations */
.hero-subtitle {
    animation: fadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-headline {
    animation: fadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.hero-desc {
    animation: fadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero-cta {
    animation: fadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

.hero-scroll {
    animation: fadeIn 1s ease 1.4s forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 0.2; transform: scaleY(0.6); }
}

/* ── Section Labels ── */
.section-label {
    font-family: 'Karla', Helvetica Neue, Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    color: #B85C38;
}

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

/* ── CTA Buttons ── */
.cta-primary {
    box-shadow: 0 4px 20px rgba(184, 92, 56, 0.3);
}

.cta-primary:hover {
    box-shadow: 0 6px 28px rgba(184, 92, 56, 0.4);
    transform: translateY(-1px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Menu hover effects ── */
#menu .group:first-child .font-serif,
#menu .group:nth-child(2) .font-serif,
#menu .group:nth-child(3) .font-serif,
#menu .group:nth-child(4) .font-serif,
#menu .group:nth-child(5) .font-serif {
    transition: color 0.3s ease;
}

/* ── Form ── */
#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom-color: #B85C38;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #D4AD78;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .hero-headline {
        font-size: 2.4rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3rem;
    }
}

/* ── Selection ── */
::selection {
    background: rgba(184, 92, 56, 0.2);
    color: #3D1D11;
}

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

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