/* ==========================================================================
   SpiceFlow | Premium B2B Spices Export
   StyleSheet
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --clr-primary: #0EA5E9;   /* Primary Accent - Sky Blue */
    --clr-secondary: #38BDF8; /* Secondary Accent - Light Sky Blue */
    --clr-dark: #0369A1;      /* Tertiary Accent - Dark Blue */
    --clr-accent: #0284C7;    /* Subtle Highlight - Medium Blue */

    /* Typography */
    --clr-bg-dark: #1A1A1A;
    --clr-bg-light: #F9F9F9; /* Reverted to Light Gray */
    --clr-bg-white: #FFFFFF; /* Reverted to Pure White */
    
    --clr-text-main: #431407; /* Dark Rust/Orange Text */
    --clr-text-muted: #9A3412; /* Muted Orange Text */
    --clr-text-light: #FED7AA; /* Light Orange Text */

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

    /* Spacing & Layout */
    --section-padding: 5rem 0;
    --container-max: 1200px;

    /* Transitions & Effects */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* --- Utility Classes --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-white { color: var(--clr-text-light); }
.text-light { color: rgba(255, 255, 255, 0.8); }
.bg-light { background-color: var(--clr-bg-light); }
.mb-4 { margin-bottom: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Typography Utilites */
.section-title {
    font-size: 2.5rem;
    color: var(--clr-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--clr-primary);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.title-underline.center {
    margin: 0 auto 2rem auto;
}

.title-underline.accent {
    background: var(--clr-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-bg-white);
}

.btn-primary:hover {
    background-color: #0284C7;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background-color: var(--clr-secondary);
    color: var(--clr-dark);
}

.btn-secondary:hover {
    background-color: #0EA5E9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn-outline {
    border-color: var(--clr-dark);
    color: var(--clr-dark);
    background: transparent;
}

.btn-outline:hover {
    background: var(--clr-dark);
    color: var(--clr-bg-white);
}

.btn-outline-white {
    border-color: var(--clr-bg-white);
    color: var(--clr-bg-white);
    background: transparent;
}

.btn-outline-white:hover {
    background: var(--clr-bg-white);
    color: var(--clr-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

.header.scrolled .nav-link {
    color: var(--clr-dark);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--clr-primary);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #FCB045;
    letter-spacing: 1px;
}

.logo span {
    color: #3EBEFB;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--clr-bg-white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active {
    color: var(--clr-secondary);
}

.header:not(.scrolled) .nav-link::after {
    background-color: var(--clr-secondary);
}

.nav-link.btn-contact {
    background-color: var(--clr-primary);
    color: var(--clr-bg-white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
}

.nav-link.btn-contact::after {
    display: none;
}

.nav-link.btn-contact:hover {
    background-color: #0284C7;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-bg-white);
    cursor: pointer;
}

.header.scrolled .mobile-menu-toggle {
    color: var(--clr-dark);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/spiceflow_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 200px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.9) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(26, 26, 26, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    color: var(--clr-bg-white);
    margin-top: -80px;
    margin-left: 0;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

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

/* --- About Section --- */
.about {
    padding: var(--section-padding);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--clr-dark);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.about-image {
    position: relative;
}

.rounded-shadow {
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--clr-primary);
    color: var(--clr-bg-white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
    border: 8px solid var(--clr-bg-white);
}

.experience-badge span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-badge strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
}

/* --- Products Section --- */
.products {
    padding: var(--section-padding);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--clr-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

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

.product-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    color: var(--clr-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features i {
    color: var(--clr-accent);
}

/* --- Quality Section --- */
.quality {
    padding: var(--section-padding);
    background-color: var(--clr-bg-dark);
    color: var(--clr-bg-white);
    background-image: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.95)), url('../images/spiceflow_about.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-box {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.feature-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-secondary);
}

.feature-icon {
    font-size: 3rem;
    color: var(--clr-secondary);
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--clr-bg-white);
}

.feature-box p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact {
    padding: var(--section-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--clr-bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.contact-info {
    background-color: var(--clr-bg-light);
    padding: 4rem 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-top: 0.2rem;
}

.info-item h5 {
    color: var(--clr-dark);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.contact-form-container {
    padding: 4rem 3rem;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
}

.form-group.half {
    width: calc(50% - 0.75rem);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--clr-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--clr-bg-light);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-bg-white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* --- Footer --- */
.footer {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 4rem 0 2rem 0;
}

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

.footer-brand h2 {
    font-size: 2rem;
    color: var(--clr-bg-white);
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--clr-secondary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer h3 {
    color: var(--clr-bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--clr-secondary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

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

.social-icons a:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
}

/* --- Animations --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes (Applied via JS) */
.scroll-anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-anim.fade-up { transform: translateY(50px); }
.scroll-anim.fade-right { transform: translateX(-50px); }
.scroll-anim.fade-left { transform: translateX(50px); }
.scroll-anim.in-view {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .contact-wrapper { gap: 2rem; }
}

@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { margin-top: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { padding: 3rem 2rem; }
    .contact-form-container { padding: 3rem 2rem; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--clr-bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 2rem;
    }

    .nav-list.active { right: 0; }

    .nav-link { color: var(--clr-dark); }
    .header:not(.scrolled) .nav-link { color: var(--clr-dark); }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-cta { flex-direction: column; }
    .btn { text-align: center; }
    
    .form-group.half { width: 100%; }
}

@media (max-width: 500px) {
    .hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .stats-container { flex-direction: column; gap: 1.5rem; text-align: center; }
    .experience-badge { bottom: 10px; right: 10px; width: 100px; height: 100px; padding: 1rem; border-width: 4px; }
    .experience-badge strong { font-size: 1.2rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
