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

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
}

:root {
    --background-light: #E3E3E3;
    --background-medium: #a6cedb;
    --background-dark: #0061a0;
    --light-font: #FFFFFF;
    --dark-font: #000000;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--background-light);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    font-family: 'Merriweather', serif;
    letter-spacing: .04em;
    font-weight: 300;
    line-height: 1.3em;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat';
    font-weight: 400;
    letter-spacing: .1em;
}


a {
    color: var(--background-medium);
    text-decoration: none;
    font-weight: 600;
}

.wrapper {
 
    max-width: 1200px;
    padding: 0;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(2, [column] 1fr);
    grid-template-rows: 200px auto 1fr auto;
    gap: 0px;
}

.header-main {
    background-color: var(--background-medium);
    background-image: url('images/header-background.jpg');
    color: var(--background-dark);
    font-weight: 900;
    font-size: 1.5em;
    align-items: center;
    display: flex;
    justify-content: center;
}

.header-main h1 {
    background-color: var(--light-font);
    line-height: 1.2em;
    opacity: .7;
    padding: 10px 20px;
    border: 2px var(--background-dark) solid;
    border-radius: 5px;
    text-align: center;
    font-size: 36px;
}

.header-main {
        margin-top: 50px;
}


.nav-main {
    background-color: var(--background-dark);
}

.nav-main a {
    font-family: 'Montserrat';
    letter-spacing: .2em;
    color: var(--light-font);
}

.nav-main>ul {
        margin: 0;
        padding: 10px 0;
        list-style: none;
        display: flex;
        justify-content: space-around;
        flex-direction: column;
}

/* Navigation - Hide Checkbox */
#nav-main-toggle {
    display: none;
}

/* Navigation - Style Checkbox Label */
.nav-main-icon {
    position: fixed;
    top: 0;
    left: 10px;
    width: 48px;
    line-height: 48px;
   
}

.nav-main-icon img {
    width: 48px;
}

/* Navigation - Style Nav Element */
.nav-main {
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    left: 0;
    box-shadow: 0 2px 4px black;
    height: 48px;
}

/* Navigation - Extra H1 in Mobile Nav - May Need to Hide Large Screens */
.nav-main h1 {
    position: absolute;
    top: 0;
    right: 0;
    left: 58px;
    line-height: 48px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: min( calc( .07 * 100vw) , 32px);
}

/* Navigation - Style Nav Menu - Set Off Screen */
.nav-main-menu {
    margin: 48px 0 0 0;
    padding: 0 10px;
    list-style: none;
    background:  #fff;
    
    transition: all .25s ease-in; 
    transform: translate(-100%, 48px);
}

/* Navigation - When Checkbox is Checked Find Menu Bring On Screen */
#nav-main-toggle:checked ~ .nav-main-menu {
    transition: all .25s ease-in; 
    transform: translate(0, 48px);
}

/* Navigation - Style Anchors */
.nav-main a {
    display: block;
    line-height: 48px;
    font-weight: bold;
    text-align: center;
     color: var(--background-dark);
    font-size: 1.125em;
    text-decoration: none;
    background-size: auto 0; 
}

.nav-main a[href="index.html"] {
    background: white;
}

.nav-main a:hover {
    
    background: var(--background-medium);
}

/* Navigation - Headroom JS Move Navigation on Scroll */
.headroom {
    will-change: transform;
    transition: all .5s linear;

}

.headroom--pinned {
    transform: translateY(0%);
    opacity: 1;
}

.headroom--unpinned {
    transform: translateY(-100%);
    opacity: 0;
}

/* END - Navigation */
.main-main {
    padding: 40px 15px;
} 

.main-main h1 {
    line-height: 1.2;
}

h2.summary-heading {
    line-height: 3;
    color:  var(--background-dark);
}

.one-column p {
    padding-bottom: 15px;
}

.one-column {
    padding: 10px 20px;
}

.aside-main {
    padding: 0px 15px;
    padding-bottom: 40px;
}
.footer-main {
    background-color: var(--background-dark);
    color: var(--light-font);
    padding: 20px 20px;
}

.header-main,
.nav-main,
.main-main,
.aside-main,
.footer-main {
    grid-column: span 2;
}

.aside-main h2, .aside-main h3 {
    line-height: 1.2em;
    letter-spacing: .2em;
    margin-bottom: 10px;
    color: var(--background-dark);
}

.aside-main h3 {
    margin-top: 30px;
}

.aside-main p {
    padding: 5px 0;
}

.notfound { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
}

.notfound img {
    width: 80%;
}

.map-search {
    margin: 20px 0;
}
.display-map {
    margin-bottom: 40px;
}

input#saddr {
    font-family: Montserrat;
}

.form-button {
    background-color: var(--background-dark);
    color: var(--light-font);
    margin: 0 auto;
    text-align: center;
    display: block;
    width: 100%;
    border: none;
    text-transform: uppercase;
    font-family: 'Montserrat';
    letter-spacing: .2em;
    line-height: 2;
}

.contact-form form {
    margin-top: 20px;
}

legend {
    padding: 0 15px;
    text-align: center;
}
 form ol {
    list-style: none;
    padding-left: 0;
}

form label {
    display: block;
    line-height: 1.5;
}
form textarea {
    min-height: 180px;
    width: 100%;
    font-family: 'Montserrat';
}

input {
    width: 100%;
    font-family: 'Montserrat';
    line-height: 2;
}

form ol li {
    padding-bottom: 15px;
}
input.grid-8-span-5-7.form-button {
    margin-top: 10px;
}
#gmap {
    clear: both;
    width: auto;
    height: 375px;
    overflow: hidden;
    background: url(images/gmap.png) no-repeat center / cover;
}

#gmap h4 {
    font-size: 1.4em;
}

#gmap span {
    display: block;
    font-size: .8em;
}

#gmap ul {
    list-style: disc;
    padding: 5px 20px;
    font-size: 1.2em;
}

.gallery-title {
    margin-top: 40px;
}

.gallery img {
    width: 90%;
}
.gallery { margin-top: 30px;}

.gallery-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;

}

.gallery a {
    width: 30%;
    flex-grow: 1;
    text-align: center;
}


.cards {
    display: grid;
    gap: 20px;
}



.card {
    background-color: var(--background-dark);
    color: var(--light-font);
    padding: 0px;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.card h2 {
    text-align: center;
    line-height: 1.2em;
}

.card h2, .card p, .card a {
    padding: 10px 25px;
}

.card img {
    width: 100%;
}

.card a {
    background-color: var(--light-font);
    color: var(--background-dark);
    margin: 0 auto;
    text-align: center;
    display: block;
    width: 60%;
    margin-top: 20px;
    text-transform: uppercase;
    font-family: 'Montserrat';
    letter-spacing: .2em;
}

.card a:hover {
    box-shadow: 2px 2px 5px 1px var(--background-medium);
}

.footer-main:first-child {
    margin: 0 auto 0 0;
}

.footer-main a {
    padding-left: 15px;
    float: right;
}



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

    .wrapper {
        grid-template-columns: repeat(12, [column] 1fr);
        grid-template-rows: 200px auto 70px;
        
    }
    .header-main,
    .nav-main,
    .footer-main {
        grid-column: column / span 12;
    }
    
    .header-main h1 {
         font-size: 54px;   
    }
    
    .header-main {
        margin-top: 52px;
}
    .nav-main>ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        justify-content: flex-end;
        flex-direction: row;
        height: 48px;
        align-items: center;
      
    }
    
    .nav-main>ul>li {
            height: 48px;
            
    }
    .nav-main>ul>li:first-child {
        margin: 0 auto 0 0;
    }
    .nav-main ul a {
        line-height: 3;
        padding: 0 1em;
        color: #fff;
        height: 48px;
        display: flex;
        align-items: center;
    }
    
    .nav-main a:hover {
        color: var(--background-dark);
    }
    
    /* Navigation - Hide Label/Icon/Text */
    .nav-main-icon {
        display: none;
    }

    /* Navigation - Create Grid Layout for Menu LIs */
    .nav-main-menu {
        display: grid;
        grid-template-columns: repeat(6, [nav] 1fr);
        gap: 20px;
        margin-top: 0;
        transform: translate(0, 0);
        background: var(--background-dark);
    }

    .nav-main-menu li:first-child {
        grid-column: nav / span 1; 
    }

    .nav-main-menu li:nth-child(2) {
        grid-column-start: 4; 
    }
    .main-main {
        grid-column: column / span 8;
        /* display: grid; */
    }
    
    .one-column {
        grid-column: column / span 12;
    }
    
    .nav-main h1 {
        visibility: hidden;
    }

    .grid-8 {
        display: grid;
        gap: 20px;
    }
    .grid-8-span-1-7 {
        grid-column: 1 / 7;
    }
     .grid-8-span-1-5 {
        grid-column: 1 / 5;
    }
    .grid-8-span-5-7 {
        grid-column: 5 / 6;
    }
     .grid-8-span-1-4 {
        grid-column: 1 / 5;
    }
    .grid-8-span-4-8 {
        grid-column: 5 / 9;
    }
    .grid-8-span-8 {
        grid-column: span 8;
    }

    .aside-main {
        grid-column: column 9 / span 4;
    }
    .cards {
        grid-template-columns: repeat(8, [card] 1fr);
    }
    .card {
        grid-column: span 4;
    }
    
    .main-main, .aside-main {
        padding: 40px 15px;
    }
    form ol li {
        padding-bottom: 0px;
    }
    input.grid-8-span-5-7.form-button {
    margin-top: 0px;
}
}

/**************************************/
/***        DESKTOP: 1025px         ***/
/**************************************/
@media screen and (min-width: 1025px) {
    legend {
        text-align: left;
    }
    
    .wrapper {
        min-width: 1025px;
    }
    
    .one-column {
    padding: 10px 70px 30px 70px;
}
}
