* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #929887;
    color: #171919;
    font-family: Arial, sans-serif
}

.shell {
    max-width: 1220px;
    margin: 28px auto;
    background: #f3f2ec
}

header,
footer,
main {
    padding-left: 38px;
    padding-right: 38px
}

header {
    padding-top: 28px;
    padding-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #bbb
}

.brand {
    display: flex;
    gap: 18px;
    align-items: center;
    text-decoration: none;
    color: inherit
}

.brand img {
    width: 190px
}

.brand b {
    font-size: 13px;
    letter-spacing: .12em;
    line-height: 1.35
}

nav {
    display: flex;
    gap: 28px
}

nav a {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 35px;
    padding: 48px 0 35px
}

.kicker {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
    border-bottom: 2px solid;
    padding-bottom: 9px
}

h1 {
    font: 400 clamp(55px, 7vw, 92px)/.9 Georgia, serif;
    margin: 20px 0
}

.lead {
    font-size: 20px;
    line-height: 1.35
}

.btn {
    display: inline-block;
    background: #929887;
    color: #fff;
    text-decoration: none;
    padding: 15px 22px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase
}

.hero img {
    width: 100%;
    height: 355px;
    object-fit: contain;
    background: #080808
}

.primary {
    display: grid;
    grid-template-columns: 1fr 1fr .8fr;
    gap: 35px;
    padding: 20px 0 38px
}

.card {
    border-top: 2px solid;
    padding-top: 14px
}

.card h2,
.secondary h2 {
    font-size: 18px;
    letter-spacing: .06em;
    text-transform: uppercase
}

.card img {
    width: 100%;
    height: 205px;
    object-fit: cover
}

.card p,
.secondary p {
    line-height: 1.45;
    color: #444
}

.more {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid;
    padding-bottom: 6px
}

.values {
    background: #dfe1d9;
    padding: 28px
}

.values h2 {
    font: 400 30px/1.15 Georgia, serif
}

.values ul {
    list-style: none;
    padding: 15px 0 0;
    border-top: 2px solid
}

.values li {
    font-size: 18px;
    margin: 14px 0
}

.values li:before {
    content: '+  '
}

.other {
    background: #e4e5df;
    margin: 0 -38px;
    padding: 25px 38px 30px
}

.label {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
    border-bottom: 2px solid;
    padding-bottom: 10px;
    margin-bottom: 24px
}

.secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px
}

.secondary {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 20px;
    align-items: center
}

.secondary img {
    width: 100%;
    height: 175px;
    object-fit: cover
}

.repair img {
    object-position: center 55%
}

.myhome {
    height: 175px;
    background: #b8bab4;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 900
}

.banner {
    position: relative;
    margin: 0 -38px;
    height: 250px;
    overflow: hidden
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    filter: grayscale(1)
}

.pagehead {
    padding: 55px 0 30px;
    border-bottom: 2px solid
}

.pagehead p {
    font-size: 20px;
    max-width: 760px
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 40px 0
}

.project {
    /*border-top: 2px solid;*/
    padding-top: 14px
}

.project img {
    width: 100%;
    height: 330px;
    object-fit: cover
}

.project h2 {
    font: 400 34px Georgia, serif
}

.contact {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    padding: 45px 0
}

.form {
    display: grid;
    gap: 18px
}

.form label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase
}

.form input,
.form textarea {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 7px;
    border: 0;
    border-bottom: 2px solid;
    background: #e6e7e0;
    font: inherit
}

.form button {
    border: 0;
    justify-self: start
}

@media(max-width:850px) {
    .shell {
        margin: 10px
    }

    .shell header,
    .shell footer,
    .shell main {
        padding-left: 22px;
        padding-right: 22px
    }

    header {
        display: block
    }

    .brand img {
        width: 150px
    }

    nav {
        margin-top: 22px;
        gap: 15px;
        flex-wrap: wrap
    }

    .hero,
    .primary,
    .secondary-grid,
    .projects,
    .contact {
        grid-template-columns: 1fr
    }

    .other,
    .banner {
        margin-left: -22px;
        margin-right: -22px
    }

    .other {
        padding-left: 22px;
        padding-right: 22px
    }

    .secondary {
        grid-template-columns: 1fr
    }

    .card img,
    .secondary img {
        height: auto
    }

    footer {
        grid-template-columns: 1fr
    }

}
/* Styles previously placed directly on page elements. */
.project-image--grayscale {
    filter: grayscale(1);
}

.myhome--project {
    height: 330px;
}

.legal-content {
    padding: 35px 0;
    line-height: 1.7;
}

/* Footer shared by all pages. */
.ale-footer {
    background: #f3f2ec;
    color: #171917;
    padding: 28px 38px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 32px;
    align-items: center;
    border-top: 1px solid #b9bbb4;
    font-family: Arial, Helvetica, sans-serif;
}

.ale-footer__craft {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    letter-spacing: .13em;
    line-height: 1.55;
}

.ale-footer__message {
    padding-left: 32px;
    border-left: 1px solid #aaa;
    font: italic 17px/1.35 Georgia, serif;
}

.ale-footer__lorraine {
    justify-self: end;
    width: min(100%, 310px);
    height: auto;
}

.ale-footer__bottom {
    grid-column: 1/-1;
    border-top: 1px solid #ccc;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
}

.ale-footer__bottom a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 800px) {
    .ale-footer {
        grid-template-columns: 1fr;
        padding: 25px 22px 18px;
    }

    .ale-footer__message {
        padding-left: 0;
        border-left: 0;
    }

    .ale-footer__lorraine {
        justify-self: start;
        width: 260px;
    }

    .ale-footer__bottom {
        display: block;
    }
}
