/**
 * Lady B's Kitchen - Main Stylesheet
 * Edit styles here to update across all pages
 */

:root {
    --brand-red: #EB1E25;
    --brand-white: #FEFEFE;
    --brand-green: #009048;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--brand-white);
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(235, 30, 37, 0.03) 10px,
            rgba(235, 30, 37, 0.03) 11px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(0, 144, 72, 0.03) 10px,
            rgba(0, 144, 72, 0.03) 11px
        );
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Ensure content is above pattern */
body > * {
    position: relative;
    z-index: 1;
}

.font-pacifico {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
}

.brand-red {
    color: var(--brand-red);
}

.bg-brand-red {
    background-color: var(--brand-red);
}

.bg-brand-green {
    background-color: var(--brand-green);
}

.text-brand-green {
    color: var(--brand-green);
}

.text-brand-red {
    color: var(--brand-red);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Feedback Styles */
.btn-feedback {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-feedback::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-feedback:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-feedback:active::before {
    width: 300px;
    height: 300px;
}

.btn-feedback:focus {
    outline: 2px solid rgba(235, 30, 37, 0.5);
    outline-offset: 2px;
}

/* Elegant button styles */
.btn-primary {
    background-color: var(--brand-green);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-primary:hover {
    background-color: #007a3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 144, 72, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1a1a1a;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #1a1a1a;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

/* Product card hover effect */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Slide-in animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.slide-in-up-delay {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.slide-in-up-delay-2 {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.decorative-element {
    position: absolute;
    opacity: 0.3;
    filter: blur(2px);
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px);
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .hero-background {
        transform: scale(1.05);
        filter: blur(3px);
    }
}

/* Testimonials Styles */
.testimonial-card {
    background: white;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.star-rating {
    color: #FFD700;
}

.testimonials-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.testimonials-container .flex {
    display: flex;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.shadow-brand-green\/50 {
    box-shadow: 0 20px 25px -5px rgba(0, 144, 72, 0.5), 0 10px 10px -5px rgba(0, 144, 72, 0.3);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Hide mobile menu on desktop (lg breakpoint and above) */
@media (min-width: 1024px) {
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-item {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-item:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-item:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-item:nth-child(7) { transition-delay: 0.4s; }

/* Exit Intent Popup Styles */
#exit-intent-popup {
    animation: fadeIn 0.3s ease-out;
}

#exit-intent-popup > div {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

