/*

Theme Name: Michael D. Miller Law
Theme URI: http://www.mdmlaw.net
Author: Arizona Computer Guru
Author URI: http://azcomputerguru.com;

Description: A custom theme for the Michael D. Miller Law website
Version: 1.0

*/


/* Global variables */

:root{
  --mainbg:#ffffff;
  --color1:#952C20;
  --color2:#1B1B1B;
  --color3:#EFEFEF;
}



/* Reset */


html, body,
h1, h2, h3, h4, h5, h6,
a, p, span,
em, small, strong,
sub, sup,
mark, del, ins, strike,
abbr, dfn,
blockquote, q, cite,
code, pre,
ol, ul, li, dl, dt, dd,
div, section, article,
main, aside, nav,
header, hgroup, footer,
img, figure, figcaption,
address, time,
audio, video,
canvas, iframe,
details, summary,
fieldset, form, label, legend,
table, caption,
tbody, tfoot, thead,
tr, th, td{
margin: 0;
padding: 0;
border: 0;
}

*{
font-family: inherit;
font-size: inherit;
line-height: inherit;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}

*:before,
*:after{
box-sizing: inherit;
}

a,
a:visited{
color: inherit;
}

article,
aside,
footer,
header,
nav,
section,
main{
display: block;
}

img{max-width:100%;}


/* Top-level styles */



*{transition: all 0.2s ease;}

html{
  scroll-behavior: smooth;
  font:18px/1.4em Segoe UI, sans-serif;
}
body{
  color:var(--color4);
	font-size:20px;
	line-height:1.8rem;
}
h1{font-size:2rem;}
h2{font-size:1.6rem;}
h3{font-size:1.2rem;}
h1,h2,h3{
  line-height:1em;
  margin-bottom:1rem;
  font-weight:normal;
  font-family:'Lora', serif !important;
}
p{margin-bottom:1rem;}


/* Structure elements */


.wrapper{width:80%;margin:0 auto 0 auto;}
.flexwrap{display:flex;}

[class*='box-']{}

.box-10{width:10%;}
.box-20, .box-5{width:20%;}
.box-25, .box-4{width:25%;}
.box-30{width:30%;}
.box-40{width:40%;}
.box-50, .box-2{width:50%;}
.box-60{width:60%;}
.box-66{width:66.666666%;}.box-70{width:70%;}
.box-75{width:75%;}
.box-80{width:80%;}
.box-90{width:90%;}
.box-1{width:100%;}
.box-3{width:33.3333333%;}
.box-6{width:16.666666%;}
.box-7{width:14.285714%;}
.box-8{width:12.5%;}
.box-9{width:11.111111%;}


/* Header */

header{padding-top:2rem;}
header .logo{}
header .logo a{
  color:var(--color1);
  text-decoration:none;
}
header .logo a img{
  width:100%;
}
header .flexwrap .header-right{
	padding-left:2rem;
	text-align:right;
	flex:1;
}
.header-right h2{
	color:var(--color1)!important;
	font-weight:bold;
	font-size:1.6rem;
}
.header-right p{
	font-weight:bold;
	color:var(--color2);
	margin-bottom:0;
}


/* Navigation */

nav{
  height:5rem;
  margin-top:1rem;
  background:var(--color2);
	border-top:10px var(--color1) solid;
}
nav .menu{
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
}
nav .menu li{
  width:auto;
  list-style-type:none;
  line-height:4.5rem;
  position:relative;
}
nav .menu li a{
  display:block;
  text-transform:uppercase;
  text-decoration:none;
  text-align:center;
  font-family:Georgia;
  color:var(--color3);
  padding:0 1rem 0 1rem;
}
nav .menu li:hover a{
  background:var(--color3);
  color:var(--color2);
}
nav .menu .sub-menu{
  display:none;
}
nav .menu li:hover .sub-menu{
  display:block;
  position:absolute;
  left:0;
  top:3.4rem;
  width:15rem;
  z-index:100;
}
nav .menu .sub-menu li a{
  font-size:.9em;
  text-transform:none;
}
nav .menu .sub-menu li:hover a{
  background:var(--color3)!important;
  color:var(--color1)!important;
}
.mobile-menu-icon{
  display:none;
  width:100%;
  background:var(--color1);
  padding:1rem;
  position:fixed;
  bottom:0;
}
.mobile-menu-icon .line{
  width:25px;
  height:5px;
  background-color:var(--color2);
  margin:5px auto 5px auto;
}
.close{
  display:none;
  width: 32px;
  height: 32px;
  text-align:center;
  margin:2px auto 2px auto;
}
.close:hover{opacity: 1;}
.close:before, .close:after{
  position:absolute;
  text-align:center;
  content: ' ';
  height: 32px;
  width: 2px;
  background-color:var(--color2);
}
.close:before{transform: rotate(45deg);}
.close:after{transform: rotate(-45deg);}

/* Feature area */

.home .feature{
  text-align:center;
}

.feature .wrapper{
  width:60%;
}

.feature .widget:first-child{
}
.feature .widget:first-child h2{
  font-size:3rem;
  line-height:1em;
  font-weight:normal;
  text-transform:uppercase;
  text-align:center;
  text-transform:uppercase;
}
.feature .widget:first-child p{
  width:40%;
  margin:2rem auto 2rem auto;
}
.feature .widget:first-child h2:first-of-type{
  margin-top:20vh;
}

.feature .widget:last-child{
	width:100%;
	background:rgba(0, 0, 0, 0.5);
	text-align:center;
}
.feature .widget:last-child p{
	font-size:1.2rem;
	line-height:75px;
	text-transform:uppercase;
	margin:0!important;
}

.feature .more-link{
  background:var(--color1);
  width:20%;
  font-size:1.8rem;
  border:1px var(--color3) solid;
}
.feature .more-link:hover{
  background:var(--color2);
}

/* Columns: Upper */

.columns-upper{
	background:#efefef;
	text-align:left;
}
.columns-upper .widget{
	padding:2rem;
}
.columns-upper h2{
	font-size:1.2rem!important;
	text-transform:uppercase;
	font-weight:bold;
	background:url("https://mdmlaw.net/wp-content/uploads/2020/01/Quote.png") center left no-repeat;
	background-size:contain;
	padding-left:2rem;
}
.columns-upper .more-link{
	color:var(--color1);
	width:50%;
	padding:0.5rem;
	margin:2rem auto 2rem auto;
}
.columns-upper .more-link:hover{
	color:var(--color2);
}

/* Global content area */


article{
	padding:1rem;
	margin-bottom:1rem;
	width:100%;
}


/* Front page template */


main > .flexwrap{
  flex-direction:row;
  justify-content:space-between;
}
main > .flexwrap > article{}
main > .flexwrap > aside{}

.home > section > h2, .home article .title, footer h2{
  font-size:3rem;
  line-height:1.5em;
  padding-top:1.5rem;
  font-weight:normal;
  text-transform:uppercase;
  text-align:center;
}

.front-page{

}
.front-page article{
  max-width:80%;
  margin:0 auto 0 auto;
}
.front-page article .title span{
  color:var(--color4);
  font-style:italic;
}
.front-page article .more-link{
  width:20rem;
  font-size:1.6rem;
  color:var(--color4);
  border:2px var(--color1) solid;
  margin:2rem auto 2rem auto;
}
.front-page article .more-link:hover{
  background:var(--color1);
}


/* Page template */

.page-title h1{
	line-height:4em!important;
	text-transform:uppercase;
	text-align:center;
	color:#ffffff!important;
	background:rgba(0, 0, 0, 0.75);
}

.page .title, .page article h2{
  text-transform:uppercase;
  text-align:center;
  line-height:2em;
}
.page .title{
  color:var(--color1);
  font-size:3em;
}
.page h2{
  color:var(--color4);
  font-size:2.5em;
}
.page iframe{
  width:100%;
  height:50vh;
}
.page article .flexwrap{
	flex-wrap:wrap;
}
.page article .flexwrap .box{
	font-size:.8rem;
	padding:.5rem;
	margin:.5rem;
	line-height:1.4em;
	border:2px #000000 solid;
}
.page article .row .box{flex:1;}

.page .flexwrap .box h3{
	font-size:.9rem;
	border-bottom:1px #000000 solid;
	line-height:1.5rem;
}


/* Post template */


.single-post article{
  min-height:50vh;
}
.single-post .title{
  color:var(--color1);
  font-size:3em;
  text-align:center;
  text-transform:uppercase;
}
.post-featured-img{
  display:block;
  margin:2rem auto 2rem auto;
  max-width:50%;
}

/* Sidebars / Widgets */

.sidebar{padding-left:1rem;}
.sidebar .widget{
  padding:1rem;
  min-width:20rem;
  margin-bottom:1rem;
}
.sidebar .widget h2{
	padding:1rem;
	background:#57211B;
	color:#ffffff;
	font-style:italic;
	font-size:2.2rem;
	margin-bottom:0;
}
.sidebar ul li{
  list-style-type:none;
  width:100%;
}
.sidebar ul li a{
  display:block;
  text-decoration:none;
  line-height:4rem;
	color:#ffffff!important;
	font-size:1.2rem;
	background:var(--color1);
	border-bottom:1px #ff0000 solid;
	padding-left:1rem;
}
.sidebar ul li:hover a{
  background:var(--color1);
  color:#ffffff;
  padding-left:2rem;
  background:#cc0000;
}

/* Below Content */

.below-content{}
.below-content .widget{
	position:relative;
}
.below-content .section-heading{
	position:absolute;
	top:0;
	font-size:2rem;
	width:100%;
	line-height:75px;
	text-align:center;
	text-transform:uppercase;
	background:rgba(0, 0, 0, 0.75);
}
.below-content .more-link{
	width:25%;
	margin:1rem auto 1rem auto;
	background:var(--color1);
	color:#ffffff;
}
.below-content .more-link:hover{
	background:#ffffff;
	color:var(--color1);
}
.below-content .widget:first-of-type{
	padding:5rem;
	background:#efefef;
}
.below-content .widget:first-of-type h2{
	line-height:2em;
	border-bottom:1px var(--color1) solid;
	padding-right:5rem;
}

/* Columns: Lower */

.columns-lower{
	background:#efefef;
	text-align:left;
}
.columns-lower .widget:first-of-type{
	background:#ffffff;
	padding:2rem;
	text-align:center;
	padding:1rem 1rem 4rem 1rem;
}
.columns-lower h2:first-of-type{
	text-align:center;
	text-transform:uppercase;
}
.columns-lower img{
	display:block;
	margin:1rem auto 1rem auto;
}
.columns-lower .more-link{
	color:var(--color1);
	width:50%;
	padding:0.5rem;
	margin:2rem auto 2rem auto;
}
.columns-lower .more-link:hover{
	color:var(--color2);
}

.columns-lower .widget:nth-of-type(2){
	color:#ffffff;
	background:url(https://mdmlaw.net/wp-content/uploads/2020/01/Contact.jpg) center no-repeat;
	background-size:cover;
}
.columns-lower .widget:nth-of-type(2) > div{
	background:rgba(0,0,0,0.75);
	padding:4rem 0 4rem 0;
}
.columns-lower .nf-form-cont input, .columns-lower .nf-form-cont textarea{
	background:none;
	border:2px #ffffff solid;
	color:#ffffff;
}

/* Footer */


footer{
  width:100%;
}
footer .widget{
  padding:4rem 0 4rem 0;
}


footer .widget:nth-of-type(1){
	padding:2rem 0 2rem 0;
}
footer .widget:nth-of-type(1) h2{
	color:var(--color1);
	text-align:right;
}

footer input:hover,
footer input:active,
footer textarea:hover,
footer textarea:active,{
  opacity:1;
}
footer input[type="button"]{
  display:block;
  font-family:Georgia;
  text-transform:uppercase;
  text-decoration:none;
  text-align:center;
  padding:1.4rem;
  margin:1rem auto 1rem auto;
  border:2px var(--color1) solid;
  cursor:pointer;
}
footer input[type="button"]:hover{
  background:var(--color1);
}

/* Copyright section */


.credit{
  text-align:center;
  background:var(--color1);
}
.credit p{
  color:#ffffff;
  font-size:.9rem;
  line-height:3em;
  margin:0px;
}

/* Global extras */


.clearfix{
  clear:both!important;
  float:none!important;
  width:0px!important;
  height:0px!important;
  margin:0px!important;
  padding:0px!important;
}

.more-link{
  display:block;
  font-family:Georgia;
  text-transform:uppercase;
  text-decoration:none;
  text-align:center;
  padding:1.4rem;
  margin:1rem auto 1rem auto;
  max-width:100%;
}
.more-link:hover{
  background:var(--color1);
}

.alignleft{
	float:left;
	margin:1rem 0rem 1rem 1rem;
	padding:1rem;
}
.aligncenter{
	display:block;
	margin:1rem auto 1rem auto;
	padding:1rem;
}
.alignright{
	float:right;
	margin:1rem 1rem 1rem 0;
	padding:1rem;
}

.nf-form-wrap input, .nf-form-wrap textarea{
  width:100%;
  background:rgba(0, 0, 0, 0.25);
  margin-bottom:1rem;
  font-size:2rem;
  text-transform:uppercase;
  color:var(--color);
  font-family:Georgia;
  padding:1rem;
  border:0px;
  border-bottom:3px var(--color2) solid;
  opacity:0.6;
}

.testimonial{
	border:4px var(--color1) solid;
	padding:1rem;
	margin-bottom:2rem;
	background:#efefef;
}
.testimonial p{
	font-style:italic;
}
.testimonial p.author{
	text-align:right;
	font-style:normal;
	font-weight:bold;
}

/* Media Queries / Responsive */

@media (min-width:2500px){.wrapper{width:70%;}}
@media (max-width:1920px){html{font-size:16px;}}
@media (max-width:1600px){
  html{font-size:15px;}
}
@media (max-width:1400px){html{font-size:14px;}}
@media (max-width:1250px){
  html{font-size:12px;}
  .feature .widget:first-child{height:35vh;}
}

@media (orientation:portrait) and (max-width:1200px){

  html{font-size:16px;}
  body{overflow-x:hidden;padding-bottom:4rem;}
  .wrapper{width:100%;z-index:1;}
  header, main, footer{padding:0.5rem 1rem 0.5rem 1rem;}
  header{padding-top:1rem;}
  .flexwrap{display:block;}
  header .phone-tag{
    top:4rem;
    right:-13.5rem;
  }
  header .phone-tag:hover{
    right:0;
  }

.feature .wrapper{
  width:100%;
}

.feature .widget:first-child{
  height:40vh;
}
.feature .widget:first-child h2{
  font-size:1.8rem;
}
.feature .widget:first-child p{
  width:80%;
}
	.feature .more-link{
		width:80%;
	}
.feature .widget:first-child h2:first-of-type{
  margin-top:10vh;
}
  .feature h2{
    font-size:1.4rem;
    line-height:1em;
  }
  .feature h2:first-of-type{
    margin-top:4vh;
  }
.feature .widget:last-child p{
	font-size:1rem;
	line-height:1.4rem;
	margin:0!important;
	padding:0.5rem;
}
  nav{height:auto;}
  nav .menu{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    background:var(--color1);
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    transform:translateY(-100%);
    opacity:0;
    padding:1ch;
  }
  nav .menu li{width:100%;margin:0.5ch 0 0.5ch 0;}
  nav .menu li a{font-size:1rem;color:var(--color4);}
  nav .menu li:hover a{background:var(--color2);color:var(--color4);}
  nav .menu li:hover .sub-menu, nav .menu li:active .sub-menu{width:100%!important;}
  .home > section > h2, .home article .title, footer h2{
    font-size:2rem;
    line-height:1.5em;
    padding:1.5rem;
  }
  .front-page article{
    max-width:100%;
  }
  main{padding:0;}
  .front-page article{
    width:100%;
  }
  .home > section > h2, .home article .title, footer h2{
    font-size:1.6rem;
  }
  .home footer{
    padding-top:2vh;
  }
  .category article{
    width:auto;
    max-width:100%;
    margin:1rem;
  }
.below-content .section-heading{
	font-size:1rem;
	line-height:1.4rem;
}
  footer{
    position:static!important;
    z-index:1;
  }
  footer h2{
    font-size:2rem!important;
  }
  footer input, footer textarea{
    margin-bottom:1rem;
    font-size:1.2rem;
    text-transform:uppercase;
    color:var(--color);
    font-family:Georgia;
    padding:0.5rem;
    border:0px;
    border-bottom:3px #000000 solid;
    opacity:0.6;
  }
  footer textarea{max-height:8vh;}
  .mobile-menu-icon{display:block;z-index:100;border-top:2px var(--color3) solid;}
  .nav-active{transform:translateY(0%)!important;opacity:1!important;position:fixed!important;z-index:100000;}
  nav ul li a{color:var(--color3)!important;}
  nav ul li:hover .sub-menu, nav ul li:active .sub-menu{
    position:static;
    display:block;
  }
  nav ul li:hover .sub-menu li, nav ul li:active .sub-menu li{
    background:var(--color1)!important;
    line-height:1.6rem;
    width:100%;
    margin:0;
  }
  .menu-active .line{display:none;}
  .menu-active .close{display:block;}
  .sidebar{padding-left:0px;}
  [class*='box-']{width:100%;}
  .credit p{line-height:1.4em;}
}

