body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Instrument Serif", serif;
}

* {
    box-sizing: border-box;
}

/* HOMEPAGE */

#landing {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    z-index:0;
    display:flex;
    align-items: center;
    justify-content: center;
    background-image: url(../img/homepage/Homepage_HeroLanding.jpg);
    background-size: cover;
    background-position: center;
}

.text-container {
    width: 100vw;
    height: 100vh;
    padding: 2em;
    padding-top: 0;
    overflow: visible;
    text-overflow: ellipsis ;
    white-space: nowrap ;
    z-index: 1;
    order: 2;
    margin-top: -4em;
}

.img-container {
    width: 100vh;
    height: 70vh;
    background-color: #f5f5f7;
    z-index: 0;
    order: 1;
}

.container {
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Instrument Serif", serif;
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    font-weight: 500;
    line-height: 1;
}

h2, a {
    font-family: "Courier Prime", monospace;
    font-size: 0.75em;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
}

#landing h2 {
    margin-top: 1em;
}

h3 {
    font-size: 1.75em;
    font-weight: 500;
    line-height: 1.2;
    margin: 0.5em 0;
}

h4 {
    font-family: 'Courier Prime', monospace;
    color: #701F0A;
    font-size: 0.7em;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.5em;
}

h4 a {
    color: #701F0A;
    font-size: 0.7em;
}

h5 {
    font-size: 1em;
    line-height: 1.2;
    font-weight: 100;
}

p {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 2em;
}

button {
    background-color: transparent;
    color: #ffffff;
    font-family: 'Courier Prime', sans-serif;
    font-size: 1em;    
    font-weight: 400;
    border-radius: 100px;
    padding: 8px 24px;
    border: 1px solid #ffffff;
}

.text-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em;
    padding-top: 3em;
}

#landing .text-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10em 2em;
}

.text-section .row {
    width: 100%;
}

.split-section {
    height: 100%;
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.split-section-text {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4em;
    min-height: 100vh;
}
.split-section-img {
    background-image: url(../img/homepage/Homepage_FarmsteadRestoration.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.img-section {
    min-height: 100vh;
    display: flex;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#restoration h2,
#restoration h3,
#restoration p {
    color: #701F0A;
}

footer {
    width: 100%;
    min-height: 400px;
    padding: 4em 2em;
    display: flex;
    background-color: #FDF8F2;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid #701F0A;
}

footer h2, footer h3, footer p{
    display: flex;
    color: #701F0A;
}
footer button {
    color: #701F0A;
    border-color: #701F0A;
}

footer div {
    width: 100%;
}




/* SUBPAGE */

body#subpage {
    background-color: #FDF8F2;
}

.subpage-text {
    display: flex;
    text-align: left;
    padding: 2em;
    padding-top: 8em;
}

.subpage-text h1, .subpage-text h3, .subpage-text p {
    color: #701F0A;
}

.subpage-text h1 {
    font-size: 4em;
    margin-bottom: 1em;
}

.grid-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: auto;
    gap: 2em 4em;
}

.grid-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.grid-item p {
    margin-bottom: 1em;
}

.grid-item button {
    color: #701F0A;
    border-color: #701F0A;
}


.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9 / 16 * 100) */
    overflow: hidden;
  }
  
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.restoration-story {
    display: flex;
    width: 100%;
}
.restoration-story-item {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2em 0;
}

.restoration-photo {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}


.restoration-info {
    width: 100%;
    text-align: left;
    padding: 2em 0;
}

.silhouette .restoration-photo {
    background-size: contain;
}

.banner img {
    width: 100%;
    height: auto;
}

.story-split {
    background-color: #701F0A;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2em;
}

.story-split-heading {
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}
.story-split-text {
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.story-split h1 {
    font-size: 3em;
    margin: 0.25em 0;
}




/* Extra Extra Small. Above 24rem (384) */
@media only screen and (min-width : 24rem) {
    h1 {
        font-size: 3em;
    }

    h2, a {
        font-size: 1em;
    }

    h3 {
        font-size: 2em;
    }

    h4 {
        font-size: 1.5em;
    }

    h5 {
        font-size: 1.25em;
    }

    p {
        font-size: 1em;
    }

}

/* Extra Small. Above 32rem (512px) */
@media only screen and (min-width : 32rem) {
    
}

/* Medium. Above 48rem (768px) */
@media only screen and (min-width: 48rem) {


    h1 {
        font-size: 5em;
    }
    
    h2, a {
        font-size: 1em;
    }

    #landing {
    }
    
    .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: 100vh;
        padding: 3em;
        overflow: visible;
        text-overflow: ellipsis ;
        white-space: nowrap ;
        z-index: 1;
        order: 1;
        margin-top: 4em;
    }
    
    .img-container {
        width: 80vh;
        height: 100vh;
        background-color: #f5f5f7;
        z-index: 0;
        order: 2;
        white-space: nowrap;
        position: absolute;
    }

    .text-section .row {
        width: 60%;
    }

    footer {
        padding: 4em 8em;
    }

    .subpage-text {
        padding: 6em;
        padding-top: 10em;
    }


/* Large. Above 64rem (1024px) */
@media only screen and (min-width: 64rem) {

    h1 {
        font-size: 6.5em;
    }


    h3 {
        font-size: 2.5em;
    }

    p {
        font-size: 1.25em;
    }

    #landing {

    }
    
    .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100vw;
        height: 100vh;
        padding: 6em;
        overflow: visible;
        text-overflow: ellipsis ;
        white-space: nowrap ;
        z-index: 1;
        order: 1;
        margin-top: 4em;
    }
    
    .img-container {
        width: 100vh;
        height: 100vh;
        background-color: #f5f5f7;
        z-index: 0;
        order: 2;
        white-space: nowrap;
        position: relative;
    }

    .split-section {
        min-height: 80vh;
    }



    .restoration-story-item {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2em 0;
    }

    .restoration-photo {
        width: 100%;
        height: 320px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }


    .restoration-info {
        width: 100%;
        text-align: left;
        padding: 2em 0;
        padding-left: 4em;
    }


    .story-split {
        padding: 6em;
    }

    .story-split-heading {
        padding-right: 2em;
    }

    .story-split h1 {
        font-size: 4em;
    }

    .grid-container {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 2em 4em;
    }

}

/* Extra large. Above 80rem (1280px) */
@media only screen and (min-width: 80rem) {



}