/* ================================================================
   HOME — OUR PRESENCE
   Final stacked layout
   Content → Stats → Large Map
   ================================================================ */

.home-presence-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: clamp(80px, 7vw, 115px) 0;

    background: #FFFFFF;
}


/* ================================================================
   MAIN LAYOUT
   The global .container controls width and alignment.
   ================================================================ */

.home-presence-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1fr;

    gap: 0;
}


/* ================================================================
   CONTENT
   ================================================================ */

.home-presence-content {
    position: relative;
    z-index: 2;

    width: 100%;
    min-width: 0;

    text-align: start;
}


/* Main title — one line on large desktop */
.home-presence-content h2 {
    width: max-content;
    max-width: 100%;

    margin: 12px 0 18px;

    color: #182E56;

    font-size: clamp(2.05rem, 2.55vw, 2.9rem);
    line-height: 1.18;
    font-weight: 800;

    white-space: nowrap;
}


/* Supporting paragraph */
.home-presence-content > p {
    max-width: 900px;

    margin: 0;

    color: rgba(24, 46, 86, .76);

    font-size: var(--home-supporting-size, 1.15rem);
    line-height: var(--home-supporting-line-height, 1.9);
}


/* ================================================================
   STATS
   ================================================================ */

.home-presence-stats {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 30px;
}


.home-presence-stat {
    min-height: 105px;

    padding: 18px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(29, 66, 123, .045);

    border: 1px solid rgba(29, 66, 123, .12);
    border-radius: 14px;
}


.home-presence-stat strong {
    color: #E96124;

    font-size: 1.38rem;
    line-height: 1.2;
    font-weight: 800;
}


.home-presence-stat span {
    margin-top: 7px;

    color: rgba(24, 46, 86, .72);

    font-size: .88rem;
    line-height: 1.6;
}


/* ================================================================
   LARGE MAP
   ================================================================ */

.home-presence-map {
    --presence-origin-x: 50%;
    --presence-origin-y: 50%;

    position: relative;

    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;

    overflow: hidden;

    cursor: zoom-in;
}


/* Soft glow behind map */
.home-presence-map::before {
    content: "";

    position: absolute;

    width: 72%;
    height: 72%;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(29, 66, 123, .08);

    filter: blur(65px);

    pointer-events: none;
}


/* Syria map */
.home-presence-map img {
    position: relative;
    z-index: 1;

    display: block;

    width: min(100%, 1040px);
    max-width: none;
    height: auto;

    margin-inline: auto;

    object-fit: contain;
    object-position: center;

    transform-origin:
        var(--presence-origin-x)
        var(--presence-origin-y);

    transition:
        transform .5s cubic-bezier(.22, .61, .36, 1),
        filter .4s ease;

    filter:
        drop-shadow(
            0 30px 44px
            rgba(24, 46, 86, .15)
        );
}


/* ================================================================
   MAP ZOOM — DESKTOP ONLY
   ================================================================ */

@media (hover: hover) and (pointer: fine) {

    .home-presence-map:hover img {
        transform: scale(1.12);

        filter:
            drop-shadow(
                0 36px 50px
                rgba(24, 46, 86, .21)
            );
    }
}


/* ================================================================
   RTL / LTR
   ================================================================ */

html[dir="rtl"] .home-presence-content {
    text-align: right;
}


html[dir="ltr"] .home-presence-content {
    text-align: left;
}


/* ================================================================
   DARK MODE
   ================================================================ */

html[data-theme="dark"] .home-presence-section {
    background: #182E56;
}


html[data-theme="dark"] .home-presence-content h2 {
    color: #FFFFFF;
}


html[data-theme="dark"] .home-presence-content > p {
    color: rgba(255, 255, 255, .78);
}


html[data-theme="dark"] .home-presence-stat {
    background: rgba(29, 66, 123, .56);

    border-color: rgba(255, 255, 255, .12);
}


html[data-theme="dark"] .home-presence-stat span {
    color: rgba(255, 255, 255, .72);
}


html[data-theme="dark"] .home-presence-map::before {
    background: rgba(29, 66, 123, .34);
}


/* ================================================================
   MEDIUM DESKTOP
   ================================================================ */

@media (max-width: 1250px) {

    .home-presence-content h2 {
        width: auto;
        max-width: 760px;

        font-size: clamp(2rem, 3.3vw, 2.7rem);

        white-space: normal;
    }


    .home-presence-content > p {
        max-width: 850px;
    }


    .home-presence-map img {
        width: min(100%, 940px);
    }
}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 900px) {

    .home-presence-section {
        padding: 76px 0;
    }


    .home-presence-content {
        max-width: none;
    }


    .home-presence-content h2 {
        width: auto;
        max-width: 720px;

        white-space: normal;
    }


    .home-presence-content > p {
        max-width: 760px;
    }


    .home-presence-stats {
        gap: 10px;

        margin-top: 26px;
    }


    .home-presence-stat {
        padding: 16px;
    }


    .home-presence-map {
        margin-top: 18px;

        overflow: visible;

        cursor: default;
    }


    .home-presence-map img {
        width: 100%;
        max-width: 820px;
    }
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 700px) {

    .home-presence-section {
        padding: 66px 0;
    }


    .home-presence-content h2 {
        width: auto;
        max-width: 100%;

        margin-bottom: 15px;

        font-size: clamp(1.85rem, 8vw, 2.35rem);
        line-height: 1.25;

        white-space: normal;
    }


    .home-presence-content > p {
        max-width: 100%;

        font-size: 1.05rem;
        line-height: 1.85;
    }


    .home-presence-stats {
        grid-template-columns: 1fr;

        gap: 9px;

        margin-top: 24px;
    }


    .home-presence-stat {
        min-height: auto;

        padding: 15px 16px;
    }


    .home-presence-map {
        margin-top: 22px;

        overflow: visible;
    }


    .home-presence-map img {
        width: 100%;
        max-width: 100%;
    }
}


/* ================================================================
   SMALL MOBILE
   ================================================================ */

@media (max-width: 420px) {

    .home-presence-section {
        padding: 58px 0;
    }


    .home-presence-content h2 {
        font-size: 1.85rem;
    }


    .home-presence-content > p {
        font-size: 1rem;
        line-height: 1.8;
    }


    .home-presence-stat strong {
        font-size: 1.25rem;
    }


    .home-presence-stat span {
        font-size: .84rem;
    }
}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

    .home-presence-map img {
        transition: none;
    }


    .home-presence-map:hover img {
        transform: none;
    }
}