/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.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: #5d4e3e;
    font-size: 18px;
    line-height: 1.4;
    font-family: 'Cinzel', serif;
}

/*
 * 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
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    background: #d2ceca;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

.wrapper {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    background: url('../img/hairsup1.jpg') no-repeat center center / cover;
}

.logo {
    position: absolute;
    left: calc(50% - 200px);
    bottom: -127px;
    max-width: 100%;
    background: #d1ceca;
    padding: 1rem;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1140px;
    padding: calc(127px + 1rem) 2rem 1rem 2rem;
}

.text {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.2rem;
}

.text p {
    margin-bottom: 0;
}

.boxes {
    display: flex;
    width: 100%;
    margin-top: 2rem;
}

.box {
    width: 50%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.box__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transition: transform .2s ease-in;
    pointer-events: none;
}

.box:hover .box__image {
    transform: scale(1.1);
}

.box__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
}

.box__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 50px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
    backface-visibility: hidden;
    text-align: center;
    text-decoration: none;
    z-index: 1;
}

.box__headline {
    font-size: 2rem;
}

.box__text {
    max-width: 500px;
    margin-bottom: 2rem;
}

.box__button {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 5px;
    background: #d2ceca;
    color: #5d4e3e;
    transition: all .2s ease-in;
}

.box:hover .box__button {
    background: #111;
    color: #d2ceca;
}

.social-links {
    width: 100%;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #5d4e3e;
}

.social-links a {
    display: block;
    margin: 0 2rem;
    padding-left: 50px;
    background: no-repeat left 3px / 30px auto;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 2.2rem;
    color: #fff;
}

.social-links a.facebook {
    background-image: url('../img/facebook.svg');
}

.social-links a.instagram {
    background-image: url('../img/instagram.svg');
}

.social-links a:hover {
    text-decoration: underline;
}

.contact {
    display: flex;
}

.contact-left,
.contact-right {
    width: 50%;
}

.contact-left {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
}

.details {
    margin-bottom: 2rem;
}

.details h3 {
    text-align: center;
}

.details ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.details li {
    position: relative;
    margin: 0;
    padding: 0;
}

.details li:not(:last-child) {
    margin-right: 10px;
    padding-right: 20px;
}

.details li:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    top: 7px;
    right: 0;
    width: 8px;
    height: 8px;
    background: #5d4e3e;
    transform: rotate(-45deg);
}

.opening-hours {
    border: 1px solid #5d4e3e;
    border-collapse: collapse;
    border-spacing: 0;
}

.opening-hours td {
    border: 1px solid #5d4e3e;
    padding: .5rem 1rem;
}

.opening-hours th {
    border: 1px solid #5d4e3e;
    background: #5d4e3e;
    color: #fff;
    font-weight: normal;
    padding: .5rem 1rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
}

.gallery a {
    position: relative;
    display: block;
    width: 20%;
    border: 1px solid #5d4e3e;
}

.gallery a::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5d4e3e url('../img/zoom.svg') no-repeat center center / 100px auto;
    transition: opacity .2s;
    opacity: 0;
    pointer-events: none;
}

.gallery a:hover::before {
    opacity: 0.75;
}

.team-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.team-headline::before {
    content: '';
    display: block;
    width: 210px;
    height: 60px;
    margin-bottom: 1rem;
    background: url('../img/ornament-top.svg') no-repeat;
}

.team-headline::after {
    content: '';
    display: block;
    width: 178px;
    height: 31px;
    margin-top: .8rem;
    background: url('../img/ornament-bottom.svg') no-repeat;
}

.team {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.team__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    width: 25%;
}

.team__box > * {
    max-width: 20rem;
}

.team__name {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.team__title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}
.team__title::after {
    content: '';
    display: inline-block;
    width: 178px;
    height: 31px;
    margin-top: .8rem;
    background: url('../img/ornament-bottom.svg') no-repeat;
    opacity: .3;
}

.team__image {
    margin-bottom: 2rem;
    text-align: center;
}

.team__image img {
    border-radius: 50%;
    object-fit: cover;
}

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

.team__description li {
    position: relative;
    margin: 0 0 1rem 0;
    padding: 0 0 0 1.2rem;
}

.team__description li::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: 7px;
    left: 0;
    width: 8px;
    height: 8px;
    background: #5d4e3e;
    transform: rotate(-45deg);
}

@media (max-width: 1199px) {
    .team__box {
        width: 50%;
    }

    .team__box:not(:last-child) {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .wrapper {
        height: auto;
        min-height: 0;
        justify-content: flex-start;
    }

    .header {
        height: 200px;
        min-height: 200px;
    }

    .container {
        padding-top: calc(140px + 1rem);
    }

    .logo {
        left: calc(50% - 125px);
        bottom: -132px;
        max-width: 250px;
    }

    .boxes {
        margin-top: 1rem;
        border-top: 1px solid #eaeaea;
        flex-direction: column;
    }

    .box {
        width: 100%;
        min-height: auto;
    }

    .box__content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .social-links {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .social-links a {
        padding-left: 40px;
        margin-left: 0;
        margin-right: 0;
        font-size: 1.2rem;
        line-height: 2.8rem;
    }

    .social-links a:not(:last-child) {
        margin-bottom: .5rem;
    }

    .details li:not(:last-child) {
        padding-right: 16px;
    }

    .details li:not(:last-child)::after {
        top: 6px;
        height: 6px;
        width: 6px;
    }

    .contact {
        flex-direction: column;
    }

    .contact-left {
        padding: 0 1rem;
        width: 100%;
    }

    .contact-right {
        width: 100%;
    }

    .gallery a {
        width: 50%;
    }

    .team__box {
        width: 100%;
    }
}

/* ==========================================================================
   IE11 fixes
   ========================================================================== */
.container > * {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gallery {
    width: 100%;
    max-width: 100%;
}

.gallery a {
    margin: 0 auto;
}

/* ==========================================================================
   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
 */

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

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

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

/*
 * 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 */
        -webkit-box-shadow: none !important;
        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:
     * 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;
    }
}
