/* =========================================
   Matthew James Consulting
   Responsive stylesheet
   ========================================= */


/* ---------- BASIC RESET ---------- */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    background: #ffffff;

    color: #000000;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}


/* ---------- PAGE ---------- */

.page {
    width: min(1100px, calc(100% - 30px));

    margin: 0 auto;

    padding: 0 20px 50px;
}


/* ---------- HEADER ---------- */

.header {
    width: 100%;

    padding-top: 35px;
}


/* ---------- LOGO ---------- */

.logo {
    width: 100%;

    text-align: center;

    padding: 0 10px 15px;
}

.logo img {
    display: block;

    width: min(500px, 100%);
    height: auto;

    margin: 0 auto;
}


/* ---------- TAGLINE ---------- */

.tagline {
    width: 100%;

    min-height: 20px;

    padding: 0 14px;

    background: #1B3685;

    color: #FFFFFF;

    font-size: 14px;
    font-weight: bold;

    line-height: 20px;

    text-align: right;
}


/* ---------- MAIN CONTENT ---------- */

.content {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 30px;

    width: 100%;

    padding-top: 18px;
}


/* ---------- SECTION HEADINGS ---------- */

.services h2,
.about h2 {
    margin: 0;

    padding: 0 0 8px;

    font-size: 16px;
    font-weight: bold;

    text-align: center;
}

.services h2 {
    color: #000000;
}

.about h2 {
    color: #1B3685;
}


/* ---------- BLUE SECTION LINE ---------- */

.section-line {
    width: 100%;
    height: 2px;

    margin-bottom: 12px;

    background: #1B3685;
}


/* ---------- SERVICES ---------- */

.service-list {
    width: 100%;
}

.service {
    display: grid;

    grid-template-columns: 40px minmax(0, 1fr);

    gap: 10px;

    align-items: start;

    width: 100%;

    margin-bottom: 9px;
}

.service img {
    display: block;

    width: 40px;
    height: 50px;

    border: 1px solid #000000;
}

.service div {
    min-width: 0;

    padding-top: 2px;

    color: #1B3685;

    font-size: 14px;
    font-weight: bold;

    line-height: 1.35;
}


/* ---------- ABOUT ---------- */

.about {
    min-width: 0;
}

.about-text {
    width: 100%;

    color: #000000;

    font-size: 14px;
    font-weight: bold;

    line-height: 1.35;

    text-align: justify;
}

.about-text p {
    margin: 0 0 17px;
}


/* ---------- CONTACT ---------- */

.contact {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 110px;

    width: 100%;
    min-height: 180px;

    margin-top: 24px;

    border: 1px solid #1B3685;
}

.contact-info {
    min-width: 0;

    padding: 10px;

    color: #000000;

    font-size: 14px;
    font-weight: bold;

    line-height: 1.3;

    text-align: right;
}

.company-name {
    margin-bottom: 2px;

    color: #1B3685;
}

.contact-info a {
    color: #1B3685;

    text-decoration: none;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info a:hover {
    color: #000000;

    text-decoration: underline;
}

.contact-image {
    min-width: 0;
    min-height: 178px;
}


/* ---------- LINKS ---------- */

a:active,
a:link,
a:visited {
    color: #1B3685;
    text-decoration: none;
}

a:hover {
    color: #000000;
    text-decoration: underline;
}


/* ---------- TABLET ---------- */

@media (max-width: 800px) {

    .page {
        width: min(100% - 20px, 700px);

        padding-left: 15px;
        padding-right: 15px;
    }

    .header {
        padding-top: 25px;
    }

    .content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .tagline {
        text-align: center;
    }

    .about-text {
        text-align: left;
    }
}


/* ---------- PHONE ---------- */

@media (max-width: 500px) {

    .page {
        width: 100%;

        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 30px;
    }

    .header {
        padding-top: 18px;
    }

    .logo {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .logo img {
        width: 100%;
        max-width: 500px;
    }

    .tagline {
        min-height: 0;

        padding: 4px 8px;

        font-size: 13px;
        line-height: 18px;

        text-align: center;
    }

    .content {
        grid-template-columns: 1fr;

        padding-top: 15px;

        gap: 30px;
    }

    .services h2,
    .about h2 {
        font-size: 16px;
    }

    .service {
        grid-template-columns: 40px minmax(0, 1fr);

        gap: 8px;

        margin-bottom: 10px;
    }

    .service div {
        font-size: 14px;

        line-height: 1.35;
    }

    .about-text {
        font-size: 14px;

        line-height: 1.4;

        text-align: left;
    }

    .contact {
        grid-template-columns: minmax(0, 1fr) 75px;

        min-height: 160px;

        margin-top: 20px;
    }

    .contact-image {
        min-height: 158px;
    }

    .contact-info {
        padding: 8px;

        font-size: 12px;

        line-height: 1.3;
    }
}


/* ---------- VERY SMALL PHONES ---------- */

@media (max-width: 360px) {

    .page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .service {
        grid-template-columns: 35px minmax(0, 1fr);

        gap: 7px;
    }

    .service img {
        width: 35px;
        height: auto;
    }

    .service div {
        font-size: 13px;
    }

    .about-text {
        font-size: 13px;
    }

    .contact {
        grid-template-columns: 1fr;

        min-height: 0;
    }

    .contact-info {
        padding: 10px;

        font-size: 12px;

        text-align: center;
    }

    .contact-image {
        display: none;
    }
}
