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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #8fb88f;
    color: #1c3826;
}

/* ===== NAVIGATION ===== */
.nav {
    background: rgba(253, 252, 248, 0);
    backdrop-filter: blur(0px);
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4d7e4d;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(253, 252, 248, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.1);
}

.mobile-menu.open {
    max-height: 400px;
    padding-top: 0.5rem;
}

.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #4d7e4d;
    padding-left: 0.5rem;
}

/* Menu toggle animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
    width: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #2d5a3d;
    color: #fdfcf8;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #3a633a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.3);
    color: #fdfcf8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: #2d5a3d;
    border: 2px solid #2d5a3d;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #2d5a3d;
    color: #fdfcf8;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 90, 61, 0.12);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 90, 61, 0.12);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2d5a3d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fdfcf8;
    flex-shrink: 0;
}

/* Floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

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

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

.float-slow { animation: float-slow 6s ease-in-out infinite; }
.float-medium { animation: float-medium 4.5s ease-in-out infinite; }
.float-fast { animation: float-fast 3.5s ease-in-out infinite; }

/* Hero blobs */
@keyframes blob-move-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes blob-move-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 25px) scale(1.08); }
    66% { transform: translate(15px, -15px) scale(0.92); }
}

@keyframes blob-move-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-blob { animation: blob-move-1 12s ease-in-out infinite; }
.blob-2 { animation: blob-move-2 15s ease-in-out infinite; }
.blob-3 { animation: blob-move-3 10s ease-in-out infinite; }

/* ===== WAVE DIVIDER ===== */
.wave-divider {
    margin-top: -1px;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== MENU CARDS ===== */
.menu-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.menu-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.08);
}

.menu-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 61, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-card:hover .menu-card-overlay {
    opacity: 1;
}

.menu-card-body {
    padding: 1.5rem;
}

/* ===== GALLERY ===== */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-display { font-size: 2.75rem; }
    .stat-card { flex: 1; }
    .menu-card-img { height: 180px; }
    .wave-divider svg { height: 50px; }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .font-display { font-size: 3.5rem; }
}
