/* ─── 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 {
    display: block;
    max-width: 100%;
}

::selection {
    background: color-mix(in srgb, #d45a31 60%, transparent);
    color: #fdf0eb;
}

/* ─── Typography ─── */
.label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ─── Buttons ─── */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #d45a31;
    color: #fdf0eb;
}

.btn-primary:hover {
    background: #bc4525;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px color-mix(in srgb, #d45a31 30%, transparent);
}

.btn-secondary {
    background: transparent;
    color: #fdf0eb;
    border: 1px solid color-mix(in srgb, #fdf0eb 30%, transparent);
}

.btn-secondary:hover {
    border-color: #fdf0eb;
    background: color-mix(in srgb, #fdf0eb 8%, transparent);
    transform: translateY(-2px);
}

/* ─── Hero ─── */
#hero {
    position: relative;
}

@keyframes heroZoom {
    from { transform: scale(1.15); }
    to { transform: scale(1); }
}

.animate-hero-zoom {
    animation: heroZoom 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.scroll-indicator {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: color-mix(in srgb, #2C1810 92%, transparent);
    box-shadow: 0 1px 0 color-mix(in srgb, #fdf0eb 8%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled .nav-link {
    color: color-mix(in srgb, #fdf0eb 80%, transparent);
}

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

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #f5c4b0 !important;
}

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

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

.mobile-link {
    transition: color 0.3s ease;
}

/* ─── Menu Items ─── */
.menu-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, #2C1810 8%, transparent);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item h3 {
    transition: color 0.3s ease;
}

.menu-item:hover h3 {
    color: #d45a31;
}

.menu-item p {
    max-width: 90%;
}

/* ─── Gallery ─── */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, #2C1810 0%, transparent);
    transition: background 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: color-mix(in srgb, #2C1810 15%, transparent);
}

.gallery-item {
    position: relative;
}

/* ─── 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.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ─── Hero Text Animations ─── */
.hero-sub {
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

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

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

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

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

/* ─── Scroll Line Keyframes ─── */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

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

    .hero-headline br {
        display: none;
    }

    .hero-headline span {
        display: inline;
    }

    #about .aspect-\[4\/5\] {
        margin-bottom: 4rem;
    }

    .menu-item p {
        max-width: 100%;
    }
}

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

@media (min-width: 1024px) {
    .hero-headline {
        font-size: clamp(3.5rem, 6vw, 5.5rem);
    }
}

/* ─── Focus Styles ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f5c4b0;
    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;
    }
}
