@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

:root {
    --clr-blu: #582582;
}


html {
    width: 100%;
    height: 100%;
}


@media(max-width: 767px) {
    html {
        font-size: 0.875rem;
    }
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    background-image: url(./img/bg-hero.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


img,
video {
    display: block;
    max-width: 100%;
}

address {
    font-style: normal;
}

section {
    max-width: 1200px;
    margin-inline: auto;
    padding: 30px 15px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}


.section-video {
    position: relative;
    border-radius: 0.25rem;
    overflow: clip;
}

.section-video video {
    aspect-ratio: 1 / 0.57;
}

.section-video .playButton {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: 36%;
    left: 46%;
    animation: hoverShadow 1.5s infinite;
    box-shadow: 0 0 0 2em transparent;
}

.section-video .playButton img {
    margin: auto;
}


.section-contact {
    display: grid;
    grid-template-columns: 4em 1fr;
    gap: 1em;
    align-items: center;
    font-weight: 500;
}


.section-contact p {
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.section-contact a:hover,
.section-contact a:focus {
    color: var(--clr-blu);
}


.section-end {
    font-weight: 300;
    text-align: center;
}


.section-end img {
    width: 18rem;
    margin-inline: auto;
}

.section-end p {
    font-size: 1.125rem;
    text-wrap: balance;
    margin-top: 1.5rem;
}


.section-social {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.section-social a img {
    width: 1.5em;
}

.section-social a {
    padding: 0.5em;
    border-radius: 0.25rem;
}


.section-social a:hover,
.section-social a:focus {
    background: var(--clr-blu);
}

.section-social a:hover img,
.section-social a:focus img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7495%) hue-rotate(288deg) brightness(100%) contrast(100%);
}


.divider {
    background: linear-gradient(180deg, #D7C5E5 1.06%, #B695D0 101.06%), #582582;
    position: relative;
    height: 100%;
    min-height: 20px;
    border-radius: 0.1rem;
    overflow: hidden;
    display: none;
}

.divider::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: var(--clr-blu);
}

@keyframes hoverShadow {
    0% {
        box-shadow: 0 0 0 0 #fff;
    }
}

.section-start {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


@media (min-width: 767px) {

    body {
        display: grid;
        place-items: center;
    }

    section {
        padding: 15px 30px;
        grid-template-columns: 1fr 10px 0.8fr;
        gap: 2rem;
        justify-content: space-between;
    }


    .section-start {
        grid-column: 1;
        grid-row: 1;
    }

    .section-end {
        grid-column: 3;
        grid-row: 1;
    }

    .divider {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }
}


@media (min-width: 1000px) {
    section {
        gap: 3rem;
    }

    .section-end img {
        width: auto;
    }

    .section-contact {
        font-size: 1.25rem;
    }
}



@media(max-width: 767px) {
    address a {
        font-size: 0;
    }

    address a::before {
        font-size: 1rem;
    }

    .email-link a::before {
        content: 'Send Email';

    }

    .call-link a::before {
        content: 'Call Us';
    }

    .section-start {
        grid-row: 1;
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .section-end {
        grid-row: 2;
    }

    .section-contact {
        grid-template-columns: 4em auto;
        justify-content: space-between;
    }
}