/*
Theme Name: Halton Legal
Author: Dunham Web
Author URI: https://dunhamweb.com/
Description: A custom theme for Halton Community Legal Services
Version: 1.1.0
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
/*#main>section:nth-child(2) {
    padding-top: 0;
}
#main>section:nth-child(1) {
    padding-bottom: 0;
}
#main.home>section:nth-child(2) {
    padding-top:1em;
}*/
ul.menu {
  margin-bottom: 2em;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/*END RESET*/

* {
  margin: 0;
  border: none;
  outline: none;
  background: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
hr {
  border: 1px rgba(235, 235, 235, 1) solid;
  margin: 20px 0;
}

body {
  font-size: 62.5%;
  font-family: "Noto Sans", sans-serif;
  color: #1f1f1f;
}
a {
  color: #1f1f1f;
}
a:hover {
  opacity: 0.8;
}
p,
ul,
dl {
  font-size: 1.6em;
  margin-bottom: 1em;
}
p:last-child,
ul:last-child {
  margin-bottom: 0;
}
ul ul {
  font-size: inherit;
  /*margin-bottom: 0;*/
}
/*.gform_wrapper.haltonForm_wrapper, .gform_wrapper.haltonForm_wrapper ul  {
	font-size: 16px;
}*/
body
  .gform_wrapper.haltonForm_wrapper
  ul
  li.field_description_below
  div.ginput_container_checkbox,
body
  .gform_wrapper.haltonForm_wrapper
  ul
  li.field_description_below
  div.ginput_container_radio {
  margin-top: 0;
}
.gform_wrapper.haltonForm_wrapper .gfield_checkbox li,
.gform_wrapper.haltonForm_wrapper .gfield_radio li {
  margin-bottom: 4px;
}
.gform_confirmation_message {
  font-size: 20px;
}
.private input[type="submit"] {
  background-color: #f7d70c;
  border: 1px solid #f7d70c;
  color: #01305c;
  font-size: 18px;
  line-height: normal;
  padding: 8px 17px;
  transition: all 0.5s ease;
  text-decoration: none;
  display: inline-block;
  width: auto;
  margin: 16px 16px 0 0;
}
dt {
  font-weight: bold;
}
ul.menu {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
h1 {
  font-size: 3em;
  margin-bottom: 1em;
}
h2 {
  font-size: 1.6em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
h2:not(:first-child) {
  margin-top: 2em;
}
h3,
h4,
h5 {
  font-size: 1.6em;
  margin: 0;
  font-weight: 400;
}
h4,
h5 {
  font-size: 1.4em;
}
.flex {
  display: flex;
}
.flex li.boxed {
  width: 32%;
  padding: 20px;
  display: flex;
  margin: 0;
}
.flex li.boxed img {
  margin-right: 10px;
}
.flex li.boxed img a {
  padding-left: 10px;
  width: 50%;
}
.relatedInitiatives p {
  font-size: 90%;
  margin: 0;
}

ul.flex {
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: space-between;
}
.flex .col2 {
  width: 50%;
}
.flex .col2:first-child {
  margin-right: 20px;
}
.legalHealthCTA {
  /*margin-top:5px;*/
  color: #01305c;
   background-image: linear-gradient(#F7E59B, #F2DE8B, #F9DE6C);
}
.legalHealthCTA:not(:last-child) {
  margin-bottom: 1em;
}
.legalHealthCTA .inner {
  position: relative;
  padding-right: 120px;
}
.legalHealthCTA .inner:after {
  content: url("/wp-content/themes/haltonlegal/images/lhc-graphic-100x95-brown.png");
  position: absolute;
  top: calc(50% - 47px);
  right: 0;
}

header {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 15px auto;
}
.logo {
  order: -1;
  padding: 10px;
  width: 300px;
}
header .contact {
  align-self: flex-end;
}
header .contact p {
  margin: 0;
  padding: 10px;
  text-align: right;
  margin-bottom: 10px;
}
header,
header a {
  color: #01305c;
}
nav {
  background: #01305c;
  border-bottom: 1px #ffffff solid;
}
.menu-orange-block p {
  font-weight: bold;
}
.menu-orange-block h4 {
  color: white;
  font-weight: bold;
}
.phone {
  font-size: 1.2em;
}
.logo img {
  width: 100%;
  height: auto;
}
.home-banner {
  position: relative;
  /* background-attachment: fixed; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 200px;
}
/*img.banner {
	width: 100%;
	height: 400px;
	max-width: 1200px;
	margin: 0 auto;
	display: block;
	object-fit: cover;
}*/
img {
  max-width: 100%;
  height: auto;
}
img.banner {
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  width: 100%;
  position: relative;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}
.banner-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 100%;
}
#main.home .content,
#main.initiative .content,
.dkBlue {
  color: white;
  background-color: #01305c;
}
#main.home .content a,
#main.initiative .content a,
.dkBlue a {
  color: white;
}
#main.home .content a:hover,
#main.initiative .content a:hover,
.dkBlue a:hover {
  opacity: 0.8;
}
#main.lhc {
  background-color: rgba(163, 104, 0, 0.12);
}
#main.private,
#main.public {
  background-color: #eef3f8;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
}
section,
.section {
  padding: 20px 30px;
}
section.content {
  padding-top: 30px;
  padding-bottom: 30px;
}

.boxed,
dl {
  padding: 20px;
  margin: 20px 0;
  -webkit-box-shadow: 0px 0px 3px 3px rgba(235, 235, 235, 1);
  -moz-box-shadow: 0px 0px 3px 3px rgba(235, 235, 235, 1);
  box-shadow: 0px 0px 3px 3px rgba(235, 235, 235, 1);
}
.outlined {
  padding: 20px;
  margin: 2em 0;
  border: 2px #f7d70c solid;
}
.btn,
.gform_wrapper.haltonForm_wrapper .gform_footer input.button,
.gform_wrapper .gform_footer input[type="submit"] {
  background-color: #f7d70c;
  border: 1px solid #f7d70c;
  color: #01305c;
  font-size: 18px;
  line-height: normal;
  padding: 8px 17px;
  transition: all 0.5s ease;
  text-decoration: none;
  display: inline-block;
}
.lhc .btn {
  background-color: #a36800;
  border-color: #a36800;
  color: white;
}
.btn.blue {
  background-color: #01305c;
  border-color: #01305c;
  color: white;
}
.btn.blue:hover {
  background-color: #5d7a97;
}
.btn:hover,
.gform_wrapper.haltonForm_wrapper .gform_footer input.button:hover,
.gform_wrapper.haltonForm_wrapper .gform_footer input[type="submit"]:hover {
  background-color: #f9e356;
}
.btn:active {
  transform: scale(0.9999);
}
.btn.full-width {
  width: 100%;
}
.btn-outlined {
  background-color: white;
  border: 1px solid #f7d70c;
  color: #f7d70c;
}
.btn-outlined:hover {
  background-color: white;
  border: 1px solid #f7d70c;
  color: #f7d70c;
}
.btn-callout:active {
  color: #f7d70c;
}
.ltblue {
  background-color: rgba(1, 48, 92, 0.12);
  margin-bottom: 1em;
}

footer {
  color: black;
  background-color: #6EA5D3;
   background-image: linear-gradient(#B6DAF3, #78CAF1, #A1D4F2);
}
footer .top {
  padding: 25px 30px;
}
footer .middle {
  background-image: linear-gradient(#7BB1DD, #67A2D3, #5B99CB);
  padding: 25px 30px;
}
footer .bottom {
    background-image: linear-gradient(#F7E59B, #F2DE8B, #F9DE6C);
  padding: 5px 30px;
  color: #01305c;
}
footer .bottom p {
  margin: 0;
}
footer a {
  color: black;
}
footer h2 {
  text-transform: uppercase;
  border-bottom: #ffffff 1px solid;
  width: 100%;
}
footer ul {
  list-style: none;
  margin-left: 0;
}
img.alignright {
  float: right;
  margin-left: 20px;
}
.alert {
  text-align: center;
  position: relative;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
}
.alert-primary {
  color: #01305c;
  background-color: #e5eaee;
  border-color: #01305c;
}
.alert-primary a {
  color: #01305c;
}
.alert-secondary {
  background-color: #e2e3e5;
  border-color: #d6d8db;
}
.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.alert-success a {
  color: #155724;
}
.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.alert-warning {
  color: #653c03;
  background-color: #fef1de;
  border-color: #fcc77f;
}
.alert-warning a {
  color: #653c03;
}

/*@media screen and (max-width: 320px){
	.legalHealthCTA p{
		width: 150px;
	}
  .legalHealthCTA p:before{
    right: -100px;
	}
}*/
@media screen and (max-width: 600px) {
  /*body {
		font-size: 50.5%;
	}*/
  h1 {
    font-size: 2.4em;
  }
  header .contact {
    background: #f7d70c;
    font-size: 0.8em;
  }
  header {
    display: block;
    margin: 0;
  }
  header .contact p {
    text-align: left;
  }
  .logo {
    max-width: 300px;
    margin: 10px auto;
  }
  section,
  footer .top,
  footer .middle,
  footer .bottom,
  .legalHealthCTA .section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .flex li.boxed {
    width: 100%;
    margin: 20px 0px;
  }
  .flex {
    display: block;
  }
  .flex .col2 {
    width: 100%;
    margin: 0;
  }
  .flex .col2:first-child {
    margin-bottom: 20px;
  }
  img.alignright {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
  }
}
#mega-menu-wrap-mega_menu .menu-orange-block,
#mega-menu-wrap-mega_menu
  #mega-menu-mega_menu
  li.mega-menu-row.menu-orange-block {
  background: #f7d70c;
}

@media only screen and (min-width: 601px) {
  #mega-menu-wrap-mega_menu
    #mega-menu-mega_menu
    li.mega-menu-megamenu
    > ul.mega-sub-menu
    > li.mega-menu-row
    > ul.mega-sub-menu
    > li.mega-menu-columns-3-of-12 {
    width: 24%;
  }
}
@media only screen and (min-width: 769px) {
  body table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label {
    background-color: #dce6f1;
  }
  body table.gsurvey-likert .gsurvey-likert-row-label {
    background-color: #eef3f8;
  }
  body table.gsurvey-likert th.gsurvey-likert-row-label:first-child {
    background: none;
  }
  .home-banner {
    height: 400px;
  }
}
@media screen and (max-width: 1000px) {
  .flex li.boxed {
    display: block;
  }
}

/*forms*/
main.lhc .gform_page_footer input {
  border: 1px solid #a36800;
  background-color: #a36800;
  color: white;
  height: 44px;
}
input:not([type="submit"]),
textarea,
select {
  border: 1px solid #01305c;
  line-height: 44px;
  height: 44px;
  color: #000000;
  padding: 0 8px;
  font-family: "museo-sans", sans-serif; /*This need to be set to override Firefox defaults for input fields*/
  font-size: 1em;
  font-weight: 300;
  width: 100%;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 100%; /*prevent user from resizing textarea beyond container*/
  -webkit-border-radius: 0;
}
table.gsurvey-likert {
  background-color: white;
}
table.gsurvey-likert th.gsurvey-likert-choice-label {
  background-color: #01305c !important;
  color: white;
}
body table.gsurvey-likert .gsurvey-likert-row-label {
  background-color: #eef3f8;
}
table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label {
  background-color: #eef6f8;
}
main.lhc input:not([type="submit"]),
main.lhc textarea,
main.lhc select {
  border: 1px solid #a36800;
}
input:not([type="submit"]):hover,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
select:focus {
  border: 1px solid #795548;
}
main.lhc textarea:hover,
main.lhc textarea:focus {
  border: 1px solid #c1af80;
}
textarea {
  padding: 8px;
  height: 120px;
  display: block;
  line-height: 1.4em;
}
input[type="checkbox"],
input[type="radio"] {
  height: 20px;
  width: 20px;
}
.gform_wrapper ul li.gfield {
  padding-right: 0 !important;
}
/* Twitter Page Styles */
.twitter-page-main-content {
  width: 70%;
  display: inline-block;
  padding-right: 25px;
  vertical-align: top;
}
.twitter-page-side-content {
  width: 29%;
  display: inline-block;
}
@media (max-width: 992px) {
  .twitter-page-main-content {
    width: 100%;
    padding-right: 0;
    padding-bottom: 25px;
    /*display: block;*/
  }
  .twitter-page-side-content {
    width: 100%;
    /*display: block;
		padding-top: 2em;*/
  }
}

/* Additional Layout Elements */
.left-image {
  float: left;
  padding: 10px 20px 10px 0;
}

.left-image-container {
  height: auto;
  display: block;
}

.yellow-box-container {
  background: #f7d70b;
  border: 2px solid rgba(51, 3, 0, 0.3);
  padding: 0 20px;
}

.copyright {
  font-size: 1.2em;
}
.copyright a:link {
  color: #01305c !important;
}
.copyright a:visited {
  color: #01305c !important;
}
.copyright a:hover {
  color: #01305c !important;
}
.copyright a:active {
  color: #01305c !important;
}
