/* your styles go here */
/* Example site test */

.box-image-text .image {
    min-height: 190px;
    max-height: 190px;
}

.box-image-text .image img {
    max-height: 190px;
    margin: auto;
}

.box-simple {
    min-height: 230px;
}

/* Call to Action Box Styling */
.cta-box {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    border-left: 5px solid #5cb85c;
}

.cta-box .btn-primary {
    background-color: #5cb85c;
    border-color: #4cae4c;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-box .btn-primary:hover {
    background-color: #449d44;
    border-color: #398439;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Emergency Callout Styling */
.emergency-callout {
    padding: 20px 0;
}

.emergency-callout p.lead {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 15px;
}

.emergency-cta {
    margin-top: 10px;
    border-left: 5px solid #d9534f;
}

.emergency-cta .phone-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #d9534f;
}

.emergency-cta .btn-primary {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.emergency-cta .btn-primary:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

/* Google Map Styling */
.map-container {
    position: relative;
    padding-bottom: 30px;
    overflow: hidden;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.map-container iframe {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    width: 100%;
    height: 450px;
}

/* Service Area Section */
.service-area-section {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.service-area-section .heading {
    margin-bottom: 30px;
}

.service-area-section .heading h2 {
    margin-bottom: 15px;
}

.service-area-section .heading p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Before & After Section */
.before-after.owl-carousel {
    margin-top: 40px;
}

.before-after-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 15px 8px;
    border: 1px solid #eaeff3;
}

.before-after-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 25px 25px 15px;
}

.card-header h3 {
    color: #38a7bb;
    font-size: 22px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.card-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
}

.card-description p {
    margin-bottom: 0;
}

.image-comparison {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.before-image, .after-image {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 5px 25px;
}

.image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.badge-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    z-index: 2;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.before-image .badge-label {
    background-color: #f0ad4e;
    color: #fff;
}

.after-image .badge-label {
    background-color: #5cb85c;
    color: #fff;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
    display: block;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

/* Owl Carousel Navigation Styling */
.before-after.owl-theme .owl-controls .owl-buttons div {
    background: #38a7bb;
    color: #fff;
    opacity: 0.8;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.before-after.owl-theme .owl-controls .owl-buttons div:hover {
    opacity: 1;
    background: #2b8a9a;
}

.before-after.owl-theme .owl-controls .owl-page span {
    background: #38a7bb;
    opacity: 0.5;
}

.before-after.owl-theme .owl-controls .owl-page.active span {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .home-before-after {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .before-after-card {
        margin: 10px 5px;
    }
    
    .card-header {
        padding: 20px 20px 10px;
    }
    
    .before-image, .after-image {
        padding: 0 5px 20px;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .before-image, .after-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .home-before-after {
        padding: 50px 0;
    }
}

/* Hedge Gallery Styling */
.hedge-gallery {
    margin: 40px 0;
}

.before-after-pair {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid #eaeff3;
}

.work-example {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid #eaeff3;
}

.before-after-pair h4, .work-example h4 {
    color: #38a7bb;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.image-comparison-inline, .image-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.comparison-item, .gallery-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    position: relative;
    margin-bottom: 20px;
}

/* Modified gallery item for 3-image layout */
.three-images .gallery-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.image-label {
    position: absolute;
    top: 10px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.comparison-item:first-child .image-label {
    background-color: #f0ad4e;
}

.comparison-item:last-child .image-label {
    background-color: #5cb85c;
}

.comparison-item img, .gallery-item img {
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

.comparison-item img:hover, .gallery-item img:hover {
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .comparison-item, .gallery-item,
    .three-images .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .before-after-pair, .work-example {
        padding: 15px;
    }
}

/* For medium screens, three images go to two rows (2+1) */
@media (min-width: 768px) and (max-width: 991px) {
    .three-images .gallery-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .three-images .gallery-item:last-child {
        margin-left: 25%;
    }
}

/* Gallery container styling */
.gallery-container {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid #eaeff3;
    margin-bottom: 40px;
}

.gallery-container h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.gallery-container p {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 16px;
}

/* Gallery image styling */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -5px;
}

.gallery-image {
    flex: 0 0 32%;
    margin: 0 0 20px 0;
    padding: 0 5px;
    box-sizing: border-box;
}

.gallery-image img {
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    display: block;
}

.gallery-image img:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .gallery-image {
        flex: 0 0 48%;
    }
    
    .gallery-image:last-child:nth-child(odd) {
        flex: 0 0 48%;
        margin-left: 26%; /* Center the last image if there's an odd number */
    }
}

@media (max-width: 767px) {
    .gallery-image, 
    .gallery-image:last-child:nth-child(odd) {
        flex: 0 0 100%;
        margin-left: 0;
    }
    
    .gallery-container {
        padding: 15px;
    }
}
