* {
  box-sizing: border-box;
}

.dm-serif-text-regular {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-text-regular-italic {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: italic;
}


.roboto-flex-regular {
  font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "GRAD" 0,
    "XOPQ" 96,
    "XTRA" 468,
    "YOPQ" 79,
    "YTAS" 750,
    "YTDE" -203,
    "YTFI" 738,
    "YTLC" 514,
    "YTUC" 712;
}

.section-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



body {
    margin: 0;
    font-family: "Roboto Flex", sans-serif;
    background-color: #faedcd;
}

nav {
    background-color: #faedcd;
    border-bottom: 2px black solid;
}

#headerLogo {
    height: 100px;
    width: auto;
    margin: 10px 0px 10px 20px;
}

#marshallName {
    margin: 0;
    padding: 30px 0px 20px 10px;
    display: inline-block;
    font-weight: bolder;
}

h1{
    text-align: center;
    font-family:"DM Serif Text", serif;
    letter-spacing: 1.5px;
}

h2 {
    font-family:"DM Serif Text", serif;
    text-align: center;
}

p {
    padding: 0px 15%;
    font-size: 1.25em;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    color: #fefae0;
    background-color: black;
    border: none;
    text-align: center;
    font-size: 1.25em;
    padding: 10px 30px;
    border-radius: 16px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    min-height: 60vh;
}

#learnMore {
    background-color: #d4a373;
    color: black;
    border: black 2px solid;
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
}

#imgSection {
    width: 100%;
    max-width: 1000px;
    max-height: 95vh;
    height: auto;
    object-fit: cover;
    display: block;
    padding: 20px 0px 0px 0px;
}

.remodelImages {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px #d4a373;
}

#imageGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#section1 {
    background-color: #faedcd;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

#section1.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section1-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1000px;      /* Set a max width for content */
    width: 100%;
    padding: 0 32px;        /* Add horizontal padding */
    margin: 0 auto;         /* Center the flex container */
}

#section2 {
    background-color: black;
    color: white;
}

.about-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.about-headshot {
    /* display: none; */
    max-width: 700px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#section3 {
    background-color: #faedcd;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    max-width: 700px;
}

.formGroup {
    display: flex;
    flex-direction: column;
}

input {
    padding: 3px;
}

#submit {
    background-color: #d4a373;
    color: black;
    padding: 6px 0px;
    width: 50%;
    align-self: center;
}

footer {
    background-color: black;
    color: white;
    padding: 20px 15px;
}

footer p {
    margin: 0;
    padding: 0;
}

.footerImg {
    height: 20px;
    width: auto;
    filter: invert(73%) sepia(39%) saturate(411%) hue-rotate(347deg) brightness(88%) contrast(88%);
}

#footerLogo {
    height: 100px;
    width: auto;
}

#socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footerContacts {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#footerCenter {
    justify-content: center;
    text-decoration: none;
}

.footerContacts p {
    display: inline-block;
    color: white;
    text-decoration: underline white solid 1px;
}

button {
    background-color: #d4a373;
    color: black;
}

#smallText {
    font-size: 0.8em;
}


/* Transistion to desktop responsive site */

@media (min-width: 374px) {
    #smallText {
        font-size: 1em;
    }
}

@media screen and (min-width: 1023px) {
    .section1-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 200px;
    }

    #section1 p {
        padding: 0;
        margin: 0;
        flex: 0 0 auto;
        max-width: 450px;
        text-align: left;
    }

    #section1 .button-container {
        flex: 0 0 auto;
    }

    h1 {
        font-size: 3em;
    }

    .about-flex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .about-text {
        flex: 1 1 0;
        max-width: 600px;
    }

    .about-headshot {
        display: block;
        width: 400px;
        height: 400px;
        object-fit: cover;
        border-radius: 16px;
        box-shadow: 0 4px 16px #d4a373;
        margin-left: 48px;
        flex-shrink: 0;
    }

    #imgSection {
        margin: 0 auto 20px;
    }

    #imageGroup {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .remodelImages {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .footerContacts {
        justify-content: center;
    }
}