/* ===========================
   Food Story — Custom Styles
   =========================== */

:root {
    --fs-primary: #E63946;
    --fs-dark: #1D3557;
    --fs-light: #F8F9FA;
    --fs-font-body: 'Inter', sans-serif;
    --fs-font-heading: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--fs-font-body);
    color: #333;
    line-height: 1.6;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6,
.section-title {
    font-family: var(--fs-font-heading);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--fs-dark);
    margin-bottom: 0.5rem;
}

/* --- Navbar --- */

.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}

.navbar .nav-link {
    font-weight: 500;
    color: #555;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--fs-primary);
}

/* --- Primary Custom Color --- */

.text-primary-custom {
    color: var(--fs-primary) !important;
}

.btn-primary-custom {
    background-color: var(--fs-primary);
    border-color: var(--fs-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #C1121F;
    border-color: #C1121F;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* --- Hero Section --- */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.7)), url('/images/hero.jpg') center/cover no-repeat;
    padding-top: 100px;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.hero-subtitle {
    color: #666;
    font-size: 1.25rem;
}

/* --- Sections Spacing --- */

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* --- Product Cards --- */

.product-card {
    border-top: 4px solid transparent !important;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

.product-card .card-img-top {
    height: 500px;
    object-fit: contain;
}

/* --- Values Section --- */

.value-number {
    font-family: var(--fs-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fs-primary);
    opacity: 0.2;
    line-height: 1;
}

/* --- Scroll Reveal Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delay for cards in a row */
.row > .reveal:nth-child(2) { transition-delay: 0.1s; }
.row > .reveal:nth-child(3) { transition-delay: 0.2s; }
.row > .reveal:nth-child(4) { transition-delay: 0.3s; }
.row > .reveal:nth-child(5) { transition-delay: 0.4s; }
.row > .reveal:nth-child(6) { transition-delay: 0.5s; }
.row > .reveal:nth-child(7) { transition-delay: 0.6s; }

/* --- About Icons --- */

.about-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(230, 57, 70, 0.08);
}

/* --- Contact --- */

#contact .card {
    border-radius: 16px;
}

/* --- Language Switcher --- */

.lang-switch {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem !important;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.lang-switch:hover {
    background-color: var(--fs-primary);
    border-color: var(--fs-primary);
    color: #fff !important;
}

/* --- Footer --- */

footer a:hover {
    color: #fff !important;
}

/* --- IFS Broker --- */

.ifs-broker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.ifs-broker img {
    width: 50%;
    max-width: 250px;
    height: auto;
}

.ifs-broker div p {
    text-align: justify;
    margin-bottom: 0.5rem;
    color: #555;
}

@media (min-width: 768px) {
    .ifs-broker {
        flex-direction: row;
        gap: 3rem;
    }

    .ifs-broker img {
        width: 30%;
        max-width: 280px;
    }
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .product-card .card-img-top {
        height: 350px;
    }

    .py-lg-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
