@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Services Main Section Styles */
.services-main {
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    overflow-x: hidden;
}

/* Breadcrumb */
.services-breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.services-breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.services-breadcrumb a:hover {
    color: #3498db;
}

.services-breadcrumb .current {
    color: #7f8c8d;
    font-weight: 600;
}

/* Service Hero Section */
.service-hero {
    text-align: left;
    min-height: 30vh;
    object-fit: cover;
    width: 100%;
}

.service-hero-overlay {
    text-align: left;
    min-height: 30vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #aa721899, #0f172a);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-hero h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-shadow: 2px 2px 3px #0f172a;
}

.service-hero-subtitle {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Service Content */
.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    background-image: url(../images/services-main.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Service Description */
.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #34495e;
}

.service-description h2 {
    color: #0f172a;
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #D3A31C;
}

.service-description h3 {
    color: #0f172a;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.6rem;
}

.service-description p {
    margin-bottom: 1rem;
}

.service-description ul, 
.service-description ol {
    margin: 0.8rem 0 1.2rem 1.2rem;
}

.service-description li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.service-description strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Service Sidebar */
.service-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    height: fit-content;
    border-left: 4px solid #AA7218;
    margin-top: 0;
}

.service-sidebar h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    color: #AA7218;
    min-width: 20px;
    margin-top: 0.2rem;
}

.service-features span {
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
}

/* Call to Action */
.service-cta {
    text-align: center;
    padding: 2rem 1rem;
    background: #363C4F;
}

.service-cta h3 {
    color: #D3A31C;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-cta p {
    color: #fff;
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    background: transparent;
}

.cta-button i {
    margin-left: 10px;
}

.cta-button:hover {
    background: white;
    color: #363C4F;
}

/* Related Services */
.related-services {
    padding: 2rem 1rem;
}

.related-services h2 {
    color: #363C4F;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: #363c4f1b;
    text-decoration-thickness: 2px;
}

.related-services .related-services-description {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.related-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.related-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #D3A31C;
}

.related-card h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.related-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .service-hero-overlay {
        padding: 3rem 2rem;
    }
    
    .service-hero h1 {
        font-size: 2.2rem;
    }
    
    .service-hero-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
    
    .service-description h2 {
        font-size: 1.8rem;
    }
    
    .service-description h3 {
        font-size: 1.4rem;
    }
    
    .service-sidebar {
        margin-top: 0;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-cta {
        padding: 3rem 2rem;
    }
    
    .service-cta h3 {
        font-size: 1.8rem;
    }
    
    .service-cta p {
        max-width: 80%;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .service-hero-overlay {
        padding: 60px 45px;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero-subtitle {
        font-size: 1.1rem;
        max-width: 800px;
    }
    
    .service-content {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        padding: 50px 45px;
    }
    
    .service-description {
        font-size: 1.1rem;
    }
    
    .service-description h2 {
        font-size: 1.8rem;
        margin: 2rem 0 1rem;
    }
    
    .service-description h3 {
        font-size: 1.4rem;
        margin: 2rem 0 0.8rem;
    }
    
    .service-description li {
        line-height: 1.6;
    }
    
    .service-sidebar {
        padding: 2rem 2rem 0;
        margin-top: 2.5rem;
    }
    
    .service-sidebar h3 {
        font-size: 1.5rem;
    }
    
    .service-features li {
        padding: 0.8rem 0;
    }
    
    .related-services {
        padding: 2rem 45px 3rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0;
    }
    
    .service-cta {
        padding: 3rem;
    }
    
    .service-cta h3 {
        font-size: 1.8rem;
    }
    
    .service-cta p {
        font-size: 1.1rem;
        max-width: 80%;
        line-height: 1.6;
    }
    
    .services-breadcrumb {
        padding: 0 45px 1rem;
    }
}

/* Large Desktop Styles (1440px and up) */
@media (min-width: 1440px) {
    .service-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .related-services {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .service-cta {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* SERVICE-SPECIFIC VARIATIONS */
/* All service hero backgrounds */
.boiler-retubing .service-hero,
.steam-network .service-hero,
.ducts-chimney .service-hero,
.condensate-recovery .service-hero,
.pressure-stations .service-hero,
.steam-line .service-hero,
.lagging-cladding .service-hero,
.storage-tanks .service-hero,
.motor-rewinding .service-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.boiler-retubing .service-hero {
    background-image: url(../images/boiler-retubing.webp);
}

.steam-network .service-hero {
    background-image: url(../images/steam-network.webp);
}

.ducts-chimney .service-hero {
    background-image: url(../images/ducts-chimney-fabrication-installation.webp);
}

.condensate-recovery .service-hero {
    background-image: url(../images/condensate-recovery-pump.webp);
}

.pressure-stations .service-hero {
    background-image: url(../images/pressure-reduction-stations.webp);
}

.steam-line .service-hero {
    background-image: url(../images/steam-distribution.webp);
}

.lagging-cladding .service-hero {
    background-image: url(../images/lagging-cladding.webp);
}

.storage-tanks .service-hero {
    background-image: url(../images/storage-tanks.webp);
}

.motor-rewinding .service-hero {
    background-image: url(../images/motor-rewinding.webp);
}

/* Mobile Landscape Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .service-hero-overlay {
        min-height: 40vh;
        padding: 1.5rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-hero-overlay {
        background: linear-gradient(135deg, #aa7218, #0f172a);
    }
    
    .service-features i {
        color: #8a5b14;
    }
    
    .cta-button {
        border-color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .services-breadcrumb a,
    .cta-button,
    .related-card {
        transition: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .related-card:hover {
        transform: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-button:active {
        background: white;
        color: #363C4F;
    }
    
    .related-card:active {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: #D3A31C;
    }
    
    .services-breadcrumb a:active {
        color: #3498db;
    }
}