:root {
    --text-color: #282328;
    --text-light: #f4f4f4;

    --primary: #545c7e;
    --accent: #c56981;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}
h1, h2, h3 {
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.4rem;
}

header, footer, main {
    display: flex;
    justify-content: center;
}

header, footer {
    background-color: var(--text-color);
    color: var(--text-light);
}

header .container {
    display: flex;
    flex-direction: row;
}

a>img {
    display: inline-block;
    height: 1.5rem;
}

header h1 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0;
    padding: 1rem;
}

header nav {
    flex: 1;
    display: flex;
    justify-content: right;
}

@media screen and (max-width: 960px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

header nav ul {
    display: flex;
    justify-content: right;
    gap: 1rem;
    flex: 1;
}

header nav ul li {
    display: flex;
}

header nav ul li a{
    color: white;
    text-decoration: none;
    display: block;
    padding: 1rem;
}

header nav ul li a:hover, header nav ul li a.active {
    background-color: var(--primary);
}

main {
    display: flex;
    justify-content: center;
    flex: 1;
}

main p {
    width: min(calc(100% - 2rem), 480px);
}

.hero {
    padding: 2.5rem 0;
    display: flex;
    justify-content: center;
    background-color: #F4F8F9;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    margin-top: 0;
}

.hero h1 span {
    color: var(--accent);
}

@media screen and (min-width: 960px) {
    .hero {
        height: 20rem;
        padding: 2.5rem;
    }
    .hero .container {
        background-image: url("../images/hero1.jpeg");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: right;
    }

    .hero .container p {
        max-width: 50%;
    }
}


.hero .container p {
    font-size: 1.5rem;
    line-height: 2rem;
}

.container {
    width: min(960px, calc(100% - 2rem));
    margin: 0 1rem;
}

.call-to-action {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent);
    box-shadow: var(--accent) 0 0 10px;
    color: var(--text-light);
}
