:root {
    --lgj-red: #e51018;
    --lgj-red-dark: #a90f16;
    --lgj-ink: #101820;
    --lgj-muted: #66717d;
    --lgj-steel: #e8edf2;
    --lgj-soft: #f6f8fb;
    --lgj-gold: #d6a348;
    --lgj-green: #1d8a65;
    --shadow: 0 18px 40px rgba(16, 24, 32, 0.12);
}

* {
    letter-spacing: 0;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--lgj-ink);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

#site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #fff;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#site-preloader img {
    width: min(150px, 45vw);
}

#site-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.top-strip {
    background: var(--lgj-ink);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.45rem 0;
}

.top-strip i {
    color: var(--lgj-red);
    margin-right: 0.35rem;
}

.main-nav {
    box-shadow: 0 8px 24px rgba(16, 24, 32, 0.08);
}

.navbar-brand img {
    width: 160px;
    height: 54px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 700;
    color: var(--lgj-ink);
    padding-inline: 0.75rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--lgj-red);
}

.dropdown-menu {
    border: 0;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.btn {
    border-radius: 6px;
    font-weight: 800;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-sm {
    min-height: 34px;
}

.btn-red {
    background: var(--lgj-red);
    color: #fff;
    border-color: var(--lgj-red);
}

.btn-red:hover,
.btn-red:focus {
    background: var(--lgj-red-dark);
    border-color: var(--lgj-red-dark);
    color: #fff;
}

.hero-slider,
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    min-height: 680px;
}

.hero-slider .carousel-item {
    position: relative;
}

.hero-slider .carousel-item > img {
    width: 100%;
    height: 680px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 14, 18, 0.82), rgba(10, 14, 18, 0.45), rgba(10, 14, 18, 0.15));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 1180px;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    max-width: 900px;
    line-height: 0.98;
    font-weight: 900;
    margin: 0.6rem 0 1rem;
}

.hero-content p {
    max-width: 720px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.section-kicker {
    color: var(--lgj-red);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.78rem;
}

.section-pad {
    padding: 88px 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2,
.split-feature h2,
.contact-panel h2,
.product-detail-copy h1 {
    font-weight: 900;
    line-height: 1.08;
}

.section-heading p,
.split-feature p,
.contact-panel p {
    color: var(--lgj-muted);
}

.bg-soft {
    background: var(--lgj-soft);
}

.stats-band {
    background: var(--lgj-ink);
    color: #fff;
    padding: 24px 0;
}

.stats-band strong {
    display: block;
    font-size: 1.25rem;
    color: #fff;
}

.stats-band span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #dde4eb;
    border-radius: 8px;
    padding: 1.2rem;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 16, 24, 0.35);
    box-shadow: var(--shadow);
}

.category-card span {
    color: var(--lgj-red);
    font-weight: 900;
}

.category-card strong {
    font-size: 1.2rem;
}

.category-card small {
    color: var(--lgj-muted);
}

.product-card {
    background: #fff;
    border: 1px solid #e2e8ef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--lgj-steel);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image span {
    position: absolute;
    left: 1rem;
    top: 1rem;
    border-radius: 999px;
    background: rgba(16, 24, 32, 0.86);
    color: #fff;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.product-body {
    padding: 1.15rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--lgj-red);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-body h3 {
    font-size: 1.18rem;
    font-weight: 900;
    margin: 0.55rem 0;
}

.product-body p {
    color: var(--lgj-muted);
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #edf1f4;
    padding-top: 1rem;
}

.feature-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.feature-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 700;
}

.feature-list i {
    color: var(--lgj-green);
    font-size: 1.25rem;
}

.feature-video,
.rounded-media {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.feature-video {
    aspect-ratio: 16 / 10;
    background: var(--lgj-ink);
}

.wide-video {
    aspect-ratio: 16 / 8;
}

.shipping-band {
    background: var(--lgj-red);
    color: #fff;
    padding: 70px 0;
}

.shipping-band p,
.shipping-band .section-kicker {
    color: rgba(255, 255, 255, 0.9);
}

.contact-panel,
.inquiry-panel,
.info-tile,
.notice-box {
    border: 1px solid #e1e7ee;
    border-radius: 8px;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
}

.form-control,
.form-select {
    border-radius: 6px;
    min-height: 48px;
    border-color: #d6dee7;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--lgj-red);
    box-shadow: 0 0 0 0.2rem rgba(229, 16, 24, 0.12);
}

.page-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(rgba(16, 24, 32, 0.7), rgba(16, 24, 32, 0.55)), url("../img/products/Toyota-Hiace-Bus.jpg") center/cover;
}

.compact-hero {
    min-height: 340px;
}

.about-hero {
    background-image: linear-gradient(rgba(16, 24, 32, 0.7), rgba(16, 24, 32, 0.58)), url("../img/products/Hiace-bus3.jpeg");
}

.shipping-hero {
    background-image: linear-gradient(rgba(16, 24, 32, 0.7), rgba(16, 24, 32, 0.58)), url("../img/products/mini-bus-loading-into-container.jpeg");
}

.payment-hero {
    background-image: linear-gradient(rgba(16, 24, 32, 0.72), rgba(16, 24, 32, 0.58)), url("../img/products/Generator-other-goods-going-to-Africa.jpeg");
}

.contact-hero {
    background-image: linear-gradient(rgba(16, 24, 32, 0.72), rgba(16, 24, 32, 0.58)), url("../img/products/solar3.jpg");
}

.page-hero h1 {
    max-width: 850px;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.02;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.75rem;
    padding: 1rem;
    background: var(--lgj-soft);
    border-radius: 8px;
}

.empty-state {
    padding: 2rem;
    border-radius: 8px;
    background: var(--lgj-soft);
    color: var(--lgj-muted);
    text-align: center;
}

#product-grid {
    transition: opacity 0.2s ease;
}

#product-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.product-gallery > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.gallery-thumbs button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: none;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.active {
    border-color: var(--lgj-red);
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.detail-specs div {
    background: var(--lgj-soft);
    border-radius: 8px;
    padding: 1rem;
}

.detail-specs span {
    display: block;
    color: var(--lgj-muted);
    font-size: 0.82rem;
}

.detail-specs strong {
    display: block;
    margin-top: 0.35rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.process-grid div {
    padding: 1.5rem;
    border: 1px solid #e1e7ee;
    border-radius: 8px;
    background: #fff;
}

.process-grid span,
.info-tile i {
    color: var(--lgj-red);
    font-weight: 900;
    font-size: 1.7rem;
}

.process-grid h2,
.info-tile h2 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-top: 0.8rem;
}

.info-tile {
    height: 100%;
}

.notice-box {
    background: #fff8ec;
    border-color: #f2d8a5;
}

.faq-accordion .accordion-item {
    border: 1px solid #e1e7ee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.faq-accordion .accordion-button {
    font-weight: 900;
}

.site-footer {
    background: var(--lgj-ink);
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 28px;
}

.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.55rem;
}

.site-footer a:hover {
    color: #fff;
}

.footer-logo {
    width: 180px;
    max-height: 70px;
    object-fit: contain;
}

.social-line {
    display: flex;
    gap: 0.6rem;
}

.social-line a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.5rem;
    padding-top: 1.3rem;
    font-size: 0.9rem;
}

.floating-whatsapp,
.back-to-top {
    position: fixed;
    right: 18px;
    z-index: 1200;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: var(--shadow);
}

.floating-whatsapp {
    bottom: 86px;
    background: #25d366;
    font-size: 1.45rem;
}

.back-to-top {
    bottom: 24px;
    background: var(--lgj-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.form-response {
    font-weight: 800;
}

.form-response.success {
    color: var(--lgj-green);
}

.form-response.error {
    color: var(--lgj-red);
}

@media (max-width: 1199px) {
    .category-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-slider,
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        min-height: 610px;
    }

    .hero-slider .carousel-item > img {
        height: 610px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .wide-video {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 767px) {
    .top-strip {
        font-size: 0.78rem;
    }

    .navbar-brand img {
        width: 128px;
    }

    .hero-slider,
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        min-height: 640px;
    }

    .hero-slider .carousel-item > img {
        height: 640px;
    }

    .hero-overlay {
        background: rgba(10, 14, 18, 0.68);
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-pad {
        padding: 58px 0;
    }

    .category-grid,
    .process-grid,
    .detail-specs {
        grid-template-columns: 1fr;
    }

    .product-footer,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-panel,
    .inquiry-panel,
    .info-tile,
    .notice-box {
        padding: 1.25rem;
    }
}
