/*************** INRO SBS ****************/
/*****************************************/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #about-sbs {
        padding: var(--sectionPadding);
    }
    #about-sbs .container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #about-sbs .content {
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
        max-width: 33.875rem;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }
    #about-sbs .text {
        margin-bottom: 1rem;
    }
    #about-sbs .text:last-of-type {
        margin-bottom: 2rem;
    }
    #about-sbs .button-solid:before {
        background-color: var(--accentColor);
    } 
    #about-sbs .quote {
        margin: 0 0 2rem 0;
        /* 16px - 32px */
        padding: clamp(1rem, 3vw, 2rem);
        background-color: #f7f7f7;
        border-radius: 1rem;
        position: relative;
    }
    #about-sbs .quote-text {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        margin: 0 0 1rem;
        color: #767676;
        display: block;
    }
    #about-sbs .name {
        font-size: 1rem;
        line-height: 1.2em;
        text-transform: uppercase;
        font-weight: bold;
        margin: 0 0 0.25rem;
        color: var(--headerColor);
        display: block;
    }
    #about-sbs .job {
        font-size: 0.875rem;
        line-height: 1.5em;
        color: #767676;
        display: block;
    }
    #about-sbs .quote-icon {
        /* 60px - 136px */
        width: clamp(3.75rem, 10vw, 8.5rem);
        height: auto;
        position: absolute;
        bottom: 0rem;
        /* 16px - 32px */
        right: clamp(1rem, 4vw, 2rem);
    }
    #about-sbs .image-group {
        /* scaling the font size with the view width */
        font-size: min(2.31vw, 0.7em);
        /* using ems so we can use font size to scale the whole section */
        width: 39.4375em;
        height: 39.75em;
        position: relative;
    }
    #about-sbs .picture {
        border-radius: 1.5em;
        /* clips img tag corners */
        overflow: hidden;
        position: absolute;
        display: block;
    }
    #about-sbs .picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* makes image act like a background image */
        object-fit: cover;
    }
    #about-sbs .picture1 {
        width: 32.625em;
        height: 36.3125em;
        right: 0;
        top: 0;
    }
    #about-sbs .picture2 {
        width: 25.875em;
        height: 25em;
        background-color: #fff;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 40px;
        /* 6px - 12px */
        border: clamp(0.375em, 1.5vw, 0.75em) solid var(--primaryDark);
        left: 0;
        bottom: 0;
    }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #about-sbs .container {
        flex-flow: row;
        justify-content: space-between;
        gap: 3.25rem;
    }
    #about-sbs .image-group {
        font-size: min(1.2vw, 1em);
        flex: none;
        /* sends it to the right in the 2nd position */
        order: 2;
    }
    #about-sbs .content {
        margin: 0;
    }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #about-sbs .image-group:before,
    body.dark-mode #about-sbs .image-group:after {
        background: var(--accent);
    }
    body.dark-mode #about-sbs .picture2 {
        background-color: var(--dark);
        /* 6px - 12px */
        border: clamp(0.375em, 1.5vw, 0.75em) solid var(--accentColor);
    }
    body.dark-mode #about-sbs .title,
    body.dark-mode #about-sbs .text,
    body.dark-mode #about-sbs .h3,
    body.dark-mode #about-sbs .quote-text,
    body.dark-mode #about-sbs .name {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #about-sbs .quote {
        background-color: var(--accent);
    }
    body.dark-mode #about-sbs .job {
        color: var(--bodyTextColorWhite);
        opacity: 0.8;
    }
    body.dark-mode #about-sbs .quote-icon {
        opacity: 0.2;
    }
}

/************ CONTACT BANNER *************/
/*****************************************/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #contactBanner {
        padding: var(--sectionPadding);
        background-color: var(--accentColor);
        position: relative;
        z-index: 1;
    }
    #contactBanner .stat-group {
        width: 100%;
        /* changes to 1280px at desktop */
        max-width: 37.5rem;
        margin: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4rem;
    }
    #contactBanner .item {
        list-style: none;
        width: 18.125rem;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    #contactBanner .item:hover .picture {
        background-color: var(--lightAccentColor);
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
        transform: scale(1.2);
    }
    #contactBanner .picture {
        width: 4rem;
        height: 4rem;
        /* 12px - 20px */
        margin-right: clamp(0.75rem, 3vw, 1.25rem);
        border: 1px solid #f6e5db;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s, box-shadow 0.3s, transform 0.6s;
        /* prevents flexbox from squishing it */
        flex: none;
    }
    #contactBanner .flex-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    #contactBanner .icon {
        width: 2rem;
        height: auto;
    }
    #contactBanner .header {
        font-size: 1.25rem;
        font-weight: 900;
        line-height: 1.2em;
        margin: 0;
        margin-bottom: 0.75rem;
        color: var(--bodyTextColorWhite);
        display: block;
    }
    #contactBanner .link,
    #contactBanner .address {
        /* 12px - 16px */
        font-size: clamp(0.75rem, 1.5vw, 1rem);
        line-height: 1.5em;
        text-decoration: none;
        color: var(--bodyTextColorWhite);
        display: block;
    }
    #contactBanner .link:hover {
        text-decoration: underline;
    }
    #contactBanner .background {
        width: 100%;
        height: 100%;
        /* makes it act like a background image */
        object-fit: cover;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
}
/* Tablet - 650px */
@media only screen and (min-width: 40.625rem) {
  #contactBanner .stat-group {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.25rem;
    row-gap: 2rem;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #contactBanner .stat-group {
    max-width: 100rem;
    justify-content: space-evenly;
    flex-wrap: nowrap;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #contactBanner {
    background-color: var(--medium);
  }
  body.dark-mode #contactBanner .header,
  body.dark-mode #contactBanner .link,
  body.dark-mode #contactBanner .hours {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #contactBanner .item:hover .picture {
        background-color: var(--lightAccent);
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
        transform: scale(1.2);
    }
}

/*********** WHERE WE'RE BASED *************/
/*****************************************/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #content-based {
    padding: var(--sectionPadding);
    background-color: #f7f7f7;
    position: relative;
    z-index: 1;
  }
  #content-based .container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 100px */
    gap: clamp(3rem, 9vw, 6.25rem);
  }
  #content-based .content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }
  #content-based .flex {
    max-width: 38rem;
  }
  #content-based .text {
    margin-bottom: 1rem;
  }
  #content-based .text:last-of-type {
    margin-bottom: 2rem;
  }
  #content-1638 .button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
  }
  #content-1638 .button-solid:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width .3s;
  }
  #content-1638 .button-solid:hover:before {
    width: 100%;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #content-based:before {
    height: 63%;
  }
  #content-based .content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
  }
  #content-based .flex {
    width: 50%;
    text-align: left;
    max-width: 38rem;
  }
  #content-based .title {
    margin: 0;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #content-based {
    background-color: rgba(0, 0, 0, 0.2);
  }
  body.dark-mode #content-based .title,
  body.dark-mode #content-based .text,
  body.dark-mode #content-based .text {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #content-based .text {
    opacity: .8;
  }
}