/* =====================================================================
 * Bole & Associates - style.css
 * One stylesheet for the whole site. Order matters: later sections override
 * earlier ones, so add your own rules at the very bottom.
 * Class names follow BEM; docs/bem-name-map.txt lists every old WordPress
 * name next to its new one.
 *
 * Contents
 * Fonts: Source Sans Pro (self-hosted, latin)
 * Base theme (from the Genesis Sample theme)
 *    - HTML5 Reset
 *    - Box Sizing
 *    - Float Clearing
 *    - Typographical Elements
 *    - Headings
 *    - Objects
 *    - Forms
 *    - Tables
 *    - Site Container
 *    - Site Inner
 *    - Titles
 *    - Image alignment and captions
 *    - Widgets
 *    - Focus outline
 *    - Site Header
 *    - Logo and site title
 *    - Site Navigation
 *    - Menu keyboard focus
 *    - Main menu position
 *    - Entry Content
 *    - Sidebar
 *    - Site Footer
 *    - Media Queries
 *    - Print Styles
 * Logo size
 * Image alignment and figures
 * Page margins
 * Site look: page width, background photo, header layout
 * Static site components (replace WordPress plugins and inline styles)
 *    - Mission statement (was a fake item in the main menu)
 *    - Desktop drop-down menus also open for keyboard users
 *    - Content helpers (were inline style="" attributes)
 *    - Skip link
 *    - Project slider (Our Projects page; was the WP Carousel Pro plugin)
 *    - Contact form (was the Fast Secure Contact Form plugin)
 *    - Phone menu (built by js/main.js from #main-menu, shown below 960px)
 * ===================================================================== */

/* ===== Fonts: Source Sans Pro (self-hosted, latin) ===== */
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-pro-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-pro-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-pro-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-pro-700.woff2") format("woff2");
}


/* ===== Base theme (from the Genesis Sample theme) ===== */

/* --- HTML5 Reset --- */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: .67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
a {
  background-color: transparent;
}
strong {
  font-weight: bolder;
}
img {
  border-style: none;
}
input,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
input {
  overflow: visible;
}
[type=submit] {
  -webkit-appearance: button;
}
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
textarea {
  overflow: auto;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* --- Box Sizing --- */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* --- Float Clearing --- */
.entry::before,
.entry__content::before,
.site-nav::before,
.site::before,
.site-footer::before,
.site-header::before,
.site-body::before,
.widget::before,
.site-header__inner::before,
.site-nav__inner::before,
.site-footer__inner::before {
  content: " ";
  display: table;
}
.entry::after,
.entry__content::after,
.site-nav::after,
.site::after,
.site-footer::after,
.site-header::after,
.site-body::after,
.widget::after,
.site-header__inner::after,
.site-nav__inner::after,
.site-footer__inner::after {
  clear: both;
  content: " ";
  display: table;
}

/* --- Typographical Elements --- */
html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
body {
  background-color: #fff;
  color: #333;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  margin: 0;
  overflow-x: hidden;
}
input:focus,
input[type="submit"],
textarea:focus {
  transition: all 0.2s ease-in-out;
}
a {
  color: #0073e5;
  text-decoration: underline;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
a:focus,
a:hover {
  color: #333;
  text-decoration: none;
}
p {
  margin: 0 0 28px;
  padding: 0;
}
ul {
  margin: 0;
  padding: 0;
}
li {
  list-style-type: none;
}
hr {
  border: 0;
  border-collapse: collapse;
  border-bottom: 1px solid currentColor;
  clear: both;
  color: #eee;
  margin: 1.65em auto;
}
strong {
  font-weight: 700;
}
em,
i {
  font-style: italic;
}

/* --- Headings --- */
h1,
h2,
h3,
h4 {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 20px;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 20px;
}
.entry__content h4 {
  font-weight: 600;
}
.entry__content h4 {
  margin-top: 40px;
}

/* --- Objects --- */
img,
.figure {
  max-width: 100%;
}
img {
  height: auto;
  vertical-align: top;
}
figure {
  margin: 0;
}

/* --- Forms --- */
input,
textarea {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-size: 18px;
  font-weight: 400;
  padding: 15px;
  width: 100%;
}
input:focus,
textarea:focus {
  border: 1px solid #999;
  outline: none;
}
:-ms-input-placeholder {
  color: #333;
  opacity: 1;
}
::placeholder {
  color: #333;
  opacity: 1;
}
input[type="submit"] {
  background-color: #333;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  width: auto;
}
input[type="submit"]:focus,
input[type="submit"]:hover {
  background-color: #0073e5;
  border-width: 0;
  color: #fff;
}

/* --- Tables --- */
table {
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 40px;
  width: 100%;
  word-break: break-all;
}
tbody {
  border-bottom: 1px solid #eee;
}
td {
  line-height: 2;
  text-align: left;
  vertical-align: top;
}
td {
  padding: 0.5em;
}
tr {
  border-top: 1px solid #eee;
}


/* --- Site Container --- */
.site {
  animation: fadein 1s;
  word-wrap: break-word;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Site Inner --- */
.site-body {
  clear: both;
  margin: 0 auto;
  padding: 60px 30px 0;
}

/* --- Titles --- */
.entry__title {
  font-size: 30px;
  margin-bottom: 10px;
}
.widget__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* --- Image alignment and captions --- */
.u-align-center {
  display: block;
  margin: 0 auto 30px;
}
figcaption,
.figure__caption {
  font-size: 14px;
  font-weight: 600;
  margin-top: 0.5em;
  margin-bottom: 1em;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

/* --- Widgets --- */
.widget {
  margin-bottom: 40px;
}
.widget ul > li:last-of-type {
  margin-bottom: 0;
}
.widget ul > li {
  margin-bottom: 10px;
}
.widget ul {
  padding-left: 20px;
}
.widget ul > li {
  list-style-type: disc;
}
.widget ul > li:last-of-type {
  padding-bottom: 0;
}

/* --- Focus outline --- */
:focus {
  color: #333;
  outline: #ccc solid 1px;
}

/* --- Site Header --- */
.site-header {
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 0 30px;
}

/* --- Logo and site title --- */
.site-header__brand {
  float: left;
  padding-bottom: 25px;
  padding-top: 25px;
}
.site-header__brand {
  max-width: 350px;
  padding-bottom: 5px;
  padding-top: 5px;
  width: 100%;
}
.site-header__logo-link {
  display: block;
}
.site-header__brand img {
  width: auto;
}
.site-header__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0;
}
.site-header__tagline,
.site-header__title {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* --- Site Navigation --- */
.site-nav__menu {
  clear: both;
  line-height: 1;
  width: 100%;
}
.site-nav__menu .site-nav__item {
  display: block;
  float: none;
  position: relative;
}
.site-nav__menu a {
  color: #333;
  display: block;
  font-size: 15px;
  font-weight: 400;
  outline-offset: -1px;
  padding-bottom: 12px;
  padding-top: 12px;
  text-decoration: none;
}
.site-nav__menu a:focus,
.site-nav__menu a:hover,
.site-nav__menu .is-current > a,
.site-nav__menu .site-nav__sub .is-current > a:focus,
.site-nav__menu .site-nav__sub .is-current > a:hover {
  color: #0073e5;
  text-decoration: none;
}
.site-nav__menu .site-nav__sub,
.site-nav__menu .site-nav__sub a {
  width: 100%;
}
.site-nav__menu .site-nav__sub {
  clear: both;
  display: none;
  left: -9999px;
  margin: 0;
  opacity: 1;
  padding-left: 15px;
  position: static;
  z-index: 99;
}
.site-nav__menu .site-nav__sub a {
  background-color: #fff;
  font-size: 14px;
  position: relative;
  word-wrap: break-word;
}
.site-nav__menu .site-nav__item:focus,
.site-nav__menu .site-nav__item:hover {
  position: relative;
}
.site-nav__menu .site-nav__item:hover > .site-nav__sub {
  display: block;
  left: auto;
  opacity: 1;
}

/* --- Menu keyboard focus --- */
.site-nav__menu .site-nav__item:focus {
  position: static;
}
.site-nav__menu .site-nav__item > a:focus + ul.site-nav__sub {
  left: auto;
  opacity: 1;
}

/* --- Main menu position --- */
.site-nav {
  clear: left;
  padding-bottom: 15px;
  padding-top: 15px;
  width: 100%;
}

/* --- Entry Content --- */
.entry {
  margin-bottom: 40px;
}
.entry__content ul {
  margin-bottom: 30px;
  padding-left: 40px;
}
.entry__content ul > li {
  list-style-type: disc;
}

/* --- Sidebar --- */
.sidebar {
  font-size: 16px;
  line-height: 1.5;
}
.sidebar .widget {
  margin-bottom: 40px;
}

/* --- Site Footer --- */
.site-footer {
  background-color: #fff;
  border-top: 1px solid #eee;
  font-size: 15px;
  line-height: 1.5;
  padding: 30px;
  text-align: center;
}
.site-footer p {
  margin-bottom: 0;
}

/* --- Media Queries --- */
@media only screen and (min-width: 480px) {
  table {
    table-layout: auto;
    word-break: normal;
  }
}
@media only screen and (min-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }
  .site-nav__menu .site-nav__item {
    display: inline-block;
  }
  .site-nav__menu .site-nav__item:focus,
  .site-nav__menu .site-nav__item:hover {
    position: relative;
  }
  .site-nav__menu .site-nav__sub,
  .site-nav__menu .site-nav__sub a {
    width: 180px;
  }
  .site-nav__menu .site-nav__sub {
    border-top: 1px solid #eee;
    opacity: 0;
    padding-left: 0;
    position: absolute;
    transition: opacity 0.4s ease-in-out;
  }
  .site-nav__menu .site-nav__sub a {
    border: 1px solid #eee;
    border-top: 0;
    padding-bottom: 15px;
    padding-top: 15px;
  }
  .site-nav {
    clear: none;
    float: right;
    width: auto;
  }
  .site-nav .site-nav__menu a {
    padding-left: 15px;
    padding-right: 15px;
  }
  .site-body {
    max-width: 1140px;
  }
  .content {
    float: left;
    width: 65%;
  }
  .sidebar {
    float: right;
    width: 30%;
  }
  .entry {
    margin-bottom: 60px;
  }
}

/* --- Print Styles --- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    color: #333 !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
  }
  a[href^="#"]::after {
    content: "";
  }
  img,
  tr {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
 @page {
		margin: 2cm 0.5cm;
	}
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  .content {
    width: 100%;
  }
  input,
  textarea,
  .site-nav,
  .sidebar {
    display: none !important;
  }
  .site-header__brand {
    text-align: center;
    width: 100%;
  }
  .site-body {
    padding-top: 0;
    position: relative;
  }
  h1,
  h2,
  h3,
  h4 {
    orphans: 3;
    page-break-after: avoid;
    page-break-inside: avoid;
    widows: 3;
  }
  img {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  table {
    page-break-inside: avoid;
  }
  ul {
    page-break-before: avoid;
  }
}

/* ===== Logo size ===== */
.site .site-header__logo-link {
  aspect-ratio: 250/0;
}
.site .site-header__brand {
  max-width: 250px;
}

/* ===== Image alignment and figures ===== */
.u-align-center {
  clear: both;
}
:where(figure) {
  margin: 0 0 1em;
}

/* ===== Page margins ===== */
:where(body) {
  margin: 0;
}
body {
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}

/* ===== Site look: page width, background photo, header layout ===== */
.site {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-wrap: wrap;
  align-content: center !important;
  justify-content: center;
}
.site-footer {
  width: 100%;
  max-width: 1140px;
  display: flex;
  justify-content: center;
}
.site-header__logo {
  float: left;
  width: 240px !important;
  margin-top: 15px;
}
.site-header {
  width: 100%;
  max-width: 1140px;
  margin-top: 10px;
  height: 168px;
  display: flex;
  justify-content: center;
}
.site-nav {
  margin-top: -100px !important;
}
body {
  background-image: url("../images/MissionHorizon.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}
.site-body {
  background-color: white !important;
  /* Full width (up to 1140px) like the header and footer. Without it the box
     shrinks to its content inside the flex .site, so short pages such as
     Downloads came out narrower than the header. */
  width: 100%;
}
.site-header__mission {
  width: 245px;
  text-align: right;
  float: right;
  font-size: 12.4px;
  vertical-align: top;
  text-decoration: none;
  font-family: "Verdana";
  line-height: normal;
}
.site-header__mission:hover {
  text-decoration: none;
}

/* ===== Static site components (replace WordPress plugins and inline styles) ===== */

/* --- Mission statement (was a fake item in the main menu) --- */
.site-header {
  position: relative;
}
.site-header__mission {
  width: 245px;
  color: #333;
  font-family: Verdana, sans-serif;
  font-size: 12.4px;
  line-height: normal;
  text-align: right;
}
.site-header__mission p {
  margin: 0 0 28px;
  font-weight: 500;
}
@media only screen and (min-width: 960px) {
  .site-header__mission {
    position: absolute;
    top: 48px;
    right: 45px;
  }
  .site-header > .site-header__inner,
  .site-header > .site-nav__inner,
  .site-header > .site-footer__inner {
    width: 100%;
  }
  .site-nav {
    margin-right: 278px;
  }
  .site-nav__menu {
    padding-top: 90px;
  }
}

/* --- Desktop drop-down menus also open for keyboard users --- */
.site-nav__menu .site-nav__item:focus-within > .site-nav__sub {
  display: block;
  left: auto;
  opacity: 1;
}

/* --- Content helpers (were inline style="" attributes) --- */
.u-underline {
  text-decoration: underline;
}
.u-text-center {
  text-align: center;
}
.service-summary {
  margin-left: 15px;
  margin-bottom: 10px;
}
.intro-media {
  margin-bottom: 10px;
  min-height: 260px;
}
.u-image-inset {
  padding-right: 15px;
  padding-top: 10px;
}
.u-float-left {
  float: left;
}
.figure--440 {
  width: 440px;
  max-width: 100%;
}
.two-col__left {
  width: 50%;
  float: left;
}
.two-col__right {
  width: 49%;
  float: right;
}
.cert-table {
  width: 90%;
}
.cert-table td {
  width: 33%;
}
.rule {
  color: #ddd;
  background-color: #ddd;
  height: 1px;
}
.entry__content .service-list {
  margin-left: 40px;
}
/* Downloads page: list starts at the heading's left edge (bullets just inside it) */
.entry__content .download-list {
  padding-left: 1.2em;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 15px 20px;
  background: #fff;
  color: #333;
  font-size: 16px;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* --- Project slider (Our Projects page; was the WP Carousel Pro plugin) --- */
.project-slider {
  position: relative;
  padding: 10px 35px 85px 55px;
}
.project-slider__viewport {
  overflow: hidden;
}
.project-slider__track {
  display: flex;
  transition: transform 0.6s ease;
}
.project-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 20px 0 0;
  border: 1px solid #e5e5e5;
  background: #fff;
  text-align: center;
}
.project-slider__image img {
  display: block;
  margin: 0 auto;
}
.project-slider__caption {
  padding: 15px 20px 7px;
}
.entry__content .project-slider__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.project-slider__title a {
  color: #444;
  text-decoration: none;
}
.project-slider__title a:hover,
.project-slider__title a:focus {
  color: #178087;
}
.entry__content .project-slider__excerpt {
  margin: 0 0 15px;
  color: #444;
  font-size: 14px;
  line-height: 24px;
}
.project-slider__more {
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border: 1px solid #004600;
  background: #004600;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.project-slider__more:hover,
.project-slider__more:focus {
  background: #fff;
  color: #004600;
}
.project-slider__arrow {
  position: absolute;
  top: 340px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 40px;
  line-height: 26px;
  cursor: pointer;
}
.project-slider__arrow:hover,
.project-slider__arrow:focus {
  background: transparent;
  color: #178087;
}
.project-slider__arrow--prev {
  left: 10px;
}
.project-slider__arrow--next {
  right: 0;
}
.project-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
}
.project-slider__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.project-slider__dot:hover,
.project-slider__dot:focus,
.project-slider__dot.is-active {
  background: #178087;
}

/* --- Contact form (was the Fast Secure Contact Form plugin) --- */
.contact-form {
  max-width: 555px;
}
.contact-form__note {
  margin-bottom: 0;
}
.contact-form__field {
  padding-top: 5px;
}
.contact-form__field label {
  display: block;
}
.contact-form__field input,
.contact-form__field textarea {
  display: block;
  width: 100%;
  max-width: 500px;
}
.contact-form__field textarea {
  height: 120px;
}
.contact-form__submit {
  margin-top: 20px;
}
.contact-form__trap {
  position: absolute;
  left: -9999px;
}
.contact-form__error {
  display: block;
  color: #b00020;
  font-size: 15px;
}
.contact-form .is-invalid {
  border-color: #b00020;
}
.contact-form__status {
  margin-top: 15px;
}
.contact-form__status.is-success {
  color: #004600;
}
.contact-form__status.is-error {
  color: #b00020;
}

/* --- Phone menu (built by js/main.js from #main-menu, shown below 960px) --- */
.phone-menu__toggle,
.phone-menu {
  display: none;
}
@media only screen and (max-width: 959px) {
  .site,
  .site-header,
  .site-body,
  .site-footer {
    width: 100%;
    min-width: 0;
  }
  .site-header {
    display: block;
    height: auto;
    padding: 0 20px 15px;
  }
  .site-nav {
    margin-top: 0 !important;
  }
  .site-header__mission {
    clear: both;
    width: auto;
    padding-top: 10px;
  }
  .site-header__mission p {
    margin-bottom: 10px;
  }
  .has-js .site-nav #main-menu {
    display: none;
  }
  .phone-menu__toggle {
    display: block;
    position: absolute;
    top: 30px;
    right: 20px;
    width: 46px;
    height: 40px;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
  }
  .phone-menu__toggle:hover,
  .phone-menu__toggle:focus {
    background: #f5f5f5;
  }
  .phone-menu__bar {
    display: block;
    height: 3px;
    margin: 3px 0;
    border-radius: 2px;
    background: #333;
  }
  .phone-menu {
    display: none;
    border-top: 1px solid #eee;
  }
  .phone-menu.is-open {
    display: block;
  }
  .phone-menu__list,
  .phone-menu__sub {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .phone-menu__list a {
    display: block;
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 16px;
    text-decoration: none;
  }
  .phone-menu__list a[aria-current="page"],
  .phone-menu__list a:hover,
  .phone-menu__list a:focus {
    color: #0073e5;
  }
  .phone-menu__sub {
    display: none;
  }
  .phone-menu__sub a {
    padding-left: 25px;
  }
  .is-open > .phone-menu__sub {
    display: block;
  }
  .phone-menu__parent::after {
    content: " ▾";
  }
  .two-col__left,
  .two-col__right {
    width: 100%;
    float: none;
  }
  .project-slider {
    padding: 0 0 30px;
  }
  .project-slider__arrow {
    display: none;
  }
  .project-slider__image img {
    max-width: 100%;
    height: auto;
  }
}
