:root {
    --primary: #0a73ba;
    --secondary: #4e4e4e;
    --tertiary: #ecf4ff;
    --primary-gradient: linear-gradient(135deg, #0a73ba 0%, #145c97 95%);
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Roboto', 'Montserrat', sans-serif;
}
* {
    font-family: var(--primary-font);
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    text-decoration: none;
}
.container {
    display: flex;
    justify-content: space-between;
    align-content: center;
    width: 100%;
    flex-wrap: wrap;
    padding: 2rem 20%;
}
.page-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;
}
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 500;
    background-color: white;
    padding: 0.75rem 10%;
} 
.navbar > #collapse > ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.navbar li {
    margin: 10px;
}
.nav-link, .nav-button {
    font-family: var(--secondary-font);
}
.nav-link {
    text-decoration: none;
    color: var(--secondary);
}
.nav-link.active, .nav-link:hover {
    color: var(--primary);
}
.nav-logo {
    height: 80px;
    justify-self: flex-start;
}
.nav-dropdown {
    position: relative;
}
.nav-submenu {
    position: absolute;
    display: flex;
    visibility: hidden;
    background-color: white;
    padding: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 0 1.5rem .75rem #4e4e4e35;
    color: var(--secondary);
    max-height: max-content;
}
.nav-submenu::before {
    content: '';
    width: 100%;
    position: absolute;
    height: 50px;
    left: 0;
    top: -10px;
}  
.nav-dropdown:hover>.nav-submenu,
.nav-submenu:hover {
    visibility: visible;
}
.nav-submenu > ul {
    list-style-type: none;
    padding: 0;
    margin-right: 0.75rem;
    padding-right: 0.75rem;
    border-right: 1px solid var(--secondary);
    font-size: 1rem;
    text-wrap: nowrap;
}
.nav-submenu > ul:last-of-type {
    padding: 0;
    border: none;
}
.nav-submenu > ul .header a {
    font-weight: 700;
    border-bottom: 0.5px solid var(--secondary);
    font-size: 1.25rem;
}
.nav-submenu > ul a:hover {
    color: var(--primary);
}
.nav-submenu > ul a,
.nav-submenu > ul > li a {
    color: var(--secondary);
    position: relative;
}
.dropdown-toggle {
    cursor: pointer;
    color: var(--secondary);
    z-index: 1000;
    position: relative;
}
#collapse-toggle {
    font-size: 2rem;
    color: var(--secondary);
    display: none;
    transition: 300ms;
}
.nav-button {
    margin-left: 1rem;
}
.light-button {
    font-family: var(--secondary-font);
    font-size: 1.3rem;
    font-weight: 500;
    background-color: transparent;
    color: white;
    border: white 3px solid;
}
.light-button:hover {
    color: var(--primary);
    font-weight: 600;
    border: 3px solid white;
    background: white;
    box-shadow: 0 0 1.5rem .75rem #4e4e4e35;
    scale: 105%;
    transition: 300ms;
}
.dark-button {
    background-color: transparent;
    color: var(--primary);
    border: var(--primary) 3px solid;
}
.dark-button:hover {
    color: white;
    border: 3px solid var(--primary);
    background: var(--primary);
    scale: 105%;
    box-shadow: 0 0 1.5rem .75rem #4e4e4e35;
    transition: 300ms;
}
.nav-button:hover {
    box-shadow: none;
}
.button-div {
    display: flex;
    justify-items: flex-start;
    align-items: center;
}
.button {
    display: block;
    font-size: 1.1rem;
    font-weight: 450;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 0.25rem;
    transition:300ms;
}
.content-section {    
    padding: 5rem 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}
.content-section:nth-child(even) {
    background-color: var(--tertiary);
}
.content-section:last-of-type::after {
    background-color: transparent;
}
.content-section .text-group {
    text-align: center;
    margin-bottom: 1.5rem;
}
.content-section h2 {
    font-family: var(--secondary-font);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}
.content-section .icon {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    width: 35%;
}
.content-section .icon-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.content-section .icon-group i {
    font-size: 2rem;
    border: 4px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    padding: 1.5rem;
    margin-right: 1rem;
}
.clients-list {
    display: flex;
    justify-items: center;
    align-items: center;
    flex-wrap: wrap;
}
.clients-list img {
    max-height: 120px;
    padding: 1rem;
    filter: grayscale();
    transition: 500ms;
}
.clients-list img:hover {
    filter: none;
    scale: 105%;
    transition: 300ms;
}
.team-list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 3rem;
    width: 100%;
    justify-content: space-around;
}
.team-card {
    width: 30%;
    box-shadow: 0 0 1.5rem .75rem #4e4e4e15; 
    padding: 1rem;
    border-radius: 0.5rem;
    transition: 300ms;
}
.team-card:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 1.5rem .75rem #4e4e4e45;
    transition: 300ms;
    scale: 102%;
}
.team-card:hover .title {
    color: white;
    transition: 300ms;
}
.team-card h3 {
    margin-bottom: 0;
}
.team-card .title {
    color: var(--primary);
    margin-top: 0;
    transition: 300ms;
}
.team-headshot {
    border: 5px solid var(--primary);
    border-radius: 0.25rem;
    width: 100%;
}
.cards-section {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.cards-section:not(.cards-industry) h3 {
    text-align: center;
}
.grouped-card {
    background: var(--primary-gradient);
    box-shadow: 0 0 1.5rem .75rem #4e4e4e35; 
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    width: 30%;
}
.grouped-card-sm {
    background: var(--primary-gradient);
    box-shadow: 0 0 1.5rem .75rem #4e4e4e35; 
    color: white;
    padding: .75rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    width: 15%;
}
.grouped-card i {
    opacity: 10%;
    font-size: 8.5rem;
    position: absolute;
    margin-left: 30%;
}
.grouped-card-sm i {
    opacity: 10%;
    font-size: 4.25rem;
    position: absolute;
    margin-left: 50%;
    margin-top: 5%;
}
.hero-section {
    display: flex;
    background-image: url('/assets/hero-image.webp');
    background-size: cover;
}
@media screen and (max-width: 1049px) {   
    .hero-section {
        background-image: url('/assets/hero-image-mobile.jpg');
    }
}
.hero-text {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 50%;
    padding: 10rem 15% 10rem 5%;
    background: linear-gradient(90deg, var(--primary), transparent);
}
.hero-text > h3 {
    color: white;
}
.page-header {
    height: 150px;
    background-color: var(--primary);
    background: var(--primary-gradient);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 10%;
}
.header-text {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}
.content-text, .content-text ~ ul > li {
    font-size: 1.25rem;  
    line-height: 1.75;
}
.content-image {
    max-width: 100%;
    border: 4px solid var(--primary);
    border-radius: 0.25rem;
    box-shadow: 0 0 1.5rem 0.75rem #00000035;
}
.content-image:not(:first-of-type) {
    margin-top: 1.5rem;
}
.content-image-small {
    width: 50%;
    margin-right: auto;
}
.content-image-small:nth-child(odd) {
    margin-right: 0;
    margin-left: auto;
}
.services-list {
    padding: 0;
}
.services-list li{
    list-style-type: none;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}
.services-list a {
    color: var(--secondary);
}
.services-list a:hover {
    color: var(--primary);
}
.footer {
    justify-self: flex-end;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    background: var(--primary-gradient);
    padding: 2rem 20%;
}
.footer-contact {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
}
.contact-item i {
    font-size: 1.75rem;
}
.contact-item h2,
.contact-item p {
    margin-top: 0;
}
.footer,
.contact-item a {
    color: white;
}
.logo-small {
    max-width: 100px;
}
#contact-info {
    width: 35%;
    padding-right: 3rem;
    color: var(--secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#contact-info p{
    margin-bottom: 5rem;
}
#contact-card {
    width: 65%;
    border-radius: .5rem;
    box-shadow: 0 0 1rem .25rem rgba(0,0,0,.2);
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
}
#contact-card form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#contact-card input, #contact-card textarea {
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid #a2a2a2;
    padding: 0.5rem;
}
#contact-card h1 {
    margin: 0;
    font-weight: 700;
}
#contact-card p {
    line-height: 1.5;
    margin-bottom: 2rem;
}
#contact-button {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}
.contact-group {
    display: flex;
    align-items:flex-start;
}
.contact-icon, .contact-icon a {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: var(--primary);
}
.contact-group h2 {
    margin-top: 0;
}
.contact-group p {
    color: var(--primary);
}
@media (max-width: 1049px) {
    #collapse {
        max-height: 0px;
        overflow: hidden;
        transition: 300ms;
        width: 100%;
    }
    #collapse-header:has(+ #collapse:not(.hidden)) #collapse-toggle{
        transform: rotate(90deg);
        transition: 300ms;
    }
    #collapse-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #collapse-toggle {
        display: inline;
        transition: 300ms;
    }
    .navbar {
        padding: 0;
        flex-direction: column;
    }
    .navbar > #collapse-header {
        padding: 0.75rem 10%;
    }
    .navbar > #collapse > ul { 
        flex-direction: column;
        overflow: hidden;
        width: 100%;
    }
    .nav-submenu {
        position: static;
        display: flex;
        visibility: visible; 
        box-shadow: none;
        background-color: rgb(244, 244, 244);
        border-radius: 0;
        max-height: 0px;
        padding: 0;
        text-align: center;
        overflow: hidden;
        transition: 500ms;
        flex-direction: column;
        width: 100%;
    }
    .nav-submenu > ul {
        border: none;
        margin: 0;
        padding: 0;
    }
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    .hero-section {
        background-image: url('/assets/hero-image-mobile.webp');
    }
    .content-section .icon {
        width: 100%;
    }
    .content-section .icon-group {
        flex-direction: column;
    }
    .content-section .text-group {
        margin-bottom: 0;
    }
    .team-card {
        width: 75%;
    }
    .clients-list {
        grid-template-columns: 1fr;
    }
    .grouped-card {
        width: 75%;
    }
    .grouped-card-sm {
        width: 50%;
    }
    .footer-contact {
        flex-direction: column;
    }
    .container {
        padding: 0;
    }
    #contact-info {
        padding: 0 2rem;
    }
    #contact-card {
        box-shadow: none;
        border-radius: 0;
    }
    #contact-info, #contact-card {
        width: 100%;
    }
}