/* ============================================
   1983 Coffee Food & Gifts — Custom Styles
   ============================================ */

/* --- Base & Utilities --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: #065f46;
    color: #fffbea;
}

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

#navbar.scrolled {
    background: rgba(255, 251, 234, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 30px rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #065f46;
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-nav-link {
    position: relative;
    padding-bottom: 8px;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #065f46;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 40px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fffbea;
    color: #064e3b;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.15);
}

.btn-primary:hover {
    background: #064e3b;
    color: #fffbea;
    border-color: #064e3b;
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.25);
    transform: translateY(-2px);
}

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

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

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

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

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

/* --- Product Cards --- */
.card-product {
    transition: transform 0.4s ease;
}

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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; }

/* --- Decorative Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #a7f3d0, transparent);
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    h1,
    .font-serif.text-5xl {
        font-size: 2.5rem !important;
    }

    h2,
    .font-serif.text-4xl {
        font-size: 2rem !important;
    }
}

/* --- Print --- */
@media print {
    #navbar,
    .floating-card,
    #gallery {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
