.main-header {
    /*background: url('i/header.jpg') top left no-repeat ;*/
    
    /*padding-top: 5rem; padding-bottom: 5rem;
    padding-left: 0.5rem; padding-right: 0.5rem;*/

    height: 100vh;    /* 100% of viewport height */
    width: 100vw;     /* 100% of viewport width */    

    display: flex;
    
}

.main-header .rotating-box-0 {
    flex:1;
    position: relative;

    display: flex;              /* make it a flex container */
    justify-content: center;    /* horizontal centering */
    align-items: center;        /* vertical centering */    
}
.main-header .rotating-box-0>.inner {
    position: relative;
    z-index: 1;
}

.main-header .rotating-box-0>.inner>* {
    color: #fff;
}


.section-1 {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.section-1 .sub-section-2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.section-1 .sub-section-2 .block {
    width: 522px;
    flex-basis: 522px;
    flex-shrink: 0;
    /* margin-left: 1.5rem; YI added to hide reference to refillr
    margin-right: 1.5rem; */
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
}

.section-1 .sub-section-2 .block img {
    width: 80px;
    margin-right: 20px;
    float: left;
}
.section-1 .sub-section-2 .block>div {
    width: 422px; float: left;
}
.section-1 .sub-section-2 .block>div>h3 {
    margin-top: 0; margin-bottom: 0.5em;
    padding-top: 0;
    font-weight: 500;
    letter-spacing: -0.05rem;
}


.section-1 .reduced-width-more {
    line-height: 3rem;
}

.section-1 h2, .section-1 p {
    line-height: 3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.section-1 .headline {
    font-size: 3rem;
    font-weight: 700;
}
.section-1 .tagline {
    font-size: 3rem;
    font-weight: 500;
}


/* =========================================================== */
.section {
    padding-top:0;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: stretch;
}

.section:nth-child(2n) {
    background-color: var(--creamy-bg);
}

.section .block {
    width: 50%;     /* 100% of viewport width */    
    aspect-ratio: 1;    /* makes height equal to width */    
}

.section h2 {
    margin-top: 0; margin-bottom: 0;
}
.section .block-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section .block-1 .part {
    max-width: 400px;
    /*margin-top: 2.25rem; margin-bottom: 2.25rem;*/
    /*margin-left: auto; margin-right: auto;*/
}

.section .block-1 .part-2 {
    /*margin-top: 3rem;
    margin-bottom: 7.5rem;*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}
.section .block-1 .part-2>div {
    flex-shrink: 0;
}
.section .block-1 .part-2>div>img {
    width: 122px;
}
.section .block-2 {
    background-image: url('../i/blank2.png');
    background-repeat: no-repeat; 
    background-position: top right;
    background-size: cover;
}

/* =========================================================== */
.section-x-0 .block-2 {
    background-image: url('../i/image-section-4.png');
    background-position: center center;
    background-size: 100%;
    background-repeat: no-repeat;
}
/* =========================================================== */

/* =========================================================== */
/* blogs excerpts */
/* =========================================================== */
.section-7 { 
    padding-top: 1px;
}

.section-7 .blog-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

/* =========================================================== */
/* subscribe form */
/* =========================================================== */
.section-8 {
    background-image: url('../i/Subscribe to background.jpg');
    background-position: top left;
    background-size: cover;

    padding-top: 3rem; padding-bottom: 3em;

}
.section-8>h2 {
    padding-top: 0rem; padding-bottom: 1rem;
    margin-top: 0; margin-bottom: 0;
}

.section-8 .form-box {
    max-width: 670px;
    margin-left: auto; margin-right: auto;
}

.section-8 .form-box .fields-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.section-8 .form-box .field-element, .primary-button-green {
    margin-left: 0.5rem; margin-right: 0.5rem;
}
.section-8 .form-box .field-element {
    border-radius: 0.5rem;
    width: auto;
    max-width: 260px;
}
/* =========================================================== */
/* our services links at botton */
/* =========================================================== */
.section-9 {
    padding-top: 3rem; padding-bottom: 3rem;
}

.section-9>div {
    width: 200px;
    margin-left: auto; margin-right: auto;

}
.section-9>div a {
    display: block;
}


/* ------------------------------------------------------------------------
 * Media queries
 * ------------------------------------------------------------------------ */
@media screen and (max-width: 1160px) {

    .section-1 .sub-section-2 {
        display: flex;
        flex-direction: column;
        align-content: center;
    }
    .section-1 .sub-section-2 .block {
        flex-basis: unset;
        flex-shrink: 0;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        margin-top: 3rem;
    }

}

/*
@media screen and (max-width: 1000px) {
    .section .block-2 {
        min-height: 400px;
    }
}
@media screen and (max-width: 928px ) {
    .section .block-2 {
        min-height: 400px;
    }
}
*/

/*@media screen and (max-width: 670px ) {*/
@media screen and (max-width: 928px ) {
    .section-1 {
        margin-top: 2rem;
    }

    .section-1  .sub-1section-1 {
        padding-right: 0.5rem; padding-left: 0.5rem;
    }
    .section-1 .sub-section-2 .block {
        width: 400px;
        flex-basis: unset;
        flex-shrink: 0;
        padding-left: 0; padding-right: 0;
        margin-left: 0; margin-right: 0;
        margin-top: 2rem;

        justify-content: center;
        align-content: center;
    }
    .section-1 .sub-section-2 .block:first-child {
        margin-top: 0;
    }

    .section-1 .sub-section-2 .block>img {
        width: 60px;
        margin-right: 20px;
        float: left;
    }
    .section-1 .sub-section-2 .block>div {
        width: 320px; float: left;
    }

    .section-2, .section-3, .section-4 {
        margin-top: 2rem;
    }
    .section-2 .block-1 .part, .section-4 .block-1 .part {
        margin-top: 0;
    }

    
    .section {
        flex-direction: column;
    }
    .section .block {
        width: 100%;
    }
    .section .block-2 {
        height: 600px;
    }

    .section-8 .form-box .fields-box {
        flex-direction: column;
        margin-left: 50px;
    }
    .section-8 .form-box .form-element-wrapper {
        margin: 0.5rem 0;
    }
    .section-8 .form-box .field-error>ul {
        padding-left: 0;
    }
    .section-8 .form-box .field-error {
        margin-left: 50px;
    }
}
