/* ================= IMANI GIFT LOGISTICS - MASTER STYLESHEET ================= */
/* Single, consolidated CSS file - no duplicates, no conflicts */

:root {
    --primary-color: #065e45;
    --secondary-color: #fff7d6;
    --accent-color: #a50e3c;
    --dark-color: #1e1e1e;
    --light-color: #ffffff;
    --text-color: #222222;
    --text-light: #777777;
    --section-padding: 80px 20px;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BODY & GLOBAL ================= */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 15px;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-light {
    background: #fff;
    color: var(--primary-color) !important;
}

/* ================= ACCESSIBILITY ================= */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px dashed var(--primary-color);
    outline-offset: 3px;
}

/* ================= HEADER & NAVIGATION ================= */
.header {
    background: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    width: 80px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ================= HERO (Shared) ================= */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s ease forwards;
}

/* Decorative circle */
.hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(6, 94, 69, 0.08);
    border-radius: 50%;
    z-index: 0;
}

/* Keep content above background circle */
.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

/* Fix image styling properly */
.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    display: block;
}

/* Responsive Fix */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero::after {
        display: none;
    }
}


/* ================= TRACKING FORM ================= */
.tracking-form {
    display: flex;
    gap: 16px;
    margin: 30px 0 35px;
    align-items: center;
}

.tracking-form input {
    flex: 1;
    padding: 18px 24px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    transition: border 0.3s ease;
}

.tracking-form input:focus {
    border-color: var(--primary-color);
}

.tracking-form button {
    padding: 18px 30px;
    border-radius: 30px;
}

/* ================= TRUSTED (Homepage) ================= */
.trusted {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trusted-images {
    display: flex;
}

.trusted-images img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: -10px;
    border: 2px solid #fff;
}

/* ================= SECTION TITLES ================= */
.section-title {
    text-align: center;
    font-size: 36px;
}

.section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: 10px auto 50px;
    color: var(--text-light);
}

.section-label {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

/* ================= SERVICES / CARDS (shared) ================= */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    animation: fadeUp 0.8s ease forwards;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

/* ================= QUOTE FORM (Get a Quote page) ================= */
.quote-section {
    background: var(--secondary-color);
}

.quote-form-card {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    animation: fadeUp 0.8s ease forwards;
    max-width: 1000px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
}

.form-full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #fff;
}

.form-group textarea {
    border-radius: 25px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
    margin-right: 5px;
}

.submit-area {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 15px;
}

.privacy-note i {
    color: var(--primary-color);
}

.secure-note {
    margin-top: 25px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= WHY CHOOSE US ================= */
.why-choose-us {
    background: #fff;
    border-radius: 30px;
    padding: 80px 20px;
}

.why-choose-us .container {
    max-width: 1200px;
    margin: auto;
}

.why-choose-us h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.why-choose-us ul {
    list-style: none;
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-choose-us li {
    margin-bottom: 14px;
    font-weight: 500;
    font-size: 18px;
}

.why-choose-us i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Legacy why-content (for homepage variant) */
.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.why-text ul {
    list-style: none;
    margin-top: 25px;
}

.why-text li {
    margin-bottom: 14px;
    font-weight: 500;
}

.why-text i {
    color: var(--primary-color);
    margin-right: 10px;
}

.why-image img {
    border-radius: 20px;
}

/* ================= INDUSTRIES ================= */
.industries {
    background: var(--secondary-color);
}

/* ================= TESTIMONIALS ================= */
.testimonials {
    background: #fff;
}

.testimonial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    animation: fadeUp 0.8s ease forwards;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 18px;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Legacy testimonial-card (single column variant) */
.testimonial-card:not(.testimonial-container .testimonial-card) {
    max-width: 600px;
    margin: auto;
}

.stars {
    color: gold;
    margin-bottom: 15px;
}

/* ================= CTA ================= */
.cta {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    font-size: 42px;
    color: #fff;
}

.cta p {
    color: #e5e5e5;
    margin: 15px 0 30px;
    font-size: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

/* ================= CONTACT PAGE ================= */
.contact-hero {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    border-radius: 0 0 40px 40px;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.contact-hero p {
    opacity: 0.9;
}

.contact-section {
    padding: var(--section-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
}

.contact-info h2 {
    margin-bottom: 10px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
}

.contact-form h2 {
    margin-bottom: 25px;
}

/* ================= FOOTER ================= */
.footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 70px 20px;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.3), transparent);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo img {
    width: 90px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    margin-bottom: 20px;
}

.social-icons a {
    color: #ccc;
    margin-right: 12px;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .auth-buttons {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 20px;
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
        transform: translateY(-10px);
    }

    .nav.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Stack grid layouts */
    .hero,
    .why-content,
    .contact-wrapper,
    .services-container,
    .footer-container,
    .testimonial-container,
    .why-choose-us ul,
    .form-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 25px;
    }

    /* ✅ FORCE ALL IMAGES TO APPEAR ABOVE TEXT */
    .hero > img,
    .why-content > img,
    .contact-wrapper > img,
    .hero img,
    .why-content img,
    .contact-wrapper img {
        order: -1;
        margin-bottom: 25px;
    }

    /* If images are wrapped inside divs */
    .hero-image,
    .why-image,
    .contact-image {
        order: -1;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .form-full {
        grid-column: span 1;
    }

    .tracking-form {
        flex-direction: column;
        gap: 15px;
    }

    .tracking-form input,
    .tracking-form button {
        width: 100%;
    }

    .submit-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-hero h1 {
        font-size: 36px;
    }
}
