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

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

body {
    overflow-x: hidden;
}

/* Nav */
#nav.scrolled {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3A9D7C, #8FD4B8);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }

.hero-img-anim {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeLeft 1s ease 0.3s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About animations */
.about-img-grid {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeRight 0.9s ease forwards;
}

.about-text-anim {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.9s ease 0.2s forwards;
}

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Specialties */
.specialties-header-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
}

.specialties-card-anim {
    opacity: 0;
    transform: translateY(24px);
}

.specialties-card-anim.visible {
    animation: fadeUp 0.6s ease forwards;
}

/* Groceries */
.groceries-text-anim {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeRight 0.9s ease forwards;
}

.groceries-img-anim {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.9s ease 0.2s forwards;
}

/* Gallery */
.gallery-header-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
}

.gallery-img-anim {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-img-anim.visible {
    animation: scaleIn 0.6s ease forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Visit */
.visit-text-anim {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeRight 0.9s ease forwards;
}

.visit-form-anim {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.9s ease 0.2s forwards;
}

/* Scroll-triggered utility */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Subtle gradient text for hero */
.text-mint-gradient {
    background: linear-gradient(135deg, #3A9D7C, #8FD4B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover zoom container */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background: rgba(58, 157, 124, 0.2);
    color: #0A2540;
}
