:root {
    --indigodye: #094074;
    --berkley: #05335d;
    --lapislazuli: #3c6997;
    --flame: #d8572a;
    --mustard: #ffdd4a;
    --princeton: #fe9000;
    --weborange: #ffae42;
    --amber: #ffbf00;
    --blueshadow: rgba(0, 0, 50, 0.4);
    --grayshadow: rgba(247, 237, 226, 0.4);
    --lightblackshadow: rgba(0, 0, 0, 0.1);
    --white: #fff;
    --black: #000;
    font-size: 17px;
}

* {
    box-sizing: border-box;
}
html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: benton-modern-text, serif;
    font-weight: 400;
    font-style: normal;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

/*//////ABOVE THE FOLD SECTION//////*/

/*HEADERS + SPAN*/

h1 {
    font-family: benton-modern-text, serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1rem;
}

h2 {
    font-family: benton-modern-text, serif;
    font-weight: 700;
    font-style: normal;
}

h3 {
    font-family: benton-modern-text, serif;
    font-weight: 400;
    font-style: normal;
}

span {
    display: block;
    width: 0;
    height: 0;
    overflow: hidden;
}

/*NAVBAR*/
.globalnav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: var(--white);
    padding: 10px 10px;
    box-shadow: 0 1px 10px var(--lightblackshadow);
    flex-wrap: nowrap;
}

.globalnav h1 ul li {
    margin: 0;
    padding: 0;
}

.navbar {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-end;
    /*margin-left: 20px;*/
    margin-left: auto;
    min-width: 0;
    align-items: center;
    z-index: 100;
}

.navbar li a {
    position: relative;
    white-space: nowrap;
    color: var(--indigodye);
    text-decoration: none;
    padding: 8px 12px;
    font-family: benton-modern-text, serif;
    font-weight: 400;
    font-style: normal;
    transition: transform 0.3s ease;
}

.navbar li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--princeton);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar li a:hover::after,
.navbar li a:focus::after {
    transform: scaleX(1);
}

/*LOGO*/
.logo {
    flex-shrink: 0;
    max-width: 180px;
}

.logo h1 {
    margin: 0;
    height: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.logo img {
    max-height: 60px;
    height: auto;
    /*width: 100%;*/
    width: auto;
    max-width: 100%;
    display: block;
}

/*MOBILE NAVBAR*/
.menu {
    display: none;
}

/*HERO SECTION*/
.hero-img {
    position: relative;
    width: auto;
    height: 86vh;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--berkley);
    margin: 20px 20px;
}

.hero-img picture,
.hero-img img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 0 20px;
    max-width: 90%;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--white);
    font-family: benton-modern-text, serif;
    font-weight: 700;
    font-style: normal;
    margin: 0;
    padding: 0;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 1em;
}

.hero-text button {
    color: white;
    background-color: transparent;
    border: 2px solid var(--white);
    padding: 0.75em 2em;
    font-size: 1rem;
    border-radius: 2rem;
    cursor: pointer;
    position: relative;
}

.hero-text button:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

/*//////ABOUT SECTION//////*/

/*TO TOP BUTTON*/

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--princeton);
    color: white;
    border: 1px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--flame);
    transform: translateY(-5px);
}

#scrollToTopBtn.show {
    display: flex;
}

/*//////GENERAL HEADINGS SECTION//////*/
#about,
#services,
#contact,
#team {
    padding: 1% 10%;
}

#about,
#services,
#contact {
    font-family: basic-sans, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1.5;
}

mark {
    color: var(--lapislazuli);
    text-shadow: 1px 1px 2px rgba(162, 162, 162, 0.5);
    font-family: benton-modern-text, serif;
    font-weight: 700;
    font-style: normal;
    background-color: transparent;
    font-size: 1.4em;
    padding-right: 10px;
}

/*//////SERVICES SECTION//////*/

#about h1,
h2 {
    color: var(--flame);
}

h3 {
    color: var(--princeton);
}

/*//////TEAM SECTION//////*/

.card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid #ccc;
    box-shadow:
        0 0 0 7px var(--lapislazuli),
        0 0 0 8px var(--white);
}
#staff {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2rem;
    margin: 0 auto;
    padding: 2rem;
}

.team-item {
    background-color: var(--lapislazuli);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--blueshadow);
    display: flex;
    align-items: center;
    text-align: center;
}

.name {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0.25rem 0;
    color: var(--weborange);
    font-family: basic-sans, sans-serif;
    font-style: normal;
}

.title {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0.25em auto;
    color: var(--amber);
    font-family: basic-sans, sans-serif;
    font-style: normal;
}

#team p {
    line-height: 1.7;
    margin: 1rem auto;
    color: var(--white);
    font-size: 1rem;
    font-family: basic-sans, sans-serif;
    font-weight: 300;
    font-style: normal;
    padding: 1% 10%;
}

/*//////CONTACT SECTION//////*/

.googlemap {
    position: relative;
    padding-bottom: 50%;
}

.googlemap iframe {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}

/*----------/// MEDIA QUERIES ///----------- */

@media screen and (max-width: 649px) {
    #intro {
        min-height: auto;
    }

    .globalnav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        background-color: var(--white);
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu {
        display: block;
        background: none;
        border: none;
        font-size: 1.99rem;
        cursor: pointer;
        color: var(--indigodye);
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--indigodye);
        width: 200px;
        border: 1px solid #ccc;
        border-radius: 0 0 0 0;
        padding: 5px 0;
    }

    .navbar.show {
        display: flex;
    }

    .navbar li {
        margin: 0;
        padding: 0;
    }

    .navbar li a {
        padding: 10px 20px;
        display: block;
        background-color: var(--indigodye);
        color: var(--white);
    }

    #staff {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .team-item img {
        width: 120px;
        height: 120px;
    }
}
