@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap');
:root {
    --dark-org: #bf937f;
    --light-grey: #969991;
    --dark-grey: #62635e;
    --dark-green: #293B26;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background: var(--white);
}
a {
    text-decoration: none;
    color: #333;
}
ul {
    list-style: none;
}

img {
    width: 100%;
}

/* Main-nav header */
#main-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    position: relative;
    z-index: 100;
}
#main-nav ul {
    display: flex;
}
#main-nav li {
    padding: 1rem 1.5rem;
}
#main-nav a {
    text-decoration: none;
    color: var(--dark-org);
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 3px transparent solid;
    padding-bottom: 0.5rem;
    transition: border-color 0.5s; 
}
#main-nav ul li a:hover {
    border-color: #ccc; }
#main-nav a.current {
    border-color: var(--dark-org); 
}
#main-nav #nav-brand {
    font-size: 2.5rem;
}
#header-home {
    background-image: url(../img/showcase.jpg);
    background-position:center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    color: var(--white);
    position: relative;
}
#header-home::before {
   content: '';
   position: absolute;
   top:0; 
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,0.3);
}
#header-home .header-content {
    display: grid;
    justify-content: center;
    width: 700px;
    height: 100%;
    margin: 0 auto;
    padding-top: 18%;
    position: relative;
    z-index: 100;
}
#header-home .header-content .header-inner {
    text-align: center;
    margin: 0 auto;
}

#header-home .header-content .header-inner p {
    font-size: 1.5rem;
    font-weight: 100;
}
#header-home .header-content span.current-org {
    color: var(--dark-org);
}

/* About */
#about  .about-info  {
    margin-top:2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.4rem;
}
#about .about-info .about-image
 { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column: 1 / span 2;
}
#about .about-info .bio-content {
    grid-column: 2 / span 2;
    border-left: 3px solid var(--dark-org);
    padding: 3rem; 
}
#about .bio-content span.org-text {
    color: var(--dark-org);
}

/* Work */
.items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3); }
.item {
    position: relative;
    background: var(--dark-org);
    overflow: hidden; }
.item::after {
    content: '';
    position: absolute;
    display: block;
    background: inherit;
    opacity: 0.9;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(2) translateX(-75%) translateY(-75%) rotate(-28deg);
    transition: transform 3s cubic-bezier(0.2, 1, 0.3, 1); }
.item:hover:after {
    transform: scale(2) translateX(0) translateY(0) rotate(-28deg); }
.item:hover .item-image {
    transform: scale(1.2); }
.item:hover .item-text {
   opacity: 1;
   transform: translateY(0); }
.item-image {
    height: auto;
    transform: translateZ(0);
    display: block;
    transition: transform 750ms cubic-bezier(0.2, 1, 0.3, 1); }
.item-image:before {
    content: '';
    display: block;
    padding-top: 75%;
    overflow: hidden; }
.item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    line-height: 0; }
.item-text {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    text-align: center;
    z-index: 1;
    color: #fff;
    transform: translateY(-20%);
    transition: opacity 500ms cubic-bezier(0.2, 1, 0.3, 1), transform 500ms cubic-bezier(0.2, 1, 0.3, 1);
    transition-delay: 300ms; }
.item-text-wrap {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%); }
.item-text-title {
    font-size: 2rem;
    padding: 0 1rem;
    margin: 5px 0 0 0; }
.item-text-category {
    text-transform: uppercase;
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 0; }


/* Contact Form */
#contact .form-control {
    display: grid;
    grid-template-areas: 'name email' 'subject phone' 'message message' 'button button';
    grid-gap: 1.2rem;
    margin-bottom: 1.2rem; }
#contact .form-control .name-input {
    grid-area: name; }
#contact .form-control .subject-input {
    grid-area: subject; }
#contact .form-control .email-input {
    grid-area: email; }
#contact .form-control .phone-input {
    grid-area: phone; }
#contact .form-control .message-input {
    grid-area: message;
    height: 100px; }
#contact .form-control .text-input {
    padding: 0.5rem 1rem; }
#contact .form-control button {
    grid-area: button;
}
#contact button[type='submit'] {
    margin: 1.5rem  auto;
    width: 50%;
}

/* Footer */
#main-footer {
    background: #333;
    color: #fff;
    height: 5rem; }
#main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    height: 5rem;
    align-items: center; }
#main-footer .footer-content .social .fas,
#main-footer .footer-content .social .fab {
    margin-right: 1rem;
    color: #fff;
    border: 2px #fff solid;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    line-height: 20px;
    text-align: center;
    padding: 0.5rem; }
#main-footer .footer-content .social .fab:hover, 
#main-footer .footer-content .social .fas:hover {
background: var(--dark-org); }


@media (max-width: 800px) {
#contact, #about, #work {
    padding: 1.5rem;
}
#main-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 150px;
    margin: 0;
    padding:0;
    }
#main-nav li a{
    font-size: 16px;
    font-weight: 200; }
#main-nav li {
    padding: 0.8rem;
    margin-top: .5rem; }

#header-home  {
    background-image: url(../img/showcase.jpg);
    background-position: center;
    width:100%;
    height: 90vh;
    top: 18%;
}
#header-home .header-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 100vh;
    width: 100%;
    text-align: center;
    padding-top: 25%;
}
#header-home .header-content .header-inner {
    padding: 10px;
}
#about  .about-info {
    padding: 0;
    grid-template-columns: 1fr;
}
#about  .about-info > *:first-child,
#about  .about-info > *:last-child {
    grid-template-columns: 1fr;
    grid-column: 1;
}
#about  .about-info p { 
    font-size: 18px;
}
#work .grid-row {
    display:grid;
    grid-template-columns: 1fr;
}
#work .items {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: 1;

}  

#contact form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    text-align: center; }

#contact .form-control  {
    grid-template-areas: 'name' 'subject' 'email' 'phone' 'message' 'button'; }

#contact form .form-control button {
    width: 100%;
    text-align: center; 
    margin-top: 1rem;}

#main-footer {
    height: 7rem; }
#main-footer .footer-content {
    flex-direction: column;
    padding: 1rem;
    height: 5rem;
    } 
}

