/* ================================
CSS RESETS AND DEFAULTS
================================ */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* Remove default margin and padding */
    margin: 0;
    padding: 0;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}




/* ================================
UTILITIES
================================ */

.row {
    padding: 0 32px;
    margin: 0 auto;
}

.flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}





/* ================================
COLORS
================================ */

:root {
    /* Primary */
    --strong-cyan: hsl(171, 66%, 44%);
    --light-blue: hsl(233, 100%, 69%);

    /* Neutral */
    --dark-grayish-blue: hsl(210, 10%, 33%);
    --grayish-blue: hsl(201, 11%, 66%);
}




/* ================================
TYPOGRAPHY
================================ */

/* Set core body defaults also */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--grayish-blue);
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--dark-grayish-blue);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: 0.47px;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 0.39px;
}

.link-list__item {
    font-size: 1.125rem;
    line-height: 1.67;
    letter-spacing: 0.135px;
    text-decoration: none;
    color: var(--dark-grayish-blue);
}

@media (min-width: 48em) {

    body {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    h1,
    h2 {
        line-height: 1.25;
    }

    h1 {
        font-size: 2.875rem;
    }

    h2 {
        font-size: 2.25rem;
    }
}



/* ================================
BUTTONS
================================ */

.btn-wrapper {
    max-width: 311px;
    margin: 0 auto 160px auto;
}

.btn {
    display: block;
    background-color: var(--strong-cyan);
    font-weight: 600;
    line-height: 1.67;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
    padding: 14px 50px;
    box-shadow: 0 10px 20px
        rgba(137, 229, 199, 0.503305),
        inset 0 -3px 0 rgba(0, 0, 0, 0.151333);
    border-radius: 28px;
    transition: opacity 250ms;
    flex: 0 0 100%;
}

.btn:hover, .btn:focus {
    opacity: 0.8;
    cursor: pointer;
}

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

.btn + .btn {
    margin-top: 24px;
}

@media (min-width: 48em) {
    .btn-wrapper {
        max-width: 470px;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 150px;
    }

    .btn {
        font-size: 1rem;
        flex: 0 0 227px;
        min-width: 227px;
        padding: 13px 36px;
    }

    .btn + .btn {
        margin-top: 0;
    }
}




/* ================================
GENERAL LAYOUT
================================ */

.body {
    background-image: url("../images/bg-header-mobile.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    overflow-x: hidden;
}

p {
    max-width: 760px;
    margin: 0 auto;
}

@media (min-width: 48em) {
    .body {
        background-image: url("../images/bg-header-desktop.png");
    }
}



/* Header section */

.header {
    max-width: 778px;
}

.logo {
    margin: 123px auto 64px auto;
}

.title {
    margin-bottom: 16px;
}

.header__text {
    margin-bottom: 48px;
}

@media (min-width: 48px) {
    .logo {
        margin: 128px auto 56px auto;
    }
}



/* Highlight sections */

.highlight + .highlight {
    margin-top: 186px;
}

[aria-labelledby="highlight-2"] {
    margin-bottom: 130px;
}

.highlight__text {
    margin-bottom: 65px;
}

.highlight__img {
    margin-bottom: 56px;
}

.title--subtitle--sm {
    margin-bottom: 10px;
}

.highlight__text--sm {
    margin-bottom: 48px;
}

@media (min-width: 48em) {
    .title--subtitle {
        margin-bottom: 19px;
    }

    .highlight__text {
        margin-bottom: 80px;
    }

    .highlight__text--sm {
        font-size: 1rem;
    }
}

@media (min-width: 81em) {
    .highlight {
        max-width: 1440px;
        margin: 0 auto;
    }

    .highlight + .highlight {
        margin-top: 150px;
    }

    .highlight__content {
        flex-wrap: nowrap;
        padding: 0 32px 0 0;
        column-gap: 110px;
        margin: 0 244px 0 -32px;
    }

    .highlight__content--center {
        margin: 0 auto;
        padding: 0;
    }

    .highlight__img {
        margin-bottom: 0;
    }

    .highlight__text__container {
        align-self: center;
        text-align: left;
    }

    .highlight__text--sm {
        max-width: 350px;
    }

    [aria-labelledby="highlight-2"] {
        margin-bottom: 71px;
    }

}


/* Features section */

.features {
    margin-bottom: 130px;
}

.features__text {
    margin-bottom: 90px;
}


.features__box {
    margin-bottom: 56px;
    max-width: 350px;
}

.features__box .title--subtitle--sm {
    margin-bottom: 18px;
}

[class^="features__box__icon-"] {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: 0 auto 40px auto;
}

.features__box__icon-1 {
    background-image: url("../images/icon-blacklist.svg");
    width: 44px;
    height: 40px;
}

.features__box__icon-2,
.features__box__icon-3 {
    margin-bottom: 48px;
}

.features__box__icon-2 {
    background-image: url("../images/icon-text.svg");
    width: 36px;
    height: 32px;
}

.features__box__icon-3 {
    background-image: url("../images/icon-preview.svg");
    width: 50px;
    height: 32px;
}

.feature {
    font-size: 16px;
}

@media (min-width: 48em) {
    .features {
        margin-bottom: 150px;
    }

    .features__text {
        margin-bottom: 72px;
    }

    .features__content {
        column-gap: 30px;
    }

    .features__box {
        margin-bottom: 0;
    }

    .feature {
        line-height: 1.875;
    }
}


/* Clients section */

.clients__content {
    padding: 0 118px;
    margin-bottom: 170px;
    justify-content: center;
    gap: 100px;
}

.clients__content > * {
    margin-bottom: 59px;
}

.clients__img--google {
    flex: 0 0 165px;
    min-width: 139px;
    max-height: 49px;
}

.clients__img--IBM {
    flex: 0 0 135px ;
    min-width:  115px;
    max-height: 52px;
}

.clients__img--microsoft {
    flex: 0 0 160px ;
    min-width:  135px;
    max-height: 32px;
}

.clients__img--hp {
    flex: 0 0 135px ;
    min-width:  113px;
    max-height: 57px;
}

.clients__img--vg {
    flex: 0 0 125px ;
    min-width:  105px;
    max-height: 30px;
    margin-bottom: 0;
}

@media (min-width: 48em) {
    .clients__content {
        margin-bottom: 161px;
    }

    .clients__content > * {
        margin-bottom: 0;
    }
}


/* cta section */

.cta {
    margin-bottom: 170px;
}

.cta__text {
    margin-bottom: 46px;
}

@media (min-width: 48em) {
    .cta__text {
        margin-bottom: 48px;
    }
}

/* footer section */

.footer {
    background-color: #F5F7F7;
    padding-bottom: 51px;
}

.footer__content > * {
    flex: 0 0 100%;
}

.logo--sm {
    max-width: 55px;
    max-height: 55px;
    margin-bottom: 50px;
}

.link-list__wrapper {
    margin-bottom: 50px;
}

.link-list {
    display: flex;
    flex-direction: column;
}

.link-list__item:hover,
.social__icon:hover,
.link-list__item:focus,
.social__icon:focus {
    color: var(--strong-cyan);
    filter: invert(57%)
        sepia(89%)
        saturate(360%)
        hue-rotate(121deg)
        brightness(90%)
        contrast(89%);
    cursor: pointer;
}

.link-list__item {
    margin-bottom: 20px;
}

.social {
    max-width: 160px;
    justify-content: space-between;
    margin: 0 auto;
}

.social__icon {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.social__icon--facebook {
    background-image: url("../images/icon-facebook.svg");
}

.social__icon--twitter {
    background-image: url("../images/icon-twitter.svg");
}

.social__icon--instagram {
    background-image: url("../images/icon-instagram.svg");
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (min-width: 48em) {
    .footer {
        padding: 39px 165px 0 165px;
    }

    .logo--sm,
    .social {
        margin: 0;
    }

    .logo--sm {
        align-self: flex-start;
    }

    .footer__content {
        justify-content: flex-start;
        flex-wrap: wrap;
        align-items: center;
        max-width: 1110px;
        padding: 0;
    }

    .link-list__wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        text-align: left;
        flex-basis: 20%;
        column-gap: 30px;
        margin: 0 0 0 auto;
    }

    .link-list__wrapper > * {
        flex: 0 0 160px;
    }

    .link-list__item {
        margin-bottom: 12px;
    }

    .social {
        max-width: 120px;
        margin-left: auto;
        align-self: flex-start;
    }
}

@media (min-width: 60em) {
    .link-list__wrapper {
        flex-basis: 56%;
    }

    .social {
        align-self: center;
    }
}

@media (min-width: 81em) {
    .link-list__wrapper {
        margin: 0 0 0 135px;
    }
}


