:root {
    --primary-color: #1a4f80; /* A slightly lighter blue */
    --secondary-color: #3b74a8; /* A muted, soft blue */
    --highlight-color: #ffc107; /* Yellow */
    --text-color: #ffffff;
    --bg-color: #f0f4f7; /* Soft greyish-blue background */
}

.sermm {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #fff;
}

.sermm .navbar-brand img {
    height: 50px;
}

.sermm .nav-link {
    font-weight: 400;
    color: var(--primary-color) !important;
}

.sermm .nav-link.active {
    font-weight: 700;
    color: var(--secondary-color) !important;
}

.sermm .hero-section {
    background: linear-gradient(rgba(26, 79, 128, 0.8), rgba(26, 79, 128, 0.8)), url('https://via.placeholder.com/1920x800/1a4f80/f0f4f7?text=MECHANICAL+SERVICES+BANNER') center center no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.sermm .hero-section h1 {
    color: white;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.sermm .hero-section p.lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.sermm .services-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.sermm .section-heading {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.sermm .section-heading h2 {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.sermm .section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--highlight-color);
    border-radius: 2px;
}

.sermm .service-category-group {
    margin-bottom: 5rem;
}

.sermm .category-header h3 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.sermm .service-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sermm .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.sermm .service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.sermm .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sermm .card-body h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sermm .card-body p {
    font-weight: 350;
    margin-bottom: 0;
}

/* Specific styling for the generator card images */
.sermm .service-card .generator-images img {
    height: 250px; /* Smaller height for the two images */
}

/* Specific styling for the cooler card images */
.sermm .service-card .cooler-images img {
    height: 200px;
    object-fit: contain;
}

.sermm footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.sermm footer a {
    color: white;
    text-decoration: none;
}

.sermm footer a:hover {
    text-decoration: underline;
}
