@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --base: #575757;
    --copy: #fff;
    --color1: #c40d3c;
    --color2: #011e41;
    --header-height: 11rem;
    --footer-height: 12rem;
}

html {
    width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    position: relative;
    overflow-x: hidden;
    top: 0;
    min-height: 200vh;
    display: block;
    font-family: "Montserrat", sans-serif;
    background: var(--base);
    color: var(--copy);
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    font-size: 14pt;
}
.flex-grow {
    flex-grow: 1;
}

main {
    flex-grow: 1;
    padding: 1rem 0 2rem 0 !important;
}

h2 {
    font-size: 28pt;
}
h3 {
    font-size: 26pt;
}
.three-divisions h2 {
    font-size: 32pt;
}
.section-text-content h2, .section-text-content h1 {
    margin: 3rem 0;
}
.how-can-help {
    padding-top: 8rem;
    padding-bottom: 8rem;
}
@media (min-width: 992px) {
    .how-can-help {
        padding: 8rem;
    }
}

.btn {
    border-radius: 4rem;
    border-color: transparent;
}
.btn:active, .btn:focus, a.btn:active, a.btn:focus, .btn:focus-visible, a.btn:focus-visible {
    background: white !important;
    color: black !important;
    box-shadow: none;
    border-color: transparent !important;
}
.btn.btn-secondary {
    border: 1px solid white;
    background: none;
    color: white;
}
.btn-secondary:hover {
    background: white;
    color: var(--base);
}
.btn-primary {
    color: black;
    background: white;
}
.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

#header {
    position: fixed;
    top: 0;
    width: 100vw;
    height: var(--header-height);
    background: var(--base);
    z-index: 1046;
}

@media (min-width: 992px) {
    .scrolling #header {
        --header-height: calc(11rem - var(--scrollAmnt));
    }
    #header.collapsed {
        box-shadow: 0 0 4px #00000050;
    }
}
.header-container {
    position: relative;
    height: var(--header-height);
}

#header .brand {
    display: flex;
    align-items: center;
    height: 100%;
}

@media (max-width: 992px) {
    .brand {
        justify-content: center;
    }
}

.header-logo {
    position: relative;
    height: calc(var(--header-height) * .6);
}

#header .divisions {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 992px) {
    #header .divisions {
        max-width: 54rem;
    }
}
#header .btn-primary {
    padding: 1rem;
    max-width: 13rem;
}

.divisions-nav  {
    position: relative;
    list-style: none;
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}
.divisions-nav a {
    text-decoration: none;
}
.divisions-nav li {
    display: flex;
    justify-content: center;
    height: fit-content;
    width: 33.333333%;
}
.divisions-nav .title {
    position: relative;
    text-decoration: none;
    color: var(--copy);
    margin: .5rem 0 0 0;
    font-size: 12pt;
    font-weight: bold;
    width: fit-content;
    text-align: center;
}
.division-logo {
    height: 2rem;
    width: fit-content;
    margin: 0 auto;
}
.division-logo.jmay {
    filter: brightness(0) invert(1);
}
.divisions-nav .selector {
    position: absolute;
    bottom: -.5rem;
    left: 0;
    width: 33.333333%;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
}

.divisions-nav .selector::after {
    content: "";
    display: block;
    position: relative;
    top: 0;
    left: 50%;
    width: 8rem;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
}
.divisions-nav .division-item:nth-child(1).active ~ .selector {
    left: 0;
    opacity: 1;
}
.divisions-nav .division-item:nth-child(2).active ~ .selector {
    left: 33.333333%;
    opacity: 1;
}
.divisions-nav .division-item:nth-child(3).active ~ .selector {
    left: 66.666666%;
    opacity: 1;
}

.subtext {
    font-size: 12pt;
    color: var(--copy);
    width: 100%;
    text-align: center;
    position: absolute;
    left: 0;
    bottom: .5rem;
}

@media (min-width: 992px) {
    .scrolling #header .subtext {
        opacity: 0;
        pointer-events: none;
    }
}


#mobileToggle {
    position: absolute;
    top: 0;
    right: -8rem;
    height: 6rem;
    width: 6rem;
    pointer-events: none;
    cursor: pointer;
    opacity: 0;
    transition: .25s;
}
#mobileToggle::before, #mobileToggle::after {
    content: "";
    position: absolute;
    display: block;
    height: 4px;
    width: 50%;
    top: calc(50% - 8px);
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .25s;
    background: white;
}
.mobile-toggled #mobileToggle::before {
    transform: translate(-50%, -50%) rotate(-45deg);
    top: 50%;
}
.mobile-toggled #mobileToggle::after {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
#mobileToggle::after {
    top: calc(50% + 8px)
}
#mobileMenu {
    padding-top: 8rem;
    background: var(--base);
    display: flex;
    flex-direction: column;
}

.mobile-nav .divisions-nav {
    flex-direction: column;
}
.mobile-nav li {
    margin: 2rem 0;
}


@media (max-width: 992px) {
    #header {
        position: absolute;

    }
    #header, body {
        --header-height: 14rem;
    }
    #header {
        padding: 0;
    }
    #header.animate {
        transition: .25s;
    }
    #header.animate .header-logo {
        transition: .25s;
    }
    #header .divisions {
        justify-content: start;
        padding-top: 1rem;
        height: 50%;
    }
    #header .brand {
        height: fit-content;
        padding-top: 1rem;
    }
    #header .title {
        display: none;
    }
    .header-logo {
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        width: 12rem;
        max-width: 90vw;
    }
}

.contact-link {
    color: white;
}

figure {
    margin: 0;
}
figure img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

#footer {
    position: relative;
    padding: 2rem 0;
    width: 100vw;
    background: var(--base);
    display: flex;
    align-items: center;
}
.footer-logo {
    width: 12rem
}

.hero {
    position: relative;
    height: 44rem;
    min-height: 30vh;
    max-height: 75vh;
    padding: 0;
}
@media (max-width: 768px) {
    .hero {
        height: 41rem;
        max-height: unset;
    }
}
.hero-image {
    height: 100%;
    width: 100%;
}
.hero-image img {
    object-fit: cover;
}
.slide-content, .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6rem 0 4rem 0;
    text-align: center;
    text-shadow: 0 0 4px #00000075;
    background: #00000075;
    background: linear-gradient(180deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}
@media (max-width: 992px) {
    .slide-content, .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 .5rem;
        bottom: unset;
        top: 0;
        height: 100%;
    }
}
.slide-title {
    font-size: 38pt;
    font-weight: bold;
}
.slide-logo {
    position: absolute;
    top: .5rem;
    left: 2rem;
    height: 6rem;
    width: 6rem;
    filter: drop-shadow(0 0 4px #00000050);
}
@media (max-width: 992px) {
    .slide-logo {
        left: calc(50% - 7rem);
    }
}

.asme-logo, .tanks-logo {
    width: 12rem;
    margin: 0 1rem 0 1rem;
}
.asme-logo {     
    filter: brightness(0) invert();
}


.new-location {
    min-height: 18rem;
    display: flex;
    align-items: center;
}
.location-image {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1/1;
}
.location-image img {
    object-fit: cover;
}

.icon {
    height: 4rem;
}

.service {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.service:not(:last-child) {
    border-right: 1px solid white;
}
.service .icon {
    margin-bottom: 2rem;
    width: 4rem;
}
.service .icon img {
    filter: invert();
}

section.container {
    padding: 8rem 0;
}
@media (max-width: 992px) {
    section.container {
        padding: 3rem 0 2rem 0;
    }
}

.wide-section figure {
    aspect-ratio: 16/8;
}

.col-num {
 font-size: 46pt;   
}