/*
Theme Name:		Seniors HouseCalls 2020
Author:			CMS Web Solutions
Author URI:		http://cmswebsolutions.com
*/

/* questrial-regular - latin */
@font-face {
	font-family: 'Questrial';
	font-style: normal;
	font-weight: 400;
	src: local('Questrial Regular'), local('Questrial-Regular'),
		url('fonts/questrial-v12-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
		url('fonts/questrial-v12-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

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

html {
    font-size: 110%;
}

body {
	margin: 0 auto;
	font-family: 'Questrial', sans-serif;
	font-weight: 400;
	position: relative;
	color: #010101;
	background-color: #fffefe;
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	* {
		-webkit-animation-duration: 0.01ms !important;
		        animation-duration: 0.01ms !important;
		-webkit-animation-iteration-count: 1 !important;
		        animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

header, nav, main, footer,
iframe, embed, figcaption, figure, section, summary {
	display: block;
	position: relative;
	margin: 0 auto;
}

figure {
	display: table;
}

figcaption {
    display: table-caption;
	caption-side: bottom;
}

.inner {
	display: block;
	margin: 0 auto;
	padding: 0 1.5em;
	max-width: 65em;
	position: relative;
}

h1 {
	margin: .75em 0;
	color: #173052;
	font-weight: 600;
}

h2 {
	margin: 1.5em 0 .75em;
	color: #222;
	font-weight: 600;
}

h1 + h2 {
	margin: .25em 0 .75em;
}

h2 a {
	color: #222;
	-webkit-text-decoration-color: #aaa;
	text-decoration-color: #aaa;
}

h2 a:hover,
h2 a:focus {
	color: #333;
	-webkit-text-decoration-color: #222;
	text-decoration-color: #222;
}

h3 {
	margin: 1.5em 0 .75em;
	color: #222;
	font-weight: 600;
}

h4 {
	margin: 1.5em 0 .75em;
	color: #222;
	font-weight: 600;
}

li, p + p, p * {
	margin-top: 0;
}

ul[class],
ol[class] {
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

a {
	color: #173052;
	transition: color .1s;
}

a:not([class]) {
	-webkit-text-decoration-skip: ink;
	        text-decoration-skip-ink: auto;
}

a[href^="tel:"] {
	text-decoration: none;
}

a:hover,
a:focus {
	color: #ca1600;
}

:focus {
	outline: 2px solid #cbdce4;
}

a:active {
	transition: color 2s;
	color: blue;
}

a img {
	border: none;
	outline: none;
}

iframe,embed {
	max-width: 100%;
}

input,
textarea,
select {
	margin: 0;
	font: inherit;
}

button,
.wp-block-button__link,
.wp-block-button__link:visited {
	color: #fff;
	background-color: #173052;
	border: 1px solid #173052;
	border-radius: 4px;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.5;
	padding: .25em 1em;
	text-align: center;
	text-decoration: none;
}

button:hover,
button:focus,
.wp-block-button__link:hover, 
.wp-block-button__link:focus {
	color: #173052;
	background-color: #fff;
}

.hidden {
	position: absolute;
	left: -1000em;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	clip: rect(0,0,0,0);
	border: 0;
}

.clearfix {
	overflow: hidden;
	content: "";
	visibility: hidden;
	display: block;
	height: 1px;
	width: 1px;
	clear: both;
}

a.skip {
	position: absolute;
	top: 0;
	left: -1000em;
	background-color: #354c65;
	color: #fff;
	text-decoration: none;
	border-radius: 0 0 3px 3px;
}

a.skip:focus,
a.skip:hover {
	left: 1em;
	top: 0;
	padding: .5em 1em;
}

.logo {
	max-width: 300px;
	height: auto;
	margin: 1em auto;
	display: block;
	text-align: center;
}

nav {
	color: #fff;
	background-color: #173052;
	border-top: 1px solid #cbdce4;
	border-bottom: 1px solid #cbdce4;
}

nav .inner {
	padding: 0;
}

nav .mobile {
	transition: none;
	cursor: pointer;
	display: block;
	width: 100%;
	color: #fff;
	background-color: #173052;
	margin: 0 auto;
	padding: .25em 0;
	font-size: 1.25em;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	border: none;
	border-bottom: 1px solid #f3f3f3;
	border-radius: 0;
}

nav .mobile:hover,
nav .mobile:focus {
	color: #173052;
	background-color: #fff;
}

nav ul {
	width: 100%;
	margin: 0;
	padding-left: 0;
}

nav ul {
	display: none;
}

nav li {
	list-style: none;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	border-bottom: 1px solid #eee;
}

nav a {
	text-decoration: none;
	padding: .25em 0;
}

nav a {
	text-align: center;
	color: #fff;
}

.nav_trigger {
	color: #fff;
	background-color: transparent;
	margin: 0;
	padding: .5em .25em;
	border: none;
	border-radius: 0;
}

.nav_trigger span {
	display: inline-block;
	background: url(img/arrow-down.svg) bottom left no-repeat;
	width: 1em;
	height: 1em;
	margin-right: .25em;
}

nav a:hover,
nav a:focus,
nav a:active,
.current_page_ancestor .nav_trigger,
.nav_trigger:hover,
.nav_trigger:focus,
.nav_trigger:active {
	color: #173052;
	background-color: #fff;
}

.nav_trigger:hover,
.nav_trigger:focus,
.nav_trigger:active {
	border: none;
}

.current_page_ancestor .nav_trigger span,
.nav_trigger:hover span,
.nav_trigger:focus span,
.nav_trigger:active span {
	background: url(img/arrow-down_active.svg) bottom left no-repeat;
}

nav .open + ul {
	display: block;
}

nav .open + ul li {
	padding: .5em;
	text-align: center;
}

nav .open + ul li:hover,
nav .open + ul li:focus {
	background-color: #173052;
}

nav .sub-menu {
	background-color: #173052;
	min-width: 5em;
	transition: all 0.5s ease;
	display: none;
}

nav .sub-menu.open {
	display: block;
	position: relative;
}

nav .sub-menu.open li {
	display: block;
	position: relative;
	border-bottom: 1px solid #fff;
}

main .inner {
	padding: 1em 2.5em;
}

/* Default gallery */
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.gallery-item {
	margin: 1em;
}

@supports (display: grid) {
	.gallery {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: (minmax(260px, 1fr))[auto-fit];
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		grid-gap: 1em;
	}

	.gallery-item {
		margin: 0;
	}
}

.gallery-caption {
	margin: 0;
	text-align: center;
}

.gallery br {
	display: none;
}

.alignleft,img.alignleft {
	display: inline;
	float: left;
	margin: 0 1.5em 1.5em 0;
}

.alignright,img.alignright {
	display: inline;
	float: right;
	margin: 0 0 1.5em 1.5em;
}

.aligncenter,
img.aligncenter,
.wp-block-image .aligncenter {
	display: block;
	clear: both;
	margin: 0 auto 1.5em;
}

.wp-caption {
	max-width: 100%;
	position: relative;
	display: block;
}

.wp-caption img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wp-caption p.wp-caption-text {
	display: block;
	position: absolute;
	width: 100%;
	margin: 0;
	padding: .5em;
	left: 0;
	bottom: 0;
	color: #fff;
	background: rgba(0,0,0,0.7);
}

.has-blue-color {
	color: #173052;
}

.has-blue-background-color {
	background-color: #173052;
}

.has-red-color {
	color: #ca1600;
}

.has-red-background-color {
	background-color: #ca1600;
}

.has-black-color {
	color: #000;
}

.has-black-background-color {
	background-color: #000;
}

.has-white-color {
	color: #fff;
}

.has-white-background-color {
	background-color: #fff;
}

footer {
	margin-top: 2em;
	padding: 1em;
	width: 100%;
	color: #fff;
	background-color: #000;
}

footer h3,
footer a {
	color: #fff;
}

footer a:hover,
footer a:focus {
	color: #ca1600;
}

@media screen and (min-width: 37.5em) {
    .alignleft,img.alignleft {
        float: left;
        margin: 0 1.5em 1.5em 0;
    }
    
    .alignright,img.alignright {
        float: right;
        margin: 0 0 1.5em 1.5em;
    }
    
    .aligncenter,img.aligncenter {
        display: block;
        clear: both;
        margin: 1.5em auto;
	}
}


@media screen and (min-width: 56.25em) {

	header .inner {
		padding: .5em 1.5em;
	}

	.logo {
		margin: 0 1em 0 0;
		text-align: left;
	}
	
	nav {
		margin: .5em 0;
	}

	nav .inner {
		padding: 0 1.5em;
	}

	nav .mobile {
		display: none;
	}

	nav ul {
		display: flex;
		justify-content: space-between;
	}

	nav li {
		width: auto;
		border-bottom: none;
	}

	nav li {
		padding: 0;
	}

	nav a {
		display: block;
		padding: .5em;
		border-bottom: 2px solid transparent;
	}

	nav a:hover,
	nav a:focus {
		border-bottom: 2px solid #ca1600;
	}

	nav > li:first-of-type a {
		padding-left: 0;
	}

	nav > li:last-of-type a {
		padding-right: 0;
	}

	nav .sub-menu.open {
		position: absolute;
		z-index: 10;
		width: auto;
		min-width: 10em;
		background-color: #173052;
		box-shadow: 0 0 10px #363636;
	}

	nav .sub-menu.open .sub-menu.open {
		position: relative;
		left: 0;
		font-size: .9em;
	}

	nav .sub-menu.open li:hover,
	nav .sub-menu.open li:focus,
	nav .sub-menu.open .current_page_item {
		background-color: rgba(214, 214, 214, 0.95);
	}

	nav .sub-menu.open a {
		text-align: left;
	}

	nav .sub-menu.open a:hover,
	nav .sub-menu.open a:focus,
	.sub-menu.open .current_page_item a {
		border-bottom: 2px solid transparent;
	}

	.current_page_item:not(.menu-item-home) a,
	.current_page_ancestor .nav_trigger {
		color: #173052;
		background-color: #fff;
		border-bottom: 2px solid #ca1600;
	}

	footer .inner {
		display: inline-block;
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 3.5em;
	}
}