@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@100;400;700&display=swap');

:root {
    --brand-red: #f95a5a;
    --brand-green: #5af97e;
    --brand-blue: #5ab4f9;
    --brand-purple: #6c5af9;
    --brand-yellow: #f9cd5a;
    --brand-black: #333;
    --brand-white: #ececec;
    --brand-dark: #4d4545;
}

html {
    font-family: 'Catamaran', sans-serif;
    font-size: 10px;
    color: var(--brand-black);
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f9f9f9;
}
p, ul {
    font-size: 1.8rem;
    font-weight: 400;
}
strong {font-weight: 700;}
h1 {
    font-size: 3.2rem;    
}
h2 {
    font-size: 3rem;
    
}
h3 {
    font-size: 2.6rem;
}
h1,h2,h3 { font-weight: 100;}
a {
    color: var(--brand-red);
}
.content ul {
    padding: 0 1.6em;
}
.content ul li {
    list-style-type: none;
    position: relative;
}
.content ul li::before {
    content: "\2022";
    display: block;
    position: absolute;
    left: -0.5em;
    top: -0.15em;
    font-size: 2.5em;
    line-height: 1;
}
.content ul li:nth-child(5n+1):before {
    color: var(--brand-red);
}
.content ul li:nth-child(5n+2):before {
    color: var(--brand-green);
}
.content ul li:nth-child(5n+3):before {
    color: var(--brand-blue);
}
.content ul li:nth-child(5n+4):before {
    color: var(--brand-yellow);
}
.content ul li:nth-child(5n+5):before {
    color: var(--brand-purple);
}

img {
    width: 100%;
}

figure {
    margin: 0;
}

header .identity {
    display: flex;
    margin: 1rem;
}
header .identity ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-size: 1.8rem;
    padding: 0 0 0 1.6em;
    color: var(--brand-dark);
    margin: 0;
}
header #pmhc-logo {
    display: block;
    max-width: 150px;    
}

header nav {
    display: block;
    max-width: 100%;
    background: var(--brand-blue);
    border-bottom: 6px solid var(--brand-yellow);
    padding: 0 1.5rem;
    min-height: 15px;
}

header nav ul {    
    display: none;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: auto;
    padding: 5px 0;
    list-style-type: none;
    font-size: 1.6rem;
    font-weight: 700;
}
header nav ul a{    
    text-decoration: none;
    color: var(--brand-black)
}
header nav ul a:active, 
header nav ul a:focus, 
header nav ul a:hover {    
    text-decoration: none;
    color: var(--brand-white)
}
footer {
    background: var(--brand-dark);
    color: var(--brand-white);
    padding: 2em 1em;
    text-align: center;
}

main {
    max-width: 900px;
    margin: auto;
}
section.feature-image {
    margin: 0 0 80px;
}
section.feature-image figure{
    position: relative;
}
section.feature-image figcaption {
    width: 100px;
    height: 100px;
    margin: auto;
    background-color: var(--brand-red);
    transform: translate(-50%, 50%);
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 50%;
    text-align: center;
}

section.feature-image figcaption span {
    font-size: 1.6rem;
    line-height: 1;
    display: block;
    transform: translateY(-50%);
    position: absolute;
    top: 50%;
    left: 0;
}

section.feature-image figcaption span>strong {    
    color: var(--brand-white);
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
}

section.feature-image figcaption span:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 0.55em solid transparent;
    border-right: 0.55em solid transparent;
    border-top: 0.9em solid var(--brand-yellow);
    position: absolute;
    left: 50%;
    bottom: -5%;
    transform: translate(-50%, 110%);
}

section.info-block {
    margin: 3rem 1rem 0;
    max-width: 900px;
}

section.info-block figcaption{
    width: 60px;
    height: 60px;        
    border-radius: 50%;
    margin: 0 0 calc(-60px + 0.5em) 0;
}
section.info-block.left figcaption{
    margin: 0 0 calc(-60px + 0.5em) auto;    
}
section.info-block .content h2{
    margin: 0.5em 0 0.5em 70px;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
}
section.info-block.left .content h2{
    text-align: right;
    margin: 0.5em 70px 0.5em auto;

}
section.info-block:nth-child(5n+1) figcaption{
    background-color: var(--brand-red);
}
section.info-block:nth-child(5n+2) figcaption{
    background-color: var(--brand-green);   
}
section.info-block:nth-child(5n+3) figcaption{
    background-color: var(--brand-blue);   
}
section.info-block:nth-child(5n+4) figcaption{
    background-color: var(--brand-purple) 
}
section.info-block:nth-child(5n+5) figcaption{
    background-color: var(--brand-yellow);   
}

@media screen and (min-width: 768px) {

    header .identity {
        display: flex;
        max-width: 900px;
        margin: 1rem auto;
        padding: 0 1rem;
    }
    header #pmhc-logo {
        display: block;
        max-width: 150px;
        margin: 0;
    
    }
    header nav ul {
        display: flex;

    }
    section.feature-image {
        margin: 0 0 180px;
    }
    section.feature-image figcaption {
        width: 160px;
        height: 160px;
    }
    
    section.feature-image figcaption span {
        font-size: 2.6rem;
        line-height: 1.1;
        display: block;
        transform: translateY(-50%);
        position: absolute;
        top: 50%;
        left: 0;
    }    

    section.info-block {
        position: relative;
        margin: 12rem 2rem;
        display: flex;
        align-items: center;
        gap: 90px;
        min-height: 685px;
    }

    section.info-block:before {
        content: '';
        position: absolute;        
        height: 100%;
        background: url(./assets/images/connections_rev.svg) 0 0 / 100% 100% no-repeat;        
        top: calc(-50% - 6rem);
        left: 65px;
        right: 85px;
        z-index: -2;
    }
    section.info-block.left:before {        
        background: url(./assets/images/connections.svg) 0 0 / 100% 100% no-repeat;        
    }
    section.info-block.first:before {
        content: '';
        position: absolute;        
        height: 100%;
        background: url(./assets/images/connections_first.svg) 0 0 / 100% 100% no-repeat;        
        top: calc(-50% + 6rem);
        left: 60px;
        right: 50px;
        z-index: -2;
    }

    section.info-block figcaption{
        margin: 0;
        width: 150px;
        height: 150px;
        flex-shrink: 0;
    }

    section.info-block.left figcaption{
        margin: 0;
    }
    section.info-block.left .content h2,
    section.info-block .content h2{   
        margin: 0;
    }

    section.info-block:nth-child(odd) figure{
        order: 2;
    }

}