/* ============================================
   VGM Foundation Foods - Enhanced Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;600&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #1b5e20;
    --primary-mid: #2e7d32;
    --primary-lt: #43a047;
    --accent: #8bc34a;
    --accent-gold: #f9a825;
    --bg-light: #f1f8e9;
    --bg-section: #fafff6;
    --text: #212121;
    --text-soft: #555;
    --white: #ffffff;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.14);
    --radius: 18px;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-mid);
    border-radius: 3px;
}

/* ─── NAVBAR ─── */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand .leaf-icon {
    color: var(--accent);
}

.nav-link {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--bg-light);
}

/* ─── HERO CAROUSEL ─── */
/* Bootstrap carousel uses position:absolute on items — we must NOT use flex on carousel-item.
   Instead, set explicit height on the outer wrappers and let hero-slide fill with min-height. */
.hero-section {
    height: 92vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#heroCarousel,
#heroCarousel .carousel-inner {
    height: 100%;
}

/* carousel-item stays as Bootstrap default (position: absolute after active) */
#heroCarousel .carousel-item {
    height: 100%;
}

.hero-slide {
    height: 92vh;
    min-height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.82) 0%, rgba(46, 125, 50, 0.60) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    animation: fadeInUp 0.9s ease both;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
    margin: 0 auto 30px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background: var(--white);
}

/* ─── BUTTONS ─── */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-lt), var(--primary-mid));
    border: none;
    padding: 13px 32px;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.45);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline-light:hover {
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, #f9a825, #fb8c00);
    border: none;
    color: #fff;
    padding: 13px 32px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(251, 140, 0, 0.35);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 140, 0, 0.45);
    color: #fff;
}

/* ─── SECTION CORE ─── */
section {
    padding: 90px 0;
}

/* Hero wrapper must have NO padding so carousel is flush with navbar */
#home {
    padding: 0 !important;
    margin: 0 !important;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .badge-label {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-mid);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 16px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-lt));
    border-radius: 4px;
}

.section-title p {
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── ABOUT ─── */
.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-lt));
    color: #fff;
    padding: 20px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge-float .number {
    font-size: 2rem;
    font-weight: 900;
    display: block;
}

.about-badge-float .label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.check-item i {
    color: var(--primary-lt);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ─── STATS ─── */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item span.label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ─── SERVICE CARDS ─── */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(139, 195, 74, 0.15);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card-img {
    height: 220px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 25px;
}

.service-card-body .icon-circle {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-mid);
    transition: var(--transition);
}

.service-card:hover .icon-circle {
    background: var(--primary-mid);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
}

/* ─── PRODUCTS / SPECIALITY ─── */
.product-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(27, 94, 32, 0.92) 0%, rgba(27, 94, 32, 0) 100%);
    padding: 30px 22px 22px;
    color: #fff;
    transform: translateY(8px);
    transition: var(--transition);
}

.product-card:hover .product-card-overlay {
    transform: translateY(0);
}

.product-card-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.product-card-overlay p {
    font-size: 0.85rem;
    opacity: 0.88;
    margin: 0;
}

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent-gold);
    color: #1a1a1a;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ─── WHY CHOOSE US ─── */
.why-section {
    background: var(--bg-section);
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 20px;
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-mid);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary-mid);
    color: #fff;
}

/* ─── MISSION / VISION CARDS ─── */
.mv-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary-lt);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.mv-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-light);
    opacity: 0.7;
}

.mv-card .mv-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-lt));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

/* ─── TESTIMONIALS ─── */
.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-soft);
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary);
    margin-top: 20px;
}

.testimonial-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-mid);
}

/* ─── CTA BANNER ─── */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, var(--primary-lt) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ─── CONTACT ─── */
.contact-section {
    background: var(--bg-section);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: #fff;
    padding: 40px;
    border-radius: var(--radius);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item .ci-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form-card {
    background: var(--white);
    padding: 45px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-floating .form-control {
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-floating .form-control:focus {
    border-color: var(--primary-lt);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.12);
}

.form-label {
    font-weight: 600;
    font-size: 0.87rem;
    color: var(--text-soft);
}

.form-control {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    margin-bottom: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-lt);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.12);
}

/* ─── MAP ─── */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 420px;
    margin-top: 60px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── FOOTER ─── */
.footer {
    background: #111c11;
    color: #cdd8c8;
    padding: 70px 0 0;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}

.footer p {
    font-size: 0.9rem;
    color: #9aab95;
    line-height: 1.8;
}

.footer h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(139, 195, 74, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9aab95;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #cdd8c8;
    margin-right: 8px;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--primary-lt);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 18px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.85rem;
    color: #6a7a65;
}

/* ─── BACK TO TOP ─── */
#backTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-mid);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

#backTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#backTop:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
    position: fixed;
    bottom: 88px;
    right: 28px;
    background: #25d366;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    z-index: 998;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-wa 2.5s infinite;
}

.wa-float:hover {
    transform: scale(1.15);
    color: #fff;
}

@keyframes pulse-wa {

    0%,
    100% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 6px 40px rgba(37, 211, 102, 0.8);
    }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    section {
        padding: 65px 0;
    }

    .hero-slide {
        min-height: 70vh;
    }

    .contact-form-card {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .stat-item .number {
        font-size: 2.2rem;
    }

    .product-card img {
        height: 260px;
    }

    .about-badge-float {
        bottom: 0;
        right: 0;
    }
}