/*
 * Theme Name: Robertson Eadie Theme 2022
 * Description: Built with with Timber on Wordpress
 * Author: Chris McMahon - chris@christy.digital
*/

@font-face {
  font-family: 'Degular Display';
  src: url('fonts/Degular_Display-Regular.woff') format('woff'),
    url('fonts/Degular_Display-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Degular Display Italic';
  src: url('fonts/Degular_Display-Italic.woff') format('woff'),
    url('fonts/Degular_Display-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.woff') format('woff'),
    url('fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --text-color: #606060;
  --heading-text-color: #909090;
  --blue-accent-color: #163149;
  --red-accent-color: #761F1D;
}

body {
  font-family: 'Plex Sans', sans-serif;
  font-size: 20px;
  color: var(--text-color);
  margin: 0 auto;
  max-width: 1280px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  overflow-wrap: normal!important;
  word-wrap: normal!important;
  padding: 0;
  position: absolute!important;
  width: 1px;
}

.header-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.header-wrapper>* {
  width: 50%;
  margin: 0 auto;
}

.narrow-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.relative {
  position: relative;
}

nav ul {
  list-style: none;
  list-style-type: none;
  list-style-position: unset;
  margin: 0 auto;
  padding: 0;
}

#nav-main .dropdown a:hover,
#nav-main .dropdown a:active {
    color: var(--light-grey-highlight);
    text-decoration: underline;
}

#nav-main .has-dropdown > a::after {
    padding-left: 0.5em;
    content: '+';
    color: var(--heading-text-color);
}

#nav-main .has-dropdown > a {
  display: block;
}

#nav-main .has-dropdown:hover .dropdown,
#nav-main .has-dropdown .dropdown:hover {
    display: block;
    visibility: visible;
    opacity: 1;
}

#nav-main .dropdown {
    display: none;
    visibility: hidden;
    opacity: 0;

    position: absolute;

    transition-duration: 0.5s;

    background-color: white;
    border: 0px solid var(--heading-text-color);
    border-radius: 3px;

    box-shadow: 0 0 .25em 0 var(--text-color);

    margin-top: 1.5rem !important;
    width: 320px;
    height: auto;
    top: 3em;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 200;
}

#nav-main .dropdown li {
    padding-bottom: 0.5em;
}



#nav-slide .has-dropdown-mobile::before {
    content: '+';
}

#nav-slide .dropdown-mobile li {
    margin: 0.1em 0.5em;
    background-color: var(--grey);
    border-bottom: 1px solid var(--light-grey);
    text-transform: none;
    font-size: 0.875em;
    padding-top: 0.125em;
    padding-bottom: 0.125em;
    display: block;
    visibility: visible;
    opacity: 1;
}

#nav-slide .dropdown-mobile a,
#nav-slide .dropdown-mobile a:hover,
#nav-slide .dropdown-mobile a:active {
    color: var(--light-grey-highlight);
    text-decoration: none;
}

.header-wrapper ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  height: 100%;
}

.header-wrapper ul li {
  padding: 0.5em 3vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-wrapper ul li a {
  display: block;
}

.linked-in {
  content: '';
  background-image: url("data:image/svg+xml;base64,CQkJPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjNjA2MDYwIj48cGF0aCBkPSJNMjIuMjMgMEgxLjc3Qy44IDAgMCAuNzcgMCAxLjcydjIwLjU2QzAgMjMuMjMuOCAyNCAxLjc3IDI0aDIwLjQ2Yy45OCAwIDEuNzctLjc3IDEuNzctMS43MlYxLjcyQzI0IC43NyAyMy4yIDAgMjIuMjMgMHpNNy4yNyAyMC4xSDMuNjVWOS4yNGgzLjYyVjIwLjF6TTUuNDcgNy43NmgtLjAzYy0xLjIyIDAtMi0uODMtMi0xLjg3IDAtMS4wNi44LTEuODcgMi4wNS0xLjg3IDEuMjQgMCAyIC44IDIuMDIgMS44NyAwIDEuMDQtLjc4IDEuODctMi4wNSAxLjg3ek0yMC4zNCAyMC4xaC0zLjYzdi01LjhjMC0xLjQ1LS41Mi0yLjQ1LTEuODMtMi40NS0xIDAtMS42LjY3LTEuODcgMS4zMi0uMS4yMy0uMTEuNTUtLjExLjg4djYuMDVIOS4yOHMuMDUtOS44MiAwLTEwLjg0aDMuNjN2MS41NGEzLjYgMy42IDAgMCAxIDMuMjYtMS44YzIuMzkgMCA0LjE4IDEuNTYgNC4xOCA0Ljg5djYuMjF6Ii8+PC9zdmc+Cg==");
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: transparent;
}

.linked-in a {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  color: transparent !important;
}

a,
a:visited {
  color: var(--text-color);
  text-decoration: none;
}

a:active,
a:hover,
.current_page_item {
  text-decoration: underline;
}

h1, .h1 {
  font-family: 'Degular Display', sans-serif;
  font-size: 3rem;
  color: var(--heading-text-color);
  line-height: 0.875;
  margin: 0.25em 0;
}

h2, .h2 {
  font-family: 'Degular Display', sans-serif;
  font-size: 2.5rem;
  color: var(--heading-text-color);
  line-height: 0.875;
  margin: 0.15em 0;
}

.blue-accent {
  font-family: 'Degular Display Italic', sans-serif;
  font-style: italic;
  color: var(--blue-accent-color);
}

.red-accent {
  font-family: 'Degular Display Italic', sans-serif;
  font-style: italic;
  color: var(--red-accent-color);
}

h3 {
  font-family: 'Plex Sans', sans-serif;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15ch;
  line-height: 1.1;
  margin: 0;
}

h4 {
  font-family: 'Plex Sans', sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.15ch;
  line-height: 1.1;
  margin: 0.25em 0;
}

nav {
  font-family: 'Plex Sans', sans-serif;
  text-transform: uppercase;
}

.silver-text {
  color: var(--heading-text-color);
}

.hero,
.hero-team {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 32 / 20;
  margin: 0 auto;
  position: relative;
}

.hero-news {
  aspect-ratio: 4 / 1;
}

.hero h1,
.hero .hero-info {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #ffffffcc;
  margin: 0.5em;
  padding: 1em 0.5em;
  max-width: 16ch;
  /*   text-shadow: 2px 2px 5px var(--text-color); */
}

.hero-info-small {
  display: none;
}

.hero .hero-info {
  max-width: 32ch;
}

.intro {
  padding: 5.25rem 0 0;
  text-align: center;
}

.intro h1 {
  max-width: 26ch;
  padding: 1em 0.5em;
  margin: 0 auto;
}

.intro p {
  max-width: 40ch;
  padding: 1em 0.5em;
  margin: 0 auto;
}

.contact-intro p {
  max-width: 48ch;
  text-align: left;
}

.home-news {
  padding: 0.5em;
}

.home-news-heading {
  margin-bottom: 2rem;
}

.news-post {
  max-width: 48ch;
  text-align: left;
  margin: 0 auto;
}

.news-tease {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 2rem;
}

.news-tease-image-wrapper {
  width: 25%;
  min-width: 240px;
  max-width: 320px;
}

.news-tease-image-wrapper img {
  width: 100%;
  height: auto;
}

.post-navigation {
  width: 100%;
  margin: 3em auto 3em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}


.tease-projects-wrapper-inner,
.tease-team-members-wrapper-inner,
.tease-work-sectors-wrapper-inner,
.contact-boxes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1em 0.5em;
}

.tease-projects-wrapper-inner>*,
.tease-team-members-wrapper-inner>*,
.contact-boxes>* {
  width: 45%;
  margin: 1em auto;
}

.tease-work-sectors-wrapper-inner>* {
  width: 30%;
  margin: 0 auto;
  padding: 1em 0.5em;
}

.tease-work img,
.tease-team img {
  object-fit: contain;
  width: 100%;
  height: auto;
}

.article-content-work {
  padding: 1em 0.5em;
}

.home-feature {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 4em 0;
}

.home-feature>* {
  width: 50%;
  margin: 0 auto;
}

.home-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36ch;
}

.home-feature img {
  width: auto;
  height: auto;
  max-width: 100%;
  overflow: hidden;
}

.home-projects {
  padding: 4em 0;
}

.home-projects-heading {
  max-width: 24ch;
  margin: 0 auto;
  text-align: center;
  color: var(--text-color);
  font-size: 2.75rem;
}

.home-news-heading {
  max-width: 24ch;
  margin: 0 auto 1em;
  text-align: center;
  color: var(--text-color);
  font-size: 2.75rem;
}

.home-testimonial {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 4em 0;
}

.home-testimonial>* {
  width: 50%;
  margin: 0 auto;
}

.home-testimonial-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40ch;
}

.home-testimonial img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.article-content-work {
  display: flex;
  flex-direction: row-reverse;
  max-width: 1080px;
}

.article-content-work .article-body {
  max-width: 400px;
  width: 50%;
  padding-right: 1em;
}

.article-content-work .work-info {
  max-width: 400px;
  width: 50%;
}

.post-navigation {
  max-width: 32rem;
  margin: 0 auto;
  padding: 3em 0.5em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-wrapper>* {
  width: 280px;
  padding: 1em 0.5em;
}

.footer-wrapper nav {
  width: 140px;
}

.social-icons {
  padding-top: 1em;
  display: flex;
  flex-direction: row;
}

.social-icons .icon {
  padding-right: 0.25em;
}

.affiliations img {
  max-width: 140px;
}

.copyright {
  margin: 0 auto;
  font-size: 0.75em;
  padding: 1em 0.5em;
  text-align: center;
}

/*   Lighthouse fix */
  .nav-main-link,
  .contact a {
    min-height: 48px;
  }


@media screen and (max-width: 767px) {
  .hdr-logo {
    text-align: center;
  }

  .header-wrapper {
    flex-direction: column;
  }

  .header-wrapper>* {
    width: 100%;
  }

  .header-wrapper ul {
    justify-content: space-around;
  }

  .header-wrapper ul li {
    padding: 0.5em 5vw;
  }

  h1, .h1 {
    font-size: 2.25rem;
  }

  h2, .h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  #nav-main .dropdown {
    top: 1em;
  }

  .hero {
    aspect-ratio: 26 / 20;
  }

  .tease-projects-wrapper-inner,
  .tease-team-members-wrapper-inner,
  .contact-boxes {
    flex-direction: column;
  }

  .tease-projects-wrapper-inner>*,
  .tease-team-members-wrapper-inner>*,
  .contact-boxes>* {
    width: 80%;
    padding: 1em 0em;
  }

  .tease-work-sectors-wrapper-inner>* {
    width: 45%;
  }

  .article-content-work {
    flex-direction: column;
    
  }

  .home-feature {
    flex-direction: column;
    padding: 2em 0;
  }

  .home-feature>* {
    width: 95vw;
    max-width: 600px;
    padding: 1em 0.5em;
  }

  .home-feature img {
    width: auto;
    height: auto;
    max-width: 100%;
  }

  .home-testimonial {
    flex-direction: column;
    padding: 2em 0;
  }

  .home-testimonial>* {
    width: 95vw;
    max-width: 600px;
    padding: 1em 0.5em;
  }

  .home-testimonial img {
    width: auto;
    height: auto;
    max-width: 100%;
  }

  .article-content-work .article-body {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding-right: 0;
  }
  
  .article-content-work .work-info {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }

  

  .footer-wrapper nav ul {
/*     display: flex;
    flex-direction: row; */
  }

  .footer-wrapper nav ul a {
/*     padding-right: 0.5em; */
  }
}

@media screen and (max-width: 475px) {

  h1, .h1 {
    font-size: 2rem;
  }

  h2, .h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  .hero {
    aspect-ratio: 20 / 20;
  }

  .tease-projects-wrapper-inner>*,
  .tease-team-members-wrapper-inner>*,
  .contact-boxes>* {
    width: 95%;
  }

  .tease-work-sectors-wrapper-inner>* {
    flex-direction: column;
    width: 95%;
  }

  .news-tease {
    flex-direction: column;
    width: 95%;
    margin: 0 auto;
  }

  .news-tease-image-wrapper img {
    width: 95% !important;
    height: auto !important;
  } 

  .news-tease-image-wrapper {
    width: 95%;
    min-width: 300px;
    max-width: 500px;
  }

  .hide-small {
    display: none !important;
  }

  .footer-wrapper {
    flex-direction: column-reverse;
  }

  .footer-wrapper>* {
    margin: 0 auto;
    padding: 0 0.25em;
  }

  .footer-wrapper nav {
    width: 280px;
  }

}

@media screen and (max-width: 375px) {

  .hero h1,
  .hero .hero-info {
    visibility: hidden;
  }
  .hero-info-small {
    display: block;
  }
  header .hide-xsmall {
    display: none !important;
  }
}

@media (hover:hover) {
  .tease-work {
    aspect-ratio: 1/1;
    position: relative;
  }
  .tease-work-info {
    background-color: #0005;
    position: absolute;
    top:0;
    right: 0;
    bottom: 0;
    left: 0;
    color: #fffd;
    opacity: 0;
    padding-left: 1rem;
    transition: opacity 0.5s;
  }
  .tease-work-image {
    position: absolute;
  }
  .tease-work a,
  .tease-work h2 {
    color: #fffd;
  }

  .tease-work:hover .tease-work-info {
    opacity: 1;
  }
}