/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Navbar ── */
.nav {
    background: rgba(255, 252, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 184, 170, 0.2);
}
.nav.scrolled {
    background: rgba(255, 252, 250, 0.95);
    box-shadow: 0 4px 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: #E8502F;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-link { transition: color 0.2s ease; }
.mobile-link:hover { color: #E8502F; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #E8502F;
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid #E8502F;
}
.btn-primary:hover {
    background: #C93A1E;
    border-color: #C93A1E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 80, 47, 0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.7);
    color: #2D2D2D;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid rgba(45,45,45,0.15);
}
.btn-secondary:hover {
    background: #fff;
    border-color: #E8502F;
    color: #E8502F;
    transform: translateY(-2px);
}

/* ── Badges ── */
.badge-reveal {
    opacity: 1;
    animation: fadeDown 0.5s ease forwards;
}

/* ── Floating Cards ── */
.floating-card {
    animation: float 3.5s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.2s; }
.card-3 { animation-delay: 0.6s; }

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

/* ── Hero Blobs ── */
.hero-blob {
    animation: blobMove 8s ease-in-out infinite;
}
.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: 2s; }
.blob-3 { animation-delay: 4s; }
.blob-4 { animation-delay: 1s; }
.blob-5 { animation-delay: 3s; }
.blob-6 { animation-delay: 5s; }
.blob-7 { animation-delay: 2.5s; }

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Menu Cards ── */
.card-menu {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,184,170,0.2);
    transition: all 0.3s ease;
}
.card-menu:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(232, 80, 47, 0.1);
}

/* ── Review Cards ── */
.card-review {
    transition: all 0.3s ease;
}
.card-review:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(232, 80, 47, 0.08);
}

/* ── Scroll Reveal (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* When JS is enabled, hide reveals initially and animate them in */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}
.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .floating-card {
        animation: none;
    }
    .hero-blob {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Fade down animation ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Success message ── */
.form-success {
    display: none;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    animation: fadeDown 0.3s ease;
}
.form-success.show { display: block; }

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