/* Final responsive review: retain the original visual language and readable columns. */
/* Compact agency credit inside the existing editorial toggle. */
.bb-main .bb-agency-credit { display:flex; align-items:center; gap:20px; padding:18px 20px; max-width:430px; box-sizing:border-box; background:#f5f7f8; border-left:2px solid var(--bb-blue); color:var(--bb-blue); text-decoration:none; }
.bb-main .bb-agency-credit img { display:block; width:88px; height:auto; flex:0 0 88px; }
.bb-main .bb-agency-credit strong { display:block; font-size:18px; line-height:1.4; }
.bb-main .bb-agency-credit span span { display:block; margin-top:5px; font-size:13px; line-height:1.5; }
.bb-main .bb-agency-credit:hover span span { text-decoration:underline; text-underline-offset:3px; }
.bb-main .bb-agency-credit:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
@media (max-width:480px) {
 .bb-main .bb-agency-credit { gap:14px; padding:14px; }
 .bb-main .bb-agency-credit img { width:64px; flex-basis:64px; }
}
/* The heat-pump lead photo is 480px wide; keep its existing size and align the gallery. */
.page-id-9878 .bb-main .wpb_gallery { width:100%; max-width:480px; }
:is(.bb-reference-gallery, .page-id-9878 .bb-main .wpb_gallery) .wpb_image_grid_ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; height:auto!important; }
:is(.bb-reference-gallery, .page-id-9878 .bb-main .wpb_gallery) .wpb_image_grid_ul::before,:is(.bb-reference-gallery, .page-id-9878 .bb-main .wpb_gallery) .wpb_image_grid_ul::after { display:none; }
:is(.bb-reference-gallery, .page-id-9878 .bb-main .wpb_gallery) .wpb_image_grid_ul li { position:static!important; transform:none!important; width:auto!important; margin:0!important; }
:is(.bb-reference-gallery, .page-id-9878 .bb-main .wpb_gallery) .wpb_image_grid_ul a,:is(.bb-reference-gallery, .page-id-9878 .bb-main .wpb_gallery) .wpb_image_grid_ul img { display:block; width:100%; }
:is(.bb-reference-gallery, .page-id-9878 .bb-main .wpb_gallery) .wpb_image_grid_ul img { aspect-ratio:4/3; object-fit:cover; }
/* Keep each service photo joined to its text panel; reveal the button frame on card hover. */
.home .bb-main .vc_col-sm-4>.vc_column-inner>.wpb_wrapper:has(> .wpb_text_column .bb-service-link)>.wpb_single_image { margin-bottom:0; }
.home .bb-main .bb-service-link { position:relative; }
.home .bb-main .bb-service-link::after { content:''; position:absolute; inset:0; border:1px solid currentColor; opacity:0; pointer-events:none; transition:opacity 220ms ease; }
.home .bb-main .vc_col-sm-4>.vc_column-inner>.wpb_wrapper:focus-within .bb-service-link::after { opacity:1; }
@media (hover:hover) and (pointer:fine) {
 .home .bb-main .vc_col-sm-4>.vc_column-inner>.wpb_wrapper:hover .bb-service-link::after { opacity:1; }
}

/* Zoom only the hovered thumbnail within its frame, preserving gallery spacing. */
.bb-main .wpb_image_grid_ul a { overflow:hidden; }
.bb-main .wpb_image_grid_ul img { transition:transform 320ms ease; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .bb-main .wpb_image_grid_ul a:hover img { transform:scale(1.05); }
}
@media (prefers-reduced-motion:reduce) {
 .bb-main .wpb_image_grid_ul img { transition:none; }
}

/* Use the available page width instead of squeezing the introduction and four cards together. */
.page-id-6508 .bb-main .wpb-content-wrapper>.vc_row:has(>.vc_col-sm-2) { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); row-gap:24px; padding-top:36px; }
.page-id-6508 .bb-main .wpb-content-wrapper>.vc_row:has(>.vc_col-sm-2)::before,
.page-id-6508 .bb-main .wpb-content-wrapper>.vc_row:has(>.vc_col-sm-2)::after { display:none; }
.page-id-6508 .bb-main .vc_col-sm-4 { grid-column:1/-1; width:auto; }
.page-id-6508 .bb-main .vc_col-sm-2 { width:auto; min-width:0; }
.page-id-6508 .bb-main .vc_empty_space { display:none; }
.page-id-6508 .bb-main h5 { font-size:14px!important; line-height:1.5; min-height:42px; margin:0!important; overflow-wrap:normal; }
.page-id-6508 .bb-main .vc_single_image-wrapper { display:block; }
.page-id-6508 .bb-main .vc_single_image-wrapper img { width:100%; aspect-ratio:2; object-fit:cover; }
.page-id-6508 .bb-main .vc_col-sm-2>.vc_column-inner { padding-top:0!important; transition:transform 240ms ease; }
.page-id-6508 .bb-main .vc_col-sm-2:hover>.vc_column-inner { transform:translateY(-5px); }

/* Address, map and form have equal columns, matching the supplied contact reference. */
.bb-mega-panel--contact { background:#fff; font-size:14px; line-height:1.65; }
.bb-mega-panel--contact .vc_col-sm-4,
.bb-mega-panel--contact .vc_col-sm-4:nth-child(2) { width:33.333333%; }
.bb-mega-panel--contact .w-contact-p>.row { grid-template-columns:minmax(0,1fr); }
.bb-mega-panel--contact .wpcf7 textarea { height:140px; }
.bb-mega-panel--contact .wpcf7 input[type=submit],
.bb-main .wpcf7 input[type=submit] { background:#edf3f6!important; border:1px solid #9aafbd!important; border-radius:3px; padding:11px 22px; min-height:44px; color:var(--bb-blue)!important; box-shadow:none; text-shadow:none; font-size:15px; font-weight:600; text-transform:none; transition:background-color 180ms ease,border-color 180ms ease; }
.bb-mega-panel--contact .wpcf7 input[type=submit]:hover,
.bb-main .wpcf7 input[type=submit]:hover { background:#dde8ee!important; border-color:var(--bb-blue)!important; }
.wpcf7 input[type=submit]:focus-visible { outline:2px solid var(--bb-blue); outline-offset:3px; }
.wpcf7 input[type=submit]:disabled { opacity:.55; cursor:not-allowed; }
.bb-main .vc_btn3-container .vc_btn3.bb-inquiry-button { background:#edf3f6!important; border:1px solid #9aafbd!important; border-radius:3px; color:var(--bb-blue)!important; font-weight:600; min-height:44px; padding:11px 22px; transform:none; }
.bb-main .vc_btn3-container .vc_btn3.bb-inquiry-button:hover { background:#dde8ee!important; border-color:var(--bb-blue)!important; }
.home .bb-main>.entry-content>.vc_row:first-child .vc_btn3.bb-inquiry-button,
.home .bb-main>.entry-content>.vc_row:first-child .vc_btn3.bb-inquiry-button:hover { color:var(--bb-blue)!important; }
.home .bb-main .vc_btn3-container .vc_btn3.bb-inquiry-button:hover,
.home .bb-main .vc_btn3-container .vc_btn3.bb-inquiry-button:focus-visible { color:var(--bb-blue)!important; }
.bb-main .vc_btn3-container .vc_btn3.bb-inquiry-button:focus-visible { outline:2px solid var(--bb-blue); outline-offset:3px; }
.wpcf7 form.bb-contact-sent { display:none!important; }
.bb-contact-notice { padding:22px; background:#f3f8f5; border:1px solid #a5bfb0; border-left:4px solid #4b8064; border-radius:4px; color:#254b38; font-size:15px; line-height:1.6; }
.bb-contact-notice[hidden] { display:none; }
.bb-contact-notice p { margin:0 0 18px; }
.bb-contact-notice p:focus-visible { outline:2px solid #4b8064; outline-offset:4px; }
.bb-contact-notice button { min-height:44px; padding:10px 14px; background:transparent; border:1px solid #a5bfb0; border-radius:3px; color:inherit; font-size:14px; cursor:pointer; white-space:normal; }
.bb-contact-notice button:hover { background:#e5efe9; color:inherit; }
.bb-mega-panel--contact .w-contact-p .col-md-12:last-child p { text-align:left; }
.bb-mega-panel--contact .vc_col-sm-4:last-child .wpb_text_column { font-size:15px; }
.bb-mega-panel--contact [data-service="Google Maps"],
.page-id-6478 .bb-main [data-service="Google Maps"] { width:100%!important; min-width:0!important; max-width:100%!important; height:300px!important; overflow:hidden; }
.bb-mega-panel--contact [data-service="Google Maps"] *,
.page-id-6478 .bb-main [data-service="Google Maps"] * { max-width:100%; box-sizing:border-box; }
.bb-mega-panel--contact iframe,
.page-id-6478 .bb-main iframe { width:100%!important; max-width:100%!important; }
.bb-mega-panel--contact .bb-map { min-height:300px; }
.page-id-6478 .bb-main .vc_col-sm-4 { min-width:0; }

@media (min-width:768px) and (max-width:1024px) {
 .page-id-6478 .bb-main .vc_col-sm-4 { width:50%; }
 .page-id-6478 .bb-main .vc_col-sm-4:last-child { width:100%; }
}
@media (max-width:1024px) {
 .page-id-6508 .bb-main .wpb-content-wrapper>.vc_row:has(>.vc_col-sm-2) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .bb-mega-panel--contact .vc_col-sm-4,
 .bb-mega-panel--contact .vc_col-sm-4:nth-child(2) { width:100%; }
}
@media (max-width:600px) {
 .bb-main .bb-page-hero h1 { font-size:clamp(18px,5vw,29px); overflow-wrap:normal; word-break:normal; hyphens:auto; line-height:1.4; }
 .page-id-6508 .bb-main .wpb-content-wrapper>.vc_row:has(>.vc_col-sm-2) { grid-template-columns:minmax(0,1fr); }
 .page-id-6508 .bb-main h5 { min-height:0; }
}
@media (prefers-reduced-motion:reduce) {
 .page-id-6508 .bb-main .vc_col-sm-2>.vc_column-inner,
 .bb-mega-panel--contact .wpcf7 input[type=submit],
 .bb-main .wpcf7 input[type=submit] { transition:none; transform:none!important; }
}
