* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #606672;
}

header {
    padding: 1rem;
}

button {
    cursor: pointer;
    user-select: none;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

main {
    min-height: 80vh;
}

.logo {
    cursor: pointer;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: none;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    background: linear-gradient(to bottom, transparent 95%, #007bff 96%, #007bff 100%);
    background-position: -400px 0;
    background-repeat: no-repeat;
    transition: background-position 0.2s;
    user-select: none;
}

.nav-links a:hover {
    background-position: 0 0;
}

.menu-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    display: block;
    cursor: pointer;
    color: #007bff;
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.off-canvas {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80dvw;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    padding: 1rem;
    z-index: 1;
}

.off-canvas.active {
    left: 0;
}

.off-canvas a {
    color: inherit;
    text-decoration: none;
    margin-bottom: 2rem;
    display: block;
}

#africourier-hero {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#courier {
    display: block;
    max-width: 360px;
    border-radius: 8px;
}

section {
    padding: 2rem;
}

#track-shipment {
    display: flex;
    justify-content: center;
    align-items: left;
    flex-direction: column;
}

#track-shipment h1 {
    padding-bottom: 12px;
}

#track-shipment-form {
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

#track-shipment input {
    padding-left: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 400px;
    max-width: 400px;
    background-image: url(box-icon.png);
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: 4px center;
}

#track-shipment button {
    color: white;
    background-color: #007bff;
    border-radius: 4px;
    border: none;
    padding: 8px 16px;
    border: solid 1px #007bff;
    cursor: pointer;
}

#track-shipment button:hover {
    filter: brightness(1.2);
}

#track-shipment p {
    color: rgb(95, 95, 95);
    font-size: 0.8rem;
}

#track-shipment h1 {
    color: #007bff;
    font-weight: bold;
}

#africourier-services {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
}

#send-shipment:hover {
    filter: brightness(1.2);
}

#send-shipment h2 {
    display: block;
    margin-top: -12px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px;
    margin: 0px;
}

#send-shipment p {
    margin-bottom: 24px;
}

#send-shipment {
    font-size: 90%;
    width: 300px;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transform: scale(0.8);
}

#send-shipment img {
    max-width: 80px;
    width: 100%;
}

#rate-calculator {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #606672;
    cursor: pointer;
    user-select: none;
    transform: scale(0.8);
}

#rate-calculator img {
    padding: 12px;
    border-radius: 8px;
    max-width: 80px;
    width: 100%;
}

#africourier-ecommerce {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    color: #606672;
    cursor: pointer;
    user-select: none;
    transform: scale(0.8);
}

#africourier-ecommerce img {
    padding: 12px;
    border-radius: 8px;
    max-width: 80px;
    width: 100%;
}

#get-quote {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #606672;
    cursor: pointer;
    user-select: none;
    transform: scale(0.8);
}

#get-quote img {
    padding: 12px;
    border-radius: 8px;
    max-width: 80px;
    width: 100%;
}

.boxes {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #606672;
    gap: 12px;
    transform: scale(0.8);
    text-align: center;
    flex: 1;
}

.box img {
    max-width: 140px;
    max-height: 140px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
}

#delivery-for-africa {
    text-align: center;
    background-color: white;
    border-radius: 1rem;
    max-width: 93%;
    margin: auto;
}

@media (min-width: 1100px) {

    .logo {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 1;
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        margin: 0 auto;
        position: relative;
        flex: 1;
        justify-content: center;
    }

    .nav-links a {
        color: inherit;
    }

    .nav-links .login {
        position: absolute;
        right: 0;
    }

    .off-canvas {
        display: none;
    }
}






.tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 6px solid transparent;
    transition: transform 0.2s ease;
    min-height: 100%;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: black;
}

.tile:hover {
    transform: translateY(-4px);
}

.tile h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.tile p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    flex-grow: 1;
    /* Allow paragraph to take vertical space */
}

.tile .btn {
    font-size: 0.8em;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    /* Optional: keep button left-aligned */
}

/* AfriCourier Brand Colors */
.border-dark-red {
    border-top-color: #0056b3;
}

.border-brick-red {
    border-top-color: #3393ff;
}

.border-rusty-orange {
    border-top-color: #66aaff;
}

.border-light-orange {
    border-top-color: #99cfff;
}

.btn.dark-red {
    background-color: #0056b3;
}

.btn.dark-red:hover {
    background-color: #004a99;
}

.btn.rusty-orange {
    background-color: #66aaff;
}

.btn.rusty-orange:hover {
    background-color: #3393ff;
}

.btn.light-orange {
    background-color: #99cfff;
}

.btn.light-orange:hover {
    background-color: #66aaff;
}





footer {
    background-color: #0056b3;
    /* Dark Red background */
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.8rem;

}

.footer-links a:hover {
    color: #99cfff;
    /* Light orange hover */
}

.footer-social a img {
    padding: 8px;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: invert(100%);
}

.footer-social a:hover img {
    transform: scale(1.1);
}

footer p {
    margin-top: 1rem;
    font-size: 0.8rem;
}





#africourier-app {
    text-align: center;
}

#africourier-app h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

#africourier-app p {
    font-size: 0.8rem;
    margin: 1rem 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#app-image {
    max-width: 250px;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#app-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#app-links a img {
    height: 48px;
    transition: transform 0.2s ease;
}

#app-links a img:hover {
    transform: scale(1.05);
    cursor: pointer;
}



@media (max-width: 767px) {

    #delivery-for-africa h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-links {
        display: none;
    }

    #africourier-hero {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    #africourier-hero h1 {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    #courier {
        max-width: 90%;
        margin-top: 1rem;
    }

    #track-shipment input {
        min-width: 100%;
        max-width: 100%;
        font-size: 1rem;
    }

    #track-shipment button {
        margin-top: 12px;
        font-size: 1rem;
        padding: 12px;
    }

    #africourier-services {
        flex-direction: column;
        gap: 1rem;
    }

    .boxes {
        flex-direction: column;
        gap: 1.5rem;
    }

    .box img {
        max-width: 100px;
        max-height: 100px;
    }

    #send-shipment,
    #rate-calculator,
    #africourier-ecommerce,
    #get-quote,
    .box {
        transform: scale(1);
    }

    #send-shipment {
        width: 100%;
    }

    #africourier-ecommerce>p {
        text-align: center;
    }

    .tile-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .tile {
        transform: scale(1);
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    #app-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

#contact-us h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

@keyframes zoomFadeUp {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.zoom-fade-up {
    animation: zoomFadeUp 0.3s cubic-bezier(0.4, 0.2, 0.2, 1) both;
}