﻿
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #004aad;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #003380;
    }

/* ===== Team Card CSS (Refined) ===== */
.card {
    padding: 24px;
    background: linear-gradient(135deg, #021B79, #0575E6);
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    border: 5px solid whitesmoke;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
        pointer-events: none;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 74, 173, 0.4);
    }

    .card img {
        width: 140px;
        height: 140px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid rgba(255,255,255,0.2);
        margin: 20px auto 18px;
        display: block;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    }

    .card h3 {
        font-family: 'Outfit', sans-serif;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .card p.role {
        font-size: 14px;
        color: #7dd3fc;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .card p.desc {
        font-size: 15px;
        color: #e0f2fe;
        line-height: 1.6;
        margin: 0;
    }

/* ===== Service Card CSS (Preserved & Centered) ===== */
.service-card {
    background-color: #0d1640; /* Deep Navy Blue */
    color: #ffffff;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto; /* Centering Magic */
    position: relative;
    padding: 70px 90px;
    /* The 'Pinched' Shape Logic */
    clip-path: polygon( -8% 0, /* Top Left */
    100% 0%, /* Top Right */
    100% 13%, /* Start of Right Indent */
    97% 18%, /* Angle In (Right) */
    97% 81%, /* Go Down Narrow (Right) */
    100% 85%, /* Angle Out (Right) */
    100% 100%, /* Bottom Right */
    0% 100%, /* Bottom Left */
    0% 88%, /* Start of Left Indent */
    3% 83%, /* Angle In (Left) */
    3% 35%, /* Go Up Narrow (Left) */
    3% 18% );
    border-radius: 30px;
}

.header-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    font-size: 16px;
}


@media (max-width: 900px) {
    .service-card {
        background-color: #0d1640; /* Deep Navy Blue */
        color: #ffffff;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto; /* Centering Magic */
        position: relative;
        padding: 70px 90px;
        /* The 'Pinched' Shape Logic */
        clip-path: polygon( -8% 0, /* Top Left */
        100% 0%, /* Top Right */
        100% 13%, /* Start of Right Indent */
        97% 18%, /* Angle In (Right) */
        97% 81%, /* Go Down Narrow (Right) */
        100% 85%, /* Angle Out (Right) */
        100% 100%, /* Bottom Right */
        0% 100%, /* Bottom Left */
        0% 88%, /* Start of Left Indent */
        3% 83%, /* Angle In (Left) */
        3% 35%, /* Go Up Narrow (Left) */
        3% 18% );
        border-radius: 30px;
    }
}
/* ===== Partner Carousel ===== */
.text {
    text-align: center;
    padding-top: 50px;
    font-size: 2rem;
    font-weight: 700;
    color: #004aad;
}

.carousel-wrap {
    border-radius: 18px;
    background: #fff;
    width: 90%;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    padding: 20px 0;
}

.associate-partner {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-left: 20px;
}

.property-card {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .4s ease, box-shadow .4s ease;
    background: linear-gradient(to bottom,#007bff 5%,#ffffff 0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    scroll-snap-align: center;
}

    .property-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 25px rgba(0,123,255,0.12);
    }

    .property-card img {
        max-width: 90%;
        max-height: 80%;
        object-fit: contain;
        filter: grayscale(20%);
        transition: .3s ease;
    }

    .property-card:hover img {
        filter: none;
    }

.associate-partner::-webkit-scrollbar {
    display: none;
}




/* =====================================
      TABLET VIEW (max-width: 1024px)
    ===================================== */
@media (max-width: 1024px) {

    /* Hero section */
    header {
        height: auto;
    }

    /* Team cards */
    .card {
        max-width: 280px;
        padding: 20px;
    }

        .card img {
            width: 120px;
            height: 120px;
        }

    /* Service card */
    .service-card {
        padding: 50px 40px;
        clip-path: none; /* Prevent shape breaking */
        border-radius: 24px;
    }

    .header-left h1 {
        font-size: 2.1rem;
    }

    /* Partner carousel */
    .carousel-wrap {
        width: 95%;
        margin: 30px auto;
    }

    .property-card {
        width: 180px;
        height: 110px;
    }
}


/* =====================================
      MOBILE VIEW (max-width: 768px)
    ===================================== */
@media (max-width: 768px) {

    /* Global spacing safety */
    body {
        overflow-x: hidden;
    }

    /* Hero section */
    header {
        text-align: center;
    }

        header h1 {
            font-size: 2.2rem;
        }

        header p {
            font-size: 0.95rem;
        }

    /* Stats section */
    .grid.grid-cols-2.md\:grid-cols-4 {
        gap: 16px;
        padding: 20px;
    }

    /* Founder / CEO sections */
    .flex.flex-col.lg\:flex-row {
        gap: 30px;
    }

    /* Team cards */
    .card {
        max-width: 46%;
        padding: 18px;
    }

        .card h3 {
            font-size: 20px;
        }

        .card p.desc {
            font-size: 14px;
        }

    /* Service card */
    .service-card {
        padding: 30px 20px;
        clip-path: none;
        border-radius: 20px;
    }

    .header-left h1 {
        font-size: 1.4rem;
    }

    /* Feature items */
    .feature-item {
        flex-direction: row;
        gap: 12px;
    }

    .feature-content h3 {
        font-size: 15px;
    }

    .feature-content p {
        font-size: 13px;
    }

    /* Map section */
    iframe {
        height: 300px !important;
    }

    /* Partner carousel */
    .associate-partner {
        padding-left: 12px;
        gap: 14px;
    }

    .property-card {
        width: 150px;
        height: 95px;
    }

    .text {
        font-size: 1.4rem;
        padding-top: 30px;
    }
}


/* =====================================
      SMALL MOBILE (max-width: 480px)
    ===================================== */
@media (max-width: 480px) {

    header h1 {
        font-size: 1.9rem;
    }

    /* Team cards */
    .card {
        max-width: 100%;
        padding: 18px;
    }

        .card img {
            width: 100px;
            height: 100px;
        }

    .property-card {
        width: 100px;
        height: 67px;
    }

    .feature-content p {
        font-size: 12px;
    }
}


/* =====================================
      VISIT OUR HQ – MOBILE COMPACT FIX
    ===================================== */
@media (max-width: 768px) {

    /* Outer card */
    .bg-white.p-4.rounded-3xl.shadow-xl {
        padding: 12px;
        border-radius: 18px;
    }

    /* Left info section */
    .bg-brand-dark {
        padding: 20px !important;
        border-radius: 16px 16px 0 0 !important;
        text-align: left;
    }

        .bg-brand-dark h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
        }

        .bg-brand-dark p {
            font-size: 0.85rem;
            margin-bottom: 16px;
        }

        /* Address list */
        .bg-brand-dark ul {
            gap: 14px;
        }

        .bg-brand-dark li {
            font-size: 0.85rem;
            line-height: 1.4;
        }

            .bg-brand-dark li div {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }

    /* Map section */
    iframe {
        height: 300px !important;
        border-radius: 0 0 16px 16px !important;
    }
}


/* =====================================
      EXTRA SMALL DEVICES
    ===================================== */
@media (max-width: 480px) {

    .bg-brand-dark {
        padding: 16px !important;
    }

        .bg-brand-dark h3 {
            font-size: 1.25rem;
        }

        .bg-brand-dark li {
            font-size: 0.8rem;
        }

    iframe {
        height: 220px !important;
    }
}
