
/* WEB FONTS 

  font-family: 'Open Sans', sans-serif;
  font-family: 'Merriweather', serif;
  font-family: 'Raleway', sans-serif;
  font-family: 'Roboto Slab', serif;
  
*/


* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}


.clearfix {
  width:100%;
  clear:both;
}

.mobile,
.mobile_inline {
  display: none;
}

.micro {
  display: block;
}

.micro_inline {
  display: inline;
}

html {overflow-y:scroll;}

body {
  color:#7f7f7f;
  font-family: 'Raleway', sans-serif;
  font-size:16px;
  line-height:normal;
  font-weight:300;
}

h3 {
  color: #545b5e;
  font-family: 'Merriweather', serif;
  font-size: 2.5em;
  font-weight: 300;
  padding: 6% 0 7%;
  text-align: center;
}

h3:after {
  background: #545b5e;
  content: '';
  display: block;
  height: 1px;
  margin: 7px auto 0;
  width: 117px;
}

h3.nopad_bot {
  padding-bottom: 0%;
}

h4 {
  padding: 1% 0 7% 0;
  text-align: center;
}

h5 {
  font-size: 1.3em;
  padding-bottom: 0.4em;
}


p.subhead {
  max-width: 630px;
  padding-bottom: 40px;
}

.p_pad p.nopad_bot {
  padding-bottom: 0;
}

a {
  color: #ddb545;
  text-decoration: none;
  white-space: nowrap;
}

article {
  margin-bottom: 20px;
}

/* nav section */

div.top_nav {
  background: #FFF;
  color: #545b5e;
  min-height: 5.000em;
  padding: 0; 
}

div.top_nav div.title {
  cursor: pointer;
  float: left;
  font-family: 'Merriweather', serif;
  margin: 10px 0 10px 10px;
}

div.top_nav div.title a {
    color: #545b5e;
}

div.top_nav div.title p.main {
  font-size: 3.5em;
  line-height: normal;
}

div.top_nav div.title p.sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5em;
  line-height: 0.8em;
}

div.nav_items {
  float: right;
  margin: 0;
}

div.nav_items ul {
  font-family: 'Raleway', sans-serif;
  font-size: 1.500em;
  font-weight: 300;
  margin: 1.6em 4.188em 0 0;
}

div.nav_items ul li {
  background: #FFF;
  color: #515b5e;
  cursor: pointer;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  padding: 0.625em;
  -webkit-transition: background 0.3s, color 0.3s linear;
  -moz-transition: background 0.3s, color 0.3s linear;
  -ms-transition: background 0.3s, color 0.3s linear;
  -o-transition: background 0.3s, color 0.3s linear;
  transition: background 0.3s, color 0.3s linear;
}

div.nav_items ul li:hover {
  background-color: #0c7693;
  color: #FFF;
}

div.nav_items ul li a {
    color: #515b5e;
}

div.nav_items ul li:hover a {
    color: #FFF;
}

div.nav_items ul li div.submenu {
  background: #0c7693;
  color: #FFF;
  display: none;
  font-size: 0.65em;
  left: 0px;
  position: absolute;
  top: 3.75em;
  width: 174px;
  z-index: 1;
}

div.nav_items ul li div.submenu a {
  color: #FFF;
  display: block;
  padding: 10px;
}

div.nav_items ul li div.submenu a:hover {
  background: #2b92b8;
}

div.nav_items ul li + li {
  display: inline-block;
  margin-left: 1.5em;
  vertical-align: middle;
}

div.nav_items ul li.active {
  color: #ddb545;
}

div.nav_items ul li.practice div.submenu {
  width:230px;
}


/* hero section */

div.hero_section {
  background: transparent url('../images/img_header_main.jpg') no-repeat top center;
  background-size: cover;
  min-height: 500px;
  position: relative;
}

div.hero_section div.copy {
  margin: 0 auto 0 2.750em;
  max-width: 44.375em;
  padding: 8.750em 0 11.875em 0;
  text-align: left;
}

div.hero_section div.copy  h1 {
  color: #fff;
  font-family: Merriweather;
  font-size: 3.750em;
  font-weight: 300;
  margin: 3px 0 0 0;
}

div.hero_section div.btns {
  font-size: 12px;
  margin: 1.750em 0 0 0;
}

div.hero_section div.btns a {
  border: 2px solid #ddb545;
  color: #ddb545;
  display: inline-block;
  font-family: 'Merriweather', serif;
  font-size: 2.250em;
  font-weight: 300;
  margin: 0 1.500em 0 0;
  padding: 0.563em 1.438em;
  text-decoration: none;
  vertical-align: middle;
}

div.hero_section div.btns a#get_in_touch {
  background: #ddb545;
  color: #FFF;
  margin: 0;
}

/* main content container */

#main_content {
  margin: 0 10px;
}

#templates {
  display: none;
}

/* about */

/* square layout */

div.content_section {
  margin: 0 10%;
}

div.content_section.paper_wrapper {
  margin: 40px auto;
}

div.practice_content {
  padding-top: 6%;
}

.square {
  display: inline-block;
  vertical-align: top;
  width: 48%;
}

.square:nth-child(2n + 1) {
  margin-left: 3%;
}

.square_row {
  margin-bottom: 3%;
}

.square.image img {
  display: block;
  width: 100%;
}

div.avvo_rating {
  margin-top: 8%;
  text-align:center;
}

div.avvo_rating img {
  display: inline-block;
  max-width: 187px;
  vertical-align: middle;
  width: 25%;
}

div.iframe-container{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
}
div.iframe-container iframe{
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
}


.iframe-container{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
}
.iframe-container iframe{
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
}


div.avvo_rating img + img {
  margin-left: 20%;
}

.square.copy {
  padding: 0.5em 2em 0 2em;
}

.square.title,
.square.practice_item {
  margin-bottom: 3%;
}

.square.title {
  padding: 3% 4% 2.5% 4%;
  margin-left: 0px;
}

.square.title p {
  font-size: 1.313em;
}

.square.copy p {
  font-size: 1.1em;
  padding-bottom: 1.2em;
}

.square.practice_item {
  background: #0c7693;
  cursor: pointer;
}

.square.practice_item h4 {
  color: #FFF;
  font-family: 'Merriweather', serif;
  font-size: 2.250em;
  margin: 6% 0 11% 0;
  text-align: center;
}

.square.practice_item img {
  display: block;
  margin: 0 auto;
}

.square.practice_item div.divider {
  background: #FFF;
  height: 1px;
  margin: 6% auto 5%;
  width: 78%;
}

.square.practice_item p.learn_more {
  color: #FFF;
  font-size: 1.500em;
  margin: 0 13% 3% 0px;
  text-align: right;
}


/* modal */

#modal_overlay {
  background: rgba(0,0,0,0.5);
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 3;
}

#modal_content {
  background: #FFF;
  display: none;
  left: 50%;
  margin: 0 0 0 -400px;
  min-height: 500px;
  min-width: 800px;
  padding: 50px 10px 20px;
  position: absolute;
  top: 100px;
  z-index: 4;
}

#close_modal {
  color: #6592d1;
  cursor: pointer;
  font-size: 45px;
  font-weight: bold;
  line-height: 26px;
  position: absolute;
  right: 20px;
  top: 12px;
}

/* footer */

div.footer {
  background: #0c7693;
  color: #FFF;
  padding: 3.125em 4.688em;
}

div.footer div.left {
  float: left;
}

div.footer div.right {
  float: right;
  text-align: right;
}

div.footer p {
  font-family: 'Raleway', sans-serif;
  font-size: 1.500em;
  font-weight: 300;
  line-height: 1.333em;
}

/* contact section */

.contact_content .form_copy h4 {
  font-family: 'Merriweather', serif;
  font-size: 28px;
}

.contact_content .form_copy p {
  max-width: 430px;
  width: 100%;
}

div.form_section {
  margin: 36px 0;
}

#ajax-contact {}

#ajax-contact label {
  display: none;
}

#ajax-contact div > div {
  margin: 16px 0px;
}

#ajax-contact div.form_side {
  display: inline-block;
  vertical-align: top;
  width: 45%;
}

#ajax-contact div.form_side + .form_side {
  margin-left: 6%;
}

#ajax-contact div.firstname,
#ajax-contact div.lastname {}

#ajax-contact div.button_container {
  text-align: right;
}

#ajax-contact input,
#ajax-contact textarea {
  border: 1px solid #9b9b9b;
  font-family: Raleway;
  font-size: 18px;
  height: 46px;
  padding-left: 6px;
  width: 100%;
}

#ajax-contact textarea {
  height: 232px;
  padding: 6px;
}

#ajax-contact button {
  background: #3fa9f5;
  border: none;
  color: #FFF;
  font-size: 18px;
  margin-right: 3.7%;
  margin-top: 10px;
  padding: 16px 51px;
}

#form-messages {
  color: #3fa9f5;
  padding: 10px 0px 0px;
}

div.contact_copy {
  text-align: center;
  width: 100%;
}

div.contact_copy h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 36px;
}

div.contact_copy div.par {
  margin: 15px 0 30px;
}

div.map_section {
  margin-bottom: 30px;
}

div.map_section iframe {
  width: 100%;
  height: 350px;
}

div.contact_copy div.par p {
  display: inline-block;
  line-height: 1.5em;
  margin-right: 30px;
  text-align: left;
  vertical-align: top;
}

/* contact_thanks */

.contact_thanks_top {
    padding: 5% 0 10%;
}

.contact_thanks_content h3 {
    padding-bottom: 5%;
}

.contact_thanks_content p {
    text-align: center;
}

/* resources section */

div.resource_items_container {
  margin-bottom: 40px;
  text-align: center;
}

div.resource_items_container div.left,
div.resource_items_container div.right {
  display: inline-block;
  text-align: left;
  vertical-align: top;
  width: 40%;
}

div.resource_items_container h4 {
  border-bottom: 1px solid;
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 5px;
}

div.resource_items_container div.right {
  margin-left: 5%;
}

div.resource_items_container ul {
  list-style-type: disc;
  margin-left: 7%;
}

div.resource_items_container ul li {
  padding-bottom: 20px;
}

div.resource_items_container ul li a {
  color: #545b5e;
  text-decoration: underline;
  white-space: normal;
}

/* videos */

div.video_wrapper {
	position: relative;
	padding-bottom: 75%; /* 16:9 */
	height: 0;
}

div.video_wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
 
/* papers */

div.paper_wrapper {
  max-width: 920px;
  width: 95%;
}

div.paper_wrapper table {
  border: 1px solid;
  border-collapse: collapse;
  margin: 0 auto 30px;
  padding: 0;
}

div.paper_wrapper table td {
  border: 1px solid;
  padding: 5px;
}
 
div.paper_wrapper p {
  padding-bottom: 30px;
}

div.paper_wrapper a {
  color: #515b5e;
}

/* NICK MERMIGES SECTION */

div.image_adjacent_copy {
  float: right;
  width: 49%;
}

.nick_top .square.image,
.dui_top .square.practice_item,
.divorce_top .square.practice_item,
.custody_top .square.practice_item,
.criminal_top .square.practice_item,
.civil_top .square.practice_item,
.personal_top .square.practice_item {
  cursor: auto;
  float: left;
  margin-bottom: 2%;
  margin-left: 0;
  margin-right: 3%;
}

.p_pad p {
  font-size: 1.3em;
  padding-bottom: 1em;
}

.p_pad ul.dotted {
  font-size: 1.2em;
}

/* DUI Section */

ul.dotted {
  list-style-type: disc;
  margin: 0 0 0 6%;
}

ul.dotted li {
  padding-bottom: 0.5em;
}

.dui_top .square.practice_item h4 {
  margin-bottom: 0;
}

.dui_top .square.practice_item div.image_spacer,
.divorce_top .square.practice_item div.image_spacer,
.custody_top .square.practice_item div.image_spacer,
.criminal_top .square.practice_item div.image_spacer,
.civil_top .square.practice_item div.image_spacer,
.personal_top .square.practice_item div.image_spacer {
  padding-bottom: 13%;
  padding-top: 13%;
}

@media only screen and (max-width: 1350px) {
  div.top_nav div.title p.main {
    font-size: 2.8em;
  }
}
 
@media only screen and (max-width: 1270px) {

  /* 
    MAYBE SWITCH THESE TO BODY,
    MAY HAVE MORE CONTROL THIS WAY THOUGH
  */

  .top_nav, div.hero_section, .footer {
    font-size: 12px;
  }
  
  div.hero_section div.btns {
    font-size: 1em;
  }
  
  div.hero_section div.btns a#learn_more {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 1110px) {
  h3 {
    font-size: 2.1em;
  }
  
  .square.title p,
  .square.copy p {
    font-size: 1.2em;
  }
  
  .p_pad p,
  ul.dotted, .p_pad ul.dotted {
    font-size: 0.9em;
  }
  
}

@media only screen and (max-width: 990px) {

  div.top_nav div.title p.sub {
    line-height: 1.2em;
  }

  div.top_nav {
    background: #FFF;
    color: #545b5e;
    min-height: 5.000em;
    padding: 20px 0 0 0;
  }

  div.top_nav div.title, div.nav_items {
    float: none;
    margin: 0;
    text-align: center;
    width: 100%;

  }
  div.nav_items ul {
    margin: 20px auto;
  }
  
  /* square layout */
  
  .square:nth-child(2n) {
    margin-left: 3%;
  }
  .square:nth-child(2n + 1) {
    margin-left: 0px;
  }
  
  .square.image {
    width: 100%;
  }
  
  .square.copy, .square.title {
    margin-right: 0;
    width: 100%;
  }
  
  .square.title {
    padding: 2em 4em;
  }
  
  .square.practice_item img {
    width: 50%;
  }
  
  .square.practice_item h4 {
    font-size: 1.8em;
  }
  
}

@media only screen and (max-width: 830px) {

  #ajax-contact div.form_side,
  #ajax-contact div.form_side + .form_side {
    width: 100%;
    margin: 0;
  }
  
  .contact_content .form_copy {
    text-align: center;
  }
  
  .contact_content .form_copy p {
    max-width: 100%;
  }

  .square.practice_item h4 {
    font-size: 1.5em;
  }
  
  .nick_top .square.image,
  .dui_top .square.practice_item,
  .divorce_top .square.practice_item,
  .civil_top .square.practice_item,
  .criminal_top .square.practice_item,
  .custody_top .square.practice_item {
    display: block;
    float: none;
    margin: 0 auto 3%;
    width: 90%;
  }
  
  div.image_adjacent_copy {
    width: 100%;
  }
  
  .p_pad p, .p_pad ul.dotted {
    font-size: 1.2em;
  }
  
}


@media only screen and (max-width: 640px) {

  .mobile {
    display: block;
  }
  
  .mobile_inline {
    display: inline;
  }
  
  .micro,
  .micro_inline {
    display: none;
  }

  h3 {
    font-size: 1.6em;
  }

  /* HERO SECTION */
  div.hero_section {
    background-size: 100% auto;
    min-height: 0px;
  }
  
  div.hero_section div.copy {
    margin: 0 auto;
    max-width: 300px;
    padding: 6em 0px;
    font-size: 6px;
  }
  
  div.hero_section div.btns a {
    padding: 9px 12px;
  }
  
  div.hero_section div.btns a#learn_more {
    margin-bottom: 0;
  }
  
  div.content_section {
    margin: 0;
  }
  
  div.top_nav div.title p.main {
    font-size: 3em;
  }
  
  div.resource_items_container div.left,
  div.resource_items_container div.right {
    width: 100%;
    margin: 0 0 20px;
  }

  #modal_content {
    left: 0;
    margin-left: 0;
    min-height: 0;
    min-width: 0px;
    width: 100%;
  }
  
  div.paper_wrapper {
    overflow-x: hidden;
  }
  
  /* FOOTER */
  
  div.footer div.left,
  div.footer div.right {
    float: none;
    text-align: center;
    margin-bottom: 20px;
  }
  
  div.footer div.right {
    margin-bottom: 0px;
  }
  
  /* square layout */
  
  .square.title, 
  .square.copy {
    padding: 2em 1em;
    margin-left: 0;
  }
  
  .square.title,
  .square.copy {
    font-size: 1em;
  }
  
  .square.practice_item h4 {
    font-size: 1.5em;
  }
}


@media only screen and (max-width: 590px) {
  /* HEADER */
  
  a.long {
    white-space: normal;
  }
  
  div.top_nav div.title p.sub {
    font-size: 1.2em;
  }
  
  div.nav_items ul {
    margin-bottom: 0;
  }

  div.nav_items ul li,
  div.nav_items ul li + li {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin-left: 0;
    padding: 0;
    vertical-align: middle;
    width: 100%;
  }
  
  div.nav_items ul li div.submenu,
  div.nav_items ul li.practice div.submenu {
    top:3.4em;
    width: 100%;
  }
  
  div.hero_section {
    background-size: 100% 100%;
  }
  
  /* SQUARE LAYOUT */
  
  .square.practice_item {
    margin-left: 0;
    width: 100%;
  }
  
  .square.practice_item img {
    width: 40%;
  }
  
  div.avvo_rating img {
    width: 38%;
  }
  
  /* FOOTER */
  
  div.footer {
    padding: 20px 0px;
  }
  
  .p_pad p, .p_pad ul.dotted {
    font-size: 1em;
  }
  
}