/* =========================================
   FSMP Foods - Global Design System
   ========================================= */

:root {
    /* Color Palette */
    --color-primary: #10b981; /* Premium Health Green */
    --color-primary-dark: #059669;
    --color-primary-light: #d1fae5;
    
    --color-accent: #f59e0b; /* Taste & Energy Orange/Yellow */
    --color-accent-dark: #d97706;
    
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-gray: #e2e8f0;
    --color-promise-bg: #ecfdf5;
    
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #f8fafc;

    --color-nav-bg: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --section-padding: 5rem;
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Placeholder Utility */
.bg-gray {
    background-color: var(--color-bg-gray);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   Layout & Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.padding-y { padding: var(--section-padding) 0; }
.pt-12 { padding-top: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-gray { color: var(--color-text-muted); }
.bg-light { background-color: var(--color-bg-light); }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-md-none { display: none; }

/* =========================================
   Typography
   ========================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Components (Buttons, Badges)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius);
}

.btn-block {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

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

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

.btn-white {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid white;
}

.btn-white:hover {
    background-color: transparent;
    color: white;
}

.btn-text {
    padding: 0;
    color: var(--color-primary);
    background: transparent;
}

.btn-text:hover {
    color: var(--color-primary-dark);
    gap: 0.75rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-text);
}

.btn-icon:hover {
    background: var(--color-primary);
    color: white;
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.badge-primary {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.badge-accent {
    background-color: #fef3c7;
    color: var(--color-accent-dark);
}

/* =========================================
   Header & Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-normal);
}

.navbar.scrolled .navbar-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: var(--border-radius-sm);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

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

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

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

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border-top: 1px solid var(--color-bg-gray);
    box-shadow: var(--shadow-md);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-bg-gray);
    font-weight: 500;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--color-bg-light); /* Fallback */
}

/* AI Image will be set via inline style or separate CSS */
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to ensure text is readable */
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
    animation: slideUpFade 1s both;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    text-wrap: balance;
}

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

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Trust Bar
   ========================================= */
.trust-bar {
    background-color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
    margin-top: -2rem; /* Pull up over hero slightly */
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 50%;
}

/* =========================================
   Category Section
   ========================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

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

.category-image {
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.category-info {
    padding: 2rem;
}

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

.category-info p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   Split Layout (About, Quality)
   ========================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.split-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-lg);
}

.rounded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: 2rem;
    right: -2rem; /* Hanging off edge slightly */
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    transform: translateX(-3rem); /* Adjust back into view */
}

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

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.feature-list h4 {
    margin-bottom: 0.25rem;
}

.feature-list p {
    color: var(--color-text-muted);
}

/* =========================================
   Our Promise
   ========================================= */
.our-promise {
    background-color: var(--color-promise-bg);
}

.promise-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.promise-text {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--color-primary-dark);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-weight: 600;
}

.promise-author {
    font-weight: 600;
    color: var(--color-text-muted);
}

/* =========================================
   Product Showcase Slider
   ========================================= */
.horizontal-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem; /* For shadow */
    scroll-behavior: smooth;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.showcase-card {
    min-width: 300px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-bg-gray);
}

.showcase-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    padding: 1.5rem;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps integrate images with white bg */
}

.card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.card-details {
    padding: 1.5rem;
}

.card-details h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-details p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* =========================================
   Quality Details
   ========================================= */
.story-tagline {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 64px;
    height: 64px;
    color: white;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: transform 0.3s;
    cursor: pointer;
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.quality-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.quality-box i {
    color: var(--color-primary);
    width: 28px;
    height: 28px;
}

.quality-box span {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    margin: 4rem 1.5rem;
    border-radius: var(--border-radius-lg);
}

.cta-title {
    font-size: 3rem;
    color: white;
}

.cta-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #0f172a; /* Deep dark blue/almost black */
    color: #cbd5e1;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    color: white;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a:hover {
    color: white;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--color-primary);
}

.footer-disclaimer {
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    background: rgba(0,0,0,0.2);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-primary);
}

/* =========================================
   Sticky Elements
   ========================================= */
.sticky-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-whatsapp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

.btn-whatsapp .wa-icon {
    width: 32px;
    height: 32px;
}

/* =========================================
   Animations & Reveals
   ========================================= */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 992px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .split-image-wrapper {
        height: 400px;
        order: -1; /* Image always on top on mobile */
    }

    .cta-section {
        margin: 2rem 0;
        border-radius: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    .hero-text {
        margin: 0 auto;
    }
    .hero-bg {
        /* Shift gradient for mobile centering */
        background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.4) 100%);
    }
    .hero-buttons {
        justify-content: center;
    }
    .trust-container {
        justify-content: center;
    }
    .trust-item {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0;
    }
    .promise-text {
        font-size: 1.5rem;
    }
    .cta-title {
        font-size: 2rem;
    }
    .d-md-none {
        display: block;
    }
    .sticky-buy-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background: white;
    }
    .sticky-actions {
        bottom: 5rem; /* above mobile buy button */
    }
}
