/**
 * Hero Section — Single static mission statement
 */

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--primary-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    min-height: 82vh;
    padding: var(--spacing-4xl) 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(200, 168, 130, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(200, 168, 130, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 65%, #001f1c 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 40px, rgba(255, 255, 255, 0.025) 40px 41px),
        repeating-linear-gradient(-45deg, transparent 0 40px, rgba(255, 255, 255, 0.025) 40px 41px);
    opacity: 0.6;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

/* ==================== CONTENT ==================== */

.hero-content {
    max-width: 620px;
}

/* Editorial kicker — simple uppercase label */
.hero-eyebrow {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--white);
    margin: 0 0 var(--spacing-lg) 0;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.hero-title-accent {
    color: var(--accent-gold);
    display: inline-block;
}

.hero-description {
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 var(--spacing-2xl) 0;
    font-weight: 400;
    max-width: 56ch;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, color 0.25s ease,
                border-color 0.25s ease;
    cursor: pointer;
    min-height: 48px;
    white-space: nowrap;
}

.btn-hero-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 8px 24px -6px rgba(200, 168, 130, 0.6);
}

.btn-hero-primary:hover {
    background: #d9b890;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -6px rgba(200, 168, 130, 0.7);
    color: var(--primary-dark);
}

.btn-hero-primary svg {
    transition: transform 0.25s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

.btn-hero-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==================== VISUAL (Arab world map) ==================== */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-map {
    position: relative;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 965 / 432;
    filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.35));
}

/* The inlined Wikimedia SVG takes full box */
.hero-map > svg:not(.hero-map-overlay) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay SVG (arc + pins) sits on top */
.hero-map-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Recolor all countries: muted base */
.hero-map .land {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(200, 168, 130, 0.25);
    stroke-width: 0.6;
    transition: fill 0.3s ease;
}

/* Morocco (incl. Western Sahara) — Moroccan red */
.hero-map #MA,
.hero-map #EH {
    fill: var(--moroccan-red);
    stroke: var(--moroccan-red);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    paint-order: stroke fill;
    filter: drop-shadow(0 0 8px rgba(187, 38, 44, 0.65));
    animation: countryGlowRed 3.2s ease-in-out infinite;
}

/* Syria — Syrian green */
.hero-map #SY {
    fill: #007C39;
    stroke: #007C39;
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    paint-order: stroke fill;
    filter: drop-shadow(0 0 8px rgba(0, 124, 57, 0.7));
    animation: countryGlowGreen 3.2s ease-in-out infinite;
    animation-delay: 1.6s;
}

@keyframes countryGlowGreen {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 124, 57, 0.55)); }
    50%      { filter: drop-shadow(0 0 12px rgba(0, 124, 57, 0.95)); }
}

@keyframes countryGlowRed {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(187, 38, 44, 0.5)); }
    50%      { filter: drop-shadow(0 0 12px rgba(187, 38, 44, 0.95)); }
}

/* Merge Palestine & Israel — identical fill and no stroke so they read as one */
.hero-map #PS,
.hero-map #IL {
    fill: rgba(255, 255, 255, 0.08) !important;
    stroke: none !important;
}

@keyframes countryGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(200, 168, 130, 0.5)); }
    50%      { filter: drop-shadow(0 0 10px rgba(200, 168, 130, 0.95)); }
}

/* Both halves pulse toward the middle — dashes flow from each country inward */
.hero-map-arc {
    filter: drop-shadow(0 0 4px rgba(200, 168, 130, 0.4));
    animation: arcPulseToCenter 2.5s linear infinite;
}

@keyframes arcPulseToCenter {
    from { stroke-dashoffset: 30; }
    to   { stroke-dashoffset: 0; }
}


/* Pin ring pulse */
.hero-map-pin-ring {
    transform-origin: center;
    transform-box: fill-box;
    animation: pinRing 2.5s ease-in-out infinite;
}

.hero-map-pin:last-of-type .hero-map-pin-ring {
    animation-delay: 1.25s;
}

@keyframes pinRing {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(3.2); opacity: 0; }
}

/* Entrance animation */
.hero-eyebrow,
.hero-title,
.hero-description,
.hero-buttons,
.hero-map {
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title        { animation-delay: 0.1s; }
.hero-description  { animation-delay: 0.2s; }
.hero-buttons      { animation-delay: 0.3s; }
.hero-map          { animation-delay: 0.15s; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-4xl) 0 var(--spacing-5xl);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .hero-content {
        max-width: 560px;
        margin-inline: auto;
        order: 2;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-buttons .btn-hero {
        justify-content: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-map {
        max-width: 420px;
    }

    .hero-description {
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: var(--spacing-3xl) 0 var(--spacing-4xl);
    }

    .hero-grid {
        gap: var(--spacing-xl);
    }

    .hero-eyebrow {
        font-size: 0.75rem;
        padding: 6px 14px;
        letter-spacing: 0.5px;
        margin-bottom: var(--spacing-lg);
    }

    .hero-map {
        max-width: 340px;
    }

    .hero-map-labels text {
        font-size: 16px;
    }

    .hero-buttons {
        width: 100%;
        gap: var(--spacing-sm);
    }

    .btn-hero {
        flex: 1;
        min-width: 0;
        padding: 13px 18px;
        font-size: 0.875rem;
        justify-content: center;
    }

    .btn-hero svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 380px) {
    .hero-orb {
        max-width: 170px;
    }

    .hero-title {
        letter-spacing: -0.4px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb-ring,
    .hero-eyebrow,
    .hero-title,
    .hero-description,
    .hero-buttons,
    .hero-orb {
        animation: none;
    }
}
