/*
Theme Name: Ukuvuka Group Production
Author: Ukuvuka Web Development
Description: Production-ready WordPress theme for Ukuvuka Group freight transportation, heavy-haul logistics, mining, construction, agriculture, retail distribution and supply support.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ukuvuka-logistics
Tags: transportation, logistics, custom-logo, custom-menu, featured-images, responsive-layout, accessibility-ready
*/
/* =========================================================
   UKUVUKA FULL-WIDTH HERO
   ========================================================= */

.ukuvuka-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(680px, 86vh, 880px);
    overflow: hidden;
    background-color: #001d39;
    color: #ffffff;
}

/* Full-cover background image */
.ukuvuka-hero__background {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /*
     * Moves the truck slightly towards the right side,
     * leaving clearer space for the text.
     */
    object-position: 58% center;
}

/* Navy gradient keeps text readable without hiding the truck */
.ukuvuka-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(0, 18, 36, 0.97) 0%,
            rgba(0, 29, 57, 0.91) 30%,
            rgba(0, 29, 57, 0.70) 50%,
            rgba(0, 29, 57, 0.26) 72%,
            rgba(0, 29, 57, 0.10) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 18, 36, 0.70) 0%,
            transparent 38%
        );
}

/* Reusable site container */
.ukuvuka-container {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.ukuvuka-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-block: 150px 120px;
}

.ukuvuka-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.ukuvuka-hero__badges span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 29, 57, 0.28);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ukuvuka-hero__eyebrow {
    margin: 0 0 18px;
    color: #d6a35d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ukuvuka-hero h1 {
    max-width: 680px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.ukuvuka-hero__description {
    max-width: 660px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.65;
}

.ukuvuka-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.ukuvuka-hero__actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.ukuvuka-hero__actions .button:hover {
    transform: translateY(-2px);
}

.ukuvuka-hero__actions .button-primary {
    background: #b87935;
    color: #ffffff;
}

.ukuvuka-hero__actions .button-primary:hover {
    background: #ca8a43;
}

.ukuvuka-hero__actions .button-secondary {
    gap: 8px;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 29, 57, 0.22);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.ukuvuka-hero__actions .button-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
}

/*
 * Service promise is now part of the text content.
 * It no longer blocks the truck or machinery.
 */
.ukuvuka-hero__promise {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.ukuvuka-hero__promise-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ukuvuka-hero__promise strong {
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ukuvuka-hero__promise i {
    margin-inline: 5px;
    color: #b87935;
    font-style: normal;
}

.ukuvuka-hero__scroll {
    position: absolute;
    right: 40px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ukuvuka-hero__scroll span {
    display: block;
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.44);
}
@media (max-width: 900px) {
    .ukuvuka-hero {
        min-height: 760px;
        align-items: flex-end;
    }

    .ukuvuka-hero__background {
        object-position: 66% center;
    }

    .ukuvuka-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 18, 36, 0.94) 0%,
                rgba(0, 29, 57, 0.76) 58%,
                rgba(0, 29, 57, 0.34) 100%
            ),
            linear-gradient(
                0deg,
                rgba(0, 18, 36, 0.96) 0%,
                rgba(0, 18, 36, 0.45) 65%,
                rgba(0, 18, 36, 0.20) 100%
            );
    }

    .ukuvuka-hero__content {
        padding-block: 150px 80px;
    }

    .ukuvuka-hero__scroll {
        display: none;
    }
}

@media (max-width: 600px) {
    .ukuvuka-container {
        width: min(100% - 32px, 1240px);
    }

    .ukuvuka-hero {
        min-height: 720px;
    }

    .ukuvuka-hero__background {
        object-position: 68% center;
    }

    .ukuvuka-hero__content {
        padding-block: 130px 60px;
    }

    .ukuvuka-hero h1 {
        font-size: clamp(48px, 15vw, 68px);
        line-height: 1;
    }

    .ukuvuka-hero__description {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.55;
    }

    .ukuvuka-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 28px;
    }

    .ukuvuka-hero__actions .button {
        width: 100%;
    }

    .ukuvuka-hero__promise {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 30px;
        padding-top: 20px;
    }
}
/* Hero Background with Moving Truck */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero__background {
    position: absolute;
    inset: 0;
    background-image: url('<?php echo esc_url( $image_base . "hero-heavy-haul.png" ); ?>'); /* Your truck image */
    background-size: cover;
    background-position: center 30%;
    z-index: -2;
    transition: background-position 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero__truck-layer {
    position: absolute;
    inset: 0;
    background-image: url('<?php echo esc_url( $image_base . "hero-heavy-haul.png" ); ?>'); /* Same or a focused truck cutout */
    background-size: cover;
    background-position: center 40%;
    z-index: -1;
    opacity: 0.85;
    animation: truckDriveIn 8s ease-out forwards;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes truckDriveIn {
    from {
        transform: translateX(-15%) scale(1.08);
        opacity: 0.6;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 0.85;
    }
}

/* Orange Hue Overlay */
.hero__orange-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 140, 0, 0.45) 0%,
        rgba(200, 80, 0, 0.35) 50%,
        rgba(255, 100, 0, 0.25) 100%
    );
    mix-blend-mode: multiply;
    z-index: -1;
    pointer-events: none;
}

/* Scroll-driven movement */
@media (prefers-reduced-motion: no-preference) {
    .hero__truck-layer {
        will-change: transform;
    }
    
    .hero.scrolled .hero__truck-layer {
        transform: translateX(8%) scale(1.05);
    }
}

/* Ensure content stays above */
.hero__inner {
    position: relative;
    z-index: 2;
}
/* =========================================================
   FULL-WIDTH HERO BACKGROUND
   Matches: <section class="hero hero--background">
   ========================================================= */

.hero.hero--background {
    position: relative !important;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(680px, 86vh, 880px);
    overflow: hidden;
    color: #ffffff;

    background-color: #001d39;

    /*
     * First layer: readability gradient
     * Second layer: image supplied by --hero-background
     */
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 18, 36, 0.97) 0%,
            rgba(0, 29, 57, 0.91) 30%,
            rgba(0, 29, 57, 0.68) 52%,
            rgba(0, 29, 57, 0.25) 75%,
            rgba(0, 29, 57, 0.08) 100%
        ),
        var(--hero-background) !important;

    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: 58% center !important;
}

/* Override the original two-column hero grid */
.hero.hero--background .hero__inner {
    position: relative;
    z-index: 3;
    display: block !important;
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
    padding-top: 150px;
    padding-bottom: 120px;
}

/* Keep the hero wording on the left */
.hero.hero--background .hero__copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 720px;
}

/* Safety rule in case any old visual markup remains cached */
.hero.hero--background .hero-visual {
    display: none !important;
}

/* Keep decorative effects underneath the wording */
.hero.hero--background .hero__glow,
.hero.hero--background .hero__grid {
    z-index: 1;
    pointer-events: none;
}

/* Prevent the effects from hiding too much of the image */
.hero.hero--background .hero__glow {
    opacity: 0.35;
}

.hero.hero--background .hero__grid {
    opacity: 0.18;
}

/* Keep heading, buttons and proof items visible */
.hero.hero--background .hero__copy,
.hero.hero--background .hero__actions,
.hero.hero--background .hero__proof {
    position: relative;
    z-index: 3;
}

/* Keep the moving service ticker above the background */
.hero.hero--background .hero__ticker {
    position: relative;
    z-index: 4;
    width: 100%;
}

/* Tablet */
@media (max-width: 900px) {
    .hero.hero--background {
        min-height: 760px;
        background-position: 66% center !important;

        background-image:
            linear-gradient(
                90deg,
                rgba(0, 18, 36, 0.96) 0%,
                rgba(0, 29, 57, 0.82) 58%,
                rgba(0, 29, 57, 0.35) 100%
            ),
            var(--hero-background) !important;
    }

    .hero.hero--background .hero__inner {
        width: min(100% - 40px, 1240px);
        padding-top: 140px;
        padding-bottom: 90px;
    }

    .hero.hero--background .hero__copy {
        max-width: 650px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero.hero--background {
        min-height: 720px;
        justify-content: flex-end;
        background-position: 68% center !important;

        background-image:
            linear-gradient(
                0deg,
                rgba(0, 18, 36, 0.98) 0%,
                rgba(0, 18, 36, 0.90) 42%,
                rgba(0, 29, 57, 0.45) 75%,
                rgba(0, 29, 57, 0.20) 100%
            ),
            var(--hero-background) !important;
    }

    .hero.hero--background .hero__inner {
        width: min(100% - 32px, 1240px);
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .hero.hero--background .hero__copy {
        max-width: 100%;
    }
}
/* Mobile-specific hero image */
@media (max-width: 600px) {
    .hero.hero--background {
        min-height: 720px;
        justify-content: flex-end;

        background-image:
            linear-gradient(
                0deg,
                rgba(0, 18, 36, 0.98) 0%,
                rgba(0, 18, 36, 0.88) 42%,
                rgba(0, 29, 57, 0.42) 72%,
                rgba(0, 29, 57, 0.12) 100%
            ),
            url("./assets/images/hero-heavy-haul-mobile.webp") !important;

        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .hero.hero--background .hero__inner {
        width: min(100% - 32px, 1240px);
        padding-top: 120px;
        padding-bottom: 65px;
    }

    .hero.hero--background .hero__copy {
        max-width: 100%;
    }

    .hero.hero--background .hero__glow {
        opacity: 0.12;
    }

    .hero.hero--background .hero__grid {
        opacity: 0.08;
    }
}