/*-- -------------------------- -->
<---          Staff             -->
<--- -------------------------- -*/

/* Mobile */
@media only screen and (min-width: 0em) {
  #staff .content {
    margin-bottom: 8em;
    text-align: center;
  }
  #staff .content + .content {
    margin-bottom: 0;
  }
  #staff .content .description {
    margin: auto;
    margin-top: 4.6875em;
    width: 90%;
    max-width: 45em;
  }
  #staff .content h2 {
    margin-bottom: 1em;
    font-size: min(8vw, 2em);
  }
  #staff .content p {
    font-size: min(5vw, 1.5em);
    text-align: left;
    padding-left: min(5vw, 1.5em);
    margin-bottom: 2em;
  }
  #staff picture {
    display: block;
    position: relative;
    margin: auto;
    width: 20em;
    height: 28em;
    font-size: min(3vw, 0.7em);
  }
  #staff picture:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: var(--primary);
    opacity: 1;
    top: 2.5em;
    left: -2.5em;
  }
  #staff picture:after {
    content: '';
    position: absolute;
    display: block;
    height: 32.25em;
    width: 28.75em;
    background: url("../images/content-circles.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    top: -2.125em;
    right: -2.5em;
    z-index: -1;
  }
  #staff picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

/* Small Desktop */
@media only screen and (min-width: 64em) {
  #staff .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-evenly;
    max-width: 75em;
  }
  #staff .content {
    margin-bottom: 0;
  }
  #staff .content .description {
    width: 80%;
    max-width: 35em;
  }
}



/*-- -------------------------- -->
<---          Office            -->
<--- -------------------------- -*/

/* Mobile */
@media only screen and (min-width: 0em) {
  #office .container {
    text-align: center;
    width: 90%;
    max-width: 70em;
    padding: 4em 0 2em;
    background: linear-gradient(#3f51b5, #3f51b5 2.5%, white 2.5%, white);
    -webkit-box-shadow: 0px -7px 11px -1px rgba(0,0,0,0.2); 
            box-shadow: 0px -4px 10px 4px rgba(0,0,0,0.2);
    border-radius: 10px;
  } 
  #office .container h2 {
    font-size: min(7vw, 2em);
    font-weight: 400;
    margin-bottom: 0.75em;
  }
  #office .content {
    margin: auto;
  }
  #office .contact-info {
    margin: auto;
    margin-bottom: 4em;
    width: 90%;
    max-width: 27em;
    padding: 0.5rem;
    border-radius: 1em;
    background-color: whitesmoke;
    -webkit-box-shadow: 0px 0px 25px -7px var(--primary-dark);
       -moz-box-shadow: 0px 0px 25px -7px var(--primary-dark);
            box-shadow: 0px 0px 25px -7px var(--primary-dark);
  }
  #office .contact-info a {
    text-decoration: none;
  }
  #office .contact-info .flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    align-items: center;
  }
  #office .contact-info p {
    font-size: min(5vw, 1.25rem);
  }
  #office .contact-info span {
    white-space: nowrap;
  }
  #office .contact-info .flex > :first-child {
    width: 40%;
    font-weight: 700;
  }
  #office .contact-info .flex > :last-child {
    width: 55%;
    text-align: left;
  }
  #office .office-name:hover,
  #office .office-name:focus, 
  #office .address:hover, 
  #office .address:focus {
    text-decoration: underline;
  }
  #office .address img {
    width: 3em;
  }
  #office .phone img {
    width: 2em;
  }
  #office .phone .img-wrapper {
    display: flex;
    justify-content: center;
    padding: 1em 0;
  }
  #office iframe {
    max-width: 90%;
    display: block;
    margin: auto;
    margin-bottom: 4em;
  }
  #office .button-solid {
    display: inline-block;
    font-size: min(4vw, 1em);
    max-width: 95%;
  }
  #office .button-solid.hidden {
    display: none;
  }
  #office .contact-info.other-offices {
    padding: 1em;
    white-space: nowrap;
    max-width: 24em;
  }
  #office .contact-info.other-offices .flex > :first-child {
    width: 30%;
  }
  #office .contact-info.other-offices .flex > :last-child {
    width: 65%;
  }
  #office .content.other-offices.hidden {
    display: none;
  }
  #office h2.other-offices.hidden {
    display: none;
  }
  #office h2.other-offices {
    display: inline-block;
    position: relative;
    font-size: min(10vw, 3em);
    margin-top: 0.5em;
    margin-bottom: 1.5em;
  }
  #office h2.other-offices:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 0.2em;
    background: #3f51b5;
    opacity: 1;
    bottom: -0.3em;
    border-radius: 0.15789474em;
    left: 0em;
    right: -0.31578947em;
  }
  #office .contact-info.other-offices:last-of-type {
    margin-bottom: 0;
  }
}

/* Small Desktop */
@media only screen and (min-width: 64em) {
  #office .container {
    text-align: center;
    padding: 7em 0 4em;
  }
  #office .content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;    
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-evenly;
    margin-bottom: 6em;
  }
  #office .content.other-offices {
    margin-bottom: 0;
  }
  #office .contact-info {
    flex: 1;
    align-self: center;
    margin: 0;
  }
  #office iframe {
    margin: 0;
  }
  #office .button-solid {
    font-size: 1.25em;
  }
}

/* Very Large Desktop */
@media only screen and (min-width: 1800px) {
  #office iframe {
    width: 40%;
    height: auto;
  }
}



/*-- -------------------------- -->
<---           Reviews          -->
<--- -------------------------- -*/

/* Mobile */
@media only screen and (min-width: 0em) {
  #reviews .container {
    width: 96%;
    max-width: 100em;
  }
  #reviews .review {
    padding: 4em 1.875em 1.125em 1.875em;
    -webkit-box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
            box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 25.625em;
    margin: auto;
    margin-bottom: 6.25em;
    border-radius: 0.3125em;
    position: relative;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  #reviews .review .profile {
    display: block;
    height: 6.1875em;
    width: 6.1875em;
    margin-left: 0;
    border-radius: 50%;
    margin-bottom: 1em;
    position: absolute;
    left: 1.875em;
    top: -3.1875em;
  }
  #reviews .review p {
    line-height: 1.33333333;
    margin-bottom: 1.55555556em;
    text-align: left;
  }
  #reviews .review .star-group {
    border-top: 1px solid #E7E7E7;
    padding-top: 1em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
  }
  #reviews .review .star-group .name {
    color: #1A1A1A;
    line-height: 1.33333333em;
    text-align: left;
    font-weight: bold;
    display: block;
  }
  #reviews .review .star-group .desc {
    color: #575757;
    font-weight: 400;
    display: block;
  }
  #reviews .review .star-group img {
    display: block;
    width: 5.6875em;
    height: 0.9375em;
    margin: 0;
  }
  #reviews .expanded-review {
    display: none;
  }
  #reviews .expanded-review[clicked] {
    display: block;
  }
  #reviews .view-more-reviews {
    text-align: center;
    margin-top: -3em;
  }
  #reviews .view-more-reviews[clicked] {
    display: none;
  }
}

/* Tablet */
@media only screen and (min-width: 48em) {
  #reviews .container {
    font-size: 1em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    padding: 0;
  }
  #reviews .review {
    margin-left: 1em;
    margin-right: 1em;
  }
  #reviews .expanded-review {
    display: block;
  }
  #reviews .view-more-reviews {
    display: none;
  }
}



/*-- -------------------------- -->
<---    Final Call To Action    -->
<--- -------------------------- -*/

/* Mobile */
@media only screen and (min-width: 0em) {
  #cta {
    position: relative;
    padding: 3.125em 0;
    margin-bottom: 0;
  }
  #cta:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: .7;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #cta .container {
    text-align: center;
  }
  #cta picture {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -2;
  }
  #cta picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #cta h2 {
    font-weight: 900;
    font-size: min(9vw, 3em);
    line-height: 1.20833333;
    color: #fff;
    position: relative;
    margin-bottom: 0.75em;
    text-align: center;
  }
  #cta p {
    color: #fff;
    text-align: center;
    opacity: 1;
    margin: auto;
    margin-bottom: 2em;
    width: 96%;
    max-width: 33.22222222em;
    font-size: 1.5em;
  }
  #cta .button-solid {
    font-size: min(4.5vw, 1em);
  }
}

/* Small Desktop */
@media only screen and (min-width: 64em) {
  #cta {
    padding: 10.5em 0;
  }
}

/* Large Desktop */
@media only screen and (min-width: 1300px) {
  #cta:before {
    display: none;
  }
  #cta:after {
    content: '';
    position: absolute;
    display: block;
    height: 69.25em;
    width: 125em;
    background: url("../images/cta-squares.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -3;
  }
  #cta picture:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: .7;
    top: 0;
    left: 0;
    z-index: 1;
  }
}
