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

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

body {
    overflow-x: hidden;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/8921578/pexels-photo-8921578.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 44, 34, 0.72) 0%,
        rgba(6, 78, 59, 0.65) 40%,
        rgba(6, 95, 70, 0.70) 70%,
        rgba(2, 44, 34, 0.88) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* CTA Background */
.cta-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/36694451/pexels-photo-36694451.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=800');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.88) 0%,
        rgba(6, 78, 59, 0.82) 50%,
        rgba(4, 120, 87, 0.78) 100%
    );
}

/* Navigation */
.nav-logo-text {
    color: #022C22;
}

.nav-link {
    color: rgba(6, 78, 59, 0.7);
}

#navbar.scrolled .nav-logo-text {
    color: #022C22;
}

#navbar.scrolled .nav-link {
    color: rgba(6, 78, 59, 0.8);
}

#navbar.scrolled {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.08), 0 4px 30px rgba(5, 150, 105, 0.06);
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #FDFBF7;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(253, 251, 247, 0.75);
}

/* Mobile Menu */
.mobile-menu-link {
    color: #064E3B;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border-radius: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(5, 150, 105, 0.12);
}

/* Menu */
.menu-category-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(5, 150, 105, 0.15);
    margin-bottom: 1rem;
}

.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(5, 150, 105, 0.07);
    transition: padding-left 0.3s ease;
}

.menu-item:hover {
    padding-left: 0.5rem;
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth anchor offset */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #022C22;
}

/* Focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* Mobile menu animation */
#mobile-menu.open {
    max-height: 400px;
}

/* Subtle grain texture overlay for hero */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}
