/*
Theme Name: JSAFCustomTheme
Theme URI: https://www.jsafroofing.com/
Author: J-SAF Roofing
Description: Custom theme cloned from the 2013 J-SAF Roofing ASP.NET site so the public pages look the same on desktop and scale on phones.
Version: 1.0.0
Text Domain: jsafcustomtheme
*/

body {
  font-family: arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 14px;
  margin: 0;
  padding: 0;
  background-image: url(images/bg.jpg);
  background-repeat: repeat;
}

h1 { font-size: 22px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

a.eightwht:link,
a.eightwht:visited {
  color: #FFFF00;
  font-size: 13px;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  text-decoration: none;
}
a.eightwht:active,
a.eightwht:hover {
  color: red;
  font-size: 13px;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  text-decoration: none;
}

.style4 { color: #0000FF; }

.jsaf-outer {
  width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
}

.jsaf-banner img {
  display: block;
  border: 0;
  width: 1100px;
  height: 230px;
}

/* Desktop nav — DevExpress-style bar */
.jsaf-nav-bar {
  background-color: #44599C;
  height: 35px;
}

.jsaf-nav {
  display: table;
  width: 100%;
  height: 35px;
  margin: 0;
  padding: 0;
  list-style: none;
  table-layout: fixed;
}

.jsaf-nav > li {
  display: table-cell;
  position: relative;
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid #6d7eb3;
}

.jsaf-nav > li:last-child {
  border-right: none;
}

.jsaf-nav > li > a {
  display: block;
  color: #fff;
  font-family: arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  line-height: 35px;
  height: 35px;
  padding: 0 8px;
}

.jsaf-nav > li:hover > a,
.jsaf-nav > li.is-current > a {
  background-color: #3a4d86;
}

.jsaf-nav ul {
  display: none;
  position: absolute;
  left: 0;
  top: 35px;
  min-width: 170px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #b9c3de;
  z-index: 200;
  text-align: left;
}

.jsaf-nav li:hover > ul {
  display: block;
}

.jsaf-nav ul a {
  display: block;
  color: #415798;
  font-family: arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 12px;
  height: auto;
  line-height: 16px;
  white-space: nowrap;
}

.jsaf-nav ul a:hover {
  background: #dbe6fc;
}

.jsaf-stripe {
  height: 3px;
  background-color: #dbe6fc;
  font-size: 0;
  line-height: 0;
}

.jsaf-content-cell {
  background-color: #fff;
  padding-top: 15px;
  vertical-align: top;
}

.jsaf-footer {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #fff;
  background-color: #4c73ce;
  height: 60px;
  text-align: center;
}

.jsaf-footer a.mail {
  color: #FF9933;
}

/* Contact panel — cloned from ContactControl.ascx */
.jsaf-contact-panel {
  background-color: #44599C;
  width: 320px;
  margin: 0 auto;
}

.jsaf-contact-panel table {
  width: 300px;
  color: #fff;
  text-align: center;
  margin: 10px auto;
  border-collapse: collapse;
}

.jsaf-contact-panel .row {
  height: 50px;
}

.jsaf-contact-panel input[type="text"],
.jsaf-contact-panel select {
  font-size: 16px;
  height: 27px;
  width: 260px;
  box-sizing: border-box;
  font-family: arial, Helvetica, sans-serif;
}

.jsaf-contact-panel input[type="text"]::placeholder {
  color: #4B73D3;
}

.jsaf-contact-panel .jsaf-btn {
  font-weight: bold;
  font-size: 16px;
  height: 30px;
  width: 120px;
  cursor: pointer;
  color: #5a3a00;
  background: #f5b942;
  border: 1px solid #d9a02e;
}

.jsaf-contact-panel .jsaf-btn:hover {
  background: #ffc85a;
}

.jsaf-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.jsaf-error {
  color: #ffd0d0;
  font-size: 13px;
  padding: 4px 8px;
}

.jsaf-nav-toggle,
.jsaf-nav-mobile {
  display: none;
}

/* Phones / tablets: keep desktop look until the 1100px layout no longer fits */
@media (max-width: 1120px) {
  .jsaf-outer {
    width: 100% !important;
    max-width: 1100px;
  }

  .jsaf-banner img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .jsaf-nav-bar {
    height: auto;
  }

  .jsaf-nav-desktop {
    display: none !important;
  }

  .jsaf-nav-toggle {
    display: block;
    width: 100%;
    background: #44599C;
    color: #fff;
    font-family: arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 44px;
    height: 44px;
    border: 0;
    cursor: pointer;
    text-align: left;
    padding: 0 16px;
  }

  .jsaf-nav-toggle:after {
    content: "\25BC";
    float: right;
  }

  .jsaf-nav-toggle.is-open:after {
    content: "\25B2";
  }

  .jsaf-nav-mobile {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #44599C;
    text-align: left;
  }

  .jsaf-nav-mobile.is-open {
    display: block;
  }

  .jsaf-nav-mobile a {
    display: block;
    color: #fff;
    font-family: arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 16px;
    border-top: 1px solid #6d7eb3;
  }

  .jsaf-nav-mobile .sub a {
    padding-left: 28px;
    font-size: 15px;
    color: #dbe6fc;
  }

  .jsaf-stack td,
  .jsaf-stack th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .jsaf-home-heading,
  .jsaf-home-heading h1,
  .jsaf-content-cell h1 {
    height: auto !important;
    margin: 12px 8px 20px;
    line-height: 1.35;
  }

  .jsaf-contact-panel {
    width: 100%;
    max-width: 320px;
  }

  .jsaf-footer {
    height: auto;
    padding: 12px 8px;
  }

  .jsaf-content-cell {
    padding: 12px 8px 20px;
  }

  .jsaf-content-cell img {
    max-width: 100%;
    height: auto;
  }
}
