@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,700,900');

/* This avoid padding add to the total size of something the margin are outside of the sides */
* {
    box-sizing: border-box;
    transition: all ease-in-out 250ms;
}

body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    text-align: center;
    background-color: #ddd;
}

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

.container{
    width: 100%;
    /* max-width: 70em; */
    height: 0 auto;
}

.clearfix::after,
section::after,
footer::after {
    content: '';
    display: block;
    clear: both;
}

/* Column System
   =================================== */

[class^=col-] {
    width: 100%;
    padding: 0 .5rem;
    margin-top: 1.5em;
}

[class^=col-]:first-child {
    margin-top: 0;
}

@media (min-width: 45rem) {

    [class^=col-] {
        float:left;
        padding: 0 .5rem;
        margin-top: 0;
    }

    [class^=col-]:first-child {
        padding-left: .5em;
    }

    [class^=col-]:last-child {
        padding-right: 1em;
    }

    .col-1 {
        width: 33.33333%;
        float: center;
    }
    
}

/* Typography 
   =================================== */
h1 {
    font-weight: 300;
    font-size: 1.5rem;
    margin-top: 0;
}

p {
    margin-top: 0;
    line-height: 1.5;
}

p:last-of-type {
    margin-bottom: 0;
}

.title {
    font-size: 1.5rem;
    margin-bottom: 1.5em;
    font-weight: 900;
    margin-top: 1em;
}

.title span {
    font-weight: 300;
    display: block;
    font-size: .9em;
    color: #fff;
}

.title-portfolio {
    background-color: #ddd;
    /* margin: 3rem 0 2rem; */
    color: #036847;
}

.title-cta {
    /* margin: 0 0 2.5rem; */
    color: #fff;
}

.title-cta span {
    font-size: .7em;
    color: #ddd;
}

.unstyled-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

@media (min-width:60rem) {

    p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .title {
        font-size: 2.7rem;
    }
}

/* Buttons
   =================================== */
.button {
    display: inline-block;
    font-size: 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
    border-width: 2px;
    border-style: solid;
    padding: .5em 3.5em;
}

@media (min-width:60rem) {
    .button {
        font-size: 1.65rem;
        font-weight: 700;
    }
}

.button-small {
    font-size: .6rem;    
}

.button-accent {
    background: #962a36;
    color: #fff;
    border-color: #962a36;
}

.button-accent:hover,
.button-accent:focus {
    background: #036847;
    color: #ddd;
    border-color: #036847;
}

.button-dark {
    color: #232323;
    border-color: #232323;
}

.button-dark:hover,
.button-dark:focus {
    background: #232323;
    color: #046849;
}


/* header 
   ===================================*/
header {
    height: 60px;
    position: absolute; 
    left: 0;
    right: 0;
    /* background-color: #232323; */
    align-items: center;
}

nav ul {
    list-style: none;
    padding-inline-start: 0px;
}

nav li {
    display: inline-block;
    margin: .5em;
}

nav a {
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8rem;
    /* padding: .5em; */
    color:#036847;
}

nav a:hover,
nav a:focus {
    color: #ffc700;
}

@media (min-width:60rem) {

    nav {
        float: center;
        margin: 1.5em;
    }

    nav li {
        margin: 0em;
    }

    nav a{
        padding: 1em;
        font-size: 1rem;
    }
}


/* home-hero 
   =================================== */
.home-hero {
    background-image: url(../img/hero-img.jpg);
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    padding: 10em 0;
    color: #A40402;
    /* The next property adds a parallax effect */
    background-attachment: fixed;
}

.home-hero .container {
    display: block;
    text-align: center; 
}

.home-hero .container img {
    display: block;
    margin: 0 auto;
}

.home-hero .container a {
    margin-top: 20%;
}

@media (min-width:60rem) {
    .home-hero {
        height: 100vh;
        padding-top: 30vh;
    }

    .home-hero .container img {
        width: 35%;
        height: 35%;
    }

    .home-hero .container a {
        margin-top: 3%;
    }
}


/* home-about 
   =================================== */
.home-about-textbox {
    background-color: #036847;
    padding: 4em;
    width: 100vw;
    /* The reason to use outline instead of borders is that they have the 'offset' feature */
    outline: 2px solid #ddd;
    outline-offset: -2.5em;
    color: #ddd;
    position: relative;
}

.home-about-textbox h1 {
    color: #ddd;
    position: absolute;
    /* The next two lines is a trick to center the title */
    left: 50%;
    transform: translateX(-50%);
    top: 1em;
    background: #036847;
    padding: 0 .145em;
    font-size: 1.4rem;
}

@media (min-width: 30rem) {

    .home-about-textbox h1 {
        font-size: 1.8rem;
        top: .8em;
        padding: 0 .325em;
    }
}

@media (min-width: 60rem) {
    .home-about-textbox h1 {
        font-size: 2.5rem;
    }

    .home-about {
        background-image: url(../img/about-us.jpg);
        background-repeat: no-repeat;
        /* I added the next two attributes to adjust my image */
        background-size: cover;
        background-position: center;
        padding-bottom: 18em;
    }

    .home-about-textbox {
        width: 60%;
        padding: 4em;
        outline-offset: -2.6em;
        margin-left: 2.5%;
        top: -2em;
        text-align: left;
        box-shadow: 0 0 4em 0 rgba(0,0,0,.4)
    }


    .home-about-textbox h1 {
        top: .4em;
        left: 6rem;
        transform: translateX(0);
    }
    
}

/* portfolio
   =================================== */

.portfolio {
    background-color: #ddd;
    padding: .5em 0 0 0;
}

.port-item {
    margin: 0;
    position: relative;
}

.port-item img{
    display: block;
    opacity: 0.75;
    /* width: 50vw; */
    /* height: auto; */
}

.port-desc {
    position: absolute;
    z-index: 100;
    bottom: 0em;
    left: 0em;
    right: 0em;
    color: #fff;
    background: rgba(0,0,0,.6);
    padding-bottom: .1em;
    display: inline-block;
}

.port-desc p {
    margin: .5em 0 0;
}

.port-desc a {
    display: inline-block; /* Make the anchor element a block-level element */
    text-align: center; /* Center-align the contents horizontally */
    line-height: 0; /* Remove any extra vertical spacing */
}

.port-desc a img{
    width: 30px; /* Set the desired width */
    height: auto; /* Maintain aspect ratio */
}

@media (min-width: 45rem) {

    .port-item {
        width:33.33333%;
        float: left;
        overflow: hidden;
    }

    .port-desc {
        transform: translateY(150%);
    }

    .port-item:hover .port-desc {
        transform: translateY(0%);
    }
}

@media (min-width: 60rem) {
    
    .portfolio {
        background-color: #036847;
    }

    .title-portfolio {
        background-color: #036847;
        /* margin: 3rem 0 2rem; */
        color: #ddd;
    }

    .port-desc a img{
        width: 50px; /* Set the desired width */
        height: auto; /* Maintain aspect ratio */
    }

}

/* CTA
   =================================== */

.cta {
    background-color: #036847;
    padding: .5em 0;
}

.cta .container img{
    width: 180px;
    height: auto;
    
}

@media (min-width: 60rem) {
    
    .cta .container img{
        width: 300px; /* Set the desired width */
        height: auto; /* Maintain aspect ratio */
        
    }

}

/* Footer
   =================================== */

footer {
    background: #ddd;
    color: #036847;
    text-align: center;
    /* top | right | bottom | left */
    padding: 2em 0 1.5em 0;
}

footer a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #036847;
}

footer ul {
    list-style: none;
    padding-inline-start: 0px;
}

footer li {
    margin: .3em;
}

footer a:hover,
footer a:focus {
    color: #A40402;
}

.networks {
    padding-left: 0;
}

.networks li {
    display: inline-block;
}

.networks a img {
    width: 60px;
    height: auto;
    padding: 0 .5em;
    max-width: 100%; 
    vertical-align: middle; 
}

.copyright p {
    font-size: .8em;
    font-weight: 600;
}

.copyright span {
    font-weight: 600;
    font-size: .8em;
    color: #A40402;
}

#email {
    width: 200px;
}

#email:hover {
    content: url('../img/email-onhover.jpg');
}

@media (min-width: 45rem) {
    
    .map-list {
        margin: 0;
        /* top and bottom | left and right */
        padding: 3em 0em;
        list-style-type: none;
    }

    .copyright {
        /* top | right | bottom | left */
        padding: 7em 0 0 0;
        text-align: right;
    }
}

@media (min-width: 60rem) {
    
    .map-list {
        padding: 3em 4em;
    }

    .copyright {
        padding: 8em 0 0 0;
    }

    #email {
        width: 240px;
    }
}