.custom-header .custom-logo-link img.custom-logo {
  height: 50px !important;
  width: auto;
}





/* Header alignment + remove logo baseline gap */
.custom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
}

/* The culprit: anchor around the logo */
.custom-header .custom-logo-link {
  display: flex;               /* take it off the text baseline */
  align-items: center;
  line-height: 0 !important;   /* removes the under-image gap */
  margin: 0 !important;
  padding: 0 !important;
}

/* Make the actual image not participate in inline baseline spacing */
.custom-header .custom-logo-link img.custom-logo {
  display: block;
  margin: 0 !important;
  height: auto;
  width: auto; /* or your fixed height/width if you prefer */
}

/* Keep the MENU toggle vertically centered too */
.custom-header .menu-toggle {
  display: flex;
  align-items: center;
  line-height: 1;
}

/* If you only want to scope the min-height/centering to mobile */
@media (max-width: 768px) {
  .custom-header { min-height: 56px; }
}










/* Mobile: tighten gaps in the Work grid */
@media (max-width: 768px) {
  /* Columns blocks in the Work section */
  .home .wp-block-columns.is-layout-flex {
    gap: 0.75rem !important;      /* reduce flex gap between stacked items */
    row-gap: 0.75rem !important;   /* explicit for safety */
  }

  /* Default Gutenberg block spacing inside Groups (used in this section) */
  .home .wp-block-group.is-layout-flow {
    --wp--style--block-gap: 0.75rem !important;
  }

  /* Kill any extra margins that images/headings might add */
  .home .wp-block-image { margin-bottom: 0 !important; }
  .home .wp-block-heading { margin-top: 0.25rem !important; }
}






/* =======================================
   GLOBAL: BUTTONS &amp; SUBMIT INPUTS
   ======================================= */

input[type="submit"],
button,
.ab-button-size-medium,
.wpforms-submit,
div.wpforms-container-full button[type="submit"]:not(:hover):not(:active) {
  font-size: 18px !important;
  font-family: "Montserrat";
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  border: 1px solid #ffffff !important;
}

/* =======================================
   FOOTER
   ======================================= */

.site-footer {
  position: unset !important;
  z-index: 999 !important;
}

.site-footer p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =======================================
   MOBILE NAV TOGGLE
   ======================================= */

#genesis-mobile-nav-primary {
  padding: 10px;
  margin-left: 0;
  font-size: 16px;
  font-family: Montserrat;
  font-weight: 200 !important;
  border-radius: 0;
  background-color: transparent !important;
  color: white !important;
  border: none !important;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

#genesis-mobile-nav-primary:hover,
#genesis-mobile-nav-primary:focus,
#genesis-mobile-nav-primary:active,
#genesis-mobile-nav-primary[aria-pressed="true"],
#genesis-mobile-nav-primary[aria-expanded="true"] {
  background-color: white !important;
  color: black !important;
  border-color: inherit !important;
  outline: none;
}

/* =======================================
   RESPONSIVE LINE BREAK HELPERS
   ======================================= */

/* Hide all line breaks by default */
.desktop-br,
.mobile-br {
  display: none;
}

/* Show desktop line breaks at 1024px and up */
@media only screen and (min-width: 1024px) {
  .desktop-br {
    display: inline;
  }
}

/* Show mobile line breaks below 768px */
@media only screen and (max-width: 767px) {
  .mobile-br {
    display: inline;
  }
}

/* =======================================
   CUSTOM HEADER LAYOUT
   ======================================= */

.custom-header-wrap {
  padding: 10px 0;
}

.custom-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.custom-header-left,
.custom-header-right {
  flex: 1;
}

.custom-header-left {
  text-align: left;
}

.custom-header-right {
  text-align: right;
}

.menu-toggle {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.site-logo img {
  max-height: 50px;
  height: auto;
  width: auto;
}

/* =======================================
   TYPOGRAPHY: HEADINGS
   ======================================= */

h1 { }
h2 { }
h3 { }
h4 { }
h5 { }
h6 { }

.size1 { font-size: 60px; }
.size2 { font-size: 50px; }
.size3 { font-size: 36px; }
.size4 { font-size: 32px; }
.size5 { font-size: 28px; }
.size6 { font-size: 24px; }

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2 !important;
  margin: 0 0 10px;
  letter-spacing: 1px;
}

/* =======================================
   GLOBAL ELEMENTS
   ======================================= */

html,
body {
  overflow-x: hidden;
  width: 100vw !important;
  box-sizing: border-box;
}

.site-container,
.site-inner,
.wrap {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.wp-block-image {
  margin-bottom: 0;
}

/* =======================================
   HEADER BAR
   ======================================= */

.site-header {
  background-color: black;
  min-height: 80px;
  padding: 10px 40px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  border-bottom: 0 solid white;
}

.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.custom-header .menu-primary {
  order: 1;
}

.custom-header .site-logo {
  order: 2;
  margin-left: auto;
}

.custom-header .site-logo img {
  max-height: 60px;
  height: auto;
}

/* =======================================
   GENESIS RESPONSIVE MENU
   ======================================= */

.genesis-nav-menu {
  background: black;
  border: 1px solid #BDBDBD;
  display: none;
  flex-direction: column;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 200px;
  position: absolute;
  left: 0;
  z-index: 9999;
}

.genesis-responsive-menu.menu-open .genesis-nav-menu {
  display: flex;
}

.genesis-nav-menu > li {
  width: 100%;
  margin-bottom: 0.5rem;
}

.genesis-nav-menu a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f8f8f8;
  color: black;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.genesis-nav-menu a:hover,
.genesis-nav-menu .current-menu-item > a {
  background: #25c09a;
  color: #fff;
}

.genesis-nav-menu .toggle-header-search {
  color: white;
}

/* Submenus */
.genesis-nav-menu .sub-menu {
  display: none;
  flex-direction: column;
  margin-left: 1rem;
  padding-left: 0.5rem;
  border-left: 2px solid #25c09a;
}

.genesis-nav-menu .menu-item:hover > .sub-menu {
  display: flex;
}

/* Menu toggles and overrides */
.menu-toggle,
.sub-menu-toggle {
  display: block !important;
  visibility: visible !important;
}

.menu-header-menu-2-container {
  display: none !important;
}

.genesis-responsive-menu {
  display: block !important;
}

/* =======================================
   MEDIA QUERIES
   ======================================= */

@media only screen and (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 34px; }
  h3 { font-size: 30px; }
  h4 { font-size: 20px; }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }

  .site-container .bold-heading-text,
  .site-container .bold-text {
    font-size: 40px;
  }
}

@media only screen and (min-width: 1023px) {
  .narrow-content h1,
  .narrow-content p {
    padding-right: 40%;
  }
}