/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

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

::selection {
    background: #00ADEE;
    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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
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;
}

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

:root {
    /* default colors and sizes here */
    --font-size: 16px;
    --color-copy: #202020;

    --color-blue: #253472; /* picked from PDF #253375 ??? */
    --color-blue-light: #e4e6ef;
    --color-green: #7A9D2D;
    --color-green-light: #eff3e4;

    --color-white: #ffffff;
    --light-grey: #eaeaea;
}

.page--container {
    max-width: 1500px;
    position: relative;
    margin: auto;
    background-color: var(--color-white);
    -webkit-box-shadow: 0 8px 40px -2px #d3d3d3;
    -moz-box-shadow: 0 8px 40px -2px #d3d3d3;
    box-shadow: 0 8px 40px -2px #d3d3d3;
}

html,
body {
    background-color: var(--color-blue-light);
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size);
    font-weight: 400;
    line-height: 24px;
    color: var(--color-copy);
}

a,
a:hover {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    color: var(--color-blue);
}

h1,
h2 {
    font-family: inherit;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
}

@media only screen and (min-width: 641px) {
    h1,
    h2 {
        font-size: 40px;
        line-height: 48px;
    }

    h1 {
        line-height: 1.1em;
    }
}

h3 {
    font-family: inherit;
    font-size: 24px;
    line-height: 29px;
    font-weight: 500;
}

@media only screen and (min-width: 641px) {
    h3 {
        font-size: 30px;
        line-height: 39px;
    }
}

h4 {
    font-family: inherit;
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
}

@media only screen and (min-width: 641px) {
    h3,
    h4,
    h5 {
        width: 50%;
    }
}

figcaption {
    padding-top: calc(var(--font-size) / 2);
    color: #929497;
    font-size: calc(var(--font-size) - 10%);
}

/* Header */

.header-bar {
    width: 100%;
    background-color: var(--color-white);
}

.uk-navbar {
    display: block;
}

.uk-logo img {
    height: inherit;
}

.uk-logo,
.uk-logo:hover {
    border-bottom: none;
}

@media only screen and (max-width: 640px) {
    .page--container .uk-navbar-left {
        width: 100%;
        padding: 0;
    }

    .page--container .uk-logo {
        margin: 15px auto 30px auto;
        height: 50px;
    }

    .page--container .uk-navbar-center:not(:only-child) {
        width: 100%;
        position: unset;
        top: unset;
        left: unset;
        transform: unset;
    }

    .page--container .uk-navbar-center .uk-navbar-nav {
        width: 100%;
        display: block;
    }

    .page--container .uk-navbar-center .uk-navbar-nav > li {
        border-bottom: 1px transparent var(--light-grey);
    }

    .page--container .uk-navbar-center .uk-navbar-nav > li.uk-active {
        border-bottom: 0;
    }

    .page--container .uk-navbar-center .uk-navbar-nav > li:first-child {
        border-top: 1px transparent var(--light-grey);
    }

    .page--container .uk-navbar-center .uk-navbar-nav > li > a {
        margin: 0;
        padding: 6px;
    }

    .page--container .uk-navbar-center .uk-navbar-nav > li > a:hover,
    .page--container .uk-navbar-center .uk-navbar-nav > li.uk-active > a {
        border-width: 1px;
    }

    .page--container .uk-navbar-right {
        width: 100%;
    }

    .page--container .uk-navbar-right .uk-navbar-nav {
        margin: 0 auto;
        display: block;
        width: 100%;
    }

    .page--container .uk-navbar-right .uk-navbar-nav > li > a {
        border-top: 1px solid var(--color-blue);
        margin: 0;
        padding: 3px;
        font-size: calc(var(--font-size) + 4px);
    }
}

@media only screen and (min-width: 720px) and (max-width: 960px) {
    .page--container .uk-navbar {
        display: flex;
    }

    .page--container .uk-logo {
        margin: 30px 0;
    }

    .page--container .uk-navbar-left {
        width: auto;
    }

    .page--container .uk-navbar {
        border-bottom: 0 solid white;
    }

    .page--container .uk-navbar-center:not(:only-child) {
        width: 100%;
        border-top: 1px solid var(--light-grey);
        top: unset;
        left: unset;
        transform: unset;
        bottom: -30px;
    }

    .page--container .uk-navbar-center .uk-navbar-nav {
        margin: auto;
    }

    .page--container .uk-navbar-center .uk-navbar-nav > li > a {
        margin: 4px 13px;
    }
}

@media only screen and (min-width: 961px) {
    .page--container .uk-navbar {
        display: flex;
    }
}

/* Footer */
footer {
    background-color: var(--color-blue);
    color: var(--color-white);
    line-height: 25px;
    font-weight: 400;
}

footer a {
    display: inline-block;
    padding-bottom: 2px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: inherit;
    text-decoration: inherit;
    border-bottom: 1px solid var(--color-white);
}

footer a.active {
    border-bottom: 2px solid var(--color-white);
}

footer ul {
    margin: 0;
    padding: 0;
}

footer li {
    list-style: none;
}

@media only screen and (min-width: 641px) {
    footer li {
        display: inline-block;
        margin-right: 18px;
    }

    footer li:last-child {
        margin-right: 0;
    }
}

/* Section background */
.bg-green {
    background-color: var(--color-green-light);
}

.bg-blue {
    background-color: var(--color-blue-light);
}

.bg-blue[data-type="images"],
.bg-green[data-type="images"] {
    background-color: transparent;
}


@media only screen and (min-width: 961px) {
    .bg-blue[data-type="images"] {
        background-color: var(--color-blue-light);
    }

    .bg-green[data-type="images"] {
        background-color: var(--color-green-light);
    }
}

.link-back {
    color: var(--color-blue);
    font-size: calc(var(--font-size) - 2px);
}

.link-back a {
    color: inherit;
    border-color: transparent;
}

.link-back a:hover {
    border-color: var(--color-blue-light);
}

.link-back span {
    position: relative;
    top: -1px;
}

/* UIKit overrides */

.uk-section {
    padding-top: 35px;
    padding-bottom: 35px;
}

@media (min-width: 960px) {
    .uk-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

.uk-section[data-index="1"] {
    position: relative;
}

.uk-section[data-type="back"]:first-child {
    padding-bottom: 0;
}

.uk-section[data-type="back"][data-index="1"] {
    padding-top: 35px;
}

.uk-section[data-type="back"]:last-child {
    padding-top: 0;
}

.uk-section[data-index="1"][data-type="images"],
.uk-section[data-index="1"][data-type="slider"],
.uk-section.no-padding {
    padding-top: 0;
    padding-bottom: 0;
}

.uk-section[data-type="text"] a {
    border-bottom: 1px dotted var(--color-copy);
}

.uk-section[data-type="text"] a:hover,
.uk-section[data-type="text"] a:focus {
    border-color: var(--color-blue-light);
    color: var(--color-blue);
}

.page--container .uk-navbar-nav > li > a {
    color: var(--color-blue);
    font-size: 1rem;
}

.page--container .uk-navbar-nav > li > a {
    min-height: calc(var(--font-size) + 4px);
    margin: 15px 20px;
    padding: 0 0 2px;
    border-bottom: 4px solid transparent;
}

.page--container .uk-navbar-nav > li:hover a,
.page--container .uk-navbar-nav > li.uk-active > a {
    border-bottom: 2px solid var(--color-blue-light);
    color: var(--color-blue);
    padding-bottom: 4px;
}

.uk-logo {
    display: inline-block;
    height: 70px;
    margin: 65px 0;
}

.uk-totop,
.uk-totop:hover {
    color: var(--color-white);
    border-bottom: none;
}

@media only screen and (min-width: 961px) {

    .uk-section[data-index="1"][data-type="images"],
    .uk-section[data-index="1"][data-type="slider"] {
        /* padding-bottom: 3em; */
    }

    .uk-section[data-index="1"][data-type="images"]::before,
    .uk-section[data-index="1"][data-type="slider"]::before {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        height: 100px;
        width: 100%;
        /*-moz-box-shadow: inset 0 -20px 10px -10px #ffffff;
        -webkit-box-shadow: inset 0 -20px 10px -10px #ffffff;
        box-shadow: inset 0 -20px 10px -10px #ffffff;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 15;*/
    }

    .uk-section[data-index="2"][data-type="text"][data-prev="images"],
    .uk-section[data-index="2"][data-type="text"][data-prev="slider"] {
        padding-top: 70px;
    }
}


@media only screen and (min-width: 1440px) {
    .uk-section[data-index="1"][data-type="images"] figure,
    .uk-section[data-index="1"] .uk-slideshow {
        max-width: 1970px;
        margin: 0 auto;
    }

    .uk-section[data-index="1"][data-type="slider"],
    .uk-section[data-index="1"][data-type="images"] {
        background-color: var(--light-grey);
    }
}

.uk-slideshow .uk-position-medium,
.uk-slideshow .uk-position-large {
    width: 30vw;
}

.uk-slideshow li {
    font-size: calc(var(--font-size) + 2px);
}

.uk-slideshow li a {
    text-decoration: none;
}

.uk-slideshow-nav.uk-dotnav {
    position: relative;
    bottom: 70px;
}

.uk-slider figure {
    margin-bottom: 0;
}

.uk-slider .uk-slider-nav {
    margin-bottom: 0;
}

.uk-accordion > :nth-child(n+2) {
    margin-top: 0;
}

.uk-accordion-title {
    line-height: 2.4;
    border-bottom: 1px dotted var(--color-blue-light);
    color: var(--color-blue);
}

.uk-accordion-title:hover,
.uk-accordion-title:active,
.uk-accordion-title:focus {
    color: var(--color-blue);
}

.uk-accordion-title::before {
    height: 3rem;
    color: var(--color-blue);
}

.uk-accordion-content a {
    border-bottom: 1px dotted var(--color-copy);
    color: var(--color-copy);
}

.uk-accordion-content a:hover {
    border-bottom-color: var(--color-blue-light);
    color: var(--color-blue);
}

@media (min-width: 1350px) {
    .uk-position-large {
        max-width: calc(100% - (80px * 2));
        margin: 40px 40px 40px 150px;
    }
}

@media (max-width: 950px) {
    .uk-position-large {
        max-width: calc(100% - (80px * 2));
        margin: 40px 40px 40px 150px;
        display: none;
    }
}

section[data-type="images"] .bg-image {
    height: 235px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


section[data-type="images"] .bg-image .uk-container {
    height: 100%;
}

section[data-type="images"] .bg-image .heading {
    position: relative;
    top: 20%;
    color: var(--color-white);
    font-weight: 500;
}

@media screen and (min-width: 768px) {
    section[data-type="images"] .bg-image {
        height: 335px;
    }

    section[data-type="images"] .bg-image .heading {
        top: 30%;
    }
}

@media screen and (min-width: 1024px) {
    section[data-type="images"] .bg-image {
        height: 535px;
    }

    section[data-type="images"] .bg-image .heading {
        top: 35%;
    }
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    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,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster */
        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 {
        white-space: pre-wrap !important;
    }

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

    /*
       * Printing Tables:
       * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
       */
    thead {
        display: table-header-group;
    }

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

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

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