/**
 *  base.css
 *  
 *  Foundational Styles for Slate Template.
 */


:root {
    
    /********** BACKGROUND COLORS **********/
    --bg-brand-blue-100: #e4e7ef;

    /********** COLORS **********/
    --color-brand-black: #000000;
    --color-brand-blue-primary: #002f6c;
    --color-brand-blue-waterhub: #0033a0;
    --color-brand-blue-waterhub-500: #7f99cf;
    --color-brand-white: #ffffff;
    --color-brand-white-primary: #f8f8f8;
    --color-brand-yellow-primary: #f2a900;

    /********** FONTS **********/
    --font-brand-sans: "Open Sans", sans-serif;
    --font-brand-serif: "Crimson Pro", serif;
    --font-brand-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /********** FONTS WEIGHTS **********/
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /********** SPACING MULTIPLE **********/
    --spacing: .25rem;

    /********** HEIGHT for CONTENT **********/
    --header-height: 118px;
    
    /********** WIDTH for CONTENT **********/
    --max-container-width: 96rem;

    /********** ANIMATION TIMING FUNCTIONS **********/
    --transition-ease-in: cubic-bezier(0.4,0,1,1);
    --transition-ease-out: cubic-bezier(0,0,0.2,1);
    --transition-ease-in-out: cubic-bezier(0.4,0,0.2,1);
}


/*~~~~~~~~~~~~~~~~~~ ELEMENT BASE STLYES ~~~~~~~~~~~~~~~~~~*/

*, 
*:before, 
*:after {
    box-sizing: border-box;
}


a {
    color: inherit !important;
    overflow: hidden;
    text-decoration: none;
}
body {
    color: var(--color-brand-black);
    font-family: var(--font-brand-sans);
    font-size: 16px;
    font-weight: normal;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}
body.fixed {
	overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-brand-blue-primary);
    font-family: var(--font-brand-serif);
    font-weight: var(--font-weight-extralight);
    line-height: 1;
}
h1 {
    font-size: 100px;
    margin: 48px 0 80px;
    padding: 0 0 8px;
}
h2 {
    font-size: 60px;
    margin: 20px 0 16px;
    padding: 0 0 4px;
}
h3 {
    font-size: 42px;
    margin: 20px 0 16px;
    padding: 0 0 4px;
}
h4 {
    font-size: 30px;
    margin: 20px 0 16px;
    padding: 0 0 4px;
}
p {
    margin: 0;
}
picture { 
    display: block;
    position: relative;
    width: 100%;
}
picture > img {
    aspect-ratio: 1.77777;
    border-radius: .25rem;
    object-fit: cover;
    width: 100%;
}
picture > .clip {
    background-color: var(--color-brand-white);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    height: calc(var(--spacing) * 30);
    position: absolute;
    left: 0;
    top: 0;
    width: calc(var(--spacing) * 26);
}


/*~~~~~~~~~~~~~~~~~~ CONTENT CONTAINER ~~~~~~~~~~~~~~~~~~*/

.container {
    max-width: var(--max-container-width);
    margin-inline: auto;
    padding-inline: 80px;
}
.container-space-hd {
    padding-block: 32px;
}
.container-space-ft {
    padding-block: 80px;
}
.horizontal-line {
    margin: 28px 0 32px;
    width: auto;
}
.no-style {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
}


/*~~~~~~~~~~~~~~~~~~ FORM BUTTONS ~~~~~~~~~~~~~~~~~~*/

button.form_button_submit,
.btn-action,
.btn-contact {
    background-color: #f2a900;
    border: none;
    clip-path: polygon(0px 0px, 0px 0px, 100% 0px, 100% 100%, 0px 100%);
    color: #002f6c;
    cursor: pointer;
    font-family: var(--font-brand-sans) !important;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: .98px;
	line-height: 1.5;
    overflow: hidden;
    padding: 16px 24px;
    position: relative;
    text-transform: uppercase;
}
button.form_button_submit:hover,
.btn-action:hover,
.btn-contact:hover {
	background-color: #f2a900 !important;
    clip-path: polygon(0px 14px, 14px 0px, 100% 0px, 100% 100%, 0px 100%);
    transition: clip-path 0.15s cubic-bezier(0.4,0,0.2,1);
    will-change: clip-path;
}
button.form_button_submit::after,
.btn-action::after,
.btn-contact::after {
    background-color: #ffbe26;
    border: 0 solid;
    box-sizing: border-box;
    clip-path: polygon(0px 100%, calc(100% - 52px) 100%, 100% 0px, 0px 0px);
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    translate: -100%;
    width: 100%;
    z-index: -10;
}
button.form_button_submit:hover::after,
.btn-action:hover::after,
.btn-contact:hover::after {
    transition: translate 0.15s cubic-bezier(0.4,0,0.2,1);
    translate: calc(calc(1 / 3 * 100%) * -1) 0;
}


@media only screen and (max-width: 1279px) {

    /*~~~~~~~~~~~~~~~~~~ CONTENT CONTAINER less than 1280px ~~~~~~~~~~~~~~~~~~*/

    .container {
        padding-inline: 48px;
    }
}

@media only screen and (max-width: 1023px) {

    /*~~~~~~~~~~~~~~~~~~ ELEMENT BASE STLYES less than 1024px ~~~~~~~~~~~~~~~~~~*/

    h1 {
        font-size: 72px;
        padding: 0 0 4px;
    }
    h2 {
        font-size: 40px;
    }

    /*~~~~~~~~~~~~~~~~~~ CONTENT CONTAINER less than 1024px ~~~~~~~~~~~~~~~~~~*/

    .container {
        padding-inline: 32px;
    }
    .container-space-hd {
        padding-block: 16px;
    }
}

@media only screen and (max-width: 767px) {

    /*~~~~~~~~~~~~~~~~~~ ELEMENT BASE STLYES less than 768px ~~~~~~~~~~~~~~~~~~*/

    h1 {
        font-size: 50px;
        margin: 48px 0 24px;
    }
    h2 {
        margin: 20px 8px;
    }
    h3 {
        margin: 20px 0 8px;
    }

    picture > .clip {
        height: calc(var(--spacing) * 24);
        width: calc(var(--spacing) * 22);
    }

    /*~~~~~~~~~~~~~~~~~~ CONTENT CONTAINER less than 768px ~~~~~~~~~~~~~~~~~~*/

    .container {
        padding-inline: 24px;
    }
}

@media only screen and (max-width: 639px) {

    /*~~~~~~~~~~~~~~~~~~ ELEMENT BASE STLYES less than 640px ~~~~~~~~~~~~~~~~~~*/

    picture > .clip {
        height: calc(var(--spacing) * 13);
        width: calc(var(--spacing) * 11);
    }
}