/* ==========================================
   HOME PAGE CSS
   ========================================== */

/* ---- HERO ANIMATION SECTION ---- */
.hero-scroll-container {
    position: relative;
    width: 100%;
    height: 300vh; /* JS overrides to 200vh on mobile */
}

.canvas-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #3d5c34;
    /* GPU acceleration */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Both canvases share the same base style */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: contents;
}

/* Desktop canvas: visible by default, hidden on mobile */
.desktop-only {
    display: block;
}

/* Mobile canvas: hidden by default, shown on mobile */
.mobile-only {
    display: none;
}

.hero-text-overlay {
    position: absolute;
    right: 40px;
    bottom: 48px;
    z-index: 10;
    /* Apple Liquid Glass */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 340px;
    width: 340px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    padding: 4px 12px;
    margin-bottom: 10px;
}

.hero-text-overlay h1 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-text-overlay p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 18px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #3a5a40;
    color: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(58,90,64,0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
    background-color: #588157;
    box-shadow: 0 6px 24px rgba(58,90,64,0.5);
    transform: translateY(-2px);
}

.hero-btn .arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}
.hero-btn:hover .arrow { transform: translateX(4px); }

/* ---- MOBILE / TABLET HERO ---- */
@media (max-width: 1024px) {
    /* Switch to portrait canvas, hide landscape canvas */
    .desktop-only { display: none !important; }
    .mobile-only  { display: block !important; }

    .canvas-container {
        height: 100vh;
        height: 100svh; /* small viewport height — excludes iOS browser chrome */
    }

    .hero-text-overlay {
        right: 12px;
        bottom: 16px;
        left: 12px;
        width: auto;
        max-width: none;
        padding: 16px 18px;
        border-radius: 14px;
        z-index: 10;
        background: rgba(255, 255, 255, 0.12);
    }

    .hero-badge {
        font-size: 9px;
        padding: 3px 10px;
        margin-bottom: 6px;
    }

    .hero-text-overlay h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .hero-text-overlay p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .hero-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .hero-text-overlay p {
        display: none;
    }
}

/* ---- BRAND MARQUEE ---- */
.brand-strip {
    background-color: #fff;
    border-top: 1px solid #e8e4dd;
    border-bottom: 1px solid #e8e4dd;
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
}

.brand-marquee {
    display: inline-flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.brand-marquee:hover { animation-play-state: paused; }

.brand-marquee p {
    display: inline-block;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 500;
    color: #a3b18a;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.brand-marquee p::after {
    content: '✦';
    margin-left: 28px;
    font-size: 10px;
    color: #ccc;
}
.brand-marquee p:hover { color: #3a5a40; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- OUR MISSION ---- */
.mission-section {
    padding: 90px 40px;
    background: #fff;
    text-align: center;
}

.mission-section .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #588157;
    margin-bottom: 14px;
}

.mission-section h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 24px;
}

.mission-section p {
    max-width: 720px;
    margin: 0 auto 18px;
    font-size: 15.5px;
    color: #4a5e4b;
    line-height: 1.8;
}

/* ---- WHY CHOOSE US ---- */
.why-choose-us {
    padding: 90px 40px;
    background: #faf9f7;
    text-align: center;
}

.why-choose-us .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #588157;
    margin-bottom: 14px;
}

.why-choose-us h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 10px;
}

.why-choose-us .subtitle {
    font-size: 15px;
    color: #6b7f6d;
    margin-bottom: 56px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(163,177,138,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #3a5a40;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 10px;
}

.card p {
    font-size: 13.5px;
    color: #6b7f6d;
    line-height: 1.7;
}

@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---- PRODUCTS CATEGORIES ---- */
.categories {
    padding: 90px 40px;
    background: #fff;
}

.categories .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.categories .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #588157;
    margin-bottom: 14px;
}

.categories h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a2e1c;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.category {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.img-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.img-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category:hover .img-container img { transform: scale(1.06); }

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,40,22,0.75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category:hover .overlay { opacity: 1; }

.category-label {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    position: absolute;
    bottom: 52px;
    left: 24px;
    right: 24px;
}

.button {
    display: inline-block;
    background: rgba(255,255,255,0.92);
    color: #3a5a40;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.button:hover { background: #fff; }

.category > p {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2e1c;
    padding: 0 4px;
}

@media (max-width: 900px) { .category-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
    .category-container { grid-template-columns: 1fr; }
    .categories { padding: 60px 20px; }
}

/* ---- SUSTAINABLE PRACTICES ---- */
.sustainable-section {
    padding: 90px 40px;
    background: #faf9f7;
}

.sustainable-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sustainable-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.sustainable-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.sustainable-content .section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #588157;
    margin-bottom: 14px;
}

.sustainable-content h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sustainable-content p {
    font-size: 15px;
    color: #4a5e4b;
    line-height: 1.8;
    margin-bottom: 28px;
}

.sustainable-link {
    font-size: 14px;
    font-weight: 600;
    color: #3a5a40;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid #a3b18a;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.sustainable-link:hover { color: #588157; border-color: #588157; }

@media (max-width: 900px) {
    .sustainable-inner { grid-template-columns: 1fr; gap: 36px; }
    .sustainable-image img { height: 280px; }
    .sustainable-section { padding: 60px 20px; }
}

/* ---- CTA BANNER ---- */
.cta-banner {
    padding: 90px 40px;
    background: #3a5a40;
    text-align: center;
}

.cta-banner h2 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    margin-bottom: 38px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    background: #fff;
    color: #3a5a40;
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.cta-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    transform: translateY(-2px);
}

.cta-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}
.cta-btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ---- REVIEWS CAROUSEL ---- */
.reviews-carousel {
    padding: 90px 40px;
    background: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews-carousel .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #588157;
    margin-bottom: 14px;
}

.main-title {
    font-size: 38px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 48px;
}

.reviews {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
}

.review-card {
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 16px;
    padding: 32px 28px;
    flex: 0 0 calc(33.3333% - 16px);
    width: calc(33.3333% - 16px);
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card.middle {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.review-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 8px;
}

.review-card .stars { margin-bottom: 12px; }
.review-card .fa-star { color: #f4a100; font-size: 14px; }

.review-card p {
    font-size: 14px;
    color: #6b7f6d;
    line-height: 1.75;
    white-space: normal;
    word-wrap: break-word;
}

.reviews-carousel .prev,
.reviews-carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #3a5a40;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
    z-index: 5;
}
.reviews-carousel .prev:hover,
.reviews-carousel .next:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.reviews-carousel .prev { left: 20px; }
.reviews-carousel .next { right: 20px; }

@media (max-width: 768px) {
    .review-card { min-width: 90%; }
    .reviews-carousel { padding: 60px 20px; }
    .main-title { font-size: 28px; }
}

/* ---- IMAGE CAROUSEL (old, kept for compatibility) ---- */
.image-carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    border-bottom: 1px solid #e8e4dd;
}

.carousel {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 33.33%;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel .prev,
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #3a5a40;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}
.carousel .prev { left: 12px; }
.carousel .next { right: 12px; }

@media (max-width: 768px) { .carousel-images img { width: 100%; } }

/* ---- GENERAL SECTION SPACING ---- */
@media (max-width: 768px) {
    .mission-section, .why-choose-us { padding: 60px 20px; }
}

/* ---- B2B SOURCING SECTION ---- */
.sourcing-section {
    padding: 90px 40px;
    background: #fdfcf9;
    border-bottom: 1px solid #e8e4dd;
}
.sourcing-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sourcing-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
    object-fit: cover;
    max-height: 480px;
    border: 1px solid rgba(0,0,0,0.05);
}
.sourcing-content .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #588157;
    margin-bottom: 14px;
}
.sourcing-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 24px;
    line-height: 1.25;
}
.sourcing-content p {
    font-size: 15.5px;
    color: #4a5e4b;
    line-height: 1.8;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .sourcing-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sourcing-section { padding: 60px 20px; }
    .sourcing-content h2 { font-size: 28px; }
}

/* ---- B2B FAQ SECTION ---- */
.faq-section {
    padding: 90px 40px;
    background: #fff;
    border-bottom: 1px solid #e8e4dd;
}
.faq-inner {
    max-width: 800px;
    margin: 0 auto;
}
.faq-header {
    text-align: center;
    margin-bottom: 50px;
}
.faq-header .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #588157;
    margin-bottom: 14px;
}
.faq-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a2e1c;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    border: 1px solid #e8e4dd;
    border-radius: 12px;
    background: #fdfcf9;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 600;
    color: #1a2e1c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}
.faq-question:hover {
    background: #f4f1ea;
}
.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: #588157;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    font-size: 15px;
    color: #4a5e4b;
    line-height: 1.7;
    border-top: 1px solid transparent;
}
/* Active state trigger */
.faq-item.active {
    border-color: #588157;
    box-shadow: 0 4px 18px rgba(88,129,87,0.06);
}
.faq-item.active .faq-question {
    background: #f4f1ea;
    color: #3a5a40;
}
.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}
.faq-item.active .faq-answer {
    max-height: 350px;
    padding: 20px 24px;
    border-top: 1px solid #e8e4dd;
    background: #fff;
}
@media (max-width: 768px) {
    .faq-section { padding: 60px 20px; }
    .faq-header h2 { font-size: 28px; }
    .faq-question { font-size: 15.5px; padding: 16px 20px; }
    .faq-item.active .faq-answer { padding: 16px 20px; }
}
