/* ═══════════════════════════════════════════
   Nana's Tea House — Custom Styles
   Palette: Teal + Slate Grey + Gold Accents
   Dark luxury aesthetic
══════════════════════════════════════════ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(30, 155, 99, 0.3);
    color: #f0f4f8;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070d18;
}
::-webkit-scrollbar-thumb {
    background: #1e2d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d4a5e;
}

/* ── Gold Button ── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d4a853 0%, #b8860b 100%);
    color: #070d18;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #070d18;
}

.btn-gold:active {
    transform: translateY(0);
}

/* ── Nav ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(7, 13, 24, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a853, #b8860b);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #e6c260;
}

/* ── Floating Cards (Hero) ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ── Menu Cards ── */
.menu-card {
    border: 1px solid rgba(45, 74, 94, 0.4);
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.menu-card:hover {
    border-color: rgba(212, 168, 83, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(30, 155, 99, 0.08);
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

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

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ── Mobile Menu ── */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #d4a853;
    transition: width 0.3s ease;
}

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

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Form ── */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(30, 155, 99, 0.15);
}

/* ── Divider Accent ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .floating-card {
        display: none;
    }

    #hero {
        min-height: 100vh;
    }

    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}
