

/** COLORS
    --background: #ffffff;
    --altBackground: #f6f6f6;
    --preHeader: #024081;
    --links: #024081;
    --maintext: #000000;
    --accent1: #717171;
    --accent2: #DDDDDD;
    --accent3: #5eaaf9;
**/

:root {
    --body-font: 'Roboto Condensed';
    --normal-font-size: 1.5rem;
    --preheader-height: 50px;
    --header-height: 55px;
    --z-fixed: 3;
    --background: #ffffff;
    --altBackground: #f6f6f6;
    --preHeader: #002042;
    --links: #024081;
    --maintext: #000000;
    --accent1: #717171;
    --accent2: #DDDDDD;
    --accent3: #5eaaf9;
}

/* === BASE === */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: 400;
    color: var(--maintext);
    background-color: var(--background);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
}

h1, h2, h3 {
    padding: .6rem;
}

h1 {
font-size: 1.5rem;
}

h2 {
font-size: 1.2rem;
}

h3 {
font-size: 1rem;
}

/* === LAYOUT CLASSES === */

.wrapper {
    position: absolute;
    width: 100%;
    top: calc(var(--preheader-height) + var(--header-height));
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

footer {
    flex-shrink: 0;
}

main {
    width: 100%;
    flex: 1 0 auto;
}

.preHeader, footer, .contact {
    display: flex;
    justify-content: space-between;
    background-color: var(--links);
    font-size: 1rem;
    padding: 5px;
}

.preHeader {
    height: var(--preheader-height);
    display: flex;
    justify-content: flex-end;
}

.preHeader a, footer, footer a {
  color: var(--altBackground);
}

.notmobile {
  display: none;
}

.logo {
  padding: 1rem;
}

.logo img {
  margin: auto;
  width: 85%;
}

/* ==== TEXT CLASSES ==== */

.contact .fa-solid, .notmobile {
    padding: 6px;
    vertical-align: middle;
    line-height: 30px;
}

.intro {
  background-image: url(/images/sprayerBackgrnd.jpg);
  background-position: top;
  background-size: cover;
  color: var(--maintext);
  border: 1px solid var(--preHeader);
  text-align: center;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.partners img {
  width: 40%;
  padding-bottom: 1rem;
}

.contentDark {
  background-color: var(--preHeader);
  color: var(--background);
}

.contentLight {
  background-color: var(--background);
}

.contentLight, .contentDark {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  padding: 1rem 0;
  min-height: 35px;
  width: 100%;
}

.contentLight p, .contentLight ul {
  font-size: 1rem;
  margin: 0px 10px 8px 10px;
}

.contentDark h1, .contentDark h2, .contentDark h3, .contentLight h1, .contentLight h2, .contentLight h3  {
  text-align: center;
}

.sprayParts img {
  width: 80%;
  height: auto;
  margin: auto;
}

.sprayParts {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.columns {
  display: flex;
  flex-direction: column;
}

.columnLeft, .columnRight {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  padding: 1rem 0;
}

.columnLeft img, .columnRight img {
  width: 90%;
  margin: auto;
}

.columnLeft ul, .columnRight ul {
  margin: auto;
}

.bottomLogo {
  width: 100%;
  padding: 1rem;
}

.bottomLogo img {
  width: 35%;
  margin: auto;
}

.map {
  width: 80%;
  height: 480px;
  margin: auto;
}

/* === HEADER === */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--preHeader);
    box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
    z-index: var(--z-fixed);
}

/* === NAV === */

.nav {
    height: var(--header-height);
}

.nav__burger, .nav__close {
    color: var(--background);
}

.nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__toggle {
    position: relative;
    width: 32px;
    height: 32px;
}

.nav__burger, .nav__close {
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}

.nav__close {
    opacity: 0;
}

/* === Mobile Navigation === */

@media screen and (max-width: 650px) {
    .nav__menu {
        position: absolute;
        left: 10px;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh -3.5rem);
        overflow: auto;
        pointer-events: none;
        opacity: 0;
        transition: top .4s, opacity .3s;
    }

    .nav__menu::-webkit-scrollbar {
        width: 0;
    }

    .nav__list {
        background-color: var(--preHeader);
        padding-top: 1rem;
    }

}

.nav__link {
    color: var(--background);
    background-color: var(--preHeader);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
}

.nav__link:hover {
    background-color: var(--links);
}

/* === Show Menu === */

.show-menu {
    opacity: 1;
    top: 6.5rem;
    pointer-events: initial;
}

.show-icon .nav__burger {
    opacity: 0;
    transform: rotate(90deg);
}

.show-icon .nav__close {
    opacity: 1;
    transform: rotate(90deg);
}

/* === DROPDOWN === */

.dropdown__item {
    cursor: pointer;
}

.dropdown__arrow {
    font-size: 1.25rem;
    font-weight: initial;
    transition: transform .4s;
}

.dropdown__link {
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    color: var(--background);
    background-color: var(--preHeader);
    display: flex;
    align-items: center;
    column-gap: .5rem;
    transition: background-color .3s;
}

.dropdown__link i {
    font-size: 1.25rem;
    font-weight: initial;
}

.dropdown__link:hover {
    background-color: var(--links);
}

.dropdown__menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
}

.dropdown__item:hover .dropdown__menu {
    max-height: 1000px;
    transition: max-height .4s ease-in;
}

.dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
}

.hours {
    text-align: center;
}

/* ==== BREAKPOINTS ==== */
/* For Small Devices */
@media screen and (max-width: 340px) {
    .container {
        margin-inline: 1rem;
    }

    .nav__link {
        padding-inline: 1rem;
    }
}

/* For Medium Devices */
@media screen and (min-width: 650px) {

    .wrapper {
        top: calc(var(--preheader-height) + var(--header-height) + 35px);
    }
    .nav {
        height: calc(var(--header-height) + 2rem);
        display: flex;
        justify-content: space-between;
    }

    .nav__toggle {
        display: none;
    }

    .nav__list {
        height: 100%;
        display: flex;
        column-gap: 3rem;
    }

    .nav__link {
        height: 100%;
        padding: 0;
        justify-content: initial;
        column-gap: .25rem;
    }

    .nav__link:hover {
        background-color: transparent;
    }

    .dropdown__item {
        position: relative;
    }

    .dropdown__menu {
        max-height: initial;
        overflow: initial;
        position: absolute;
        left: 0;
        top: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s, top .3s;
    }

    .dropdown__link {
        padding-inline: 1rem 3.5rem;
    }

    .dropdown__item:hover .dropdown__menu {
        opacity: 1;
        top: 1.8rem;
        pointer-events: initial;
        transition: top .3s;
    }

    .logo img {
        max-width: 450px;
    }

    .bottomLogo img {
      max-width: 250px;
    }

    .contentLight p, .contentDark p, .contentLight ul, .sprayParts {
      width: 80%;
      margin: auto;
    }

    .imgContainer {
        width: 48%;
        display: flex;
    }

    .sprayParts {
        flex-direction: row;
        justify-content: space-between;
    }

    .sprayParts img {
        width: 100%;
        height: auto;
        margin: auto 0;
    }

}

@media screen and (min-width: 900px) {

    .columns {
        flex-direction: row;
        row-gap: 1rem;
        width: 80%;
        margin: auto;
    }
  
    .columnLeft, .columnRight {
        width: 50%;
    }
  
    .columnLeft p, .columnRight p {
        width: 100%;
    }
  
    .columnLeft img, .columnRight img {
        max-width: 450px;
        height: auto;
        margin: auto;
    }

    .notmobile {
        display: block;
    }

    .contact div a {
        display: flex;
        justify-content: space-between;
    }

}