* {
    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;
    overflow-x: hidden;
}

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

main {
    min-height: 80vh;
}

.logo {
    cursor: pointer;
}

.logo img {
    height: 40px;
}

#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: #dd291f;
    border-radius: 4px;
    border: none;
    padding: 8px 16px;
    border: solid 1px #dd291f;
    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: #dc281d;
    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: #c73822;
    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: 100%;
    max-height: 140px;
    aspect-ratio: 1/1;
    object-fit: contain;
    width: 100%;
    filter: brightness(1.1);
}

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

.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: rgb(220, 40, 29);
}

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

.btn {
    display: inline-flex;
    margin-top: 1rem;
    min-height: 36px;
    min-width: 120px;
    border-radius: 0.5rem;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
}

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

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

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

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

.btn.dark-red {
    background-color: #992C23;
}

.btn.dark-red:hover {
    background-color: #7e241d;
}

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

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

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

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










#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: 350px;
    width: 100%;
}

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

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

#app-links 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;
}