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

:root {
    /* Premium Color System */
    --primary-color: #16A34A;
    --fresh-green: #22C55E;
    --primary-orange: #F59E0B;
    --warm-yellow: #FACC15;
    --warm-cream: #FFF8E7;
    --bg-white: #FFFFFF;
    --bg-cream: #FFFDF5;
    --bg-light-gray: #F8FAFC;
    --bg-section: #F0FDF4;
    
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 28px 56px -12px rgba(22, 163, 74, 0.18), 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    --shadow-glow-green: 0 8px 32px -4px rgba(22, 163, 74, 0.35);
    --shadow-glow-orange: 0 8px 32px -4px rgba(245, 158, 11, 0.35);
    
    --border-radius-card: 24px;
    --border-radius-btn: 50px;
    --section-padding-y: 120px;
    --section-padding-mobile-y: 80px;
    --header-height: 108px;
    --header-height-scrolled: 88px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

body:not(.loaded) {
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

a:hover {
    color: var(--fresh-green);
}

ul {
    list-style: none;
}

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

/* Base Utility Classes */
.bg-white { background-color: var(--bg-white) !important; }
.bg-cream { background-color: var(--bg-cream) !important; }
.bg-light-gray { background-color: var(--bg-light-gray) !important; }
.bg-light-green { background-color: var(--bg-section) !important; }
.bg-section { background-color: var(--bg-section) !important; }
.bg-warm-cream { background-color: var(--warm-cream) !important; }
.bg-green { background-color: var(--primary-color) !important; color: white; }

.text-primary { color: var(--primary-color) !important; }
.text-orange { color: var(--primary-orange) !important; }
.text-yellow { color: var(--warm-yellow) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-center { text-align: center; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-orange) 100%);
    background-size: 200% auto;
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--fresh-green);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.btn-primary:hover {
    color: var(--bg-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
    background-position: right center;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.3);
}

/* Perfect Grid System & Rhythm */
.section-padding {
    padding: var(--section-padding-y) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-orange);
    margin-bottom: 0.75rem;
}

.founded-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    background: var(--bg-section);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.founded-badge i {
    color: var(--primary-orange);
}

/* Curved Section Divider */
.section-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
    margin-top: -1px;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Preloader — Brand-focused, Premium SVG Loader (max 2s) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Clean white as requested */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: loaderOrbit 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.food-icon {
    position: absolute;
    width: 75px;
    height: 75px;
    top: 50%;
    left: 50%;
    margin-top: -37.5px;
    margin-left: -37.5px;
    opacity: 0;
    animation-fill-mode: forwards;
}

.food-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

/* Entering and positioning animations */
.apple { animation: flyInApple 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.orange { animation: flyInOrange 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.1s; }
.carrot { animation: flyInCarrot 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.2s; }
.watermelon { animation: flyInWatermelon 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.3s; }
.leaf { animation: flyInLeaf 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.4s; }

/* The fly-in keyframes for 5 icons: pentagon formation */
@keyframes flyInApple {
    0% { transform: translate(0, -200px) scale(0) rotate(-45deg); opacity: 0; }
    30% { transform: translate(0, -90px) scale(1) rotate(0deg); opacity: 1; }
    80% { transform: translate(0, -90px) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(0, 0) scale(0) rotate(90deg); opacity: 0; }
}
@keyframes flyInOrange {
    0% { transform: translate(200px, -100px) scale(0) rotate(45deg); opacity: 0; }
    30% { transform: translate(85px, -25px) scale(1) rotate(0deg); opacity: 1; }
    80% { transform: translate(85px, -25px) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(0, 0) scale(0) rotate(-90deg); opacity: 0; }
}
@keyframes flyInCarrot {
    0% { transform: translate(150px, 200px) scale(0) rotate(-90deg); opacity: 0; }
    30% { transform: translate(55px, 75px) scale(1) rotate(0deg); opacity: 1; }
    80% { transform: translate(55px, 75px) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(0, 0) scale(0) rotate(-45deg); opacity: 0; }
}
@keyframes flyInWatermelon {
    0% { transform: translate(-150px, 200px) scale(0) rotate(-45deg); opacity: 0; }
    30% { transform: translate(-55px, 75px) scale(1) rotate(0deg); opacity: 1; }
    80% { transform: translate(-55px, 75px) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(0, 0) scale(0) rotate(90deg); opacity: 0; }
}
@keyframes flyInLeaf {
    0% { transform: translate(-200px, -100px) scale(0) rotate(45deg); opacity: 0; }
    30% { transform: translate(-85px, -25px) scale(1) rotate(0deg); opacity: 1; }
    80% { transform: translate(-85px, -25px) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(0, 0) scale(0) rotate(-90deg); opacity: 0; }
}

@keyframes loaderOrbit {
    0% { transform: rotate(0deg); }
    80% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--fresh-green));
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-glow-green);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: all var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: backToTopPulse 2.5s ease-in-out infinite;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-glow-orange);
    animation: none;
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.02);
}

@keyframes backToTopPulse {
    0%, 100% { box-shadow: var(--shadow-glow-green); }
    50% { box-shadow: 0 8px 32px -4px rgba(22, 163, 74, 0.5), 0 0 0 8px rgba(22, 163, 74, 0.08); }
}

/* Premium Form Styles (Floating Labels) */
.premium-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.premium-input {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-light-gray);
    font-size: 1.05rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.premium-input:focus {
    border-color: var(--primary-orange);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.premium-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: all 0.2s ease-out;
    pointer-events: none;
}

.premium-input:focus ~ .premium-label,
.premium-input:not(:placeholder-shown) ~ .premium-label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.premium-input:focus ~ .premium-label {
    color: var(--primary-orange);
}

textarea.premium-input {
    padding-top: 1.75rem;
    resize: vertical;
}

textarea.premium-input ~ .premium-label {
    top: 1.5rem;
}

/* Premium Form Container & Layout */
.premium-form-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-orange);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    width: 100%;
}

.premium-form-container h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.75rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}

.form-grid-auto {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.25rem;
}

.form-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    justify-content: center;
}

.form-file-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.premium-input[type="file"] {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

/* Contact Page Layout */
.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card .info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info-card .info-item:last-child {
    margin-bottom: 0;
}

.contact-info-card .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-info-card.highlight-card {
    background: linear-gradient(135deg, var(--primary-color), #15803d);
    color: white;
    border: none;
}

.contact-info-card.highlight-card h3,
.contact-info-card.highlight-card strong {
    color: white;
}

.contact-info-card.highlight-card .info-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Partnership Page Layout */
.partnership-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.partnership-text h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin-bottom: 1.25rem;
}

.nutrition-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.nutrition-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.nutrition-list li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.partnership-text img {
    width: 100%;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
}

.careers-form-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.form-footer-note {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .partnership-page-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-2,
    .form-grid-auto {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .premium-form-group {
        margin-bottom: 1.25rem;
    }

    .premium-input {
        padding: 1.35rem 0.9rem 0.45rem;
        font-size: 1rem;
    }

    .premium-label {
        left: 1rem;
        font-size: 1rem;
    }

    .premium-form-container {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .premium-input {
        font-size: 16px; /* prevents iOS zoom */
    }

    .form-submit-btn {
        padding: 0.95rem 1.25rem !important;
    }
}

/* Form Success Screen */
.form-success-screen {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-hover);
    border-top: 6px solid var(--primary-color);
}

.form-success-icon {
    font-size: 4rem;
    color: var(--fresh-green);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Constraints */
@media (max-width: 991px) {
    .section-padding { padding: var(--section-padding-mobile-y) 0; }
}
