nav.nav-secondary{display:none;}
#rivas-header {
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 100;
    max-width:100%;
}

body.admin-bar #rivas-header{
   top: 32px;
}

.parent-row{max-width: 100%;}


#rivas-header.solid{
    background-color:#eeeeee;
    border-bottom: 5px solid #edd389;
}

#rivas-header.solid #top-header{
   display:none;
}

#rivas-header.solid .top-label{display: none;}

#front-banner{
    background:url(../images/rivaslaw-header3c.jpg) no-repeat;
    background-size:cover;
    background-position: top center;
    margin-top: -105px;
    padding-top: 120px;
    overflow: hidden;
}

.rivas-header-logo{
    width: 308px;
    height:auto;
    padding-left: 50px;
}

#rivas-header.solid .rivas-header-logo{
   width: 200px;
   padding-top: 5px;
   padding-bottom: 5px;
   padding-left: 15px;
}

#rivas-header .blue-header-area {
    font-weight: 700;
    text-align: center;
    padding: 19px 10px;
    font-size: 20px;
    background:#231f20;
}

#rivas-header .blue-header-area a{
   text-decoration: none;
}

#rivas-header .blue-header-area:hover div.text-white, 
#rivas-header .blue-header-area:hover a {
	color: #FFF !important;
}

#rivas-header.solid .blue-header-area{
   padding-top: 15px;
   padding-bottom: 15px;
}

.text-white,
.text-hover-white:hover{color:#edd389}
.text-italic{font-style:italic;}
.text-bold{font-family:futurastd_bold;}
.underline{text-decoration: underline;}
a.link-revert{color:#22272a;}
.text-center{text-align:center;}

#rivas-header .genesis-nav-menu{
    text-align:right;
    border-top:1px solid #bebebe;
    width: max-content;
    float:right;
}

#rivas-header.solid .genesis-nav-menu{
   border-top: 1px solid #eeeeee;
}

#rivas-header .genesis-nav-menu a,
#top-header li a{
   text-decoration: none;
    padding: 20px 28px;
    color:#22272a;
    font-size: 16px;
}

#rivas-header .genesis-nav-menu a:hover,
#top-header li a:hover{
   text-decoration: underline;
}

#rivas-header .genesis-nav-menu .sub-menu a{
    padding:10px;
}

/* #rivas-header .genesis-nav-menu a{
    padding-bottom:0;
} */

/* #rivas-header.solid .genesis-nav-menu a{
   padding-top:0;
} */

#rivas-header.solid ul.sub-menu a {
   padding: 10px;
}

#rivas-header.solid ul.sub-menu{
   padding:10px 0;
}

#rivas-header .for-sticky-menu{display:none;}
#rivas-header.solid .for-sticky-menu{display:inline-block;}

#top-header li a{
    display:inline-block;
    padding: 20px;
    padding-top: 0;
    padding-bottom: 10px;
}

#rivas-header img.star-5 {
    height: 18px;
    width: auto;
}

#top-header li{
    display: inline-block;
}

#top-header li > a{
   position: relative;
}

#top-header li ul.sub-menu{
   position:absolute;
   display:none;
}

#top-header li.menu-item-has-children:hover > .sub-menu{
   display:block;
}

#top-header li.menu-item-has-children:hover > .sub-menu {
   display: block;
   text-align: left;
   background-color: #FFF;
   border-top: 1px solid #bebebe;
}

#top-header ul.sub-menu li {
   display: block;
}

#top-header ul.sub-menu li:not(:last-child){
   border-bottom: 1px solid #eee;
}

#top-header .sub-menu li a {
   padding: 5px 20px;
   padding-top: 10px;
   line-height: 1.2;
   margin: 0;
   display: inherit;
}

#top-header li a:hover{text-decoration: underline;}
.text-blue{color:#231f20 !important;}
.banner-heading{
   font-size: 48px;
   border-left: 5px solid #231f20;
   position: relative;
   line-height: 1.2;
   padding-left: 5%;
   padding-top: 5%;
   margin-top: 6%;
font-family: "Cinzel", serif;
}
.banner-heading::after{
    position:absolute;
    top:0;
    left:0;
    width: 20%;
    height: 5px;
    background: #231f20;
    content: ' ';
}

.banner-heading-sub{
    font-size: 24px;
    margin-top: 10px;
}

.rivaslaw-banner-profile img{margin-top: -38px;}
.blue-trans{
    background:#231f20;
}
.gray-trans{
    background:#5e5e5e82;
}
.uppercase{text-transform: uppercase;}
.p-20{padding:20px;}
.pt-40{padding-top:40px;}
.pb-40{padding-bottom:40px;}
.pr-0{padding-right:0;}
.bordered-white{border:1px solid #FFFF;}
.mt-145{margin-top: -145px;}
.banner-icons{margin-left:20px; padding: 12px 0;}
.banner-icons li{
    display: inline-block;
    padding: 0 40px;
    vertical-align: middle;
    line-height: 1;
}
@media only screen and (max-width: 1720px) {
   #rivas-header.front-header.solid .genesis-nav-menu a{
      padding-left:8px;
      padding-right:8px;
      font-size:15px;
   }
   /* #rivas-header .genesis-nav-menu a{padding-bottom:0;} */
   #top-header li a{
       padding-top:0;
   }

   .banner-heading{
       font-size: 40px;
   }

   .rivaslaw-banner-profile img{max-height: 420px;width:auto;}
   .banner-icons li{padding:0 15px;}
   .mt-145 {
       margin-top: -140px;
   }
}
@media only screen and (max-width:1024px) and (min-width: 768px) {
    #rivas-header .column.rivas-site-logo {
       max-width: 200px;
    }
 
    .genesis-nav-menu a {
       padding: 16px 8px;
    }
 
    #rivas-header .right-area .right {
       padding-top: 1.8vw;
    }
 
    #rivas-header-spacer {
       height: 1.8vw;
    }
 }
 
 /** IPAD PORTRAIT */
 @media only screen and (width: 768px) {
    #rivas-header-mobile-spacer {
       height: 6vw !important;
    }
 }

 
 @media only screen and (max-width: 824px) {
    #rivas-header {
       display: none
    }
    #rivas-header,
    #front-banner{display:none;}
 
    #rivas-header-mobile-spacer {
       display: none
    }
 
    #rivas-header-mobile {
       /* position:relative; */
       position: fixed;
       width: 100%;
       background-color: #FFF;
       z-index: 1000;
       padding: 5px 0;
       border-bottom: 2px solid #ececec;
       top: 0;
       display: block;
    }
 
    .mobile {
       /* display:block; */
       display: none;
    }
 
    #rivas-header-mobile .mobile-logo img {
       height: 40px;
       width: auto;
    }
 
 
    #rivas-header-mobile .flex {
       display: flex;
       align-items: center;
       justify-content: center;
       justify-content: space-between;
       padding-left: 10px;
       padding-right: 10px;
    }
 
    #rivas-header-mobile .flex .column:first-of-type {
       padding: 0 5px;
    }
 
    #rivas-header-mobile .column .hamburger {
       background-color: #231f20;
       height: 6px;
       border-radius: 5px;
       width: 55px;
       margin: 0 20px;
    }
 
    #rivas-header-mobile .column .hamburger:not(:last-of-type) {
       margin-bottom: 6px;
    }
 
    #rivas-header-mobile .menu-primary.mobile {
       display: none;
       background-color: #231f20;
       margin-top: 12px;
    }
 
    #rivas-header-mobile .menu-primary.mobile.show {
       display: block;
    }
 
    #rivas-header-mobile .menu-primary.mobile>ul {
       display: block;
       padding: 20px;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul.sub-menu {
       display: none;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul.sub-menu.show {
       display: block;
       margin-left: 20px;
       margin-top: 10px;
       margin-bottom: 10px;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul li a {
       font-size: 2.5vw;
       color: #FFF;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul li {
       position: relative;
       padding: 2px 0;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul li.menu-item-has-children::after {
       content: "\f347";
       font-family: 'dashicons';
       font-size: 5vw;
       position: absolute;
       right: 0;
       top: 1vw;
       color: #FFF;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul li.menu-item-has-children.show::after {
       content: "\f343";
    }
 
    #rivas-header-mobile-contacts {
       display: flex;
       background-color: #231f20;
       color: #FFF;
       text-align: center;
       margin-top: 50px;
    }
 
    #rivas-header-mobile-contacts a {
       color: #FFF;
    }
 
    #rivas-header-mobile-contacts .column {
       flex: 1;
       font-size: 2.5vw;
       line-height: 1.2;
       padding: 2vw 1vw;
    }
 
    #rivas-header-mobile-contacts .column:first-of-type {
       border-right: 1px solid #FFF;
    }
 
    .mobile-logo-replacement,
    .mobile-phone-on-scroll {
       display: none;
    }
 
    .mobile-phone-on-scroll.show {
       display: block;
    }
 
    .mobile-phone-on-scroll.show a {
       font-size: 14px;
       font-family: futurastd_bold;
       text-align: center;
    }
 
    .mobile-logo-replacement.show {
       display: flex;
       text-align: center;
       font-family: futurabt_heavy;
       font-size: 4vw;
       display: none;
 
    }
 
    .mobile-logo-replacement.show>div:first-of-type {
       flex: 0 0 auto;
       border-right: 1px solid #478f8e;
       padding-right: 8px;
       margin-right: 8px;
    }
 
    .mobile-logo.hide {
       /* display:none !important; */
       display: block;
    }
 
    #rivas-header-mobile-spacer {
       height: 23vw;
    }
 
    #home-banner .banner-sub {
       font-size: 2.2vw !important;
    }
 
    #home-banner .banner-bold {
       font-size: 1.4vw !important;
    }
 
    #home-banner .banner-link a {
       font-size: 1.6vw !important;
    }
 
    .home-heading h2 {
       font-size: 30px;
    }
 
    .entry-content .wp-block-columns .wp-block-column h4 a {
       font-size: 25px;
    }
 
    h3 {
       font-size: 25px;
    }
 
    p {
       font-size: 16px;
    }
 
    .site-inner {
       padding-top: 30px;
    }
 
    #before-footer .gform_wrapper {
       width: 80%;
    }
 
    #before-footer .form-sub-title {
       margin-top: 10px;
    }
 
    #before-footer .gform_wrapper input[type='text'],
    #before-footer .gform_wrapper textarea {
       font-size: 14px;
    }
 
    #before-footer input[type="submit"] {
       font-size: 2vw;
    }
 
    #before-footer-blog .post-title {
       font-size: 1.7vw;
    }
 
    .recent-post-wrap .post-content {
       font-size: 14px;
    }
 
    .testimonial-wrapper a {
       font-size: 18px;
    }
 
    .testimonial-wrapper .review-wrapper .testimonial-reviewer {
       font-size: 2vw;
    }
 
    .contact-wrap.social a:last-child img {
       margin-top: unset;
    }
 
    .top-contact .contact-wrap a img {
       width: 16%;
       margin-left: 2px;
    }
 
    .top-contact .contact-wrap img {
       width: 65%;
    }
 
    .top-contact .phone>a {
       font-size: 2.75vw;
    }
 
    #stickyFooter .wrap a {
       font-size: 16px !important;
       margin-top: 10px;
       margin-bottom: 10px;
    }
 
    .site-footer .wrap {
       font-size: 15px;
    }
 
    .site-footer .wrap .footer-nav-menu {
       margin-bottom: 10px;
    }
 
    .site-footer .wrap .footer-nav-menu ul.menu {
       font-size: 16px;
    }
 
    .practice-area-link-block span {
       font-size: 16px;
    }
 }
 
 @media only screen and (min-device-width: 400px) and (max-device-width: 824px) and (orientation: landscape) {
    body {
       font-size: 3vw;
    }
 
    #rivas-header-mobile-spacer {
       height: 10vw;
    }
 
    .mobile {
       /* display:block; */
       display: none;
    }
 
    #rivas-header {
       display: none
    }
 
    #rivas-header-mobile-spacer {
       display: none
    }
 
    #rivas-header-mobile {
       /* position:relative; */
       position: fixed;
       width: 100%;
       background-color: #FFF;
       z-index: 1000;
       padding: 5px 0;
       border-bottom: 2px solid #ececec;
       top: 0;
    }
 
    #rivas-header-mobile .mobile-logo img {
       height: 40px;
       max-width: none;
    }
 
    #rivas-header-mobile-contacts .column {
       font-size: 2.5vw;
       padding: 2vw 1vw;
       /* padding-top: 4.5vw; */
    }
 
    .mobile-logo-replacement.show {
       font-size: 3vw;
    }
 
    #home-banner-mobile .banner-content,
    #home-banner-mobile .banner-sub {
       font-size: 4vw !important;
    }
 
    #home-banner-mobile .banner-blue-text {
       font-size: 6vw;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul li a {
       font-size: 20px;
    }
 
    #rivas-header-mobile .menu-primary.mobile>ul {
       max-height: 260px;
       overflow: auto;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul li.menu-item-has-children::after {
       font-size: 4vw;
    }
 }
 
 @media only screen and (max-width: 600px) {
 
    #rivas-header-mobile .mobile-logo img {
       height: 30px;
    }
 
    #rivas-header-mobile .menu-primary.mobile ul li a {
       font-size: 3.5vw;
    }
 
    #rivas-header-mobile-contacts .column {
       font-size: 3.5vw;
       padding: 3vw 1vw;
    }
 
    .home-heading h2.bolder {
       font-size: 25px;
    }
 
    .entry {
       padding-top: 10px;
    }
 
    .home-heading h2 {
       font-size: 25px;
    }
 
    .wp-block-column h3 {
       text-align: center;
       font-size: 24px;
    }
 
    .testimonial-wrapper .testimonial-subheader {
       font-size: 5vw;
    }
 
    #before-footer-blog .rmore {
       font-size: 14px;
       padding: 14px 30px;
    }
 
    .testimonial-wrapper .testimonial-reviewer,
    .testimonial-wrapper .review-wrapper .testimonial-reviewer,
    .testimonial-wrapper a,
    #before-footer-blog .post-title,
    .recent-post-wrap .post-content,
    .bottom-contact .contact-wrap {
       font-size: 16px;
    }
 
    .testimonial-wrapper .review-wrapper>img {
       width: 35%;
    }
 
    #before-footer .form-title,
    #before-footer .form-sub-title,
    #before-footer-blog .title,
    .top-contact .phone>a {
       font-size: 6vw;
    }
 
    .top-contact .contact-wrap a img {
       width: 14%;
    }
 
    #before-footer input[type="submit"] {
       font-size: 4.5vw;
    }
 
    .footer-contacts .top-contact {
       padding-bottom: 30px;
    }
 
    .top-contact .contact-wrap.social {
       margin-top: 30px;
    }
 
    .top-contact .phone {
       margin-top: 25px;
    }
 }
 
 
 @media only screen and (min-device-width: 320px) and (max-device-width: 736px) and (orientation: landscape) {
 
    #rivas-header-mobile .menu-primary.mobile ul li a {
       font-size: 16px;
    }
 
    .entry-content {
       padding-left: 30px;
       padding-right: 30px;
    }
 
    .home-heading h2.bolder,
    .home-heading h2 {
       font-size: 28px;
    }
 
    .testimonial-wrapper .testimonial-header {
       font-size: 2.85vw
    }
 
    .testimonial-wrapper .testimonial-review {
       font-size: 2.5vw !important;
    }
 
    .testimonial-wrapper.page {
       text-align: center !important;
       padding: 40px !important;
    }
 
    #before-footer-blog .recent-posts .recent-post-wrap:nth-child(2) {
       border-left: unset;
       border-right: unset;
    }
 
    #before-footer .form-title,
    #before-footer-blog .title,
    .testimonial-wrapper .testimonial-header {
       font-size: 3vw !important;
    }
 
    .recent-post-wrap .post-content {
       font-size: 16px;
       padding-left: 30px;
       padding-right: 30px;
    }
 
    #before-footer input[type="submit"] {
       width: 34%;
    }
 
    .top-contact .contact-wrap a img {
       width: 8%;
    }
 
    .top-contact .phone>a {
       font-size: 3.75vw;
    }
 
    .footer-contacts .bottom-contact .contact-wrap {
       font-size: 2.5vw;
    }
 }

@media only screen and (max-width: 1634px){
   #rivas-header .genesis-nav-menu a, 
    #top-header li a{
        padding:10px 8px;
    }
}



@media only screen and (max-width:1250px){
   #rivas-header .genesis-nav-menu a, 
    #top-header li a{
     font-size: 14px;
    }
}

@media only screen and (max-width: 767px) {
    .mobile {
        display: block;
     }
  
     #before-footer-blog .recent-posts .recent-post-wrap:nth-child(2) {
        border-left: unset;
        border-right: unset;
     }
    #rivas-header,
    #front-banner{display:none;}
}