@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,900&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

:root {
    --teal: #38B2AC;
    --slate: #4A5568;
    --white: #FFFFFF;
    --light-gray: #EDF2F7;
    --primary: #1D1E21;
    --silver-gray: #BFBFBF;
    --col-input: #202020;
    --col-input-placeholder: #b8b8b8;
    --max-width: 1200px;
    --spacing: 8px;
    --spacing2x: 16px;
    --spacing4x: 32px;
    --spacing8x: 64px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--primary);
}

h1,
h2,
h3 {
    color: var(--white);
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing2x);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing2x);
}

/* Header and Navigation */
header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

nav {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    padding: var(--spacing4x);
    flex-direction: row;
    align-items: end;
}

div.nav-logo {
    span {
        font-size: 1.4rem;
        font-weight: bold;
        color: var(--white);
    }
}

div.container {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    justify-content: center;
    align-items: center;
}

ul.nav-menu {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: end;
    list-style: none;

    li {
        display: flex;
        align-items: center;
        margin-right: var(--spacing2x);
    }

    li:not(:last-child)::after {
        margin-left: var(--spacing2x);
        content: " | ";
        color: var(--silver-gray);
        align-self: center;
    }

    li:last {
        margin: 0;
    }

    a {
        text-decoration: none;
        color: var(--silver-gray);

        &:hover {
            color: var(--light-gray);
        }
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;

        ul.nav-menu {
            margin-top: var(--spacing2x);
        }
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

p {
    font-size: 1.2rem;
}


section.hero {
    width: 100%;
    padding: var(--spacing8x) var(--spacing4x);
    display: flex;
    flex-direction: column;
    align-items: center;

    div.process-flow {
        width: 100%;

        div.flow-section {
            display: flex;
            flex-direction: row;
            width: 100%;
            justify-content: center;
            margin-bottom: var(--spacing8x);
            margin-top: var(--spacing4x);
        }

        div.flow-section:nth-child(2) {
            margin-top: 0;
        }

        div.flow-step {
            width: 200px;
            flex-direction: column;
            align-items: center;
            justify-content: baseline;
            /* max-width: 200px; */
            display: flex;
            align-items: center;
            padding: var(--spacing2x) var(--spacing);
            border-radius: var(--spacing);
            border: 1px solid #BFBFBF;

            h3 {
                margin-bottom: var(--spacing);
            }
        }

        div.arrow-right {
            margin: 0 var(--spacing4x);
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        div.arrow-down {
            display: none;
        }

        i {
            font-size: 2rem;
            display: block;
            color: #BFBFBF;
            margin-bottom: var(--spacing);
            margin-top: var(--spacing);
        }

        .step-content h3 {
            margin-bottom: 0.5rem;
            font-size: 1.4rem;
        }

        p {
            color: #A0AEC0;
            font-size: 1rem;
            line-height: 1.4;
            text-align: center;
        }

        @media (max-width: 768px) {
            div.flow-section {
                flex-direction: column;
                align-items: center;
            }

            div.arrow-right {
                display: none;
            }

            div.arrow-down {
                display: flex;
                margin: var(--spacing2x) 0;
            }

            div.flow-section:first-child {
                margin-bottom: 0;
            }

            div.flow-section:nth-child(2) {
                margin-bottom: var(--spacing4x);
            }
        }

        div.contact-action {
            text-align: center;
        }

        a.cta-button {
            display: inline-block;
            padding: var(--spacing2x) var(--spacing4x);
            font-size: 1.1rem;
            background-color: #4A5568;
            color: var(--white);
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            transition: background-color 0.3s ease, box-shadow 0.3s;
        }

        a.cta-button:hover {
            background-color: #A0AEC0;
            color: #2D3748;
            box-shadow: 0 4px 8px rgba(43, 108, 176, 0.2);
        }
    }
}

section.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: var(--spacing8x) var(--spacing4x);
    background-color: #A0AEC0;

    div.service-cards {
        width: 100%;
        display: flex;
        flex-direction: row;
        margin-top: var(--spacing8x);

        div.card {
            width: 100%;
            flex: 1;
            padding: var(--spacing2x);
            background-color: #4A5568;
            border-radius: 10px;
            box-shadow: none;
            transition: transform 0.3s ease;
            text-align: center;
            margin: 0 var(--spacing4x);

            &:first-child,
            &:last-child {
                margin: 0;
            }
        }

        div.card:hover {
            transform: translateY(-5px);
            background-color: #E2E8F0;
            /* Extra Light Slate */
            box-shadow: none;
        }

        div.card h3 {
            color: #768197;
            margin-bottom: 2rem;
            text-align: center;
            width: 100%;
            display: flex;
            justify-content: center;
        }

        div.card p {
            text-align: center;
            color: #E2E8F0;
            width: 100%;
            display: flex;
            justify-content: center;
        }

        div.card:hover h3 {
            color: #768197 !important;
        }

        div.card:hover p {
            color: #4A5568 !important;
        }
    }

    @media (max-width: 768px) {
        div.service-cards {
            flex-direction: column;

            div.card {
                margin: var(--spacing4x) 0;
            }
        }
    }
}

section.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: var(--spacing8x) var(--spacing4x);
    background-color: var(--light-gray);

    h2 {
        color: #4A5568;
    }

    h3 {
        color: #768197;
        font-size: 1.4rem;
        margin-bottom: var(--spacing4x);
    }

    p {
        max-width: 800px;
        color: #768197;
        text-align: center;
        margin-bottom: var(--spacing4x);

        &:last-child {
            margin-bottom: 0;
        }
    }

    @media (max-width: 512px) {
        p {
            text-align: left;
        }
    }
}


section.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: var(--spacing8x) var(--spacing4x);
    background-color: var(--light-gray);
    background-color: #ffffff;

    h2 {
        color: var(--slate);
    }

    p {
        text-align: center;
        margin-bottom: var(--spacing8x);
        color: var(--slate);
        font-size: 1.25rem;
    }

    form {
        width: 100%;
        flex: 1;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        gap: var(--spacing2x);

        input,
        textarea {
            background-color: var(--white);
            padding: var(--spacing2x);
            border: 1px solid #4A5568;
            border-radius: 5px;
            color: var(--col-input);
            font-size: 1rem;
        }

        textarea {
            height: 150px;
            resize: vertical;
            margin-bottom: var(--spacing4x);
            font-family: 'Poppins', sans-serif;
        }

        textarea::placeholder {
            font-size: 1rem;
        }

        input::placeholder,
        textarea::placeholder {
            color: var(--col-input-placeholder);
        }
    }

    button[type="submit"] {
        padding: var(--spacing2x) var(--spacing4x);
        background-color: var(--slate);
        color: var(--white);
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        transition: background-color 0.3s ease, box-shadow 0.3s;
    }

    button[type="submit"]:hover {
        background-color: #A0AEC0;
        color: #2D3748;
    }
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: white;
    text-align: center;
    padding: var(--spacing2x) 0;

    p {
        font-size: 0.9rem;
    }
}