/* ==========================================================================
   Harvest General Trading — one-page landing (Bootstrap 5 + brand layer)
   1. Tokens      4. Buttons     7. Cards        10. Footer & floats
   2. Base        5. Hero        8. Bands        11. Motion
   3. Navbar      6. Sections    9. Marquee
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --navy:        #1b2a6b;
    --navy-deep:   #101a45;
    --navy-soft:   #2e3f91;
    --navy-mist:   #eef1fa;
    --green:       #1fa33f;
    --green-dark:  #14762c;
    --green-light: #67c97f;
    --green-mist:  #eaf6ec;
    --gold:        #e9b23c;

    --ink:      #131a33;
    --body:     #5a6280;
    --muted:    #8b93ae;
    --line:     #e5e9f3;
    --surface:  #ffffff;
    --surface-2:#f6f8fc;
    --sand:     #f8f5ee;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(19, 26, 51, .06);
    --shadow:    0 14px 34px rgba(19, 26, 51, .09);
    --shadow-lg: 0 28px 64px rgba(19, 26, 51, .16);

    --display: "Barlow Condensed", "Segoe UI", Impact, sans-serif;
    --sans:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --header-h: 92px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Bootstrap overrides */
    --bs-body-font-family: var(--sans);
    --bs-body-color: var(--body);
    --bs-link-color-rgb: 20, 118, 44;
    --bs-link-hover-color-rgb: 31, 163, 63;
    --bs-border-color: var(--line);
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--body);
    background: var(--surface);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--display);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .01em;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

img, svg { max-width: 100%; display: block; }

.ico { width: 20px; height: 20px; flex: 0 0 auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 14px;
}
.eyebrow i {
    width: 26px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}
.eyebrow-light { color: #cfe9d6; }
.eyebrow-light i { background: var(--green-light); }

.heading { margin-bottom: 46px; }
.heading-center { text-align: center; max-width: 780px; margin-inline: auto; }
.heading p { color: var(--body); margin-bottom: 0; }

.rule { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.rule i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.rule i:first-child { width: 34px; border-radius: 6px; background: var(--green); }

.lead { font-size: 1.06rem; color: var(--body); }

/* 3. Navbar ---------------------------------------------------------------- */
.site-nav {
    min-height: var(--header-h);
    padding-block: 12px;
    background: transparent;
    transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-nav.scrolled {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding-block: 6px;
}
.site-nav .navbar-brand img { height: 54px; width: auto; }
.site-nav:not(.scrolled) .navbar-brand img { filter: brightness(0) invert(1); }

.site-nav .nav-link {
    font-weight: 600;
    color: #fff;
    padding: 10px 15px !important;
    position: relative;
}
.site-nav.scrolled .nav-link { color: var(--ink); }
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--green-light); }
.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link.active { color: var(--green-dark); }

.site-nav .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    margin-top: 8px;
}
.site-nav .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-weight: 500;
    color: var(--ink);
}
.site-nav .dropdown-item:hover { background: var(--green-mist); color: var(--green-dark); }
.site-nav .dropdown-item .ico { color: var(--green); }

.site-nav .navbar-toggler {
    border: 0;
    padding: 6px 8px;
    color: #fff;
}
.site-nav .navbar-toggler:focus { box-shadow: none; }
.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.site-nav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23131a33' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* 4. Buttons --------------------------------------------------------------- */
.btn {
    --bs-btn-padding-y: .8rem;
    --bs-btn-padding-x: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all .25s var(--ease);
}
.btn-sm { --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1.05rem; font-size: .9rem; }

.btn-brand { background: var(--green); color: #fff; }
.btn-brand:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 163, 63, .3); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); }

.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-outline-brand { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline-brand:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-mist); }

/* 5. Hero ------------------------------------------------------------------ */
.hero { position: relative; }
.hero .carousel-item {
    height: clamp(600px, 100vh, 900px);
    position: relative;
}
.hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(16, 26, 69, .92) 0%, rgba(16, 26, 69, .74) 45%, rgba(16, 26, 69, .3) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
    padding-bottom: 120px;
    max-width: 1180px;
}
.hero-inner h1, .hero-inner p { color: #fff; }
.hero-inner h1 { max-width: 25ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.hero-lead {
    max-width: 56ch;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, .88) !important;
    margin-bottom: 32px;
}

.hero .carousel-indicators { bottom: 34px; margin-bottom: 0; z-index: 3; }
.hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    opacity: .45;
    background: #fff;
    transition: all .25s var(--ease);
}
.hero .carousel-indicators .active { opacity: 1; width: 32px; border-radius: 6px; background: var(--green-light); }

.hero .carousel-control-prev,
.hero .carousel-control-next { width: 8%; opacity: .55; z-index: 3; }
.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover { opacity: 1; }

/* 6. Sections -------------------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }
.section-mist { background: var(--surface-2); }
.section-sand { background: var(--sand); }

/* Pillars, lifted over the hero edge */
.pillars { position: relative; margin-top: -86px; z-index: 4; }
.pillar-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.pillar {
    display: flex;
    gap: 18px;
    padding: 34px 30px;
    border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: 0; }
.pillar h3 { font-size: 1.32rem; margin-bottom: 6px; }
.pillar p { margin: 0; font-size: .95rem; }
.pillar-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green-mist);
    color: var(--green-dark);
}
.pillar-icon .ico { width: 24px; height: 24px; }

/* About */
.about-media { position: relative; }
.about-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    object-fit: cover;
}
.about-badge {
    position: absolute;
    right: -18px;
    bottom: 34px;
    background: var(--green);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.about-badge span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.check-list { list-style: none; padding: 0; margin: 26px 0 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; }
.check-list .ico {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green-mist);
    color: var(--green-dark);
    margin-top: 4px;
}

/* 7. Cards ----------------------------------------------------------------- */
.cat-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-chip {
    position: absolute;
    left: 18px;
    bottom: -22px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.cat-body { padding: 34px 24px 24px; }
.cat-body .tagline { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cat-body h3 { margin: 6px 0 10px; }
.cat-body p { color: var(--body); font-size: .96rem; }
.cat-count { margin-top: 12px; font-size: .84rem; color: var(--muted); }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--green-dark);
    font-size: .93rem;
}
.link-more .ico { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.cat-card:hover .link-more .ico,
.link-more:hover .ico { transform: translateX(4px); }

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    font-size: .75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}
.product-media .overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(16, 26, 69, .6);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.product-card:hover .overlay { opacity: 1; }
.product-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.28rem; margin-bottom: 8px; }
.product-body p { font-size: .94rem; }
.product-meta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.product-meta small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.product-meta .ico { width: 16px; height: 16px; }

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--navy-mist);
    color: var(--navy);
    margin-bottom: 20px;
}
.feature-icon .ico { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.3rem; }
.feature-card p { margin: 0; font-size: .96rem; }

.mvv-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--green);
}
.mvv-ring {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-mist);
    color: var(--green-dark);
    margin-bottom: 20px;
}
.mvv-ring .ico { width: 28px; height: 28px; }
.mvv-card p { margin: 0; }

.quote-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}
.quote-card > .ico { width: 34px; height: 34px; color: var(--green-light); margin-bottom: 16px; }
.quote-card blockquote { font-size: 1.02rem; color: var(--ink); margin: 0 0 24px; }
.quote-author { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: var(--display);
    font-size: 1.3rem;
}
.quote-author strong { display: block; color: var(--navy); font-weight: 700; }
.quote-author span { font-size: .87rem; color: var(--muted); }

/* 8. Bands ----------------------------------------------------------------- */
.stats-band { background: var(--navy-deep); padding: clamp(48px, 6vw, 76px) 0; }
.stat { color: rgba(255, 255, 255, .78); }
.stat .ico { width: 28px; height: 28px; margin: 0 auto 12px; color: var(--green-light); }
.stat b {
    display: block;
    font-family: var(--display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    color: #fff;
    margin-bottom: 6px;
}
.stat > span { font-size: .93rem; }

.cta-band {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: clamp(64px, 8vw, 100px) 0;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(16, 26, 69, .95), rgba(27, 42, 107, .82));
}
.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; max-width: 20ch; }
.cta-inner p { color: rgba(255, 255, 255, .85); max-width: 60ch; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 9. Marquee --------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee-track img {
    height: 58px;
    width: auto;
    opacity: .55;
    filter: grayscale(1);
    transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.marquee-track img:hover { opacity: 1; filter: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Gallery */
.gallery-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 16px 14px;
    background: linear-gradient(transparent, rgba(16, 26, 69, .85));
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
}

/* 10. Footer & floats ------------------------------------------------------ */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .72);
    padding: clamp(56px, 7vw, 88px) 0 0;
}
.site-footer h4 { color: #fff; margin-bottom: 20px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 20px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: var(--green-light); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .94rem; }
.footer-contact .ico { color: var(--green-light); margin-top: 4px; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-contact a:hover { color: var(--green-light); }
.footer-bottom {
    margin-top: 54px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .9rem;
}
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--green-light); }

.floats {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s var(--ease);
}
.float-btn:hover { transform: translateY(-3px); color: #fff; }
.float-wa { background: #25d366; }
.float-top { background: var(--navy); opacity: 0; pointer-events: none; }
.float-top.show { opacity: 1; pointer-events: auto; }

/* 11. Motion --------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .marquee-track { animation: none; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    /* Off-canvas panel: links sit on white, so they take the ink colour. */
    .offcanvas-lg { width: 300px; }
    .site-nav .nav-link,
    .site-nav.scrolled .nav-link { color: var(--ink); }
    .site-nav .nav-link:hover,
    .site-nav .nav-link.active { color: var(--green-dark); }
    .site-nav .dropdown-menu { box-shadow: none; border: 0; background: var(--surface-2); }
    .pillars { margin-top: -60px; }
    .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
    .pillar:last-child { border-bottom: 0; }
    .about-badge { right: 16px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
    .hero .carousel-item { height: 88vh; min-height: 560px; }
    .hero-inner { padding-bottom: 90px; }
    .floats { right: 14px; bottom: 16px; }
}
