﻿/* ══════════════════════════════════════════════════════════
   HOMEPAGE EXTRAS — new sections added to index.html
   All classes prefixed hp-* — zero collision with existing CSS
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   GLOBAL PRESENCE / WORLD MAP SECTION
══════════════════════════════════════ */
.hp-global-section {
    padding: 80px 0 72px;
    background: linear-gradient(180deg, #f0f4fb 0%, #f8fafc 100%);
    overflow: hidden;
}

.hp-global-header {
    text-align: center;
    padding: 0 var(--c-px, 5vw);
    margin-bottom: 40px;
}

.hp-global-title {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    margin: 10px 0 14px;
    line-height: 1.15;
}

.hp-global-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Map container (full-width, preserves aspect ratio) ── */
.hp-map-outer {
    position: relative;
    width: 100%;
    padding: 0;
}

.hp-map-wrap {
    position: relative;
    width: 100%;
    /* force 2000:857 aspect ratio */
    aspect-ratio: 2000 / 857;
    max-height: 520px;
    overflow: visible;
}

.hp-map-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Arc overlay (same viewBox as map SVG) ── */
.hp-map-arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* ── Pin markers ── */
.hp-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -100%);
    cursor: default;
    z-index: 4;
}

.hp-pin-head {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-c, #1a56db);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-pin:hover .hp-pin-head {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hp-pin-num {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    font-family: inherit;
}

.hp-pin-tail {
    width: 2px;
    height: 6px;
    background: var(--pin-c, #1a56db);
    border-radius: 0 0 2px 2px;
    margin-top: -1px;
    opacity: 0.6;
}

/* ── Map legend (6-column grid below map) ── */
.hp-legend-wrap {
    padding: 36px var(--c-px, 5vw) 0;
    max-width: 1400px;
    margin: 0 auto;
}

.hp-legend {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 20px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    margin-top: 8px;
}

.hp-legend-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-legend-dot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.hp-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hp-legend-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hp-legend-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}


/* ══════════════════════════════════════
   TECHNOLOGY PARTNERS SECTION
══════════════════════════════════════ */
.hp-tech-section {
    padding: 72px 0;
    background: #ffffff;
}

.hp-trusted-section {
    padding: 72px 0;
    background: var(--bg-light, #f8fafc);
}

.hp-logos-heading {
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 800;
    color: var(--blue, #1a56db);
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 48px;
    line-height: 1.2;
}

/* ── Logo grid ── */
.hp-logo-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.hp-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 17px 12px;
    min-height: 80px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.hp-logo-box:hover {
    border-color: rgba(26, 86, 219, 0.25);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.09);
    transform: translateY(-3px);
}

.hp-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.hp-logo-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted, #64748b);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Real logo image — shown when CMS has an uploaded image */
.hp-logo-img {
    /* max-width: 100%; */
    /* max-height: 80px; */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Trusted section uses white cards on light bg */
.hp-trusted-section .hp-logo-box {
    background: #ffffff;
}


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1279px) {
    .hp-logo-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1023px) {
    .hp-map-wrap {
        max-height: 380px;
    }

    .hp-legend {
        grid-template-columns: repeat(3, 1fr);
    }

    .hp-logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .hp-global-section {
        padding: 56px 0 48px;
    }

    .hp-map-wrap {
        max-height: 260px;
    }

    .hp-pin-head {
        width: 26px;
        height: 26px;
    }

    .hp-pin-num {
        font-size: 8px;
    }

    .hp-legend {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .hp-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .hp-logos-heading {
        margin-bottom: 32px;
    }
}

@media (max-width: 479px) {
    .hp-map-wrap {
        max-height: 180px;
    }

    .hp-pin-head {
        width: 20px;
        height: 20px;
    }

    .hp-pin-num {
        font-size: 7px;
    }

    .hp-legend {
        grid-template-columns: repeat(1, 1fr);
    }

    .hp-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}