/*
 Theme Name:   Bayfield
 Theme URI:    bayfield.ca
 Description:  Bayfield Custom Theme (standalone, merged from twh-bootstrap-starter)
 Author:       The West Harbour
 Author URI:   https://thewestharbour.com
 Version:      2.0.0
*/


@font-face {
    font-family: 'Kelson';
    src: url('kelson_lt-webfont.woff2') format('woff2'),
         url('kelson_lt-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Kelson';
    src: url('kelson_rg-webfont.woff2') format('woff2'),
         url('kelson_rg-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* General Settings */
    --bootstrap-spacer: 6px;
    --background-color: white;
    --text-color: #717073;
    --font-family: 'Kelson', sans-serif;
    --headline-color: white;
    --headline-font: 'Kelson', sans-serif;
    --headline-color: #717073;
    --headline-weight: 400;
    --headline-letter-spacing: -0.02em;
    --highlight-color: #717073;
    --link-color: #eba900;
    --link-decoration: none;
    --link-hover-color: #323e48;
    --link-hover-decoration: none;
    --button-color: #eba900;
    --button-hover-color: #323e48;
    --button-hover-opacity: 1;
    --button-border-radius: 0;
    --dark-section-color: #313e48;

    /* Header Settings */
    --header-background-color: transparent;
    --scrolled-header-background-color: white;
    --scrolled-header-shadow: 0 0 3px rgb(0 0 0 / 30%);
    --standard-logo-height: 3rem;
    --scrolled-logo-height: 2.5rem;
    --header-link-color: #eba900;
    --header-link-hover-color: #323e48;
    --header-link-hover-border-width: 0;
    --scrolled-header-link-color: #eba900;
    --scrolled-header-link-hover-color: #323e48;
    --header-link-weight: 700;
    --header-link-transform: uppercase;
    --dropdown-menu-color: #323e48;
    --dropdown-menu-link-color: white;
    --dropdown-menu-link-hover-color: #eba900;
    --dropdown-menu-link-hover-background-color: transparent;

    /* Fullscreen Nav Settings */
    --nav-background-rgba: #323e48;
    --nav-link-color: #eba900;
    --nav-link-hover-color: white;
    --nav-link-transform: uppercase;

    /* Banner Settings */
    --banner-overlay-rgba: transparent;
    --banner-text-color: #717073;
    --banner-button-color: #eba900;
    --banner-button-text-color: white;
    --banner-background-color: transparent;

    /* Footer Settings */
    --footer-logo-width: 2.75rem;
    --footer-text-color: white;
    --footer-background-color: #323e48;
    --footer-border-color: transparent;
    --footer-link-color: #dddddd;
    --footer-link-hover-color: white;
    --footer-link-decoration: none;
    --footer-link-hover-decoration: none;

    /* Brand Colors */
    --yellow: #f6a800;
    --blue: #313e48;
    --grey: #717073;
}

/*--------------------------------------------------------------
# Structure
--------------------------------------------------------------*/

#page::before{
    position: fixed;
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(images/background.jpg);
    z-index: -1;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    display: block;
}

.container{
    max-width: 86.25rem;
}

.content-box.wide{
	max-width: 86.25rem !important;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

body{
    line-height: 1.525em;
    letter-spacing: -0.01em;
}

h1{
    font-size: 2.625rem;
    line-height: 0.88em;
}

.entry-content h1{
    font-size: 2rem;
    line-height: 1.1707em;
    margin-bottom: 1.75rem;
    color: var(--blue);
}
h2{
    font-size: 1.75rem;
    line-height: 1.1707em;
    margin-bottom: 1.75rem;
    color: var(--blue);
}
h3{
    font-size: 1.5rem;
    line-height: 1em;
    margin-bottom: 1.75rem;
    color: var(--blue);
}
.has-medium-font-size{
    font-weight: 300;
    font-size: 1.75rem;
    line-height: 1.2222em;
}

.has-small-font-size{
    font-size: 0.875rem;
    line-height: 1.4286em;
}

#content p, 
#content ul, 
#content ol,
#content figure:not(.full-stretch), 
#content blockquote,
#content a.button{
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Interactions
--------------------------------------------------------------*/

.button{
    font-size: 1rem;
    line-height: 1.525em;
    font-weight: normal !important;
    text-transform: none !important;
}

.button.outline{
    border-width: 2px;
    border-color: #ACBFC7 !important;
}

.button.stripped{
    border-bottom: 0.8px solid var(--button-color);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/



/*--------------------------------------------------------------
# Banner
--------------------------------------------------------------*/

#page-sub-header{
    background: transparent !important;
}

#page-sub-header .page-header_inner{
	padding: 3rem 0 2rem 0;
    margin-top: calc(6.5rem + var(--standard-logo-height));
    margin-bottom: 1rem;
}

ul.sub-nav{
    padding-left: 0;
    margin-top: 2rem;
}

ul.sub-nav li{
    display: inline-block;
    list-style: none;
    font-size: 0.8rem;
    text-transform: uppercase;
}

ul.sub-nav li:not(:last-of-type){
    margin-right: 0.75rem;
}

ul.sub-nav li:not(:last-of-type)::after{
    content: '|';
    padding-left: 0.75rem;
}

.section-icon{
    text-align: right;
}

.section-icon img{
    max-width: 4rem;
    height: auto;
}

.featured-image{
    width: 100%;
    height: auto;
    max-height: 25rem;
    object-fit: cover;
    object-position: center center;
}

.split-banner{
    min-height: 30rem;
}

.split-banner_content{
    margin-block: 4rem;
    padding-bottom: 1rem !important;
    padding-top: 3rem !important;
	z-index:10;
}

.split-banner_content h2{
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1.5em;
}

.split-banner_content:not(.yellow) h2{
    color: var(--yellow);
}

.split-banner_content p{
    color: white !important;
}

.split-banner_content a.button:not(:hover){
    background-color: white !important;
    color: var(--blue) !important;
    border-color: white !important;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

#content.site-content {
    padding-top: 1rem;
  }

*.extra-small-top-space,
*.extra-small-vertical-space{
    margin-top: 2rem !important;
}

*.extra-small-bottom-space,
*.extra-small-vertical-space{
    margin-bottom: 2rem !important;
}

.dark-background.yellow:not(.background-stretch),
.background-stretch.dark-background.yellow::before{
    background-color: var(--yellow);
}

.dark-background.grey:not(.background-stretch),
.background-stretch.dark-background.grey::before{
    background-color: var(--grey);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#colophon .row:not(.inside-row) {
    width: 100%;
    margin-inline: auto;
  }

.site-footer .widget h2, 
.site-footer .widget h3, 
.site-footer .widget h4{
	color:#eba900;
	margin-top:0;
}

.footernav{
	color:#DDD!important;
	list-style-type: square!important;
	list-style-position: inside!important;
}

.footernav li a {
	color:#DDD!important;
    font-size:2em;	
}

.footer-logo{
    margin-bottom: 1.5rem;
}

.site-info{
    border-top: 1px solid #999;
    padding-top: 3rem;
    margin-top: 1.5rem;
}

/*--------------------------------------------------------------
# Homepage
--------------------------------------------------------------*/

.home .page-header_inner,
.home footer#colophon{
    display: none;
}

.home #content.site-content{
    padding-top: 9.25rem;
}

.home_directory-box > div{
    color: white;
    background-clip: padding-box;
    height: 100%;
}

.home_directory-box > div > a{
	display: block;
	width: 100%;
	height: 100%;
	padding: 4.75rem 2.25rem;
}

.home_directory-box *{
    color: white;
}

.home_directory-box h2{
    font-size: 4rem;
}

.home_directory-box img{
    max-width: 6rem;
    height: 5.25rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 0 !important;
}

.home_directory-box p{
    width: 100%;
    max-width: 18.25rem;
    margin-left: auto;
    margin-right: auto;
}

.home_directory-box:first-of-type > div{
    background: var(--yellow);
}

.home_directory-box:nth-of-type(2) > div{
    background: var(--blue);
}

.home_directory-box:nth-of-type(3) > div{
    background: var(--grey);
}

.home_message{
    border-top: 1px solid var(--grey);
    border-bottom: 1px solid var(--grey);
    padding-top: 2rem;
}

.home_message img{
    max-width: 2.5rem;
    height: auto;
    margin-bottom: 0 !important;
}
#content img, #content embed, #content .wp-block-embed__wrapper {
    margin-bottom: 1rem!important;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

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

    #page-sub-header .page-header_inner{
        margin-top: calc(var(--scrolled-logo-height) + 1rem);
    }

}

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

    .split-banner_content{
        margin-block: 0 !important;
        padding-inline: var(--bootstrap-spacer) !important;
    }

}

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

    .featured-image{
        height: 66.6667vw;
        max-height: none;
    }

}

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

    .split-banner .featured-image{
        position: absolute;
        max-width: none;
        min-height: 100%;
        max-height: 100%;
        width: calc(100% + 10rem);
        right: 0;
        z-index: 1;
    }
    
}

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

    body:not(.home) .page-header_inner > div > div,
    body:not(.home) #content #main{
        padding-inline: 2rem;
    }

}

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

    #masthead:not(.scrolled){
        padding-top: 3.75rem;
        padding-bottom: 2.5rem;
    }
    
    #masthead .navbar-nav > li > a{
        font-size: 0.875rem !important;
        padding-left: 1.875rem !important;
        padding-right: 1.875rem !important;
    }

}