/* global.css - Unified Styling for One Bag Pantry Meals */

:root { 
    --primary-green: #2d5a27; 
    --accent-green: #a2c523; 
    --text-dark: #0f172a; 
    --bg-light: #f1f5f4; 
    
    /* Meal colors */
    --pantry-red: #a32a2a;
    --pantry-orange: #e67e22;
}

* {
    box-sizing: border-box;
}

body { 
    margin: 0; 
    font-family: 'Lato', sans-serif; 
    background: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.8; 
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background gradient blobs */
.bg-blob-1 {
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(162, 197, 35, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.bg-blob-2 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.04) 0%, transparent 70%);
    bottom: 100px;
    left: -100px;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Apple-Style Ultra Liquid Glass Navigation */
nav { 
    position: fixed; 
    top: 25px; 
    left: 50%; 
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(30px) saturate(200%); 
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 0 15px rgba(255, 255, 255, 0.5);
    padding: 10px 20px; 
    border-radius: 50px; 
    z-index: 1000; 
    width: 90%;
    max-width: 850px;
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    flex-wrap: wrap; 
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.6);
}

nav a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 1.5px; 
    padding: 10px 18px; 
    border-radius: 30px; 
    transition: all 0.25s ease-out; 
    opacity: 0.65; 
}

nav a:hover { 
    opacity: 1; 
    color: var(--primary-green);
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

nav a.active { 
    background: var(--primary-green); 
    color: #fff; 
    opacity: 1;
    box-shadow: 0 6px 15px rgba(45, 90, 39, 0.3);
}

/* Page Layout Wrapper */
.wrapper { 
    flex: 1 0 auto;
    width: 100%;
    max-width: 850px; 
    margin: 140px auto 40px; 
    padding: 20px; 
    text-align: center; 
    position: relative;
    z-index: 2;
}

/* Typography */
h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    color: var(--primary-green); 
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(45, 90, 39, 0.15);
}

h2, h3 {
    font-family: 'Playfair Display', serif; 
    color: var(--primary-green);
}

.location {
    color: var(--primary-green); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-size: 0.85rem;
    opacity: 0.87; 
    display: block;
    margin-bottom: 10px;
}

.subheading {
    font-size: 1.25rem; 
    color: var(--text-dark);
    opacity: 0.7; 
    max-width: 600px;
    margin: 20px auto 40px;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 40px;
}

.intro-text strong {
    color: var(--primary-green);
}

/* Liquid Glass Cards */
.item { 
    padding: 40px; 
    margin: 30px 0; 
    text-align: left; 
    position: relative;
    overflow: hidden;
    border-radius: 24px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%); 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to bottom, var(--accent-green), var(--primary-green));
    opacity: 0.9;
    border-radius: 24px 0 0 24px;
}

.item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 20px 50px rgba(45, 90, 39, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.6);
    border: 1px solid #fff;
}

.item h2, .item h3 { 
    margin-top: 0; 
    font-size: 2rem; 
    margin-bottom: 15px;
}

.item p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Homepage Graphic Container */
.graphic-container {
    width: 100%;
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%); 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), inset 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
}

.graphic-container:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 25px 50px rgba(45, 90, 39, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.6);
    border-color: #fff;
}

.main-graphic {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.graphic-container:hover .main-graphic {
    transform: scale(1.02);
}

/* Social container on About Us */
.social-container {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    flex-grow: 1;
    max-width: fit-content;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-link:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.9);
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(45, 90, 39, 0.15);
    color: var(--primary-green);
}

.social-link:hover .social-icon {
    filter: drop-shadow(0 8px 12px rgba(45, 90, 39, 0.25));
    transform: scale(1.1);
}

/* Call to Action Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

.cta-button:hover {
    background: var(--accent-green);
    color: var(--text-dark);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(162, 197, 35, 0.3);
}

/* Venmo Card on Get Involved */
.venmo-card { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(15px) saturate(150%);
    padding: 30px; 
    border-radius: 16px; 
    margin-top: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-around; 
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05), inset 0 0 10px rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.venmo-card:hover {
    border-color: #008CFF; 
    box-shadow: 0 15px 35px rgba(0, 140, 255, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.8);
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.9);
}

.venmo-qr {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.venmo-instructions {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    max-width: 300px;
}

.venmo-instructions span {
    color: #008CFF; 
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Questions Form styling */
.transition-container {
    position: relative;
    width: 100%;
}

.form-card { 
    width: 100%;
    box-sizing: border-box;
    padding: 40px; 
    border-radius: 24px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%); 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.form-card.faded-out {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    pointer-events: none;
}

input, textarea { 
    width: 100%; 
    padding: 16px 20px; 
    margin: 12px 0; 
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.6); 
    border-radius: 12px; 
    box-sizing: border-box; 
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input::placeholder, textarea::placeholder {
    color: rgba(15, 23, 42, 0.5);
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(45, 90, 39, 0.15), inset 0 2px 4px rgba(0,0,0,0.01);
    transform: translateY(-2px);
}

.submit-btn { 
    background: linear-gradient(135deg, var(--primary-green), #1e3f1a);
    color: white; 
    padding: 18px; 
    margin-top: 15px;
    width: 100%; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 12px; 
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 700; 
    cursor: pointer; 
    text-transform: uppercase; 
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(45, 90, 39, 0.35);
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
}

.submit-btn.loading {
    pointer-events: none;
    background: rgba(45, 90, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.98);
    box-shadow: 0 0 30px rgba(162, 197, 35, 0.4);
    animation: slowPulse 2s infinite ease-in-out;
    color: rgba(255,255,255,0.9);
    letter-spacing: 3px;
}

@keyframes slowPulse {
    0% { box-shadow: 0 0 20px rgba(45, 90, 39, 0.2); }
    50% { box-shadow: 0 0 40px rgba(162, 197, 35, 0.6); background: rgba(162, 197, 35, 0.8); }
    100% { box-shadow: 0 0 20px rgba(45, 90, 39, 0.2); }
}

#success-card { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 50px 40px; 
    border-radius: 24px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%); 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 50px rgba(45, 90, 39, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.6);
    text-align: center; 
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

#success-card.revealed {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 3;
}

#success-card h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
    margin-top: 0;
    font-size: 2rem;
}

#success-card p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Meal Grid Styling for meals.html */
.meal-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
    text-align: left;
}

.meal-card { 
    border-radius: 24px; 
    overflow: hidden; 
    text-align: left; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%); 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.meal-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 20px 50px rgba(45, 90, 39, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.6);
    border: 1px solid #fff;
}

.meal-header { 
    padding: 20px; 
    color: white; 
    font-family: 'Playfair Display', serif; 
    font-size: 1.5rem; 
    text-align: center; 
    font-weight: 700;
}

.meal-content { 
    padding: 25px 30px; 
}

.meal-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.meal-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    opacity: 0.9;
}

.meal-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 900;
    font-size: 1.1rem;
}

/* Top borders/colors for specific meals */
.primavera { border-top: 8px solid var(--primary-green); } 
.primavera .meal-header { background: var(--primary-green); }
.primavera .meal-content li::before { color: var(--primary-green); }

.chili { border-top: 8px solid var(--pantry-red); } 
.chili .meal-header { background: var(--pantry-red); }
.chili .meal-content li::before { color: var(--pantry-red); }

.chicken { border-top: 8px solid var(--pantry-orange); } 
.chicken .meal-header { background: var(--pantry-orange); }
.chicken .meal-content li::before { color: var(--pantry-orange); }

/* How It Works Steps Styling */
.step { 
    padding: 40px; 
    margin: 25px 0; 
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 24px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%); 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to bottom, var(--accent-green), var(--primary-green));
    opacity: 0.9;
    border-radius: 24px 0 0 24px;
}

.step:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 20px 50px rgba(45, 90, 39, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.6);
    border: 1px solid #fff;
}

.step h3 { 
    margin-top: 0; 
    font-size: 1.8rem; 
    margin-bottom: 12px;
}

.step p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Events graphic layout */
.events-card {
    padding: 30px;
    margin: 30px 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%); 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.5);
    text-align: center;
}

.events-graphic-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    border-radius: 16px;
    border: 3px solid var(--primary-green);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.1);
}

.events-graphic {
    width: 100%;
    height: auto;
    display: block;
}

.event-details {
    max-width: 600px;
    margin: 25px auto 0;
    text-align: center;
}

.event-details h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.event-details p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Footer Styling */
footer { 
    flex-shrink: 0;
    width: 100%;
    padding: 40px 20px; 
    font-size: 0.85rem; 
    text-align: center; 
    color: var(--text-dark); 
    opacity: 0.5; 
    margin-top: auto;
    z-index: 2;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    nav { 
        width: 95%; 
        padding: 10px 15px; 
        border-radius: 20px; 
        gap: 5px; 
    }
    nav a { 
        font-size: 0.65rem; 
        padding: 8px 10px; 
    }
    .wrapper { 
        margin-top: 150px; 
        padding: 15px;
    }
    .item, .step, .events-card { 
        padding: 30px 20px 30px 30px; 
    }
    .form-card { 
        padding: 30px 20px; 
    }
    .social-link { 
        width: 100%; 
        max-width: 100%; 
        justify-content: center; 
    }
    .venmo-card {
        padding: 20px;
        flex-direction: column;
    }
    .venmo-instructions {
        max-width: 100%;
        margin-bottom: 10px;
    }
}
