nav {
    position: relative;
    z-index: 5;
}

.header-top-bar {
    position: relative;
    z-index: 5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Dosis", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

p {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

.services-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: #e8ebef;
    max-height: 1080px;
    overflow: hidden;
    width: 100%;
}

.image-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 20vw);
    grid-template-rows: repeat(3, 20vw);
    margin-right: 50px;
    position: relative;
    max-height: 1080px;
    margin-top: 50px;
    margin-left: -300px;
}

.diamond {
    width: 95%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    overflow: hidden;
    background-color: white;
    position: relative;
}

.diamond img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.content {
    max-width: 500px;
    text-align: center;
    max-height: 500px;
}

.content h1 {
    font-size: 48px;
    margin: 0;
}

.underline {
    align-self: center;
    position: relative;
    width: 50px;
    height: 5px;
    border: none;
    margin: auto;
}

.content p {
    font-size: 18px;
    color: #333;
}

.diamond-group-2{
    transform: translate(-50%, -50%);
}

.diamond-group-3{
    transform: translate(-100%);
}

/*---------------------------------------------------------------------------------------------*/

.custom-message-section {
    margin: 20vh auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    padding: 40px;
    background-image: url('./images/beds/b17.jpeg'); /* Add your image path here */
    background-size: cover;
    background-position: center;
    border-radius: 0% 50% 0% 50%;
    text-align: center;
    overflow: hidden;
    height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Adjust the opacity */
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    padding: 1em;
}

.custom-message-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.custom-message-section p {
    line-height: 1.6;
}

/*----------------------------------------------------------------------------------------------------*/

.qoute {
    display: flex;
    justify-content: center;
    justify-items: center;
    flex-direction: column;
    width: 60%;
    margin: 0 auto 20vh auto;
    text-align: center;
}

.qoute h1 {
    font-family: "Sevillana", cursive;
    font-weight: 400;
    font-style: normal;
}

.qoute button{
    width: max-content;
    align-self: center;
    margin: 5vh;
}


/*----------------------------------------------------------------------------*/
@media only screen and (max-width: 1050px) {
    .image-grid {
        margin-right: 0;
        margin-left: -100px;
    }
}

@media only screen and (max-width: 760px) {
    .image-grid {
        display: none;
    }

    .custom-message-section {
        border-radius: 0% 20% 0% 20%;
        padding: 5px;
    }
}

@media only screen and (max-width:550px) {
    .custom-message-section {
        height: 100vh;
        width: 95%;
    }

    .custom-message-section h2 {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 400px){
    .custom-message-section {
        height: 120vh;
        border-radius: 0 10px 0 10px;
    }

    nav {
        display: none;
        height: 0;
    }

    .header-top-bar{
        position: fixed;
    }
}