/* Maxi Nourish - Modern CSS Stylesheet */

/* Brand Colors */
:root {
    --maxi-green-dark: #2A3F2F;
    --maxi-green-medium: #16a34a;
    --maxi-green-light: #dcfce7;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Footer Font Size Reductions */
footer {
    font-size: 0.875rem;
}

footer h4 {
    font-size: 0.95rem;
}

footer p,
footer li,
footer a {
    font-size: 0.8rem;
}

footer .text-gray-400 {
    font-size: 0.8rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

/* Links */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #16a34a;
    color: white;
}

.btn-primary:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-secondary {
    border: 2px solid #16a34a;
    color: #16a34a;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #16a34a;
    color: white;
    transform: translateY(-2px);
}

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

/* Header Styles */
.sticky-header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: #16a34a;
    color: white;
    transform: scale(1.1);
}

/* Process Steps */
.process-step {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 3rem;
    height: 3rem;
    background-color: #16a34a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonial-card {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.customer-info {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.customer-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Footer */
footer {
    background: #111827;
}

.footer-link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #374151;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #16a34a;
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-nav-prev {
    left: -24px;
}

.testimonial-nav-next {
    right: -24px;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .testimonial-nav {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-nav-prev {
        left: -20px;
    }
    
    .testimonial-nav-next {
        right: -20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .testimonial-slide .bg-gray-50 {
        padding: 1.5rem;
    }
    
    .testimonial-slide h4 {
        font-size: 1.125rem;
    }
    
    .testimonial-slide p {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .feature-card,
    .process-step,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.3);
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States */
.btn:focus,
a:focus {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Menu Box Styles - High Specificity */
.green-menu-box {
    width: 400px !important;
    margin: 0 auto !important;
    background: #1b5a3d !important;
    padding: 10px !important;
    border-radius: 15px !important;
    text-align: center !important;
}

.green-menu-box .menu-header {
    text-align: left !important;
    margin-bottom: 8px !important;
    padding: 5px !important;
}

.green-menu-box .logo-date-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
}

.green-menu-box .logo-section {
    flex: 1 !important;
    text-align: left !important;
}

.green-menu-box .menu-logo {
    height: 40px !important;
    width: auto !important;
}

.green-menu-box .week-info-section {
    flex: 1 !important;
    text-align: right !important;
}

.green-menu-box .week-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.green-menu-box .week-date {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.green-menu-box .tagline-section {
    margin-bottom: 2px !important;
    text-align: center !important;
}

.green-menu-box .tagline {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

.green-menu-box .two-column-content {
    display: flex !important;
    gap: 10px !important;
}

.green-menu-box .left-column {
    flex: 1 !important;
}

.green-menu-box .right-column {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
}

.green-menu-box .main-meals-section {
    padding: 4px !important;
    text-align: center !important;
}

.green-menu-box .main-meals-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    padding: 4px !important;
}

.green-menu-box .add-ons-section {
    padding: 4px !important;
    text-align: center !important;
}

.green-menu-box .add-ons-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
    padding: 4px !important;
}

.green-menu-box .pricing-info {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.green-menu-box .section-title {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
    text-decoration: underline !important;
}

.green-menu-box .nutrition-info {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.green-menu-box .meal-item {
    padding: 3px 0 !important;
    margin-bottom: 1px !important;
}

.green-menu-box .meal-item-content {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.green-menu-box .meal-image {
    flex-shrink: 0 !important;
}

.green-menu-box .meal-img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.green-menu-box .meal-details {
    flex: 1 !important;
}

.green-menu-box .meal-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

.green-menu-box .bottom-info-line {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.green-menu-box .features-info {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.6rem !important;
    text-align: center !important;
    font-weight: 500 !important;
}

.green-menu-box .delivery-info {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.55rem !important;
    text-align: center !important;
    font-weight: 400 !important;
}

.green-menu-box .placeholder-right {
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: center !important;
    font-size: 0.65rem !important;
    border: 1px dashed rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* Mobile responsive for menu box */
@media (max-width: 768px) {
    .green-menu-box {
        width: 400px !important;
        padding: 10px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .green-menu-box {
        width: 400px !important;
        padding: 10px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 425px) {
    .green-menu-box {
        width: 100% !important;
        padding: 10px !important;
        margin: 0 10px !important;
    }
}

/* Testimonials Swiper Styles */
.testimonials-swiper-container {
    position: relative;
    overflow: visible;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-swiper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-slide .bg-gray-50 {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.testimonial-slide:hover .bg-gray-50 {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    border-color: #10b981;
    transform: scale(1.1);
}

.dot.active {
    background: #10b981;
    border-color: #10b981;
    transform: scale(1.2);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-nav:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.testimonial-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonial-nav-prev {
    left: 0;
}

.testimonial-nav-next {
    right: 0;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .testimonials-swiper-container {
        max-width: 500px;
        padding: 0 50px;
    }
    
    .testimonial-nav {
        width: 36px;
        height: 36px;
    }
    
    .testimonial-nav-prev {
        left: 0;
    }
    
    .testimonial-nav-next {
        right: 0;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .testimonial-slide .bg-gray-50 {
        padding: 1.5rem;
    }
    
    .testimonial-slide h4 {
        font-size: 1.125rem;
    }
    
    .testimonial-slide p {
        font-size: 1rem;
    }
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question:focus {
    outline: 2px solid #10b981;
    outline-offset: -2px;
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 0;
    padding-bottom: 1rem;
}

.faq-answer p {
    line-height: 1.6;
    margin: 0;
}

/* FAQ Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer p {
    animation: fadeIn 0.3s ease-out;
}

/* Image Lightbox Styles */
.meal-img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.meal-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: opacity 0.15s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

/* Hover preview tooltip */
.image-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-tooltip.show {
    opacity: 1;
}

/* Mobile responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        bottom: 10px;
        font-size: 14px;
        padding: 0 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when scrolling to anchors */
section[id] {
    scroll-margin-top: 80px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
