/* ==========================================================================
   Boilermate Repairs - Modern Static CSS
   Converted from legacy Joomla template (a4joomla-countryside-free / grey)
   Fully responsive for desktop, tablet, and mobile.
   ========================================================================== */

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

body {
    background-color: #222222;
    color: #444455;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Site wrapper container */
#allwrap {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    background: #f7f7f7;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.45);
}

/* Header & Logo */
#header {
    padding: 0 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo {
    display: block;
    max-width: 320px;
    border-top: 9px solid #ffffff;
}

#logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

#hsocial {
    display: flex;
    gap: 6px;
    align-items: center;
}

#hsocial a img {
    display: block;
    width: 22px;
    height: 22px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#hsocial a:hover img {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Top Navigation Bar */
#topmenuwrap {
    background: #030527;
    margin: 0 35px;
}

#topmenu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

#topmenu li {
    margin: 0;
    padding: 0;
}

#topmenu li a {
    display: block;
    padding: 9px 18px 8px 18px;
    color: #bbbbbb;
    text-decoration: none;
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #333866;
    transition: color 0.2s, background 0.2s;
}

#topmenu li:last-child a {
    border-right: none;
}

#topmenu li a:hover,
#topmenu li.active a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

/* Slideshow */
#slideshow-container {
    position: relative;
    max-width: 910px;
    height: 250px;
    margin: 15px 35px 0 35px;
    overflow: hidden;
    background: #e9e9e9;
    border-radius: 2px;
}

#slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#slideshow-container .slide.active {
    opacity: 1;
    z-index: 1;
}

/* Pathway / Breadcrumbs */
#pathway {
    margin: 12px 35px 0 35px;
    font-size: 11px;
    color: #060843;
    display: flex;
    align-items: center;
    gap: 6px;
}

#pathway a {
    color: #060843;
    text-decoration: none;
}

#pathway a:hover {
    text-decoration: underline;
}

#pathway .arrow {
    display: inline-block;
    vertical-align: middle;
}

/* Main Content Body */
#cbody {
    padding: 15px 35px 25px 35px;
    display: flex;
    gap: 30px;
}

#content60 {
    flex: 1;
    min-width: 0;
}

#sidebar-2 {
    width: 210px;
    flex-shrink: 0;
}

/* Typography & Content Elements */
h1 {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #060843;
    font-weight: normal;
    margin-bottom: 14px;
    line-height: 1.3;
}

p {
    color: #444455;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

a {
    color: #5555bb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul.content-list {
    margin: 10px 0 15px 24px;
    color: #444455;
    font-size: 13px;
    line-height: 1.75;
}

ul.content-list li {
    margin-bottom: 4px;
}

/* Sidebar */
.moduletable {
    margin-bottom: 25px;
}

.moduletable h3 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #222233;
    border-bottom: 1px dotted #9999aa;
    padding-bottom: 5px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.moduletable ul {
    list-style-type: disc;
    padding-left: 18px;
    margin: 0;
    color: #444455;
    font-size: 12px;
    line-height: 1.7;
}

.moduletable ul li {
    margin-bottom: 3px;
}

.customrightAddress {
    text-align: right;
    font-size: 11px;
    color: #737373;
    line-height: 1.55;
}

.customrightAddress .company-title {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
    margin-bottom: 7px;
    font-weight: bold;
    color: #444;
    text-align: center;
}

.customrightAddress a {
    color: #5555bb;
}

.customrightAddress a:hover {
    text-decoration: underline;
}

/* Gallery of Work */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.gallery-card {
    text-align: center;
}

.gallery-card img {
    width: 100%;
    max-width: 300px;
    height: 225px;
    object-fit: cover;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-bottom: 1px solid #bbb;
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-caption {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    color: #060843;
    font-size: 13px;
    padding: 8px 0 12px;
    border-bottom: 1px dotted #ddd;
    margin-bottom: 10px;
}

/* Contact Us Section */
.contact-quick-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.quick-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quick-card .card-label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-card a {
    font-size: 15px;
    font-weight: bold;
    color: #060843;
    word-break: break-all;
}

.contact-form-box {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 22px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contact-form-box h2 {
    font-size: 16px;
    color: #060843;
    margin-bottom: 15px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 12px;
    color: #333333;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #060843;
    box-shadow: 0 0 0 2px rgba(6, 8, 67, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: #030527;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 13px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #111a66;
}

/* Footer */
#footerwrap {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 15px 35px 25px 35px;
    text-align: center;
}

#footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

#footer-links li a {
    color: #444455;
    font-size: 11px;
    text-decoration: none;
}

#footer-links li a:hover {
    color: #6666cc;
    text-decoration: underline;
}

#footer-links li:not(:last-child)::after {
    content: "|";
    margin-left: 12px;
    color: #9999aa;
}

#copyright {
    font-size: 11px;
    color: #444455;
}

#copyright a {
    color: #444455;
    text-decoration: underline;
}

#copyright a:hover {
    color: #6666cc;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 12px;
    }

    #topmenuwrap {
        margin: 0 15px;
    }

    #topmenu {
        justify-content: center;
    }

    #topmenu li a {
        padding: 8px 12px;
        border-right: none;
        font-size: 11px;
    }

    #slideshow-container {
        margin: 15px 15px 0 15px;
        height: 180px;
    }

    #pathway {
        margin: 10px 15px 0 15px;
    }

    #cbody {
        flex-direction: column;
        padding: 15px 15px;
        gap: 25px;
    }

    #sidebar-2 {
        width: 100%;
    }

    .customrightAddress {
        text-align: left;
    }

    .customrightAddress .company-title {
        text-align: left;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-quick-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #slideshow-container {
        height: 130px;
    }

    #topmenu li {
        width: 50%;
        text-align: center;
    }

    #topmenu li a {
        border-bottom: 1px solid #1a1e4a;
    }
}

