/*
    Theme Name: sethwjames
    Theme URI: https://www.hamiltrowebsitedesign.com
    Description: Expansion of HWD BASe THEME customized for Seth W. James website.
    Version: 1.0
    Author: hamiltro
*/

/* Breakpoints: 600 - 768/769 - 992 - 1200 w side-pad 4% */

/* HTML / FONTS
------------------------------------------------------------------------------------*/
html {
  font-size: 24px;
}
@media (max-width: 2048px) {
  html { font-size: 17px;}
}

@media (max-width: 900px) {
  html { font-size: 15px; }
}
@media (max-width: 400px) {
  html { font-size: 13px; }
}
/* From here on, use rems (or % or vh) for divs and ems for font-sizes within divs) */

html .clamp {font-size: 16px;}

@font-face {
    font-family: 'Tresillian Script Std';
    src: url('./fonts/TresillianScriptStd-Light.woff2') format('woff2'),
        url('./fonts/TresillianScriptStd-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


@font-face {
	font-family: 'FuturaPT';
	src: url('./fonts/FuturaPT-Light.eot');
	src: url('./fonts/FuturaPT-Light.eot?#iefix') format('embedded-opentype'),
		url('./fonts/FuturaPT-Light.woff') format('woff'),
		url('./fonts/FuturaPT-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display:swap;
}

/* PALETTE / VARIABLES
*****************************************/
:root {
	--color: #666;
	--color-a: #333;
	--color-a-button: BLACK;
	--color-a-button-background: WHITE;
	--color-a-button-border: BLACK;
	--color-a-button-hover: WHITE;
	--color-a-button-background-hover: #13366b;      /* new dark blue */
	--color-a-button-border-hover: #000;      /* new dark blue */
	--color-a-hover: #7d553c;
	--color-accent1: rgba(15,240,0,1.0); /* RED #ff0000 */
	--color-accent2: rgba(136,136,136,1.0); /* GREY #888888 */
	--color-background: WHITE;
	--color-border-subtle: TRANSPARENT;
	--color-currentPageLink: #FFF;
	--color-editLink: #000000;
	--color-footer: #CCC;
	--color-footer-a: #CCC;
	--color-footer-a-hover:#FFF;
	--color-footer-background: #13366b;      /* new dark blue */
	--color-footer-border: #888;
	--color-footer-credit: #CCC;
	--color-footer-credit-a:#59b9ad; 	
	--color-footer-credit-a-hover:#FFF;
	--color-form-input-border: TRANSPARENT;
	--color-form-button-background: TRANSPARENT;
	--color-form-button-text: TRANSPARENT;
	--color-form-button-bg-hover: TRANSPARENT;
	--color-hero-statement: #999;
	--color-mainNav-text-link: #FFF;
	--color-mainNav-text-link-hover: WHITE; /*#2062c5;*/
	--color-mob-menu-li-background-color:TRANSPARENT;
	--color-mob-menu-li-border: TRANSPARENT;
	--color-navbar-wrapper-background: #13366b;      /* new dark blue */  /*#bebdba;        */
	--color-outline: #DDD; /* tabbing */
	--color-overBanner: #FFFFFF;
	--color-pageRowHeader: GREY;
	--color-pageTitle: #2062c5;      /* new med blue */
	/*--color-readMore-a: #666666; - in case it needs to be different from other buttons
	--color-readMore-a-background: #DBE9F3;
	--color-readMore-a-border: #DBE9F3;
	--color-readMore-a-hover: #616161!important;
	--color-readMore-a-hover-background: #CDDBE5;
	--color-readMore-a-hover-border: #CDDBE5;*/
	--color-siteSlogan: BLACK; 
	--color-siteTitle: #2062c5;          /* new bright blue */
	--color-siteTitle-hover: GREY; /* GREY */
	--color-siteTitle-shadow-hover: TRANSPARENT;
	--color-icon-style: #744b37;
	--color-icon-style-hover: rgba(116,56,27, 1.0); /* #74381b */
	--color-sub-menu-li-background: rgba(238,238,238,0.98);
	--color-sub-menu-li-background-hover: rgba(243,243,243,0.98);
	--color-sub-menu-li-border: rgba(209, 209,209,0.25);
	--color-wpcf7-sent: #59b9ad;
	--font-body: 'Open Sans', sans-serif; 
	--font-nav:   'Tresillian Script Std','FuturaPT', 'Open Sans', sans-serif;
	--font-quote: Baskerville, 'Palatino Linotype','Century Schoolbook L', 'Times New Roman', serif;
	--font-readMore:  'FuturaPT', 'Open Sans', sans-serif;
	--font-siteTitle:  'Tresillian Script Std','FuturaPT', Georgia, 'Open Sans', sans-serif;
}

/* SCREENSIZE TESTER (for: template-parts/screensize.php; change breakpoints as needed)
*****************************************/
p.screensize {display: none;} /* BLOCK FOR TESTING; NONE FOR LIVE */
p.screensize	{font-size: .5em; padding: 4px 10px;margin:0;max-width: 100%;text-align: right; background-color: #fff;}
@media (max-width: 768px) {p.screensize	{color: red;}}
@media (max-width: 992px) {p.screensize	{color: orange;}}
@media (min-width: 993px) {p.screensize	{color: green;}}


/* BREAKPOINTS: 600 - 768/769 - 991/992 - 1200 w side-pad 4%
****************************************/

@media (min-width:800px) {
	.flexContainer {flex-direction: row;}
	.mobileOnly {display:none;}
	.desktopOnly {display:block;}
	.flex-col-11 {width: 91.7%;padding: 0 1%;}
	.flex-col-10 {width: 83.3%;padding: 0 1%;}
	.flex-col-9 {width: 75%;padding: 0 1%;}
	.flex-col-8 {width: 66.7%;padding: 0 1%;}	
	.flex-col-7 {width: 58.3%;padding: 0 1%;}
	.flex-col-6 {width: 50%;padding: 0 1%;}
	.flex-col-5 {width: 41.7%;padding: 0 1%;}
	.flex-col-4 {width: 33.3%;padding: 0 1%;}
	.flex-col-3 {width: 25%;padding: 0 1%;}
	.flex-col-2 {width: 16.7%;padding: 0 1%;}
	.flex-col-1 {width: 8.3%;padding: 0 1%;}
}

/* LAYOUT (site specific)
***********************************************/
section{}
.sectionInner {
	padding: 2.5rem 0;
}
.wrapper{
	margin: 0 auto;
	padding: 0 4%;
}
.container {
	width: 100%;
	max-width: 70rem;
}

section.footer {min-height: 120px;}
section.footer .sectionInner { padding: 3rem 4% 1rem 4%; }

.mainContent	{min-height: calc(100% - 60px);}

.row.nothingHere	{ /*404*/
	width: 700px;
	max-width: 100%;
	margin: 10% auto 0;
	text-align: center;
}

.one-col, .two-col	{
	margin: 0 auto;
	width: 65rem;
	max-width: 100%;
}
.two-col {width: 70rem;}

/* NAVBAR / Wrapper
------------------------------------------------------ */
/*
.navbar-wrapper { 
	min-height: 60px;
	padding: calc(1vh + 1.8rem) 0 1vh 0;  
}
*/

/*
.navbar-wrapper .container	{
	max-width: 92%;
}
*/

#navbar{}
.navbar{}
.navbar.flexContainer {}


/* NAVBAR / Site Title 
------------------------------------------------------ */
.siteTitle	{
	font-family: var(--font-siteTitle);
	letter-spacing: .08em;	
}


/* NAVBAR / Main Navigation
------------------------------------------------------ */
.mainNavigation {}
.mainNavigation.flexItem {
}

.navbar-icon {}
.navbar-toggle {}
span.icon-bar {}

.navbar-collapse {}
.menu-main-navigation-container ul.nav.navbar-nav>li.menu-item>a{
    font-size: 1.1em;
    letter-spacing: 0.09em;
    padding: 0 10px 0 0.4em;
    padding: 0;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 3px solid var(--color-mainNav-text-link);
    border-bottom: 3px solid transparent;
}


.menu-main-navigation-container ul.nav.navbar-nav>li.menu-item>a:hover	{
	/*text-shadow: .3px .3px 1px var(--color-mainNav-text-link-hover);*/
	border-bottom: 3px solid var(--color-mainNav-text-link-hover);
}

@media only screen and (min-width: 992px)	{
	li.current_page_item a,
	.menu-main-navigation-container ul.nav.navbar-nav>li.menu-item.current_page_item>a	{
		color: var(--color-mainNav-text-link);
		border-bottom: 3px solid var(--color-mainNav-text-link);
		border-bottom: 3px solid transparent;
		cursor: default;
	}
}
.sub-menu {
	font-size: 0.8em;	
	text-transform: uppercase;
	width: 180px;
}

/*
@media (max-width: 992px)	{
	.sub-menu	{width: 100%;}
}
*/

/* swj CUSTOM NAVBAR
------------------------------------------------------ */

.navbar-wrapper {
    border-top: 1px solid #adadac;
}

.navbar {
    justify-content: center;
}

.menu-main-navigation-container {
    width: 100%;
}

#menu-main-navigation {
    width: 100%;
}

.navbar-nav > li {
    flex-basis: 33.33%;
    padding: .8em 1em 1.1em;
    height: auto;
}



.banner-image p {
    text-align: center;
    padding: 1em;
    max-width: none;
    margin: 0px;
}

.pageTitle {
    font-size: 1.5em;
    padding: 1em;
}

/* HTML / headers in general
------------------------------------------------------ */
h1,h2,h3,h4,h5,h6,p,figure,figure.wp-block-image {
	line-height: 1.4em;
	max-width: 52rem;
}

.mainContent p a	{
	text-decoration: underline;
}

p.readMore	{
	text-align: right;
	margin-top: 1em;
}

.mainContent p a.button	{
	text-decoration: none;
	font-weight: bold;
}

.pageTitle,
.sectionHeader,
.rowHeader {
	font-size: 2em;
	font-weight: normal;
	/*padding: 1.5em 0 2em 0;	*/
	padding: 0;
}

.headerBorder	{
	margin: 0 auto 50px;
	content: url('/wp-content/themes/sethjames/images/decorative-underline.png');
	width: 445px;
	max-width: 90%;
}

.headerBorder	img	{
	width: 100%;
	height: auto;
}

.postTitle	{
	font-size: 1.8em;
}

.pageTitle,
.sectionHeader {text-align: center; }

a.button     {
	padding: 8px 20px;
	border-radius: 2px;
}
  
.wp-block-image figcaption 	{
	font-size: .8em;
	margin-top: .1em !important;
}

.mainContent ul,
.mainContent ol {
	margin: 1.8rem auto;
	max-width: 44rem;
	padding-left: 1.4rem;
	width: 90%;
}

.mainContent ul li,
.mainContent ol li {
	margin-bottom: 1.5rem;
}

p.entry-date	{
	font-size: .9em;
	margin-top: -16px;	
}

img	{
	box-shadow: 3px 3px 7px rgb(0,0,0,0.3);
}

/* full cover background images
------------------------------------------------------------------------------------*/

section.bannerImage	{
	background-image: url('/wp-content/themes/sethjames/images/SethJamesBanner-04.jpg');
	background-image: url('/wp-content/themes/sethjames/images/SethJamesBanner-05.jpg');
	height: 300px;
	max-height: 30vw;
}

section.bannerImage h1	{
	position: absolute;
	width: 100%;
	max-width: 100%;
	text-align: center;
	font-size: clamp(1.3rem, 2vw + .6rem, 2.6rem);
	margin-top: 1.1vw;
	color: var(--color-siteTitle);
}

@media (max-width: 450px)	{
	section.bannerImage h1	{ margin-top: .3vw;}
}

@media (min-width: 1921px)	{
	section.bannerImage	{height: 26vw;}
	section.bannerImage h1	{margin-top: 1.8vw;}
}

/* FOOTER
------------------------------------------------------------------------------------*/

/*
section.footer	{
	line-height: 1.2rem;
	padding: 30px 15px 0px;
	text-align: center;
}
*/

@media (max-width: 600px){
	.footer .flexContainer {flex-direction: column;}
	.footer .flexContainer .flexItem1 {order: 2; text-align: center;  width: 98%; }
	.footer .flexContainer .flexItem2 {order: 3; text-align: center; width: 98%; }
	.footer .flexContainer .flexItem3 {order: 1; text-align: center; width: 98%; }


	p.copyright,
	p.credit	{
		text-align: center;
	}
}
@media (min-width: 601px) {

	.footer .flexContainer .flexItem3 {justify-content: right;}
	
	p.copyright,
	p.credit	{
		text-align: left;
	}
	
	p.credit	{
		padding-left: 6vw;
	}

}


/*FOOTER / CONTACT FORM
------------------------------------------------------ */

.footer-head {
    text-align:center;
}

.wpcf7-form-control{
    padding: 5px;
    width: 100%;
}

.wpcf7-submit {
    width: auto;
    float: left;
}

textarea, input	{
	font-family: var(--font-body);
}

.footer textarea	{
	overflow: auto;
}

.footer a.button {
color: WHITE;
background-color: #c576f8;
background-color: var(--color-footer-credit-a);
}

.footer a.button:hover 	{color: BLACK; cursor: pointer;}
.footer a.button:hover 	{background-color: WHITE;}
.footer a.button:hover 	{border-color: BLACK;}



/*MODAL STUFF FOR CONTACT FORM 
------------------------------------------------------ */

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 80%;
	max-width: 630px;
	min-width: 320px;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: rgba(40,43,49,.5);
	-webkit-transition: all .3s;
	transition: all .3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

.md-content {
    background-color: #fff;
    padding: 1em;
    border-radius: 8px;
}

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
	-webkit-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	opacity: 0;
	-webkit-transition: all .3s;
	transition: all .3s;
}

.md-show.md-effect-1 .md-content {
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

.pop-header {
    display:flex;
    justify-content: space-between;
}

a.button,
.pop-content input,
.wpcf7-submit,
.wpcf7-form-control	{
	padding: 8px 16px;
}

#md-close {
    cursor: pointer;
}

a.button {
	text-transform: uppercase;	
	font-size: 1.1em;
}

a.button#openPopup	{
	margin-top: 20px;
}

/*SINGLE PAGE NAV
------------------------------------------------------ */

#nav-single .left,
#nav-single .right	{
	width: 50%;
	margin-bottom: 20px;
	font-size: .9em;
}

#nav-single .right	{
	text-align: right;
}

.page-blog #nav-single .right	{
	width: 100%;
}

#nav-single a	{
	text-decoration: none;
}