:root {
    /* font stuff */
    --font-size-basis: 1rem;
    --type-scale: 1.2;
    --h6: var(--font-size-basis);
    --h5: calc(var(--h6) * var(--type-scale));
    --h4: calc(var(--h5) * var(--type-scale));
    --h3: calc(var(--h4) * var(--type-scale));
    --h2: calc(var(--h3) * var(--type-scale));
    --h1: calc(var(--h2) * var(--type-scale));
    --font-small: calc(0.667rem);
    --font-family: 'Rubik', sans-serif;
    /* colors */
    --white: #fff;
    --seasalt: #f8f9faff;
    --antiflash-white: #f3efef;
    --platinum: #dee2e6ff;
    --french-gray: #ced4daff;
    --french-gray-2: #adb5bdff;
    --slate-gray: #6c757dff;
    --outer-space: #495057ff;
    --onyx: #343a40ff;
    --eerie-black: #212529ff;
    --black: #000;
    --orange: #e54b4b;
}

p {
    color: var(--eerie-black);
}

section {
    padding: 2rem 4rem;
}

/* navbar styles */
header {
    background-color: var(--antiflash-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header .logo h3 {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

header .logo h3 span {
    font-size: 16px;
    font-weight: 400;
}

header .logo img {
    width: 6rem;
}

header .logo {
    display: flex;
    align-items: center;
    gap: .5rem;
}

header .logo h5 {
    margin: 0;
}

header .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
}

header .nav-links li {
    cursor: pointer
}

header .nav-links .contact-btn {
    background-color: var(--eerie-black);
    color: var(--seasalt);
    border: none;
    padding: .5rem 1.3rem;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}

header .nav-links .contact-btn:hover {
    background-color: var(--seasalt);
    color: var(--eerie-black);
    border: 1px solid var(--eerie-black);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    background-color: transparent;
    border: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content .dropdown-links {
    display: flex;
    flex-flow: column nowrap;
    padding: 1rem;
}

.dropdown-content .dropdown-links a {
    padding: 1rem;
}

.dropdown-content .dropdown-links a:hover {
    background-color: var(--antiflash-white);
}

/* end of navbar */

/* hero section */
.hero-section {
    display: flex;
    justify-content: space-between;
    padding-top: 5rem;
    padding-bottom: 5rem;
    align-items: center;
}

.hero-section .hero-text,
.hero-section .hero-img {
    flex-basis: 50%;
}

.hero-section .hero-img img {
    width: 100%;
    height: 100%;
}

.hero-section .hero-text h1 {
    line-height: 1.5;
}

.hero-section .hero-text h1 #business {
    color: var(--orange);
}

.hero-section .hero-text button {
    background-color: var(--eerie-black);
    color: var(--seasalt);
    border: none;
    padding: .7rem 1.3rem;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}

.hero-section .hero-text button:hover {
    background-color: var(--seasalt);
    color: var(--eerie-black);
    border: 1px solid var(--eerie-black);
}

/* end of hero section */

/* services section */
.services-section {
    background-color: var(--antiflash-white);
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.services-section .services-text {
    flex-basis: 33%;
}

.services-section .services-cards {
    display: flex;
    flex-basis: 66%;
    align-items: center;
}

.services-section .services-cards .card img {
    width: 100%;
}

.services-section .services-cards figure {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.services-section .services-cards figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--orange);
    color: var(--seasalt);
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-section .services-cards figcaption i {
    margin-right: .5rem;
}

.services-section .services-cards figure:hover figcaption {
    top: 0;
    bottom: 0;
}

/* end of services ection */

/* modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: auto;
    background-color: var(--antiflash-white);
    padding: 1rem 2rem;
    border: 1px solid var(--eerie-black);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.modal h3 {
    color: var(--orange);
}

.modal .modal-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal .modal-cards .card {
    background-color: var(--white);
    padding: .5rem 1.5rem;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.modal .modal-cards .card h4 {
    margin: 1rem 0;
}

.backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 2rem;
}

/* end of modal styles */

/* footer */
footer {
    background-color: var(--antiflash-white);
    color: var(--eerie-black);
    display: flex;
    justify-content: space-around;
}

footer .contact {
    display: flex;
    align-items: start;
    padding: 2rem;
    gap: 3rem;
}

footer .contact h4 {
    margin: 0;
}

footer .contact .contact-category {
    display: flex;
    gap: .5rem;
}

footer .contact .contact-category i {
    font-size: 1.2rem;
    margin-top: .1rem;
}

footer .contact .contact-category p {
    margin: 0;
    color: var(--orange);
}

footer .contact .contact-category .phones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 1.2rem;
    }

    .hero-section {
        margin-top: 3rem;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-section .hero-text h1 {
        width: 100%;
    }

    .services-section {
        flex-direction: column;
    }

    .services-cards {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    footer .offices,
    footer .quick-links,
    footer .contact {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
    }

    .services-section {
        position: relative;
    }

    .modal {
        top: 30rem;
        width: 75%;
        position: absolute;
    }

    .modal .modal-cards {
        flex-direction: column;
    }
}

@media screen and (max-width: 992px) {
    .services-cards {
        flex-direction: column;
    }

    .services-section .services-text,
    .services-section .services-cards {
        flex-basis: 50%;
    }

}

/* end of footer */

html {
    font-size: 100%;
    font-family: var(--font-family);
}

ul {
    list-style: none;
}

h1 {
    font-size: var(--h1);
}

h2 {
    font-size: var(--h2);
}

h3 {
    font-size: var(--h3);
}

h4 {
    font-size: var(--h4);
}

h5 {
    font-size: var(--h5);
}

h6 {
    font-size: var(--h6);
}

p {
    font-size: var(--font-size-basis);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ::-moz-selection {
  background-color: var(--primary-color);
}

::selection {
  background-color: var(--primary-color);
} */