/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face
{
font-family: DINreg;
src: url('DINRegular.ttf'),
     url('fonts/DINRegular.eot'); /* IE9 */
}

#main-wrap { 
    max-width: 1024px; 
    margin: 0 auto;
    padding: 30px;
    line-height: 1.5;
    font-weight: 300;
    color: #572600;
    text-transform: uppercase;
}

header {
    border-bottom: 4px double #3b2314;
}

header h1 { 
    font-family: 'DINreg', sans-serif;
    font-size: 2.55em;
    font-weight: normal;
    color: #d8262e;
    text-transform: uppercase;
    margin: 0 0 30px 30px;
    float: left;
}

header h2 {
    margin: 0 0 30px 30px;
    background-color: #d8262e;
    color: #fff;
    font-weight: 300;
    padding: 1px 20px 1px 3px;
    line-height: 1;
    width: 12%;
    border: none;
}

header p {
    text-align: right;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
    margin-right: 30px;
}
header span {
    font-size: .7em;
}

nav ul {
    text-transform: uppercase;
    font-size: 1.05em;
    line-height: 2;
    margin: 20px 40px 0 30px;
    padding: 0;
    float: left;
}

nav ul li a {
    text-decoration: none;
    color: #572600;;
}

nav ul li a:hover, nav ul li a:active {
    background-color: #d8262e;
    color: #fff;
}

section img {
    min-height: 245px;
    float: left;
    display: inline-block;
}

article {
    text-align: left;
    text-transform: none;
    font-size: .8em;
    padding: 0 0 0 30px;
}

footer {
    font-size: .8em;
    color: #808080;
    text-transform: uppercase;
    margin-left: 30px;
}

.nav-area {
    border-bottom: 4px double #3b2314;
    padding: 5px 0;
    margin: 0 0 30px 0;
}

.nav-area p {
    background-color: #d8262e;
    color: #fff;
    font-size: 1.25em;
    font-weight: 300;
    line-height: 1.2;
    display: inline-block;
    text-transform: uppercase;
    margin: 0;
    padding: 80px 0 0 40px;
    height: 165px;
    float: right;
    width: 388px
}

.nav-area {
    margin-bottom: 5px;
}

.about .nav-area p,
.practice-areas .nav-area p,
.resources .nav-area p,
.useful-links .nav-area p,
.contact .nav-area p {
    float: left;
}

.nav-area p span {
    font-size: 1.65em;
    font-weight: 600;
}

.info-header {
    border: none;
}

.info-header h2 {
    margin-bottom: 20px;
}

.info-header h2 {
    font-size: 1.55em;
    padding: 22px 0;
    width: 100%;
    background-color: inherit;
}

header.info-header {
    height: 64px;
    width: 100%;
    background: #a6141a; /* Old browsers */
    background: -moz-linear-gradient(left,  #a6141a 0%, #e61c24 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#a6141a), color-stop(100%,#e61c24)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  #a6141a 0%,#e61c24 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  #a6141a 0%,#e61c24 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  #a6141a 0%,#e61c24 100%); /* IE10+ */
    background: linear-gradient(to right,  #a6141a 0%,#e61c24 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6141a', endColorstr='#e61c24',GradientType=1 ); /* IE6-9 */
}

.red-ln {
    width: 100%;
    border: none;
    border-bottom: 4px solid #d8262e;
    margin: 3px 0 25px 0;
}

.red-ln.bottom {
    margin: 0;
}

.info-area {
    width: 55%;
    float: left;
    padding-right: 15px;
    font-weight: 700;
}

.info-area h3 {
    font-size: 1.7em;
    color: #d8262e;
    font-weight: 300;
    line-height: 1.2;
}

.contact .info-area {
    width: 29%;
    text-transform: uppercase;
    border: none;
    font-size: .9em;
    font-weight: 300;
    line-height: 1.8;
}

.contact .info-area p:nth-child(2) {
    font-size: 1.3em;
}

.info-container {
    background-color: #f8f8f9;
    border-bottom: 4px double #3b2314;
    padding: 30px 0 30px 0;
}

.info-container header {
    border: none;
}

.info-container {
    padding-top: 10px;
    padding-bottom: 7px;
}

.practice-areas .info-container ul {
    list-style-image: url('../images/star-icon.png');
    margin-bottom: 80px;
}

.practice-areas .info-container ul li {
    font-size: 1.6em;
    text-transform: uppercase;
    border-bottom: thin solid #3b2314;
    padding: 30px 0;
}

.email-area {
    float: right;
    width: 38%;
    margin: 0;
    padding: 0 0 0 10px;
    border: none;
    border-left: 4px double #3b2314;
}

.contact .email-area {
    border: none;
}

.contact .email-area {
    width: 65%;
    text-transform: uppercase;
}

.contact .email-area ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

.contact .email-area ul li {
    list-style-image: url('../images/arrow-icon.png');
    background-repeat: no-repeat;
    background-position: 0px 15px; 
    font-weight: normal;
}

.email-area {
    margin-bottom: 20px;
}

article .email-area {
    border-right: none;
}

.email-area h5 {
    color: #d8262e;
    font-size: .95em;
    margin: 15px 0 0 0;
}

.email-area span {
    color: #d8262e;
}

.email-area a {
    text-decoration: none;
    color: #572600;
}

.imail {
    background: url('../images/mail-icon.png') no-repeat center left;
    color: #572600;
    padding-left: 17px;

}

.practice-areas .col1,
.practice-areas .col2 {
    width: 35%;
    margin-left: 30px;
}

.practice-areas .col2 {
    margin-left: 120px;
    float: left;
}

.col1,
.col2 {
    width: 50%;
    margin: 0;
    padding: 0;
}

.col1 {
    float: left;
}

.col2 {
    float: right;
}











/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
