/*
  DR. RUTH SEGOMOTSI MOMPATI REGION
  Hero banner rules based on the supplied Bojanala page.
  Load after css/bojanala-page.css.
*/

/* Match the Bojanala hero's desktop banner dimensions and layout. */
body.dr-ruth-region .bojanala-hero.dr-ruth-region-hero {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    height: 575px;
    min-height: 575px;
    max-height: 575px;
    padding: 0;
    color: #fff;
    background-color: #153b28;
}

/* Keep the same inner content width and alignment as Bojanala. */
body.dr-ruth-region .dr-ruth-region-hero .hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0;
    box-sizing: border-box;
}

/* The longer regional name is scaled to fit the same fixed-height banner. */
body.dr-ruth-region .dr-ruth-region-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font: normal clamp(40px, 5.2vw, 64px)/.99 Georgia, "Times New Roman", serif;
    letter-spacing: -1.2px;
}

body.dr-ruth-region .dr-ruth-region-hero .hero-lead {
    max-width: 600px;
    margin: 0 0 22px;
    color: #edf3e9;
    font: normal 18px/1.4 Georgia, "Times New Roman", serif;
}

/* Same Bojanala image overlays, positioning and zoom animation. */
body.dr-ruth-region .dr-ruth-region-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -5%;
    right: -5%;
    bottom: -5%;
    left: -5%;
    background:
        linear-gradient(
            180deg,
            rgba(10,34,22,0) 0%,
            rgba(10,42,26,.04) 48%,
            rgba(12,67,39,.62) 73%,
            rgba(12,67,39,.97) 100%
        ),
        linear-gradient(
            90deg,
            rgba(5,28,18,.24) 0%,
            rgba(5,28,18,0) 72%
        ),
        url("../images/regions/dr-ruth/taung-skull.jpg") center center / cover no-repeat;
    transform: scale(1.02);
    transform-origin: center center;
    animation: bojanalaHeroZoom 26s ease-in-out infinite;
    will-change: transform;
    pointer-events: none;
}

body.dr-ruth-region .dr-ruth-region-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 3%;
    top: 8%;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgba(255,255,255,.025),
        0 0 0 48px rgba(255,255,255,.02);
    pointer-events: none;
}

body.dr-ruth-region .dr-ruth-region-hero .hero-mark {
    position: absolute;
    z-index: 2;
    right: 25px;
    bottom: 22px;
    color: #eddfb9;
    font-size: 9px;
    letter-spacing: 2px;
}

/* Match Bojanala's mobile hero height exactly. */
@media (max-width: 720px) {
    body.dr-ruth-region .bojanala-hero.dr-ruth-region-hero {
        height: 530px;
        min-height: 530px;
        max-height: 530px;
    }

    body.dr-ruth-region .dr-ruth-region-hero .hero-inner {
        width: calc(100% - 36px);
        padding: 34px 0;
    }

    body.dr-ruth-region .dr-ruth-region-hero h1 {
        font-size: clamp(34px, 8vw, 46px);
        line-height: 1;
        letter-spacing: -.7px;
    }

    body.dr-ruth-region .dr-ruth-region-hero .hero-lead {
        font-size: 16px;
        margin-bottom: 18px;
    }

    body.dr-ruth-region .dr-ruth-region-hero .hero-stats {
        margin-top: 25px;
    }

    body.dr-ruth-region .dr-ruth-region-hero::after {
        width: 270px;
        height: 270px;
        right: -75px;
        top: 5%;
    }
}

@media (max-width: 420px) {
    body.dr-ruth-region .dr-ruth-region-hero h1 {
        font-size: 36px;
    }

    body.dr-ruth-region .dr-ruth-region-hero .hero-stats div {
        padding: 0 8px;
    }

    body.dr-ruth-region .dr-ruth-region-hero .hero-stats strong {
        font-size: 16px;
    }

    body.dr-ruth-region .dr-ruth-region-hero .hero-stats span {
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.dr-ruth-region .dr-ruth-region-hero::before {
        animation: none;
        transform: scale(1.02);
    }
}
