
/** Home Page */
/* CBM Logistics – Universal Polish (override-only, safe copy-paste) */
/* CBM Logistics – Universal Polish (override-only, safe copy-paste) */
:root {
    /* Brand (from project brief) */
    --brand-red: #970103;   /* Main Color in logo */
    --brand-grey:  #333333;   /* Secondary Color in logo */

    /* Neutrals */
    --grey-900: #1a1a1a;
    --grey-800: #2a2a2a;
    --grey-700: #4a4a4a;
    --grey-600: #5f5f5f;
    --grey-500: #8a8a8a;
    --grey-300: #e6e6e6;
    --grey-200: #efefef;
    --grey-100: #f7f7f7;
    --white:    #ffffff;
    --color-white: #ffffff;
    --trans-500: #3333339f;

    /* Feedback */
    --success: #2e7d32;
    --warning: #b26a00;
    --error:   #c62828;
    --info:    #1565c0;

    /* Layout */
    --gutter: 0px;             /* page padding */

    /* Spacing (4/8px scale) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Radii & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,.12);
    --shadow-hd: 0 8px 24px rgba(0, 0, 0, 0.486);

    --ts-soft:   0 1px 2px rgba(0, 0, 0, .30);
    --ts-strong: 0 2px 6px rgba(0, 0, 0, .40);
    --ts-strong-white: 0 2px 6px rgba(255, 255, 255, 0.603);


    /* Typography */
    --text-base: 16px;
    --lh: 1.6;


}

/*Hero Section*/
/* Main hero styles on universal */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    background: url('/assets/img/cbm-truck-loaded-bulk-cargo-ready-for-transport-to-sadc.webp') no-repeat center center/cover;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: #000000;
}

.hero-content{
    margin-top: 50px;
}

/* intro */
.home-intro{
    margin-top: 100px;
    width: 80%;
    margin-left: 10%;
}
/**Stats Section*/
.stats{
    width: 100%;
    height: auto;
    margin: 0;
}

.stats .countries{
    background-color: #970103;
    color:#f4f4f4;
    font-size: 30px;
    display: inline-flex; 
    
}
/* .countries h3{
    margin: 0px;
    margin-left: 135px;
    
}

/* Container for Counter Timers */
.load-numbers{
    width: 80%;
    margin-left: 10%;
    margin-top: 50px;
    height: auto;
    display: flex;
    flex-direction: column;
}
.load-numbers::before {
    margin: 0;
    content: '';
    position: absolute;
    
    height: 750px;
    z-index: 1;
}

/* "Services Provided" */
.load-numbers h2{
    margin-top: 50px;
}

/* ============================
   Icon sizes
   ============================ */
.icon-large {
    font-size: 3rem;
    line-height: 1;
    display: inline-block;
    color: #8b0000;
}
.icon-small, .icon-small-2 {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    color: #8b0000;
}
.icon-small-2 {
    transform: scaleX(-1);   /* flip horizontally */
}
/* Container for Commodity Name and number of loads */
.counters{
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-top: 50px;
    width: 100%;
    height: auto;
    text-align: left;
    z-index: 2;
}
.counter-item{
    width: 100%;
    height: auto;
    text-align: center;
    z-index: 2;  
    padding: 10px;
    border-style: solid;
    border-color: var(--grey-300);
    border-width: 1px;
    border-radius: 10px;
}
.counter-item h2 {
    text-align: center;
    font-size: 85px;
    color: #4d4d4d;
    margin: 0;
    z-index: 2;
    text-shadow: 5px 2px 5px rgba(0, 0, 0, 0.5);
    
}
.counter-item p {
    margin: 0;
    text-align: center;
    font-size: 30px;
    color: #970103;
    font-weight: 600;
    z-index: 2;
}


/** Transport*/
.transport{
    margin-top: 150px;
    margin-bottom: 100px;
    width: 80%;
    margin-left: 10%;
    height: auto;
    text-align: left;
    display: flex;
    flex-direction: row;
    
}
.transport .wrapper{
    display: flex;
}
.transport .wrapper .container{
    text-align: center;
    display: flex;
    width: 90%;
    padding: 5%;

}

.transport .container div{
    width: 100%;
    margin-left: 6.3%;
}
.transport .container div h2{
    text-align: left;
    width: 350px;
    color: #4d4d4d;
    margin: 0;
}
.transport .container div p{
    text-align: left;
    width: 100%;
    margin-top: 0px;
    margin-left: 0px;
}
/* map */
.transport .wrapper-map{
    height: auto;
    width: 100%;
}

/* Trust signals */
.card{
    width: 100%;
    margin: 0;
    padding-top: 50px;
    padding-bottom: 50px;
    
}

.slogan {
    width: 100%;
    font-style: italic;
    margin-top: 100px;
}
.slogan h2{
    font-size: 2rem;
    text-align: center;
}


/**Service Section*/
/** Service Section */
.services {
    width: 80%;
    margin-left: 10%;
    height: auto;
    margin-top: 100px;
    margin-bottom: 100px;
    text-align: left;
}
.line{
    width: 100%;
    height: 3px;
    background-color: #8A8A8A;
}
.services-label{
    font-size: 50px;
}

.services .container {
    width: 100%;
    display: flex;
    justify-content: space-between;

    margin-top: 150px;
}
.details{
    width: 100%;
    margin-top: 100px;

}
.details p{
    margin: 0;
    text-align: left;
    width: 100%;
}

/* Service Item */
.service-item {
    width: 30%;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--grey-300);
    text-align: center;
    overflow: hidden; /* Prevents content overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.service-item:hover {
    transform: scale(1.05); /* Enlarges the entire service item */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* More prominent shadow */
}

.service-item a img {
    width: 100%;
    height: auto;
}

.service-item a h2 {
    width: 100%;
    text-align: center;
}

.service-item a {
    text-align: center;
    text-decoration: none;
    display: block;
    color: inherit;
}
.services .cta-buttons{
    width: 100%;
    margin-top: 50px;
}
.services .cta-button{
    text-align: center;
    width: 100%;
    border-radius: 15px;
}

.service-item a {
    position: relative;
    display: block;
}

/* Hint text inside card */
.card-hint {
    z-index: 999;
    position: absolute;
    right: 0;
    bottom: 5;
    
    width: 100%;
    font-size: 14px;
    color: #970103; /* brand red */
    opacity: 0.85;

    

    /* gentle “come alive” animation */
    animation: nudge-arrow 1.8s ease-in-out infinite;
}

/* Only show hint on desktop (optional) */
@media (max-width: 600px) {
    .card-hint {
        display: none;
    }
}

/* Little left-right nudge */
@keyframes nudge-arrow {
    0%   { transform: translateX(0);     opacity: 0.7; }
    30%  { transform: translateX(4px);   opacity: 1;   }
    60%  { transform: translateX(0);     opacity: 0.9; }
    100% { transform: translateX(0);     opacity: 0.7; }
}


/*Top Button*/
/* #backToTop {
    position: fixed;
    bottom: 20px;
    right: 25px;
    display: none;
    background-color: #3333338c;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 2;
}

#backToTop:hover {
    opacity: 1;
    transform: scale(1.05);
} */



/* =========================================================
   HOME — Mobile + Tablet ONLY
   Breakpoint: 768px (CONSISTENT WITH ROUTES)
   Desktop CSS remains untouched
   ========================================================= */
   /* Small & Older Mobile Devices */
@media (max-width: 380px){
    .transport .container h2{
        font-size: 1.5rem;
    }
    .transport .container .icon-large{
        padding-top: 10px;
        font-size: 2rem;
    }

}

@media (max-width: 768px) {

    /* =========================
       HERO (your behaviour)
       ========================= */
    .hero {
        background: url('/assets/img/CBM-hero-commodities-red-500.png') no-repeat top center;
        background-size: contain;
        min-height: 520px;
        margin-top: -20px;
        padding-top: 0;
    }

    .hero-content {
        width: 92%;
        margin-left: 4%;
        margin-top: 210px;
    }

    .hero-content h1,
    .hero-content p,
    .hero-content .hero-kicker {
        color: var(--brand-grey);
    }

    .hero-content .cta-buttons {
        margin-top: 15px;
        margin-bottom: 100px;
    }

    /* =========================
       INTRO
       ========================= */
    .home-intro {
        width: 92%;
        margin-left: 4%;
        margin-top: -50px;
    }

    /* =========================
       STATS / COUNTERS
       ========================= */
    .stats {
        margin-top: -50px;
    }

    .load-numbers {
        width: 92%;
        margin-left: 4%;
    }

    .counters {
        flex-direction: column;
        gap: 16px;
        margin-top: 0;
    }

    .counter-item h2 {
        font-size: 50px;
    }

    .counter-item p {
        font-size: 22px;
    }

    /* =========================
       TRANSPORT + MAP
       ========================= */
    .transport {
        width: 92%;
        margin-left: 4%;
        margin-top: 0;
        margin-bottom: 0;
        flex-direction: column;
        gap: 40px;
    }

    .transport .wrapper {
        flex-direction: column;
    }

    .transport .card {
        width: 100%;
        margin: 0;
    }

    .transport .wrapper-map {
        width: 100%;
        margin-left: 0;
        margin-top: 80px;
    }

    .slogan h2 {
        font-size: 1.5rem;
    }

    /* =========================
       SERVICES
       ========================= */
    .services {
        width: 92%;
        margin-left: 4%;
        margin-top: 0;
    }

    .services .container {
        flex-direction: column;
        gap: 40px;
        margin-top: 0;
    }

    .service-item {
        width: 100%;
    }

    .details {
        margin-top: 0;
    }

    .services .cta-buttons {
        display: flex;
        flex-direction: column;
        margin-top: 15px;
        margin-bottom: 100px;
        text-align: center;
    }
}

   /* Ensure horizontal spacing on Tablet without influencing mobile devices  */
@media (min-width: 768px) and (max-width: 1024px) {
    /* .hero {
        background: url('/assets/img/CBM-hero-commodities-red-2.png') no-repeat top center;
        background-size: contain;
        min-height: 520px;
        margin-top: -20px;
        padding-top: 0;
    } */
    .hero-content {
        margin-top: 360px;
    }
}


