﻿:root {
    --min-header-height: 120px;
    --header-border-width: 5px;
}


header {
    background: #00195e;
    border-bottom: solid var(--header-border-width) #af00bb;
    padding: 0 var(--x2-margin);
    color: var(--white);
    min-height: var(--min-header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;

    @media (width <= 900px) {
        padding-inline: var(--margin);
    }

    & .header-wrap
    {
        display: flex;
        gap: 0 var(--margin);
        align-content: center;
        justify-content: space-between;
        align-items: center;
        position: relative;
        justify-self: stretch;
        width: 100%;

    & .contact-link
    {
        grid-area: cta;
        max-width: max-content;
        margin-inline: auto;
    } 

    & button.icon img, 
    & img.icon
    {
        --filter: invert(1);
    }

    & .sms-btn
    {
        grid-area: sms;
    } 

    @media (width <= 750px) {
        display: grid;
        padding-block: var(--margin);
        gap: var(--margin) var(--half-margin);
        grid-template-areas:
        'logo cta'
        'tagline tagline';
        max-width: max-content;

        & .about-app {
            max-width: 40ch;
        }
    }

    & .main-cta-links 
    {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: flex-end;
    }

    @media (width < 500px) {
        grid-template-areas:
        'logo sms'
        'cta cta'
        'tagline tagline';

        & .main-cta-links {
            display: contents;
        }
    }

    & .header-menu {
            display: flex;
            gap: 1rem 2rem;
            align-items: center;
            text-align: left;
            align-items: center;
            justify-content: center;
            flex: auto;
            align-items: center;
            flex-wrap: wrap;

            & .about-app {
                font-weight: 500;
                line-height: 120%;
                text-align: center;
                text-wrap: pretty;
            }
        }
    }
}

    

        

@media (width < 550px) {
    :is(body, #a #b #c) header .priority3 {
        display: none;
    }
}

@media (width < 750px) {
    :is(body, #a #b #c) header .priority4 {
        display: none;
    }
}

@media (width < 950px) {
    :is(body, #a #b #c) header .priority5 {
        display: none;
    }
}

header .nav a {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: solid 2px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
}

    header .nav a:not(:hover) {
        text-decoration: none;
    }

header .header-menu{
    grid-area: tagline;

    & .alt-tagline {
        max-width: 250px;
        font-weight: 100;
        line-height: 140%;
    }

    & ul {
        display: flex;
        gap: 2em;
        color: inherit;

        & a {
            text-decoration: none;

            &:hover {
                border-bottom: solid 3px;
            }
        }            
    }        
}

header * {
    color: inherit;
}

header .logo {
    display: flex;
    align-items: center;
    grid-area: logo;
}

    header .logo img {
        height: 40px;
    }

header .nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    height: auto;
    align-self: center;
}

    header .nav .gotoapp {
        font-weight: var(--bold);
        text-decoration: none;
        width: 170px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 50px;
        font-size: 14px;
    }

}

@media screen and (max-width: 600px) {
    header .nav .gotoapp {
        top: 5px;
        right: 5px;
    }
}
