@font-face {
  font-family: 'NHaasGroteskDS';
  src: url('../fonts/NHaasGroteskDSW02/NHaasGroteskDSW02-65Md.eot');
  src: url('../fonts/NHaasGroteskDSW02/NHaasGroteskDSW02-65Md.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NHaasGroteskDSW02/NHaasGroteskDSW02-65Md.svg#e87c9c6c34207e1ffdfbb2795c8b2b4b') format('svg'),
       url('../fonts/NHaasGroteskDSW02/NHaasGroteskDSW02-65Md.woff') format('woff'),
       url('../fonts/NHaasGroteskDSW02/NHaasGroteskDSW02-65Md.ttf')  format('truetype');
       
  font-style:   normal;
  font-weight:  500;
}

@font-face {
  font-family: 'NHaasGroteskTX';
  src: url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-55Rg.eot');
  src: url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-55Rg.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-55Rg.svg#e224c0a97cd4fbf91f276312526e2adb') format('svg'),
       url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-55Rg.woff') format('woff'),
       url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-55Rg.ttf')  format('truetype');
       
  font-style:   normal;
  font-weight:  400;
}

@font-face {
  font-family: 'NHaasGroteskTX';
  src: url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-65Md.eot');
  src: url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-65Md.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-65Md.svg#d0f7b610c66149e8de9f99f0c2972dc3') format('svg'),
       url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-65Md.woff') format('woff'),
       url('../fonts/NHaasGroteskTXW02/NHaasGroteskTXW02-65Md.ttf')  format('truetype');
       
  font-style:   normal;
  font-weight:  500;
}

@font-face {
  font-family: 'Miller';
  src: url('../fonts/Miller/Miller-TextRoman.eot');
  src: url('../fonts/Miller/Miller-TextRoman.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Miller/Miller-TextRoman.svg#745c7463652804e06e2a03e2243aaeee') format('svg'),
       url('../fonts/Miller/Miller-TextRoman.woff') format('woff'),
       url('../fonts/Miller/Miller-TextRoman.ttf')  format('truetype');
       
  font-style:   normal;
  font-weight:  400;
}

/*! 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 {
    color: #222;
    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,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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

















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

/*
 * Hide visually and from screen readers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screen readers: 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 screen readers, 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;
}

/* ==========================================================================
   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 the additional HTTP request: h5bp.com/r
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]: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;
    }

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

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

body {
    background: #f0f0f0;
}

a,
a:link,
a:visited,
a:active {
    color: #e41e30;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    margin: 0 auto;
    padding: 70px 20px 60px;
    background: white;
}

header {
    margin-bottom: 60px;
}

h1 {
    vertical-align: middle;
    width: 180px;
    height: 21px;
    margin: 0;
    display: inline-block;
    background: url(../img/logo.png) no-repeat;
}

h1 span {
    display: none;
}

.social {
    vertical-align: middle;
    margin: 0;
    padding: 0;
    display: inline-block;
    list-style-type: none;
    float: right;
}

.social li {
    margin: 0 0 0 16px;
    padding: 0;
    display: inline-block;
}

p.lead {
    font: 500 35px/36px NHaasGroteskDS, Helvetica, Arial, sans-serif;
    color: #e41e30;
}

p {
    font: 500 18px/24px NHaasGroteskTX, Helvetica, Arial, sans-serif;
    color: #262626;
}

p.sub {
    font: 400 14px/18px NHaasGroteskTX, Helvetica, Arial, sans-serif;
}

.clients {
    font: 400 14px/18px NHaasGroteskTX, Helvetica, Arial, sans-serif;
    color: #262626;
    margin: 30px 0;
    padding: 0;
    list-style-type: none;
}

.clients li {
    margin: 20px 0;
    padding: 0;
}

section.contact {
    text-align: center;
    margin: 50px 0 0;
}

section.contact h2 {
    font: 400 13px/13px Miller, Georgia, Times New Roman, serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #262626;
}

section.contact p {
    font: 400 14px/24px NHaasGroteskTX, Helvetica, Arial, sans-serif;
    color: #262626;
}

footer {
    text-align: center;
    height: 230px;
    background: #e41e30;
}

footer img {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media(min-width: 768px) {
    main {
        max-width: 1280px;
        padding: 140px 50px 126px;
    }

    header {
        margin-bottom: 127px;
    }

    p.lead {
        font: 500 70px/72px NHaasGroteskDS, Helvetica, Arial, sans-serif;
        margin: 0 0 53px;
    }

    p {
        font: 500 26px/36px NHaasGroteskTX, Helvetica, Arial, sans-serif;
        width: 88.5%;
        margin: 38px 0;
    }

    p.sub {
        font: 400 16px/24px NHaasGroteskTX, Helvetica, Arial, sans-serif;
        width: 80%;
        margin: 76px 0 0;
    }

    p.sub:last-child {
        margin: 0;
    }

    .clients {
        font: 400 16px/24px NHaasGroteskTX, Helvetica, Arial, sans-serif;
        width: 80%;
        margin: 28px 0 51px;
    }

    .clients li {
        margin: 0 0 18px;
    }

    section.contact h2 {
        font: 400 11px/11px Miller, Georgia, Times New Roman, serif;
        margin: 8px 0 0;
    }

    section.contact p {
        font: 400 12px/18px NHaasGroteskTX, Helvetica, Arial, sans-serif;
        width: auto;
        margin: 9px 0 30px;
    }

    footer {
        height: 460px;
    }
}

@media(min-width: 1024px) {
    main {
        padding: 140px 115px 126px;
    }

    main:after {
        content: '';
        clear: both;
        display: block;
    }

    section.info {
        width: 74%;
        display: inline-block;
        float: right;
    }

    p.sub {
        width: 65.4%;
    }

    .clients {
        width: 65.4%;
    }

    section.contact {
        text-align: left;
        width: 13%;
        margin-top: 0;
        margin-right: 13%;
        display: inline-block;
        float: left;
    }
}
