* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

header {
    background: linear-gradient(90deg, #d40000, #004080);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

header.banner {
    background: linear-gradient(90deg, #d40000 0%, #004080 100%);
    text-align: center;
    padding: 0;
    border-bottom: 6px solid #004080;
    border-top: 6px solid #d40000;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    position: relative;
    background: #fff;
    border-radius: 24px;
    border: 6px solid #004080;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 48px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60vw;
    min-height: 140px;
    max-width: 900px;
}

.banner-text::before,
.banner-text::after {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #d40000 0%, #004080 100%);
}

.banner-text::before {
    left: -24px;
}
.banner-text::after {
    right: -24px;
}

.site-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

section {
    max-width: 700px; /* Make sections narrower so the SVG is visible */
    background: #fff;
    margin: 2em auto;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    position: relative;
    z-index: 1;
}

.services {
    background: #fff;
    padding: 32px 20px;         /* Less vertical padding */
    text-align: center;
    border: 3px solid #004080;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 2em auto;
    max-width: 900px;           /* Make it wider */
    min-height: unset;          /* Remove forced height */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #d40000;
    border-bottom: 3px solid #d40000;
    display: inline-block;
    padding-bottom: 6px;
    letter-spacing: 1px;
}

.services ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-top: 1.5em;
}

.services li {
    margin: 10px 0;
    font-size: 1.1em;
    background: #e3e3e3;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #004080;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background 0.2s, border 0.2s;
}
.services li:hover {
    background: #f8d7da;
    border-color: #d40000;
}

.quote {
    background: #e0e0e0;
    padding: 30px 20px;
    text-align: center;
}

.quote h2 {
    color: #004080;
    margin-bottom: 10px;
}

.quote a {
    color: #d40000;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
}

.gallery-grid img {
    width: 100%;
    height: 180px;         /* Set a fixed height */
    object-fit: cover;     /* Crop to fill the box */
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.04);
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    position: relative;
    margin-bottom: 2em;
}

.reviews-carousel {
    display: flex;
    transition: transform 0.4s cubic-bezier(.77,0,.18,1);
    gap: 1.5em;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
}

.review {
    flex: 0 0 32%;
    min-width: 300px;
    max-width: 340px;
    background: #f1f1f1;
    border-left: 4px solid #0077b6;
    border-radius: 8px;
    margin-bottom: 1em;
    padding: 1em 1.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-btn {
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.carousel-btn:hover, .carousel-btn:focus {
    background: #d40000;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact-form input, .contact-form textarea {
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.contact-form button {
    background: #0077b6;
    color: #fff;
    border: none;
    padding: 0.9em;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #023e8a;
}

footer {
    text-align: center;
    padding: 1.5em 0;
    background: #222;
    color: #fff;
    margin-top: 2em;
    border-radius: 0 0 12px 12px;
}

.main-nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.5em 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    text-decoration: none;
    color: #004080;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
    background: #004080;
    color: #fff;
}

.see-all-reviews {
    display: block;
    text-align: right;
    margin: 1em 0 0 0;
    color: #004080;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}
.see-all-reviews:hover {
    color: #d40000;
}

.gallery-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 2em;
}

.gallery-carousel {
    display: flex;
    gap: 1em;
    overflow: hidden;
    width: 816px; /* 3 images * 260px + 2 gaps (approx) */
    max-width: 100vw;
    transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}

.gallery-carousel img {
    flex: 0 0 260px;
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1em;
    scroll-snap-type: x mandatory;
    padding-bottom: 1em;
    scrollbar-width: thin;
    scrollbar-color: #004080 #e3e3e3;
}

.gallery-scroll img {
    flex: 0 0 260px;
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    scroll-snap-align: start;
}

.gallery-scroll img:hover {
    transform: scale(1.04);
}

.main-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.main-columns::before,
.main-columns::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    background: url('roof-faint.svg') center top no-repeat;
    background-size: 100% auto;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.main-columns::before {
    left: 0;
    transform: scaleX(-1); /* Mirror for left side */
}

.main-columns::after {
    right: 0;
}

.about {
    background: #fff;
    border: 3px solid #d40000;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 2em auto;
    max-width: 700px;
    padding: 2em;
    position: relative;
    z-index: 1;
}

.about h2 {
    color: #004080;
    font-size: 2em;
    margin-bottom: 1em;
    border-bottom: 2px solid #004080;
    display: inline-block;
    padding-bottom: 6px;
}

.about-list {
    list-style: disc inside;
    margin: 1em 0 1em 1em;
    padding-left: 0;
    color: #222;
}

.about-list li {
    margin-bottom: 0.5em;
    font-size: 1.05em;
}

@media (max-width: 700px) {
    section {
        padding: 1em;
    }
    .banner-text {
        padding: 0 1em;
    }
    .site-logo {
        max-width: 180px;
    }
}
@media (max-width: 900px) {
    .review {
        min-width: 80vw;
        max-width: 90vw;
    }
    .reviews-carousel {
        max-width: 95vw;
    }
    .gallery-carousel {
        width: 90vw;
    }
    .gallery-carousel img {
        flex: 0 0 90vw;
        width: 90vw;
    }
    .gallery-scroll img {
        flex: 0 0 80vw;
        width: 80vw;
    }
    .main-columns::before,
    .main-columns::after {
        display: none;
    }
}
