﻿:root {
    --font-primary: 'Montserrat', Helvetica, sans-serif;
    --color-text: #000;
    --color-bg: #fff;
    --color-accent: rgba(193, 216, 179, 0.3);
    --color-label: #dc7100;
    --color-shadow: rgba(0, 0, 0, 0.2);
    --spacing-unit: 8px;
    --border-radius: 8px;
    --container-max: 1440px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    min-height: 100vh;
}

/*
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
}*/

.header-image {
    width: 100%;
    height: 174px;
    object-fit: cover;
}

.title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 60px 0 40px 0;
    max-width: 1197px;
    margin: 0 auto;
    width: 100%;
}

    .title-section h1 {
        font-weight: 700;
        color: var(--color-text);
        font-size: 40px;
    }

    .title-section h2 {
        font-weight: 400;
        color: var(--color-text);
        font-size: 30px;
    }

.content-background {
    width: 100%;
    max-width: 1197px;
    margin: 0 auto 50px auto;
    background-color: var(--color-accent);
    border-radius: 30px;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    box-shadow: 0 0 12px var(--color-shadow);
}

.navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 46px;
    border-radius: var(--border-radius);
    width: 100%;
    height: fit-content;
}

nav.navigation div.nav-grid a {
    text-decoration: none;
}

nav.navigation a.nav-full {
    width: 100%;
    text-decoration: none;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 32px;
    background-color: var(--color-bg);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .nav-button:hover {
        background-color: #DD7200;
        color: var(--color-bg);
    }

.nav-button--full {
    width: 100%;
    padding: 30px 30px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 46px 32px;
    width: 100%;
}

    .nav-grid .nav-button {
        width: 100%;
    }

.map-container {
    position: relative;
    width: 719px;
    margin: 0 auto;
}

.map-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(4px 13px 17px rgba(0, 0, 0, 0.22));
}

/* Accessible button overlays */
.map-button {
    height: 0px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
    background-color: var(--color-label);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    text-align: center;
    letter-spacing: 0.32px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .map-button:hover {
        background-color: #ff8c1a;
        transform: translateY(-2px);
        box-shadow: -8px 10px 14px rgba(0, 0, 0, 0.35);
    }

    .map-button:focus {
        outline: none;
        border-color: #fff;
        box-shadow: -8px 10px 14px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.5);
    }

    .map-button:active {
        transform: translateY(0);
        box-shadow: -4px 5px 7px rgba(0, 0, 0, 0.3);
    }

/* Position each button over the corresponding SVG area */
.map-button--place {
    top: 23%;
    left: calc(50% + 177px);
    box-shadow: -8px 7px 10px rgba(0, 0, 0, 0.3);
}

.map-button--people {
    top: 40%;
    left: calc(50% + 66px);
    box-shadow: -8px 7px 10px rgba(0, 0, 0, 0.3);
}

.map-button--prevention {
    top: 83.5%;
    left: 52.5%;
    box-shadow: -11px 8px 14px rgba(0, 0, 0, 0.3);
}

.map-button--policy {
    top: 55.7%;
    left: calc(50% - 93px);
    box-shadow: -6px 7px 10px rgba(0, 0, 0, 0.32);
}

.map-button--partnership {
    top: 44.5%;
    left: calc(50% - 338px);
    box-shadow: -6px 10px 10px rgba(0, 0, 0, 0.25);
}






.map-button:after {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    display: inline-block;
    content: '';
}

.map-button.map-button--place:after {
    height: 150px;
    top: -150px;
    background: url(/media/PHR/assets/place.png) 0 0 no-repeat;
    background-size: 135px 150px;
}

.map-button.map-button--people:after {
    height: 70px;
    top: -70px;
    background: url(/media/PHR/assets/people.png) 0 0 no-repeat;
    background-size: 125px 70px;
}

.map-button.map-button--prevention:after {
    height: 100px;
    top: -100px;
    left: -11px;
    background: url(/media/PHR/assets/prevention.png) 0 0 no-repeat;
    background-size: 215px 100px;
}

.map-button.map-button--policy:after {
    height: 75px;
    top: -75px;
    background: url(/media/PHR/assets/policy.png) 0 0 no-repeat;
    background-size: 150px 75px;
}

.map-button.map-button--partnership:after {
    height: 80px;
    left: -8px;
    top: -80px;
    background: url(/media/PHR/assets/partnership.png) 0 0 no-repeat;
    background-size: 220px 80px;
}












.footer-image {
    width: 100%;
    height: auto;
    max-height: 313px;
    object-fit: cover;
}

/* Synced hover states */
.nav-button.synced-hover {
    background-color: #DD7200;
    color: var(--color-bg);
}

.map-button.synced-hover {
    background-color: #ff8c1a;
    transform: translateY(-2px);
    box-shadow: -8px 10px 14px rgba(0, 0, 0, 0.35);
}





@media screen and (max-width: 1300px) {
    .title-section {
        gap: 12px;
        padding: 40px 0;
    }

        .title-section h1 {
            font-size: 33px;
        }

        .title-section h2 {
            font-size: 23px;
        }
}




@media screen and (max-width: 1260px) {
    .title-section {
        padding: 40px 3% 40px 3%;
        max-width: none;
    }

    .content-background {
        width: 94%;
        padding: 50px 0 50px 25px;
    }

    .map-container {
        width: 52vw;
    }

    .nav-grid {
        gap: 36px 22px;
    }

    .nav-button, .nav-button--full {
        padding: 20px 22px;
        font-size: 16px;
    }

    .navigation {
        gap: 36px;
    }

    .map-button {
        padding: 18px 30px;
        width: auto;
    }

    .map-button--partnership {
        left: calc(50% - 308px);
    }

    .map-button--place {
        top: 20%;
        left: calc(50% + 147px);
    }

    .map-button--people {
        top: 43%;
    }

    .map-button.map-button--place:after {
        height: 110px;
        top: -110px;
        background-size: auto 110px;
    }

    .map-button.map-button--people:after {
        height: 60px;
        top: -60px;
        background-size: auto 60px;
        left: 6px;
    }

    .map-button.map-button--prevention:after {
        height: 70px;
        top: -70px;
        background-size: auto 70px;
    }

    .map-button.map-button--policy:after {
        height: 50px;
        top: -50px;
        background-size: auto 50px;
    }

    .map-button.map-button--partnership:after {
        height: 60px;
        left: -3px;
        top: -60px;
        background-size: auto 60px;
    }
}


@media screen and (max-width: 1100px) {
    .nav-button, .nav-button--full {
        font-size: 15px;
    }

    .title-section {
        gap: 10px;
    }

        .title-section h1 {
            font-size: 28px;
        }

        .title-section h2 {
            font-size: 20px;
        }
}



@media screen and (max-width: 1024px) {
    .content-background {
        padding: 50px 0 30px 20px;
    }

    .map-container {
        width: 62vw;
    }

    .navigation {
        gap: 36px;
        width: 24vw;
        padding-top: 30px;
    }

    .nav-button, .nav-button--full {
        padding: 15px 10px;
        font-size: 13px;
    }

    .nav-grid {
        gap: 20px 15px;
    }
}


@media screen and (max-width: 950px) {
    .nav-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px 10px;
        padding: 20px 0;
    }

    .navigation {
        gap: 22px;
        width: 18vw;
        padding-top: 0;
    }

    .map-container {
        width: 70vw;
        margin-left: -6vw;
    }
}

@media screen and (max-width: 850px) {
    .map-button--partnership {
        left: calc(50% - 270px);
        top: 39%;
    }
}





@media screen and (max-width: 768px) {
    .title-section {
        padding: 40px 20px 40px 20px;
    }

    .content-background {
        width: calc(100% - 40px);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 30px 5px 50px 20px;
        gap: 10px;
    }

    .navigation {
        gap: 10px;
        width: 100%;
        order: 2;
        padding-right: 15px;
    }

    .nav-button, .nav-button--full {
        padding: 20px 22px;
        font-size: 15px;
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
        padding: 30px 0;
    }

    .map-container {
        width: 100%;
        margin-left: 0;
        order: 1;
    }

    .map-button--partnership {
        left: 20px;
        top: 36%;
    }

    .map-button--place {
        top: 20%;
        left: auto;
        right: 5%;
    }

    .map-button--people {
        top: 45%;
        left: auto;
        right: 11%;
    }

    .map-button--prevention {
        top: auto;
        left: auto;
        bottom: 17%;
        right: 24%;
    }

    .map-button--policy {
        top: 50%;
        left: 39%;
    }

    .title-section h1 {
        font-size: 26px;
    }

    .title-section h2 {
        font-size: 18px;
    }
}

@media screen and (max-width: 600px) {
    .map-button {
        padding: 15px;
        font-size: 14px;
    }

    .map-button--partnership {
        left: 0;
    }

    .map-button.map-button--place:after {
        height: 75px;
        top: -75px;
        background-size: auto 75px;
    }

    .map-button.map-button--people:after {
        height: 45px;
        top: -45px;
        background-size: auto 45px;
        left: 3px;
    }

    .map-button.map-button--prevention:after {
        height: 50px;
        top: -50px;
        background-size: auto 50px;
        left: 3px;
    }

    .map-button.map-button--policy:after {
        height: 35px;
        top: -35px;
        background-size: auto 35px;
        left: 3px;
    }

    .map-button.map-button--partnership:after {
        height: 45px;
        left: -3px;
        top: -45px;
        background-size: auto 45px;
    }
}


@media screen and (max-width: 450px) {
    .content-background {
        padding: 60px 5px 50px 20px;
    }

    .map-button--place {
        top: 9%;
    }

    .map-button--prevention {
        bottom: 10%;
    }
}


@media screen and (max-width: 400px) {
    .nav-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .content-background {
        width: auto;
        border-radius: 0;
        padding: 60px 5px 50px 20px;
    }

    .map-button--partnership {
        top: 16%;
    }

    .map-button--policy {
        top: 47%;
        left: 9%;
    }

    .map-button--prevention {
        bottom: 8%;
    }
}
