/*
Theme Name: HAAPI
Theme URI: 
Description: Custom theme for HAAPI
Author: 
Version: 1.0
Tags: custom
*/
/* =============================================================================
   Adapted from HTML5 Boilerplate CSS: h5bp.com/css
   ========================================================================== *

/* !Global Styles - - - - - */
* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; }

.sans {
  font-family: "Lato", Arial, Verdana, sans-serif; }

.dk-grey {
  color: #333; }

.lt-grey {
  color: #eee; }

.red {
  color: #FC5B5E; }

.blue {
  color: #003E52; }

.white {
  color: #fff; }

.dk-grey-bg {
  background: #333; }

.lt-grey-bg {
  background: #eee; }

.red-bg {
  background: #FC5B5E; }

.blue-bg {
  background: #003E52; }

.white-bg {
  background: #fff; }

.italic {
  font-style: italic; }

.normal {
  font-weight: normal; }

.bold {
  font-weight: bold; }

.center {
  text-align: center; }

.upper {
  text-transform: uppercase; }

.lower {
  text-transform: lowercase; }

.space {
  letter-spacing: .05em; }

.xspace {
  letter-spacing: .1em; }

.fleft {
  float: left; }

.fright {
  float: right; }

.plain a, a.plain {
  text-decoration: none; }

a {
  color: #FC5B5E;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: all .25s ease;
  -moz-transition: all .25s ease;
  transition: all .25s ease; }

a:hover {
  color: #003E52; }

.rel {
  position: relative; }

ul.clean {
  list-style: none;
  margin: 0;
  padding: 0; }

ul.inline {
  display: inline-block; }

ul.inline > li {
  display: inline;
  float: left; }

ul.ilb > li,
.ilb {
  display: inline-block;
  vertical-align: top; }

ul.ilb {
  display: block; }

ul.ilb.vmiddle > li,
li.vmiddle,
.vmiddle {
  vertical-align: middle; }

.reverse {
  direction: rtl; }

.dfix {
  direction: ltr; }

img.full {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; }

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11; }

.flex-wrap {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center; }

.flex-wrap .flex-item:nth-child(1) {
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-flex: 0 1 auto;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -webkit-align-self: auto;
  -ms-flex-item-align: auto;
  align-self: auto;
  width: 100% !important; }

.cover {
  background: url(images/trans.png) no-repeat center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover; }

.flex-bottom {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  -webkit-align-items: flex-end;
  -ms-flex-align: end;
  align-items: flex-end; }

.flex-bottom .flex-item:nth-child(1) {
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-flex: 0 1 auto;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -webkit-align-self: auto;
  -ms-flex-item-align: auto;
  align-self: auto;
  width: 100% !important; }

/* !Font Size Fuctions - - - - - */
/* !Page Defaults - - - - - */
.text {
  line-height: 1.8em;
  font-size: 1em; }

.text.small-text {
  font-size: 0.8125em; }

.text p {
  margin: 15px 0; }

.text a {
  text-decoration: underline; }

.header-text p:first-child,
.text p:first-child {
  margin-top: 0; }

.header-text p:last-child,
.text p:last-child {
  margin-bottom: 0; }

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: normal; }

.text img {
  display: block;
  margin: 10px auto;
  width: auto;
  height: auto;
  max-width: 100%; }

.text img.alignleft {
  float: left;
  margin: 0 30px 30px 0; }

.text img.alignright {
  float: right;
  margin: 0 0 30px 30px; }

.text ul {
  list-style: none;
  margin: 10px 0 30px 0;
  padding: 0; }

.text ul li {
  padding-left: 25px;
  position: relative;
  margin-top: 8px;
  display: block; }

.text ul li:before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 1;
  border-radius: 120%;
  overflow: hidden;
  background: #333; }

.text h1,
.text h2,
.text h3,
.text h4 {
  margin: 30px 0 5px 0;
  font-weight: bold;
  color: #333;
  line-height: 1.4em; }

.text h1:first-child,
.text h2:first-child,
.text h3:first-child,
.text h4:first-child,
.text ul:first-child {
  margin-top: 0; }

.text h1:last-child,
.text h2:last-child,
.text h3:last-child,
.text h4:last-child,
.text ul:last-child {
  margin-bottom: 0; }

.text blockquote {
  margin: 50px 0;
  padding: 10px 0 10px 25px;
  border-left: 5px solid #FC5B5E;
  color: #333;
  font-weight: bold;
  font-size: 1.125em;
  line-height: 1.5em;
  text-align: left;
  font-family: "Lato", Arial, Verdana, sans-serif; }

/* !Body - - - - - */
body {
  min-width: 320px;
  font-size: 16px;
  font-family: "Lato", Arial, Verdana, sans-serif;
  color: #333;
  line-height: 1.6em;
  background: #fff; }

#container {
  background: #eee;
  min-height: calc(100vh - 60px); }

.section-pad {
  padding: 65px 0; }

.section-pad-bottom {
  padding-bottom: 65px; }

.inner {
  padding: 0 25px;
  max-width: 900px;
  margin: 0 auto; }

.inner.wide {
  max-width: 1190px; }

/* !Footer - - - - - */
footer {
  height: 60px;
  line-height: 60px;
  font-size: 0.75em; }

footer a {
  color: #fff; }

footer a:hover {
  color: #003E52; }

/* !Header - - - - - */
header {
  height: 110px;
  padding: 20px 0;
  background: #fff; }

ul.nav {
  position: absolute;
  top: 50%;
  right: 25px;
  z-index: 10;
  transform: translate(0, -50%);
  z-index: 1001; }

ul.nav > li {
  position: relative;
  margin-left: 30px; }

ul.nav > li:first-child {
  margin-left: 0; }

ul.nav > li > a {
  font-size: 1em;
  line-height: 50px;
  color: #003E52;
  position: relative;
  display: block; }

ul.nav > li > a:before {
  content: "";
  width: 0;
  height: 3px;
  background: #FC5B5E;
  position: absolute;
  bottom: 8px;
  left: 0;
  z-index: 1;
  -webkit-transition: all .35s ease;
  -moz-transition: all .35s ease;
  transition: all .35s ease; }

ul.nav > li > a:hover:before,
ul.nav > li#current > a:before {
  width: 100%; }

ul.nav ul.subnav {
  position: absolute;
  top: 100%;
  left: -9999px;
  width: 200px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 0 5px 0 rgba(51, 51, 51, 0.1);
  z-index: 1010; }

ul.nav li:hover > ul.subnav {
  left: -15px; }

ul.nav ul.subnav a {
  display: block;
  color: #003E52;
  font-size: 0.875em;
  line-height: 1.4em;
  padding: 10px 15px; }

ul.nav ul.subnav a:hover,
ul.nav ul.subnav li.current_page_item a {
  background: rgba(238, 238, 238, 0.7); }

ul.nav span.nav-toggle {
  padding-right: 15px;
  background: url(images/nav-arrow.svg) no-repeat right center; }

a.logo {
  max-width: 215px;
  display: block; }

/* !Headlines - - - - - */
.headline {
  font-size: 2.25em;
  line-height: 1.4em;
  margin-bottom: 20px;
  font-weight: bold; }

/* !Standard Block - - - - - */
.page-right {
  width: 350px;
  padding-left: 50px; }

.page-left {
  width: calc(100% - 350px); }

ul.logo-list {
  background: rgba(255, 255, 255, 0.7);
  padding: 5px; }

ul.logo-list li {
  padding: 10px;
  width: 50%; }

/* !Hearing Aids Page - - - - - */
ul.device-list {
  padding: 20px 0; }

ul.device-list li {
  width: 33.33%;
  padding: 3px 25px 3px 0; }

.device-name {
  padding: 5px 8px;
  font-size: 1.125em;
  line-height: 1.3em;
  font-weight: bold;
  background: #d5d5d5;
  margin-top: 30px; }

/* !Homepage - - - - - */
.home-screen-max {
  max-width: 550px; }

.home-screen {
  padding: 65px 0; }

.home-screen-block {
  background: rgba(255, 255, 255, 0.7);
  padding: 30px 25px; }

.home-screen-block + .home-screen-block {
  margin-top: 25px; }

.home-screen-block ul.logo-list {
  background: none; }

.home-image {
  display: none; }

.home-block {
  min-height: calc(100vh - 170px); }

.logo-wrap {
  max-width: 150px;
  margin: 0 auto; }

/* !Buttons - - - - - */
a.button {
  background: #FC5B5E;
  color: #fff;
  padding: 10px 20px;
  font-size: 1.125em;
  line-height: 1.3em;
  display: inline-block; }

a.button.margin-top {
  margin-top: 5px; }

a.button:hover {
  background: #003E52; }

.home-buttons a.button + a.button {
  margin-left: 30px; }

/* !FAQs - - - - - */
a.question {
  display: block;
  padding: 0 30px 10px 0;
  font-size: 1.25em;
  line-height: 1.4em;
  color: #003E52;
  position: relative; }

a.question:hover {
  color: #FC5B5E;
  display: block; }

.answer {
  padding: 5px 0 60px 0; }

.faq-item {
  margin-top: 35px;
  border-bottom: 1px dashed #bbbbbb; }

a.question:before {
  content: "";
  width: 14px;
  height: 2px;
  position: absolute;
  top: 10px;
  right: 0;
  margin-top: -1px;
  background: #FC5B5E;
  z-index: 1; }

a.question:after {
  content: "";
  width: 2px;
  height: 14px;
  position: absolute;
  top: 10px;
  right: 6px;
  margin-top: -7px;
  background: #FC5B5E;
  z-index: 2;
  -webkit-transition: all .35s ease;
  -moz-transition: all .35s ease;
  transition: all .35s ease; }

a.question.ui-state-active:after {
  opacity: 0; }

/* !Contact - - - - - */
#map {
  margin-top: 40px; }

#map iframe {
  width: 100%; }

/* !Audiologists - - - - - */
.audiologist-name {
  font-size: 1.25em;
  line-height: 1.4em;
  margin-bottom: 5px; }

.region {
  margin-top: 65px; }

.audiologist {
  margin-top: 40px; }

.region-name {
  font-size: 2.25em;
  line-height: 1.4em; }

/* !Mobile Nav - - - - - */
a.nav-toggle {
  width: 40px;
  height: 40px;
  background: #FC5B5E;
  position: fixed;
  top: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 100500;
  display: none;
  -webkit-transition: all .35s ease;
  -moz-transition: all .35s ease;
  transition: all .35s ease; }

a.nav-toggle div {
  width: 20px;
  height: 2px;
  background: #fff;
  position: absolute;
  right: 10px;
  text-indent: -9999px;
  -webkit-transition: all .35s ease;
  -moz-transition: all .35s ease;
  transition: all .35s ease; }

a.nav-toggle div:nth-child(1) {
  top: 13px; }

a.nav-toggle div:nth-child(2) {
  top: 50%;
  margin-top: -1px; }

a.nav-toggle div:nth-child(3) {
  bottom: 13px; }

a.nav-toggle.active div:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg); }

a.nav-toggle.active div:nth-child(3) {
  bottom: 19px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg); }

a.nav-toggle.active div:nth-child(2) {
  opacity: 0; }

.nav-wrap {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FC5B5E;
  z-index: 100300;
  width: 100%;
  padding: 60px 30px 80px 30px;
  min-height: 100%;
  overflow-y: scroll;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  transition: all .5s ease; }

.nav-wrap .flex-wrap {
  min-height: calc(100vh - 140px);
  position: relative;
  z-index: 100011;
  overflow: visible; }

.nav-active .nav-wrap {
  visibility: visible;
  opacity: 1; }

.nav-fade .nav-wrap {
  opacity: 0; }

ul.mobile-nav > li > a {
  display: block;
  font-size: 1.375em;
  line-height: 1.4em;
  color: #fff;
  font-weight: bold; }

ul.mobile-nav > li > a span.nav-toggle {
  background: none;
  padding: 0 25px;
  position: relative; }

ul.mobile-nav > li > a span.nav-toggle:before {
  content: "";
  width: 12px;
  height: 2px;
  position: absolute;
  top: 14px;
  right: 0;
  margin-top: -1px;
  background: #fff;
  z-index: 1; }

ul.mobile-nav > li > a span.nav-toggle:after {
  content: "";
  width: 2px;
  height: 12px;
  position: absolute;
  top: 14px;
  right: 5px;
  margin-top: -6px;
  background: #fff;
  z-index: 2;
  -webkit-transition: all .35s ease;
  -moz-transition: all .35s ease;
  transition: all .35s ease; }

ul.mobile-nav > li > a.active span.nav-toggle:after {
  opacity: 0; }

ul.mobile-nav > li#current > a span.nav-toggle:before,
ul.mobile-nav > li#current > a span.nav-toggle:after {
  background: #003E52; }

ul.mobile-nav > li > a:hover,
ul.mobile-nav > li#current > a {
  color: #003E52; }

ul.mobile-nav li + li {
  margin-top: 20px; }

ul.mobile-nav ul.subnav a {
  font-size: 1em;
  line-height: 1.3em;
  color: #fff;
  padding: 0;
  font-weight: bold;
  display: block;
  padding: 5px 0; }

ul.mobile-nav ul.subnav {
  padding: 10px 0;
  display: none; }

ul.mobile-nav ul.subnav li {
  margin-top: 0; }

ul.mobile-nav ul.subnav a:hover,
ul.mobile-nav ul.subnav li.current_page_iteam a {
  color: #003E52; }

/* - - - Media Queries - - - */
@media only screen and (max-width: 1023px) {
  .headline {
    font-size: 1.875em; }
  .home-screen-max {
    max-width: 450px; } }

@media only screen and (max-width: 980px) {
  /* Style adjustments for viewports that meet the condition */
  ul.nav {
    display: none; }
  a.nav-toggle {
    display: block; }
  .page-left,
  .page-right {
    width: 100%;
    display: block; }
  .page-right {
    max-width: 350px;
    padding: 0;
    margin-top: 40px; }
  .section-pad,
  .home-screen {
    padding: 50px 0; }
  .region {
    margin-top: 50px; }
  .answer {
    padding-bottom: 50px; }
  .headline {
    font-size: 1.875em; }
  .home-screen-max {
    max-width: 400px; } }

@media only screen and (max-width: 768px) {
  /* Style adjustments for viewports that meet the condition */
  .text img.alignleft,
  .text img.alignright {
    margin: 10px auto;
    float: none;
    display: block;
    max-width: 100%;
    width: auto;
    height: auto; }
  .home-block.cover {
    background: none !important; }
  header {
    position: relative;
    z-index: 10; }
  .home-image {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: -100px; }
  .home-screen-max {
    max-width: none; }
  .home-screen-block {
    background: none;
    padding: 0;
    text-align: center; }
  .section-pad,
  .home-screen {
    padding: 40px 0; }
  .region {
    margin-top: 40px; }
  .answer {
    padding-bottom: 40px; }
  .headline {
    font-size: 1.75em; }
  ul.device-list li {
    width: 50%; } }

@media only screen and (max-width: 600px) {
  /* Style adjustments for viewports that meet the condition */
  .home-image {
    margin-top: -45px; }
  .headline {
    font-size: 1.625em; }
  .home-buttons a.button + a.button {
    display: block;
    width: 130px;
    margin: 15px auto 0 auto; } }

@media only screen and (max-width: 420px) {
  ul.device-list li {
    width: 100%; } }

@media only screen and (max-width: 350px) {
  /* Style adjustments for viewports that meet the condition */
  .home-image {
    margin-top: -40px; } }

@media only screen and (max-width: 400px) {
  /* Style adjustments for viewports that meet the condition */ }

@media only screen and (max-width: 320px) {
  /* Style adjustments for viewports that meet the condition */ }

/* - - - Non-Semantic Helper Classes - - - */
.ir {
  display: block;
  border: 0;
  text-indent: -999em;
  overflow: hidden;
  background-color: transparent;
  background-repeat: no-repeat;
  text-align: left;
  direction: ltr;
  *line-height: 0; }

.ir br {
  display: none; }

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

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

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

.invisible {
  visibility: hidden; }

.clearfix:before, .clearfix:after {
  content: "";
  display: table; }

.clearfix:after {
  clear: both; }

.clearfix {
  *zoom: 1; }

/* - - - Print Styles - - - */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    -ms-filter: none !important; }
  /* Black prints faster: h5bp.com/s */
  a, a:visited {
    text-decoration: underline; }
  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; } }
