/* HTML Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Service Areas Section - Suffolk Building & Renovation */

/* Service Areas Section Container */
.sbr-service-areas {
    padding: 80px 0;
    background-color: #f3f3f3;
}

/* Service Areas Header */
.sbr-service-areas h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Gabarito', sans-serif;
}

.sbr-service-areas h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #6acc5b;
}

.sbr-service-areas p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Areas Grid Layout */
.sbr-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Service Box */
.sbr-service-box {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    font-family: 'Gabarito', sans-serif;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.sbr-service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
}

.sbr-service-box:visited {
    color: inherit;
    text-decoration: none;
}

.sbr-service-box:focus {
    outline: 2px solid #6acc5b;
    outline-offset: 2px;
    text-decoration: none;
}

/* Service Box Icon */
.sbr-service-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #6acc5b;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Service Box Image */
.sbr-service-img {
    margin-bottom: 1.5rem;
}

.sbr-service-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.sbr-service-box:hover .sbr-service-img img {
    transform: scale(1.05);
}

/* Service Box Text */
.sbr-service-box h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Gabarito', sans-serif;
}

.sbr-service-box p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Gabarito', sans-serif;
}

/* Service Areas Section - Tablet Styles */
@media screen and (max-width: 1024px) {
    /* Service Areas Section - Tablet */
    .sbr-service-areas {
        padding: 60px 0;
    }
    
    /* Service Areas Header - Tablet */
    .sbr-service-areas h2 {
        font-size: 2.2rem;
    }
    
    /* Grid Layout - Tablet */
    .sbr-services-grid {
        gap: 2rem;
        max-width: 900px;
    }
    
    /* Service Box - Tablet */
    .sbr-service-box {
        padding: 2rem;
        min-height: 320px;
    }
    
    /* Service Image - Tablet */
    .sbr-service-img img {
        height: 200px;
    }
    
    /* Service Title - Tablet */
    .sbr-service-box h3 {
        font-size: 1.3rem;
    }
}

/* Service Areas Section - Mobile Styles */
@media screen and (max-width: 768px) {
    /* Service Areas Section - Mobile */
    .sbr-service-areas {
        padding: 50px 20px;
    }
    
    /* Service Areas Header - Mobile */
    .sbr-service-areas h2 {
        font-size: 1.8rem;
    }
    
    /* Grid Layout - Mobile */
    .sbr-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        max-width: 100%;
    }
    
    /* Service Box - Mobile */
    .sbr-service-box {
        padding: 2rem 1.5rem;
        margin: 0 10px;
        min-height: auto;
    }
    
    /* Service Icon - Mobile */
    .sbr-service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: -8px;
        right: -8px;
    }
    
    /* Service Image - Mobile */
    .sbr-service-img img {
        height: 160px;
    }
    
    /* Service Title - Mobile */
    .sbr-service-box h3 {
        font-size: 1.2rem;
    }
    
    /* Service Description - Mobile */
    .sbr-service-box p {
        font-size: 0.95rem;
    }
}

/* Service Areas Section - Small Mobile Styles */
@media screen and (max-width: 480px) {
    /* Service Areas Section - Small Mobile */
    .sbr-service-areas {
        padding: 40px 15px;
    }
    
    /* Service Areas Header - Small Mobile */
    .sbr-service-areas h2 {
        font-size: 1.6rem;
    }
    
    /* Service Box - Small Mobile */
    .sbr-service-box {
        padding: 1.5rem 1.2rem;
        margin: 0 5px;
    }
    
    /* Service Image - Small Mobile */
    .sbr-service-img img {
        height: 140px;
    }
    
    /* Service Icon - Small Mobile */
    .sbr-service-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}