/* ============================================================
   BUDDING FOODS - Landing Page Visual Enhancements
   Pure CSS overrides/additions — no functionality changes.
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --bf-green: #0aad0a;
    --bf-green-dark: #088a08;
    --bf-green-light: #e8f5e9;
    --bf-accent: #f59e0b;
    --bf-shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --bf-shadow-md: 0 8px 24px rgba(0,0,0,.10);
    --bf-shadow-lg: 0 16px 48px rgba(0,0,0,.12);
    --bf-radius: 0.75rem;
    --bf-transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Base Typography Upgrade ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================
   ANNOUNCEMENT BAR
   ============================ */
.announcement-bar {
    background: linear-gradient(135deg, var(--bf-green) 0%, var(--bf-green-dark) 100%);
    padding: 10px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.announcement-bar p {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.announcement-bar p::before {
    content: '🚚 ';
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* ============================
   HERO SLIDER SECTION
   ============================ */
.hero-section {
    position: relative;
}

.hero-section .container {
    position: relative;
}

.hero-section .hero-slider {
    border-radius: var(--bf-radius);
    overflow: hidden;
    box-shadow: var(--bf-shadow-lg);
}

.hero-section .banner-image {
    border-radius: var(--bf-radius) !important;
    transition: var(--bf-transition);
}

/* ============================
   TRUST / VALUE PROPOSITION BAR
   ============================ */
.trust-bar-section {
    padding: 2rem 0;
}

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow-sm);
    border: 1px solid rgba(10, 173, 10, 0.08);
    transition: var(--bf-transition);
    flex: 1 1 200px;
    max-width: 280px;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--bf-shadow-md);
    border-color: var(--bf-green);
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bf-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bf-green);
    font-size: 1.3rem;
    transition: var(--bf-transition);
}

.trust-item:hover .trust-icon {
    background: var(--bf-green);
    color: #fff;
    transform: scale(1.1);
}

.trust-text h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
}

.trust-text p {
    margin: 0;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.4;
}

/* ============================
   SECTION HEADINGS
   ============================ */
.categories-section h3,
.popular-products-section h3,
.daily-sales-section h3,
.recipes-section h3 {
    font-weight: 800;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.categories-section h3::after,
.popular-products-section h3::after,
.daily-sales-section h3::after,
.recipes-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bf-green);
    border-radius: 2px;
}

/* ============================
   CATEGORY CARDS
   ============================ */
.categories-section .card-product {
    border: 1px solid #f0f0f0;
    border-radius: var(--bf-radius);
    transition: var(--bf-transition);
    overflow: hidden;
}

.categories-section .card-product:hover {
    transform: translateY(-6px);
    box-shadow: var(--bf-shadow-md);
    border-color: var(--bf-green);
}

.categories-section .card-product img {
    transition: transform .4s ease;
}

.categories-section .card-product:hover img {
    transform: scale(1.1);
}

.categories-section .card-product .text-truncate {
    font-weight: 600;
    color: #1a1a2e;
}

/* ============================
   ADS / BANNER SECTION
   ============================ */
.ads-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ad-card {
    border-radius: var(--bf-radius);
    overflow: hidden;
    position: relative;
    transition: var(--bf-transition);
    cursor: pointer;
}

.ad-card:hover {
    transform: scale(1.02);
    box-shadow: var(--bf-shadow-lg);
}

.ad-card .rounded {
    border-radius: var(--bf-radius) !important;
    transition: var(--bf-transition);
}

/* ============================
   PRODUCT CARDS (Popular Products)
   ============================ */
.popular-products-section .card-product {
    border: 1px solid #f0f0f0;
    border-radius: var(--bf-radius);
    transition: var(--bf-transition);
    overflow: hidden;
    height: 100%;
}

.popular-products-section .card-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--bf-shadow-lg);
    border-color: transparent;
}

.popular-products-section .card-product .text-center img {
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.popular-products-section .card-product:hover .text-center img {
    transform: scale(1.08);
}

/* Sale Badge Pulse */
.popular-products-section .badge.bg-danger,
.daily-sales-section .badge.bg-danger {
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 20px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Product Title */
.popular-products-section .card-product h2 a {
    font-weight: 600;
    transition: color .2s ease;
}

.popular-products-section .card-product:hover h2 a {
    color: var(--bf-green) !important;
}

/* Price Styling */
.popular-products-section .text-dark,
.daily-sales-section .text-dark {
    font-weight: 700;
    font-size: 1.05rem;
}

.popular-products-section .text-decoration-line-through,
.daily-sales-section .text-decoration-line-through {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Add to Cart Button */
.popular-products-section .btn-primary.btn-sm,
.daily-sales-section .btn-primary.btn-sm {
    border-radius: 8px;
    font-weight: 600;
    transition: var(--bf-transition);
    padding: 8px 16px;
}

.popular-products-section .btn-primary.btn-sm:hover,
.daily-sales-section .btn-primary.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 173, 10, 0.35);
}

/* Sold Out Button */
.popular-products-section .btn-secondary.btn-sm,
.daily-sales-section .btn-secondary.btn-sm {
    border-radius: 8px;
    opacity: 0.7;
}

/* Stock Info */
.popular-products-section small,
.daily-sales-section small {
    font-size: 0.78rem;
    color: #6b7280;
}

/* ============================
   DAILY SALES / TOP SELLING
   ============================ */
.daily-sales-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.daily-sales-section .card-product {
    border: 1px solid #f0f0f0;
    border-radius: var(--bf-radius);
    transition: var(--bf-transition);
    overflow: hidden;
}

.daily-sales-section .card-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--bf-shadow-lg);
    border-color: transparent;
}

.daily-sales-section .card-product img {
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.daily-sales-section .card-product:hover img {
    transform: scale(1.08);
}

.daily-sales-section .card-product:hover h2 a {
    color: var(--bf-green) !important;
}

/* Promo Card (100% Organic banner) */
.daily-sales-section .row > .col:first-child > div {
    border-radius: var(--bf-radius) !important;
    overflow: hidden;
    position: relative;
}

.daily-sales-section .row > .col:first-child > div::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    border-radius: var(--bf-radius);
    pointer-events: none;
}

/* ============================
   RECIPES SECTION
   ============================ */
.recipes-section .img-zoom {
    border-radius: var(--bf-radius);
    overflow: hidden;
    position: relative;
}

.recipes-section .img-zoom img {
    transition: transform .5s ease;
}

.recipes-section .img-zoom:hover img {
    transform: scale(1.08);
}

.recipes-section .img-zoom::after {
    content: 'Read More →';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--bf-transition);
    border-radius: 0 0 var(--bf-radius) var(--bf-radius);
}

.recipes-section .img-zoom:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.recipes-section h4 a {
    font-weight: 700;
    transition: color .2s ease;
}

.recipes-section h4 a:hover {
    color: var(--bf-green) !important;
}

.recipes-section .col-12.col-md-6.col-lg-3 {
    transition: var(--bf-transition);
}

.recipes-section .col-12.col-md-6.col-lg-3:hover {
    transform: translateY(-6px);
}

/* ============================
   SCROLL-IN ANIMATIONS
   ============================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.7s ease forwards;
}

/* Stagger delay for child elements */
.animate-on-scroll.is-visible .col:nth-child(1),
.animate-on-scroll.is-visible .col-12:nth-child(1),
.animate-on-scroll.is-visible .col-md-6:nth-child(1) { animation-delay: 0.1s; }

.animate-on-scroll.is-visible .col:nth-child(2),
.animate-on-scroll.is-visible .col-12:nth-child(2),
.animate-on-scroll.is-visible .col-md-6:nth-child(2) { animation-delay: 0.2s; }

/* ============================
   FOOTER POLISH
   ============================ */
.footer {
    border-top: 3px solid var(--bf-green);
}

/* ============================
   SECTION DIVIDERS
   ============================ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 0 auto;
    max-width: 80%;
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */
@media (max-width: 767px) {
    .trust-bar {
        gap: 0.5rem;
    }

    .trust-item {
        padding: 0.75rem 1rem;
        max-width: 100%;
        flex: 1 1 45%;
    }

    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .trust-text h6 {
        font-size: 0.8rem;
    }

    .trust-text p {
        font-size: 0.7rem;
    }

    .popular-products-section .card-product:hover,
    .daily-sales-section .card-product:hover,
    .categories-section .card-product:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 575px) {
    .trust-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
