/* ==========================================
   CSS Variables & Tokens
   ========================================== */
   :root {
    /* Color Palette */
    --clr-primary: #164632; /* Forest Green */
    --clr-primary-light: #1f6146;
    --clr-secondary: #9BB0A5; /* Sage Green */
    --clr-accent: #c48c46; /* Earthy Wood/Caramel */
    
    --clr-bg: #F9F9F9; /* Off-White/Cream */
    --clr-surface: #FFFFFF;
    
    --clr-text-dark: #1F2937;
    --clr-text-light: #6B7280;
    --clr-text-white: #FFFFFF;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   Typography Utilities
   ========================================== */
.text-accent {
    color: var(--clr-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--clr-text-light);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-text-white);
}

.btn-primary:hover {
    background-color: var(--clr-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-text-white);
}

.btn-text {
    color: var(--clr-primary);
    font-weight: 600;
    padding: 0.75rem 0;
}

.btn-text:hover {
    color: var(--clr-primary-light);
    transform: translateX(4px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--clr-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-icon:hover {
    transform: scale(1.1);
    background-color: var(--clr-primary-light);
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 1.5rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar:not(.scrolled) .nav-links a {
    color: var(--clr-text-dark); /* Assuming light background hero or bright text needed */
}

.navbar.scrolled .nav-links a {
    color: var(--clr-text-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--clr-primary);
    transition: all var(--transition-fast);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(155, 176, 165, 0.2) 0%, rgba(249, 249, 249, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: 5%;
    width: 80%;
    height: 20px;
    background: rgba(0,0,0,0.1);
    filter: blur(20px);
    border-radius: 50%;
    z-index: -1;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 4/5;
    background-color: #E2E8F0;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--clr-primary);
    border-radius: 20px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--clr-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==========================================
   Menu Section
   ========================================== */
.menu-section {
    padding: 8rem 0;
    background-color: var(--clr-surface);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.menu-card {
    background: var(--clr-bg);
    border-radius: 24px;
    padding: 1.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #E2E8F0;
}

.menu-img-wrapper .img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.menu-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.menu-info p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.menu-footer .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-primary);
}

/* ==========================================
   Sustainability Section
   ========================================== */
.sustainability {
    padding: 8rem 0;
    background-color: var(--clr-primary);
    color: var(--clr-text-white);
    position: relative;
    overflow: hidden;
}

.sustainability .section-title {
    color: var(--clr-text-white);
}

.sustainability-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.sustainability-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--clr-secondary);
}

.features-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.features-list h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.features-list p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.sustainability-image {
    flex: 1;
}

.sustainability-image .img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--clr-primary-light);
    border-radius: 24px;
    background-size: cover;
    background-position: center;
}

/* ==========================================
   App Download Section
   ========================================== */
.app-section {
    padding: 8rem 0;
    background-color: var(--clr-secondary);
    position: relative;
}

.app-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--clr-surface);
    padding: 4rem;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image .img-placeholder {
    width: 250px;
    height: 500px;
    background-color: #E2E8F0;
    border-radius: 32px;
    border: 8px solid var(--clr-text-dark);
    box-shadow: var(--shadow-lg);
    background-size: cover;
    background-position: center;
}

.app-content {
    flex: 1;
}

.app-content p {
    font-size: 1.125rem;
    color: var(--clr-text-light);
    margin-bottom: 2rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
}

.store-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--clr-text-dark);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    transition: transform var(--transition-fast);
}

.store-btn:hover {
    transform: translateY(-3px);
}

.store-btn span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-btn strong {
    font-size: 1.125rem;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--clr-bg);
    padding: 5rem 0 2rem;
    border-top: 1px solid #E5E7EB;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.footer-brand .dot {
    color: var(--clr-accent);
}

.footer-brand p {
    color: var(--clr-text-light);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-dark);
}

.link-group a {
    display: block;
    color: var(--clr-text-light);
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
    color: var(--clr-text-light);
    font-size: 0.875rem;
}

/* ==========================================
   Animations & Utilities
   ========================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Media Queries
   ========================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .sustainability-container,
    .app-container {
        flex-direction: column;
        text-align: center;
    }
    
    .features-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .app-container {
        padding: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-surface);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 200px); /* rough positioning based on menu links */
        left: 0;
        width: 100%;
        background-color: var(--clr-surface);
        padding: 1rem 2rem 2rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
}
