/* Fonts */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Open-Sans-800.eot'); /* IE9 */
  src: url('../fonts/Open-Sans-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/Open-Sans-800.woff2') format('woff2'), /* Modern Browsers */
    url('../fonts/Open-Sans-800.woff') format('woff'), /* Modern Browsers */
    url('../fonts/Open-Sans-800.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/Open-Sans-800.svg#OpenSans') format('svg'); /* Legacy iOS */
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Open-Sans-500.eot'); /* IE9 */
  src: url('../fonts/Open-Sans-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/Open-Sans-500.woff2') format('woff2'), /* Modern Browsers */
    url('../fonts/Open-Sans-500.woff') format('woff'), /* Modern Browsers */
    url('../fonts/Open-Sans-500.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/Open-Sans-500.svg#OpenSans') format('svg'); /* Legacy iOS */
}

@font-face {
    font-family: 'Open Sans Fallback';
    src: local('Arial');
    size-adjust: 105%;
    ascent-override: 102%;
    descent-override: 26%;
    line-gap-override: 2%;
}

@font-face {
    font-family: 'ETmodules';
    font-display: swap !important;
}

/* Body */
body {
	font-family: 'Open Sans', 'Open Sans Fallback';
	--contrast: #b30017;
	--dark: #000000;
	--light: #ffffff;
	--green: #01ab6a;
	--yellow: #fbd465;
	--yellowlight: #fff5dd;
}

/* Highlight */
mark { background: var(--yellow); }
.wp-block-group.has-background {
    padding: 1.5em;
}

/* Headings */
h1, h2, h3 { padding-bottom: 20px; }
.et_pb_post_content h2,
.et_pb_post_content h3 { padding-top: 25px;}

/* Sidebar */
.et_pb_sidebar_0_tb_body .et_pb_widget  {
    padding: 0!important;
    margin: 0 0 25px !important;
}

.et_pb_sidebar_0_tb_body .et_pb_widget > h2  {
    padding: 0;
    margin: 0;
}

/* Link Hover */
.pagination a:hover,
.post-meta a:hover,
.et_pb_text a:hover,
.et_pb_post_content a:hover,
.et_pb_title_container a:hover,
.et_pb_blurb .et_pb_module_header a:hover,
.et_pb_blog_0_tb_body .et_pb_post .entry-title a:hover { text-decoration: underline; }

/* Homepage */
.hero-photo {
    position: relative;
    aspect-ratio: 16 / 9; 
}

.hero-photo .et_pb_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-photo .et_pb_image_wrap,
.hero-photo .et_pb_image img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-photo .et_pb_image img {
    width:100%;
    object-fit: cover;
}
@media (min-width: 981px) {
  /* Only force flex alignment on desktop views */
  .hero-row { display: flex !important; align-items: stretch !important; }
}


/* Photo Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { padding: 5px; font-size: 10px; line-height: 12px; background: #111; margin-top: 0; max-height: 34px; position: relative; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; display: flex; align-items: center; justify-content: center; }
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Featured Image */
.et_pb_title_featured_container img,
.et_pb_post_content .shadow img { border: solid 1px rgba(21,21,21,0.2); box-shadow: 2px 2px 0px rgba(21,21,21,0.15); }
.et_pb_title_featured_container img { margin-top: 10px; }

/* Blockquote */
.wp-block-quote { color: #444 !important; background: var(--yellowlight) !important; border-color: var(--yellow) !important; border-radius: 10px; padding: 20px 25px  !important;  margin: 1em 0  !important; }
.wp-block-quote p { text-align: left; padding-bottom: 20px; }
.wp-block-quote cite { text-align: right; display: block; margin-top: 20px; font-weight: bold; }

/* Checklist (home only) */
.home .et_pb_post_content ul,
.home .et_pb_text ul { margin: 0 !important; padding: 0 !important; }
.home .et_pb_post_content ul li,
.home .et_pb_text ul li { margin-bottom:15px; margin-left: 10px; list-style: none; line-height: 1.625em; }
.home .et_pb_post_content ul li:before,
.home .et_pb_text ul li:before { content: '\2714'; font-size: 1.6em; font-weight: bold; color: var(--green); margin-right: 5px; }
/* Checklist exclusions */
.home .et_pb_post_content .wp-block-gallery li:before { content: none; }

/* Contact Form 7 */
.wpcf7 { }
.wpcf7-spinner { display: block; margin: 0 auto; }
.wpcf7-recaptcha { margin-left: 10%; }
.wpcf7-response-output { color: #fff; }
.wpcf7 p { margin: 10px 0; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"] { height: 35px; }
.wpcf7 textarea { height: 175px;  }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select { width: 100%; max-width: 750px; font-size: 1.2em; border: solid 2px #ccc; background: var(--light); color: #333; padding: 25px 15px; margin-bottom: 5px !important; box-shadow: 2px 2px 0px 0px rgba(0,0,0,.2); }
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus { border: solid 2px #999; }
.wpcf7 input[type="submit"] { padding: 0.5em 1em; background: var(--contrast); text-transform: uppercase; font-size: 1.5em; color: var(--light); border: none; border-radius: 5px; cursor: pointer; transition: all 0.7s; }
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus { filter:brightness(0.9); }

/* Click to Call */
.ctc { display: none; z-index: 100000; position:fixed; bottom: 0; left: 0; background: var(--contrast); color: var(--light); width: 96%; margin-left: 2%; padding: 0.7em 0; border-top-right-radius: 20px; border-top-left-radius: 20px; font-size: 1.3em; text-align: center; box-shadow: 0 -2px 2px 0 rgba(0,0,0,.2); }
.ctc a { color: var(--light); font-weight: bold; }

/* Responsive Styles */
@media only screen and (max-width: 800px) {
	
}

/* Mobile Styles */
@media only screen and (max-width: 500px) {
	/* Photo Gallery */
	/*.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { max-height: 46px; }*/
	
 .ctc { display: block; }
}