:root {
    --primary: #000;
    --dark: #111;
    --light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1100px, 90%);
    margin: auto;
}
.container h2{
    padding: 20px;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

#msclogo {
    height: 40px;
    vertical-align: middle;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}
.main-nav a {
    text-decoration: none;
    color: var(--dark);
    padding: 10px 18px;
    border: 1px solid var(--primary);
}

.btn {
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.about-preview p, .about-preview h2, .service-grid{
    padding: 20px;
}
/* HERO */
.hero {
    position: relative;
}

.slide {
    display: none;
    position: relative;
    /*aspect-ratio: 16 / 9;*/
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.overlay {
    position: absolute;
    bottom: 20%;
    left: 25%;
    color: #fff;
}

.overlay p{
    margin-bottom: 20px;
}

/* SERVICES */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-grid a{
    text-decoration: none;
    color: var(--dark);
}
.card {
    padding: 20px;
    border: 1px solid var(--primary);
    text-align: center;
}
.card-blank {
    padding: 20px;
    border: none;
    text-align: center;
}

/* FOOTER */
.site-footer {
    background: #111;
    color: #fff;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-grid ul{
    list-style: none;
}
.footer-grid a{
    text-decoration: none;
    color:#fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.service-icon {
    width: 60px;      /* increase size */
    height: 60px;
    fill: var(--primary); /* same color */
}

.nav-toggle{
    display: none;
}
.icon i {
    font-size: 60px;
    color: var(--primary);
    padding-bottom: 20px;
}
.services-page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Each service section */
.service-block {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

/* Layout */

.service-content {
/*    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    align-items: center;
*/
    width: min(1100px, 90%);
    margin: auto;
}

/* Icon */
.service-icon i {
    font-size: 70px;
    color: var(--primary);
}

/* Text */
.service-text h2 {
    margin-bottom: 10px;
    padding: none;
}

.service-text p {
    margin-bottom: 15px;
}

.service-text img{
    width: 100%;
    height: auto;
}

/* Alternate layout */
/*
.service-block:nth-child(even) .service-content {
    grid-template-columns: 1fr 120px;
}

.service-block:nth-child(even) .service-icon {
    order: 2;
}
*/
.service-details {
    margin-top: 15px;
}

.service-details h3 {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.service-details ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.service-details li {
    margin-bottom: 6px;
}
/*
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    width: min(1100px, 90%);
    margin: auto;
}
*/

.contact-page {
    padding: 40px 0;
}

.contact-form {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 5px;
    font-size: 1rem;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.success {
    color: green;
}

.error {
    color: red;
}

.error {
    color: red;
    font-size: 0.9rem;
}

input.error-field,
textarea.error-field {
    border-color: red;
}

.success {
    color: green;
    margin-top: 15px;
}

.hidden-field {
    display: none;
}

.contact-page h2{
    padding: 0px;
}
.contact-page p{
    padding-top: 10px;
    padding-bottom: 10px;
}
/* MOBILE */
@media (max-width: 768px) {
    .main-nav {
        display: none;

    }
    .nav-toggle{
        display: block;
        color:var(--primary);
        background: none;
        font-size: 35px;
        border: none;
        cursor: pointer;
    }

    .main-nav.open {
        display: block;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        z-index: 9999;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav li {
        padding: 10px 20px;
    }
    .main-nav a {
        display: block;
        width:100%;
        text-decoration: none;
        color: var(--dark);
        padding: 10px 18px;
        border: 1px solid var(--primary);
    }

    #msclogo {
        width: 300px;
        height: 40px;
    }
    .card-blank{
        display: none;
    }
    .service-content {
        grid-template-columns: 1fr;
        text-align: justify;
    }

    .service-icon {
        margin-bottom: 15px;
    }

    .service-text img{
        width: 100%;
        height: auto;
    }
/*
    .services-grid {

        width: min(1100px, 90%);
        margin: auto;
    }

    .service-block {
        grid-template-columns: 1fr;
        text-align: justify;
    }
*/
}