/* ── Base & Utilities ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .section-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .section-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .vibe-card {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
    }

    .vibe-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navigation ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-brand-text {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-brand-text {
    color: #1E1C18;
}

#navbar.scrolled .nav-brand-text {
    color: #1E1C18;
}

.nav-link {
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: #403E39;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 18, 16, 0.45) 0%,
        rgba(20, 18, 16, 0.55) 50%,
        rgba(20, 18, 16, 0.75) 100%
    );
}

.hero-content {
    padding-top: 80px;
}

.hero-headline {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Indicator ── */
.scroll-mouse {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

/* ── Section Labels & Titles ── */
.section-label {
    letter-spacing: 0.12em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-desc {
    letter-spacing: -0.01em;
}

/* ── Menu Cards ── */
.menu-card {
    transform: translateY(0);
}

.menu-card:hover {
    transform: translateY(-4px);
}

.menu-icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

/* ── CTA Buttons ── */
.cta-primary,
.cta-secondary {
    backface-visibility: hidden;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ── Hamburger ── */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ── Subtle Pattern Background ── */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 3px;
    border-radius: 4px;
}

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

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .menu-card {
        padding: 1.5rem;
    }

    #about .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

@media (max-width: 380px) {
    .hero-headline {
        font-size: 2.25rem;
    }
}
