@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap&subset=latin-ext');

:root {
    --white: #ffffff;
    --grey: #707070;
    --dark-grey: #333333;
    --dark-blue: #C0F2ED;
    --light-blue: #EBFAF8;
    --purple: #C536A4;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html {
    font-family: "Montserrat",sans-serif;
    font-size: 16px;
    line-height: 1.5rem;
    scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--grey);
}

.wrapper {
    width: min(100vw, 1120px);
    margin: 0 auto;
    padding: 2rem;
}

.flex {
    display: flex;
    justify-content: space-between;
}

.grid {
    display: grid;
}

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

p {
    margin-bottom: 1rem;
}

p:last-of-type {
    margin-bottom: 0;
}

strong {
    color: var(--dark-grey);
}

/*--- Headines---*/

h1, h2, h3, h4 {
    font-weight: 700;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

h3, h4 {
    font-size: 1rem;
}

h4 {
    text-transform: uppercase;
    margin: 1rem 0;
}

/*--- Links ---*/

a, a:visited {
    text-decoration: none;
    color: var(--grey);
}

a:hover {
    color: var(--purple);
}

a>h1, a>h3 {
    color: var(--dark-grey);
}

/*--- Header ---*/

header {
    background: url("/img/man-lower-back-pain.png") no-repeat right, linear-gradient(to right, var(--white), var(--dark-blue));
    background-size: contain;
}

.logo {
    width: 2rem;
}

.branding {
    flex-direction: column;
}

.branding-text {
    margin-top: 1rem;
    flex-direction: column;
    justify-content: flex-start;
}

/*--- Main navigation ---*/

.main-nav-wrapper {
    border-bottom: 1rem solid var(--light-blue);;
}

.main-nav {
    width: min(100vw, 800px);
    margin: 0 auto;
    padding: 2rem;
}

/*--- Main content ---*/

main {
    flex: 1;
}

#prices .flex, .contact-text{
    flex-direction: column;
}

.testimonials-text p{
    text-align: right;
    margin-top: 1rem;
}

.about-img img {
    max-width: 100%;
    margin-bottom: 1rem;
}

ul {
    margin: 0 1rem;
}

.prices-special, .prices-children {
    padding-top: 1rem;
}

.svg {
    width: 1rem;
    margin-right: .25rem;
}

#contact a {
    line-height: 2rem;
}

.contact-text > div {
    line-height: 2rem;
}

.contact-small {
    font-size: .75rem;
}

/*--- Footer ---*/

footer {
    text-align: center;
    font-size: .75rem;
}

/* .license {
    border-top: var(--grey) 1px solid;
    padding-top: 2rem;
} */

footer .wrapper > nav {
    padding-bottom: 2rem;
}

/*--- Media queries ---*/

@media (min-width: 768px) {
    .wrapper {
        padding: 2rem 5rem;
    }
    /*--- Header ---*/
    h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .logo {
        width: 4rem;
    }
    .branding {
        flex-direction: row;
        justify-content: flex-start;
        gap: 3rem;
    }
    .main-nav {
        font-size: 1.5rem;
        padding: 2rem 5rem;
    }
}

@media (min-width: 992px) {
    /*--- Header ---*/
    h1 {
        font-size: 2.5rem;
        margin-bottom: 0;
    }
    h3 {
        font-size: 2rem;
    }
    .branding {
        gap: 4rem;
    }
    .branding-text {
        margin-top: 0;
        flex-direction: row;
        gap: 4rem;
        align-items: center;
    }
    .testimonials {
        justify-content: flex-end;
    }
    .testimonials .flex {
        justify-content: flex-end;
    }
    .testimonials-text {
        width: 75%;
    }
    #about .grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "sidebar header"
            "sidebar footer"
            "sidebar ."
        ;
        column-gap: 4rem;
    }
    .about-img {
        grid-area: header;
    }
    .about-text {
        grid-area: sidebar;
    }
    .about-why {
        grid-area: footer;
    }
    #prices .flex, .contact-text{
        flex-direction: row;
        gap: 4rem;
    }
    #prices .flex > div {
        width: 50%;
    }
    .prices-special {
        padding-top: 0;
    }
    .prices-children {
        text-align: center;
        padding-top: 2rem;
    }
    footer > div {
        display: flex;
        justify-content: flex-start;
    }
    footer .wrapper > nav {
        padding-bottom: 0;
        justify-content: flex-start;
        width: 50%;
        gap: 2rem
    }
    .license {
        border-top: 0;
        padding-top: 0;
        display: flex;
        justify-content: flex-end;
        width: 50%;
        gap: 2rem;
    }
}