/* ===== Base & Utilities ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ===== Smooth reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.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; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(192, 96, 58, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}
#navbar.scrolled .font-display { color: #824028; }

/* ===== Nav links ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0603A;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== Mobile menu ===== */
#mobileMenu.show {
    animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0603A;
    transition: width 0.3s ease;
}
.mobile-link:hover::after { width: 100%; }

/* ===== Hamburger ===== */
#menuBtn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    top: 50%;
}
#menuBtn.active .hamburger-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
    top: 50%;
}

/* ===== Card hover ===== */
.card { cursor: pointer; }

/* ===== Feature card ===== */
.feature-card { cursor: default; }

/* ===== Image shimmer ===== */
img {
    display: block;
    max-width: 100%;
}

/* ===== Selection ===== */
::selection {
    background: #f5c4aa;
    color: #5a2f21;
}

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

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #e47142; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C0603A; }

/* ===== Mobile responsive tweaks ===== */
@media (max-width: 639px) {
    .font-display { line-height: 1.15; }
}

/* ===== Print ===== */
@media print {
    #navbar, #mobileMenu, .reveal { display: none; }
    body { background: white; color: black; }
}
