/* ==========================================================================
   PART 1: DESKTOP / BASE STYLES
   (Applies to screens 992px and wider by default)
   ========================================================================== */

/* --- Hero Section --- */
.home-hero .main-heading {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #F1E8D4;
}

.home-hero .highlight {
    color: var(--russet);
    font-style: italic;
}

.home-hero .hero-desc {
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    font-size: 18px;
}

/* --- Stats Strip Section --- */
.stats-strip {
    padding: 60px 0;
    background-color: var(--white);
}

.stat-item {
    background-color: var(--black1, #222);
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    height: 100%; /* Ensures equal height in grid */
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-color: var(--russet);
}

.stats-strip h3 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 5px !important;
    color: var(--russet);
    font-family: "Prata", serif;
}

.stats-strip .stat-label {
    font-family: "Jost", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.9;
}

/* --- Bento Grid / Stat Cards (Who We Are) --- */
.stat-card {
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-number {
    font-family: 'Prata', serif;
    font-size: 32px;
    color: var(--green);
}

.stat-label {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Icon Background Colors */
.bg-green-light { background-color: rgba(43, 60, 42, 0.1); }
.bg-russet-light { background-color: rgba(199, 126, 79, 0.1); }

/* Bento Hover Effects */
.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(43, 60, 42, 0.1) !important;
    border-color: var(--russet);
}

/* Staggered Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* --- Service Cards Section --- */
.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.hover-card {
    border: 1px solid var(--cream) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-card:hover {
    background-color: var(--white) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(23, 54, 41, 0.1) !important;
}

.hover-card:hover .service-icon {
    background-color: var(--green);
}

.hover-card:hover .service-icon svg path {
    stroke: var(--white);
}

.btn-link {
    transition: color 0.3s ease;
}

.hover-card:hover .btn-link {
    color: var(--russet) !important;
}

/* --- Global Reach (Map Section) --- */
.country-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--white);
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.country-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: var(--russet);
}

.flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.map-image {
    opacity: 0.3;
    filter: invert(1);
    width: 100%;
}

.hotspot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--russet);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--russet);
}

.hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--russet);
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse-ring 2s infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% { width: 100%; height: 100%; opacity: 0.7; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

/* Hotspot Positions */
.hotspot-usa { top: 35%; left: 22%; }
.hotspot-uk { top: 28%; left: 48%; }
.hotspot-GCC { top: 42%; left: 58%; }
.hotspot-aus { top: 70%; left: 85%; }
.hotspot-eur { top: 50%; left: 80%; }

/* --- Testimonials (Equal Height Logic) --- */
.testimonial-carousel .owl-stage {
    display: flex;
    flex-wrap: nowrap;
}

.testimonial-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
    height: auto !important;
}

.testimonial-card {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    border-bottom: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    flex-grow: 1; /* Pushes profile to bottom if needed */
}

.testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--russet);
    padding: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.profile-info h5 {
    font-size: 18px;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 2px;
}

.profile-info span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 500;
}

.testimonial-carousel .owl-dots {
    margin-top: 50px !important;
    text-align: center;
}

.testimonial-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px 8px;
    background: #173629 !important;
    display: block;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.testimonial-carousel .owl-dot.active span {
    background: var(--russet) !important;
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(200, 126, 93, 0.4);
}



/* ==========================================================================
   PART 2: RESPONSIVE / MOBILE STYLES
   (Overrides for Tablets and Mobile Phones)
   ========================================================================== */

/* --- Tablet / Small Laptops (Max Width: 991px) --- */
@media (max-width: 991px) {

    /* General Padding Reduction */
    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Hero Section */
    .home-hero .main-heading {
        font-size: 48px;
    }

    /* Stats Strip */
    .stats-strip h3 {
        font-size: 42px;
    }

    /* Bento Grid (Who We Are) */
    .bento-grid .d-flex.gap-3 {
        flex-direction: row; /* Keep side-by-side on tablet */
    }

    /* Map Adjustments */
    .country-list {
        justify-content: flex-start;
        margin-bottom: 30px;
    }
}


/* --- Mobile Landscape / Large Phones (Max Width: 767px) --- */
@media (max-width: 767px) {

    /* Hero Section */
    .home-hero .main-heading {
        font-size: 42px;
        line-height: 1.2;
    }

    .home-hero .hero-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Bento Grid */
    .bento-grid .d-flex.gap-3 {
        flex-direction: column; /* Stack cards vertically */
    }

    .stat-card {
        margin-bottom: 15px;
    }

    /* Global Reach */
    .map-container {
        margin-top: 30px;
    }

    /* Hide specific detailed hotspots on small screens if they clutter */
    .hotspot {
        width: 8px;
        height: 8px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 30px 20px;
    }
}


/* --- Mobile Portrait / Small Phones (Max Width: 576px) --- */
@media (max-width: 576px) {

    /* General Padding - Compact for Mobile */
    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* Hero Section */
    .home-hero {
        text-align: center;
    }

    .home-hero .main-heading {
        font-size: 32px; /* Much smaller for mobile readability */
        margin-bottom: 15px;
    }

    .home-hero .d-flex {
        flex-direction: column;
        gap: 15px !important;
        width: 100%;
    }

    .home-hero .btn {
        width: 100%; /* Full width buttons */
        display: block;
    }

    /* Stats Strip */
    .stats-strip {
        padding: 40px 0;
    }

    /*.stats-strip .col-12 {*/
    /*    margin-bottom: 10px;*/
    /*}*/

    /* Headings */
    h2.heading1 {
        font-size: 28px; /* Resize general section headings */
        line-height: 1.3;
    }

    /* Who We Are & Feature Items */
    .feature-item {
        flex-direction: row; /* Keep icon left of text */
        align-items: flex-start;
    }

    /* CTA Sections */
    .cta-section-split .row {
        text-align: center;
    }

    .cta-section-split .d-flex {
        flex-direction: column;
        align-items: center;
    }

    /* Testimonials */
    .testimonial-carousel .owl-dots {
        margin-top: 30px !important;
    }
}