/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background-color: #F7F5EF;
}

::selection {
    background-color: #88c97e;
    color: #0f380f;
}

/* ===== Floating Decorative Background Shapes ===== */
.deco-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(136, 201, 126, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: rgba(245, 220, 170, 0.3);
    border-radius: 2rem;
    bottom: 20%;
    left: -50px;
    transform: rotate(15deg);
    animation: float-medium 15s ease-in-out infinite;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(45, 122, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 30%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(136, 201, 126, 0.08);
    top: 40%;
    right: 5%;
    animation: float-medium 12s ease-in-out infinite;
}

.shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(45, 122, 38, 0.2) 2px, transparent 2px);
    background-size: 16px 16px;
    bottom: 10%;
    right: 15%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(3deg); }
    66% { transform: translate(-15px, 20px) rotate(-2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(25px, -20px) rotate(20deg); }
}

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

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

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

/* ===== Marquee ===== */
.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content:nth-child(2) {
    animation-delay: -15s;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Menu Cards ===== */
.menu-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 74, 21, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(22, 74, 21, 0.1);
}

/* ===== Scroll Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        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; }
}

/* ===== Navbar scroll state ===== */
nav.scrolled {
    background: rgba(247, 245, 239, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 1px 0 rgba(22, 74, 21, 0.08), 0 4px 20px rgba(22, 74, 21, 0.06);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 640px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-square-1 {
        width: 120px;
        height: 120px;
    }
}
