/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background: #f3b5a5;
    color: #5a3026;
}

/* ── Navbar ── */
#navbar {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

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

.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ── Hero animations ── */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-image {
    opacity: 1;
    transform: translateY(0);
    animation: heroImageIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

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

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

/* Always visible for reduced-motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

.no-js .scroll-reveal {
    opacity: 1;
    transform: none;
}

/* ── Menu tabs ── */
.menu-tab {
    color: #78716c;
    background: transparent;
}

.menu-tab.active {
    color: #ffffff;
    background: #C4725A;
    box-shadow: 0 2px 8px rgba(196, 114, 90, 0.3);
}

.menu-tab:not(.active):hover {
    color: #C4725A;
    background: #fdf0ec;
}

/* ── Image grid hover ── */
.vibes-grid img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.vibes-grid:hover img {
    transform: scale(1.03);
}

.vibes-grid > * > img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Button micro-interactions ── */
a, button {
    transition: all 0.25s ease;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #C4725A;
    outline-offset: 2px;
}

/* ── Mobile menu link hover ── */
.mobile-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
    color: #C4725A;
    transform: scale(1.05);
}

/* ── Floating card animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-image .absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        max-width: 100%;
    }

    .about-images .absolute.-bottom-8.-right-8 {
        display: none;
    }
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}
