/********** BASIC CSS RESET **********/

html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/********** CSS VARIABLES **********/

:root {
  --clr-primary: #88c86f;
  --clr-secondary: #6D6E71;
  --clr-black: #000000;
  --clr-white: #ffffff;
}

/********** UTILITY CLASSES **********/

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.centered-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.centered-content img {
    width: 100%;
    height: auto;
}

.centered-content h2 {
    position: absolute;
}

.flow > * + * {
    margin-top: 1rem;
}

/********** FONTS **********/

@font-face {
    font-family: 'gothammedium';
    src: url('/fonts/gotham-medium-webfont.woff2') format('woff2'),
         url('/fonts/gotham-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gothamcond_light';
    src: url('/fonts/gothamcond-light-webfont.woff2') format('woff2'),
         url('/fonts/gothamcond-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/********** TYPOGRAPHY **********/

body {
    font-family: sans-serif;
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'gothammedium', sans-serif;
    font-weight: 500;
}

h2 {
    font-size: 2rem;
    text-transform: uppercase;
}


/********** HEADER **********/

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo-container {
    padding: 1rem;
    display: flex;
}

.logo-container img {
    width: 100px;
    margin-top: auto;
}

/********** MAIN NAV **********/

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 1rem;
}

.main-nav ul li a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: var(--clr-primary);
    text-transform: uppercase;
}

/********** HERO **********/

.hero {
    /* background-color: var(--clr-primary); */
    display: grid;
    grid-template-columns: 1fr;
    background: url(images/green-background.svg);
    background-size: cover;
    color: var(--clr-white);
    align-items: center;
    padding: 3rem;
}

.hero h1 {
    padding: 3rem;
    font-size: 6rem;
    font-weight: 700;
    font-family: 'gothamcond_light', sans-serif;
    letter-spacing: .25rem;
    text-transform: uppercase;
}

@media screen and (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }
}

/********** SERVICES **********/

.services {
    display: grid;
    grid-template-columns: 1fr;
    /* padding: 3rem 0; */
}

.service {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 400px;
    /* padding: 2rem; */
}

.service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service h2 {
    text-align: center;
    padding: 3rem 0;
    font-weight: 700;
    font-size: 3rem;
    color: black;
    text-shadow: 2px 2px 2px lightgray;
}

@media screen and (min-width: 768px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }
}

.brand-identity img {
    opacity: .1;
    /* padding: 2.5rem; */
}

.print h2 {
    color: white;
    text-shadow: 2px 2px 2px black;
}

.web img {
    opacity: .1;
    object-fit: cover;
    object-position: top;
    /* padding: 2.5rem; */
}

/********** ABOUT **********/

.about {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr;
    line-height: 1.5rem;
    text-align: right;
    /* height: 500px; */
}

.about-img {
    background-image: url(images/mikevi.jpg);
    background-size: cover;
    height: 500px;
}

.about-text {
    padding: 5rem;
    background-image: url(images/green-background-2.svg);
    background-size: cover;
    line-height: 1.5;
    color: var(--clr-secondary);
}

@media screen and (min-width: 768px) {
    .about {
        grid-template-columns: 1fr 2fr;
    }

    .about-text {
        font-size: 1.5rem;
    }
}

.about h2 {
    color: var(--clr-white);
}

/********** CONTACT **********/

.contact {
    display: grid;
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
}

@media screen and (min-width: 768px) {
    .contact {
        grid-template-columns: 1fr 20fr 20fr 1fr;
        padding: 0
    }
}

.green-bar {
    background-color: var(--clr-primary);
    height: 100%;
}

.contact-form {
    padding: 1rem;
}

@media screen and (min-width: 768px){
    .contact-form {
        padding: 3rem;
    }
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-info {
    display: flex;
    flex-direction: column;
    padding: 3rem 1rem;
    align-items: center;
    justify-content: space-between;
}

.contact-info a {
    text-decoration: none;
    color: var(--clr-primary);
    padding: 3rem;
}

input {
    padding: .5rem;
    text-transform: uppercase;
}

button[type="submit"] {
    padding: .5rem;
    text-transform: uppercase;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    cursor: pointer;
}