@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

/********** Template CSS **********/
:root {
    --primary: #2D7711;
    --secondary: #B25900;
    --light: #F6FFF2;
    --dark: #263A4F;
}

/* Smooth anchor scrolling & brand helpers */
html { scroll-behavior: smooth; }

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

.navbar-brand img { transition: .5s; }

/* Product card imagery (uniform, professional crop) */
.product-thumb {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

/* Value / CTA band */
.bg-cta {
    background: linear-gradient(rgba(45, 119, 17, .92), rgba(45, 119, 17, .92)), url(../img/export.jpg) center center no-repeat;
    background-size: cover;
}

.btn {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 0;
    z-index: 99;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 30px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: var(--secondary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.bg-hero {
    background: url(../img/warehouse.jpg) center center no-repeat;
    background-size: cover;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.service-item {
    box-shadow: 0 0 45px #EDEDED;
    transition: .5s;
}

.about i,
.service-item i {
    background-image: linear-gradient(var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: .5s;
}

.service-item:hover {
    color: var(--light);
    background: var(--primary) !important;
}

.service-item:hover i {
    background-image: linear-gradient(var(--light), var(--secondary));
}

.service-item:hover h4 {
    transition: .5s;
}

.service-item:hover h4 {
    color: var(--light);
}

.product-item {
    padding: 0 30px 30px 30px;
}

.product-item h5 {
    transition: .5s;
}

.bg-footer {
    background: linear-gradient(rgba(45, 119, 17, .7), rgba(45, 119, 17, .7)), url(../img/footer.png) center bottom no-repeat;
    background-size: contain;
}

@media (min-width: 991.98px) {
    .bg-footer {
        margin-top: 90px !important;
    }
}


/* ============================================================
   PREMIUM ENHANCEMENTS  —  Afrique Agro Commodities Ltd
   International-standard styling, classic & premium motion
   ============================================================ */

:root {
    --shadow-sm: 0 6px 18px rgba(38, 58, 79, .08);
    --shadow-md: 0 18px 40px rgba(38, 58, 79, .12);
    --shadow-lg: 0 30px 60px rgba(38, 58, 79, .18);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Refined display typography ---- */
.display-1, .display-2, .display-3, .display-4, .display-5,
.carousel-caption h1 {
    font-family: 'Playfair Display', 'Roboto', serif;
    letter-spacing: -.5px;
}
h1, h2, h3, h4, h5 { font-weight: 700; }
p { line-height: 1.8; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2000;
    transition: width .1s linear;
}

/* ---- Eyebrow label with accent rule ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: .35rem;
}
.eyebrow::before {
    content: "";
    width: 34px; height: 2px;
    background: var(--secondary);
    display: inline-block;
}
.eyebrow.eyebrow-center { justify-content: center; }
.eyebrow.eyebrow-center::after {
    content: "";
    width: 34px; height: 2px;
    background: var(--secondary);
    display: inline-block;
}
.eyebrow.eyebrow-light { color: rgba(255,255,255,.85); }
.eyebrow.eyebrow-light::before,
.eyebrow.eyebrow-light::after { background: var(--secondary); }

/* ---- Scroll reveal animations ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-55px); }
[data-reveal="right"] { transform: translateX(55px); }
[data-reveal="zoom"]  { transform: scale(.9); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero-content > * { opacity: 1 !important; transform: none !important; animation: none !important; }
    #header-carousel .carousel-item.active img { animation: none !important; }
}

/* ---- Cinematic hero carousel ---- */
#header-carousel .carousel-item { overflow: hidden; }
#header-carousel .carousel-item img {
    height: 100vh;
    max-height: 860px;
    object-fit: cover;
}
#header-carousel .carousel-item.active img {
    animation: kenburns 14s ease-out both;
}
@keyframes kenburns {
    from { transform: scale(1.15); }
    to   { transform: scale(1); }
}
.hero-overlay {
    background: linear-gradient(105deg,
        rgba(20, 43, 8, .82) 0%,
        rgba(20, 43, 8, .55) 45%,
        rgba(38, 58, 79, .30) 100%) !important;
}
.hero-content { max-width: 820px; }
.hero-content > * { opacity: 0; transform: translateY(35px); }
.carousel-item.active .hero-content > * {
    animation: heroUp 1s var(--ease) forwards;
}
.carousel-item.active .hero-content > *:nth-child(1) { animation-delay: .35s; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .55s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .75s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .95s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }
.hero-content h1 { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
#header-carousel .carousel-indicators { z-index: 3; margin-bottom: 2.5rem; }
#header-carousel .carousel-indicators [data-bs-target] {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    opacity: .8;
    transition: .4s;
}
#header-carousel .carousel-indicators .active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.15);
}

/* ---- Premium buttons ---- */
.btn {
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary, .btn-secondary {
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.btn-primary::after, .btn-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.18);
    transform: translateX(-120%) skewX(-20deg);
    transition: transform .6s var(--ease);
    z-index: -1;
}
.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0,0,0,.22);
}
.btn-primary:hover::after, .btn-secondary:hover::after {
    transform: translateX(120%) skewX(-20deg);
}
.btn-square.rounded-circle:hover { transform: translateY(-3px); }

/* ---- Banner cards ---- */
.banner .bg-primary, .banner .bg-secondary {
    position: relative;
    overflow: hidden;
    transition: .5s var(--ease);
}
.banner .bg-primary i, .banner .bg-secondary i { transition: .5s var(--ease); }
.banner > .container > .row > div:hover .bg-primary,
.banner > .container > .row > div:hover .bg-secondary { transform: translateY(-6px); }
.banner .bg-primary:hover i, .banner .bg-secondary:hover i { transform: scale(1.12); }

/* ---- Facts / counters ---- */
.facts .d-flex { transition: .5s var(--ease); }
.facts .col-lg-3:hover .rounded-circle { transform: rotate(8deg) scale(1.08); }
.facts .rounded-circle { transition: .5s var(--ease); }

/* ---- Service cards ---- */
.service-item {
    border-radius: 10px;
    border: 1px solid rgba(38,58,79,.06);
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* ---- Product cards (full-bleed premium) ---- */
.product-item {
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: .5s var(--ease);
}
.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.product-thumb { transition: transform .9s var(--ease); }
.product-item:hover .product-thumb { transform: scale(1.09); }
.product-item h5 { transition: color .4s; opacity: 1 !important; }
.product-item:hover h5 { color: var(--primary); }
.product-item .badge-cat {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: .5rem;
}

/* ---- Jute / packaging showcase gallery ---- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: 320px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    background: linear-gradient(to top, rgba(20,43,8,.9) 0%, rgba(20,43,8,.35) 45%, transparent 75%);
    z-index: 1;
}
.gallery-overlay h5, .gallery-overlay p {
    color: #fff;
    transform: translateY(14px);
    opacity: .85;
    transition: .5s var(--ease);
    margin: 0;
}
.gallery-overlay p { font-size: 14px; opacity: 0; }
.gallery-item:hover .gallery-overlay h5,
.gallery-item:hover .gallery-overlay p { transform: none; opacity: 1; }
.gallery-item .gallery-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--secondary);
    color: #fff;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
}
.gallery-item.gallery-tall { height: 660px; }
@media (max-width: 767.98px) { .gallery-item.gallery-tall { height: 320px; } }

/* ---- Feature band image ---- */
.feature .bg-white { border-radius: 10px; box-shadow: var(--shadow-md); }

/* ---- Section framing image (about) ---- */
.about .border-primary { border-radius: 6px; overflow: hidden; }

/* ---- Divider dots / general polish ---- */
.text-primary-hover:hover { color: var(--secondary) !important; }
.navbar { transition: box-shadow .4s, padding .4s; }
.sticky-top.navbar { box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* ---- Back to top premium ---- */
.back-to-top {
    right: 30px; bottom: 30px !important;
    border-radius: 50% !important;
    width: 48px; height: 48px;
    padding: 0 !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

/* ---- CTA band ---- */
.bg-cta { position: relative; }
.bg-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/jute-warehouse.jpg) center center / cover no-repeat;
    opacity: .12;
    mix-blend-mode: overlay;
    z-index: 0;
}
.bg-cta > .container { position: relative; z-index: 1; }
