@media only screen and (max-width: 768px) {
    .site-branding {
        /* 1. Scale the image */
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: left center !important; /* Aligns left, centers vertically */

        /* 2. Remove the spacing (Your fix) */
        padding: 0 !important;
			min-height: 60px;
        
        /* Optional: If the box is still too tall, force the height */
        /* height: 80px !important; */ 
    }
}
button,
input[type="button"],
input[type="submit"],
.btn,
a.button {
    background-color: #2F2F2F;   /* change to your colour */
    border-color: #2F2F2F;
    color: #2F2F2F;
}

button:hover,
input[type="submit"]:hover,
a.button:hover {
    background-color: #000000;   /* hover colour */
    border-color: #000000;
}
* Make button text white */
button,
input[type="button"],
input[type="submit"],
a.button,
.wp-block-button__link {
    color: #ffffff !important;
}

/* Keep text white on hover */
button:hover,
input[type="submit"]:hover,
a.button:hover,
.wp-block-button__link:hover {
    color: #ffffff !important;
}
/* Contact form submit button text white */
input[type="submit"],
button[type="submit"],
.contact-form input[type="submit"],
.wpcf7 input[type="submit"],
.wpforms-submit {
    color: #ffffff !important;
}

/* Keep white on hover */
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.wpforms-submit:hover {
    color: #ffffff !important;
}
/* Contact form submit button text white */
input[type="submit"],
button[type="submit"],
.contact-form input[type="submit"],
.wpcf7 input[type="submit"],
.wpforms-submit {
    color: #ffffff !important;
}

/* Keep white on hover */
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.wpforms-submit:hover {
    color: #ffffff !important;
}
/* Subtle professional button styling */
input[type="submit"],
button[type="submit"],
.wpcf7 input[type="submit"],
.wpforms-submit {
    background-color: #2f2f2f;
    border: none;
    color: #ffffff !important;
    padding: 12px 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Smooth hover effect */
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.wpforms-submit:hover {
    background-color: #000000;
}

/* Hide Jetpack Like button */
.jetpack-likes-widget-wrapper {
    display: none !important;
}
/* Make the main navigation sticky */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Optional: keep background solid when scrolling */
.site-header {
    background-color: #ffffff;
}

/* Optional subtle shadow for a premium feel */
.site-header {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
/* Hide the page title on the homepage only */
.home .entry-title {
    display: none;
}
/* Make the header image clickable */
.custom-header {
    position: relative;
}

.custom-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* Ensure link cursor shows */
.custom-header:hover {
    cursor: pointer;
}
/* Make the entire header area clickable via the existing site-title home link */
#masthead,
.site-header {
  position: relative;
}

/* Stretch the Home link to cover the full header */
.site-title a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: block;
  text-indent: -9999px; /* hides text but keeps link accessible */
}

/* Make it feel clickable */
.site-header:hover {
  cursor: pointer;
}
/* Ensure the stretched home link can receive clicks */
.site-title a,
.site-branding a {
  pointer-events: auto !important;
}

/* Ensure nothing above it blocks clicks */
.site-header img,
.wp-custom-header img {
  pointer-events: none;
}
/* Remove hand cursor from header area */
#masthead,
.site-header,
.custom-header,
.wp-custom-header {
  cursor: default !important;
}

/* Keep header sticky but remove hand cursor */
#masthead,
.site-header,
.custom-header,
.wp-custom-header {
  cursor: default !important;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
}

/* Sela: sticky header */
#masthead,
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
}

/* Sticky can fail if a parent has overflow hidden/auto */
#page,
.site,
.site-content {
  overflow: visible !important;
}

/* TARGET the homepage service columns */
.home .wp-block-columns {
  align-items: stretch;
}

/* Make images the same height */
.home .wp-block-columns img {
  width: 100%;
  height: 260px;          /* adjust between 220–280 to taste */
  object-fit: cover;
  display: block;
}

/* Keep headings aligned */
.home .wp-block-column h2,
.home .wp-block-column h3 {
  min-height: 60px;
  text-align: center;
}

/* Keep paragraph text aligned */
.home .wp-block-column p {
  min-height: 90px;
  text-align: center;
}
/* Equal-height service images (covers blocks + common builders) */
.home .wp-block-columns img,
.home .wp-block-image img,
.home .panel-grid img,
.home .panel-row-style img,
.home .so-panel img,
.home .sow-image-container img {
  width: 100% !important;
  height: 260px !important;      /* change to 220–300 as you prefer */
  object-fit: cover !important;
  display: block !important;
}

/* Line up headings + text in service columns/rows */
.home .wp-block-column h2,
.home .wp-block-column h3,
.home .panel-grid h2,
.home .panel-grid h3,
.home .so-panel h2,
.home .so-panel h3 {
  min-height: 60px;
  text-align: center;
}

.home .wp-block-column p,
.home .panel-grid p,
.home .so-panel p {
  min-height: 90px;
  text-align: center;
}

/* Hide footer widget area on all pages except the homepage (Sela-safe) */
body:not(.home) #supplementary,
body:not(.home) .site-footer .widget-area,
body:not(.home) .footer-widget-area {
  display: none !important;
}
/* Limit Smash Balloon Instagram feed to 6 images in footer */
.site-footer #sb_instagram .sbi_item:nth-child(n+9) {
  display: none !important;
}

/* Improve paragraph spacing */
.entry-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Improve spacing between headings and text */
.entry-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.entry-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Hide the Uncategorized option in the Search & Filter dropdown (no ID needed) */
.searchandfilter select option {
  display: block;
}
/* Search & Filter button - lighter grey */

.searchandfilter input[type="submit"] {
  background-color: #6e6e6e;   /* Mid-light grey */
  border: 1px solid #6e6e6e;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover effect */
.searchandfilter input[type="submit"]:hover {
  background-color: #555555;   /* Slightly darker on hover */
  border-color: #555555;
}
.searchandfilter input[type="submit"] {
  border-radius: 3px;
}
/* Hide Uncategorized from Search & Filter dropdown */
.searchandfilter select option[value="1"] {
  display: none;
}

/* Fallback: force the results area into 3 columns */
#search-filter-results {
  column-count: 3;
  column-gap: 26px;
}

/* Keep each heading + its line from splitting awkwardly */
#search-filter-results h1,
#search-filter-results h2,
#search-filter-results h3,
#search-filter-results p {
  break-inside: avoid;
}

/* Tablet / mobile */
@media (max-width: 1024px) { #search-filter-results { column-count: 2; } }
@media (max-width: 640px)  { #search-filter-results { column-count: 1; } }
