
@import url('https://fonts.googleapis.com/css2?family=Open+Sans');
@import url('https://fonts.googleapis.com/css2?family=Lora');

:root {
    --main-color: #b8a768;
}

* {
    box-sizing:border-box;    
}

html {
    height:100%
}

body {
    font-family: "Open Sans", sans-serif;
    padding: 80px 0 0 0; /* moved down for header height */
    margin:0;
    color:#444
}

h1, h2, h3, h4, .name {
    font-family: 'Lora', serif;
    font-weight: normal;
    color: var(--main-color);
}

a {
    color:var(--main-color);
    text-decoration: none;
}

a:hover {
    text-decoration:underline
}

@supports (display: grid) {
    body {
      display: grid;
      grid-template-areas: "header"
                           "main"
                           "footer";
      height: 100%;
    }
}
  
main {
    grid-area: main;
    text-align:center
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background:#fff;
    padding: 0 1.5rem; 
    z-index: 100;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display:flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    height:80px
}

header .logo img {
    height: 2.1rem;
    display:block
}

.toggle-button {
    width: 2rem;
}
  
.toggle-button span {
    height: 2px;
    background: var(--main-color);
    display: block;
    margin: 0.5rem 0;
}

.main-nav {
    display: none;
}

.main-nav ul {
    margin:0;
    padding:0;
    list-style: none;
}

.main-nav li {
    display:inline-block;
}

.main-nav a {
    color: #888;
    text-transform: uppercase;  
    transition: 300ms ease-in;
    position:relative;
    padding: 2.3rem 1rem;
}

.main-nav a:hover, .main-nav a:active, .main-nav a.active {
    color: var(--main-color);
    /*border-bottom-color: var(--main-color);*/
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    height: 0.3rem;
    background: var(--main-color);
    width:100%;
    display:block;
    transform: scaleX(0);
    -webkit-transform: scaleX(0);
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    position:absolute;
    bottom:0
}

.main-nav li:hover a::after, .main-nav li a.active::after {
    transform: scaleX(1);
    -webkit-transform: scaleX(1);
}

.mobile-nav {
    transform: translateX(100%);
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    background: white;
    width: 100%;
    height: 100vh;
    transition: transform 300ms ease-out;
}
  
.mobile-nav ul {
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
  
.mobile-nav a {
    font-size: 1.5rem;
    color: var(--main-color);
    text-transform: uppercase;
    display:block;
    line-height:3rem;
    margin:1rem;
}

.mobile-nav a:hover {
    text-decoration:none;
}

.mobile-nav a:active, .mobile-nav a.active {
    border-bottom:2px solid var(--main-color);    
}

.open {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.close {
    position:absolute;
    right:0;
    font-size: 3rem; 
    color:var(--main-color);
    padding:0.4rem 1.5rem;
    cursor:pointer
}

.banner {
    height:35vh;
    display:flex;    
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(50, 50, 50, 0.5), transparent),
      url("/img/justice.jpg") no-repeat 37%/cover;
}

.banner-home {
    height: calc(100vh - 80px); 
    background-attachment: fixed;
    background-position: 60% center;
}

.banner h1 {
    color: white;
    line-height:1.1;
    margin:0;
    padding:1.5rem;
    font-size:3rem;
}

section {
    max-width: 1140px;
    margin:2rem auto;
    line-height:1.6;
    padding:1.5rem
}

h2 {
    font-size:2.5rem;
    margin-top:0
}

.team-member {
    padding:1rem 0
}

.member-photo {
    margin:0 auto 1.5rem;
    border-radius:50%;
    width:70%;
    max-width:300px;
    overflow:hidden;
}

.member-photo img {
    width:100%;
    filter: grayscale(100%);
    display:flex
}

.member-photo img:hover {
    filter:none;
    transition: 0.5s ease-in;
}

.rotate-25 {
    transform: rotate(25deg);
}

.name {
    font-size:1.7rem;
    line-height:1.2
}

.job-title {
    text-transform:uppercase;
    margin:0.5rem 0 2rem 0;
    font-size:0.9rem
}

.team .job-title {
    font-size:1rem
}

.team p, .team ul, .work {
    text-align:left
}

.team h2 {
    margin:0;
    font-size:2rem
}

.main-button a {
    background:var(--main-color);
    color:#fff;
    text-decoration:none;
    display:inline-block;
    padding:1rem 2rem;
    text-transform: uppercase;
    font-size:0.9rem;
    letter-spacing:2px;
    border:1px solid var(--main-color);
    transition: 300ms ease-in;
}

.main-button a:hover {
    background:#fff;
    color:var(--main-color)
}

.work-areas > div {    
    background:#f9f9f9;
    display:flex;
    flex-direction: column;
    justify-content: center;
    height:15rem;
    padding:2rem;
    margin-bottom:1.5rem
}

.work-areas img {
    width:48px;
    align-self: center;
    margin-top:2rem
}

.work-areas h4 {
    font-size:1.5rem;
    line-height:1.3;
}

.work h2 {
    font-size:1.7rem;
    margin:3rem 0 0 0;
    line-height:1.3
}

.work h2:first-child {
    margin-top:0
}

.work h2 img {
    margin-right:1rem;
}

h5 {
    text-transform:uppercase;
    margin:0;
    font-size:inherit
}

footer {
    background: #f9f9f9;
    padding-top:2rem;
    grid-area: footer;    
    line-height:1.6;    
    font-size:0.9rem;
    text-align:center
}

footer h5 {
    color:var(--main-color);
    font-weight: normal;
}

footer p {
    margin:0;
}

footer .logo img {
    height:2.5rem;
}

.footer-block {
    margin: 1.5rem 
}

.copyrights {
    font-size:0.8rem;
    color:rgba(0,0,0,0.5);
    border-top:1px solid rgba(0,0,0,0.1);
    width:100%;
    padding:1rem 0;
    margin:2rem auto 0 auto;
}

.error-page h1 {
    font-size:10rem;
    margin:0;
}

h3 {
    font-size:2rem
}

@media (min-width: 55rem) {
    body {
        padding-top:94px
    }

    .toggle-button {
      display: none;
    }
  
    .main-nav {
      display: flex;
    }

    .main-nav a {
        font-size:0.9rem
    }

    header .logo img {
        height:2.7rem
    } 

    header {
        height:94px
    }

    .banner-home {
        height: calc(100vh - 94px); 
    }

    .banner h1 {
        font-size: 4rem;
        max-width:1140px
    }

    section {
        margin:4rem auto
    }

    .team-wrapper {
        display:flex;
        justify-content: center;
        gap:5rem
    }

    .team-member {
        width:28%;  
    }

    .work-areas {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-gap: 2rem;
        margin-bottom:3rem
    }

    .work-areas > div {
        margin-bottom:0
    }
    
    .work h2 {
        font-size:2rem
    }
    
    .team {
        display:flex;
        justify-content: space-around;
    }

    .team .member-photo {
        width:20%;
        height:20%
    }

    .team .member-description {
        width:70%;
        text-align:left
    }

    .copyrights {
        max-width: 1140px;       
    }
}

@media (min-width: 60rem) {
    .footer-wrapper {
        margin:auto;
        max-width: 1140px;
        display: flex;
        justify-content: space-between;
        flex-wrap:wrap;
        text-align: left;
    }
}

