/**
 * Site-wide content width and horizontal margins.
 */

:root {
  --scopematch-site-max-width: 1140px;
  --scopematch-site-max-width-narrow: 640px;
  --scopematch-site-padding-x: clamp(1rem, 4vw, 2.5rem);
}

/* Kadence main site */
body.wp-child-theme-kadence-child {
  --global-content-width: var(--scopematch-site-max-width);
  --global-content-wide-width: calc(var(--scopematch-site-max-width) + 5rem);
  --global-calc-content-width: calc(
    var(--scopematch-site-max-width) - var(--global-content-edge-padding, 1.5rem) -
      var(--global-content-edge-padding, 1.5rem)
  );
  --global-calc-wide-content-width: calc(var(--scopematch-site-max-width) + 5rem);
}

/* Page wrapper stays full-width so section backgrounds can span edge-to-edge */
body.wp-child-theme-kadence-child .content-container.site-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Kadence uses --global-content-width for inner text/content only, not full-bleed backgrounds */

/* Hide unused Kadence top header row (placeholder "Insert HTML here") */
body.wp-child-theme-kadence-child #masthead .site-top-header-wrap {
  display: none !important;
}

body.wp-child-theme-kadence-child #masthead #main-header .site-container,
body.wp-child-theme-kadence-child #masthead .site-main-header-wrap .site-header-row-container-inner > .site-container {
  max-width: var(--scopematch-site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--scopematch-site-padding-x);
  padding-right: var(--scopematch-site-padding-x);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

body.wp-child-theme-kadence-child #masthead .site-main-header-wrap .site-header-row-container-inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* Kadence main header: logo left, menu + Join right, vertically centered */
body.wp-child-theme-kadence-child #masthead .site-main-header-inner-wrap.site-header-row,
body.wp-child-theme-kadence-child #masthead .site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0;
  gap: 1rem;
}

body.wp-child-theme-kadence-child #masthead .site-header-main-section-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  margin-right: auto;
}

body.wp-child-theme-kadence-child #masthead .site-header-main-section-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

body.wp-child-theme-kadence-child #masthead .site-header-main-section-right-center {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
}

body.wp-child-theme-kadence-child #masthead .site-header-main-section-center {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin-left: 0;
}

body.wp-child-theme-kadence-child #masthead .site-header-section,
body.wp-child-theme-kadence-child #masthead .site-header-item {
  display: flex;
  align-items: center;
  align-self: center;
  margin-bottom: 0;
}

body.wp-child-theme-kadence-child #masthead .site-branding,
body.wp-child-theme-kadence-child #masthead .site-branding a.brand {
  display: flex;
  align-items: center;
  max-height: 48px;
  line-height: 1;
}

body.wp-child-theme-kadence-child #masthead .site-branding img,
body.wp-child-theme-kadence-child #masthead .custom-logo-link img,
body.wp-child-theme-kadence-child #masthead img.custom-logo {
  max-height: 34px !important;
  max-width: 150px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

body.wp-child-theme-kadence-child #masthead .main-navigation.header-navigation,
body.wp-child-theme-kadence-child #masthead .primary-menu-container.header-menu-container {
  display: flex;
  align-items: center;
  height: auto;
}

body.wp-child-theme-kadence-child #masthead #primary-menu.menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  margin: 0;
}

body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li {
  display: flex;
  align-items: center;
  margin: 0;
}

body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li > a,
body.wp-child-theme-kadence-child #masthead .header-menu-container .menu > li > a {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  text-decoration: none !important;
}

/*
 * NAV OVERRIDES START
 * Remove hover/active underline bars from Kadence custom CSS.
 */
body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li > a:hover,
body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li.current-menu-item > a,
body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li.current-menu-ancestor > a,
body.wp-child-theme-kadence-child #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
  text-decoration: none !important;
}

body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li > a::after,
body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li > a:hover::after,
body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li.current-menu-item > a::after,
body.wp-child-theme-kadence-child #masthead #primary-menu.menu > li.current-menu-ancestor > a::after,
body.wp-child-theme-kadence-child #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover::after {
  display: none !important;
  content: none !important;
}
/* NAV OVERRIDES END */

body.wp-child-theme-kadence-child #masthead .header-button-wrap,
body.wp-child-theme-kadence-child #masthead .header-button-inner-wrap {
  display: flex;
  align-items: center;
  align-self: center;
  margin: 0;
}

body.wp-child-theme-kadence-child #masthead .header-button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
}

body.wp-child-theme-kadence-child .breadcrumb-section .container,
body.wp-child-theme-kadence-child .single-content .container {
  max-width: var(--scopematch-site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--scopematch-site-padding-x);
  padding-right: var(--scopematch-site-padding-x);
}

/* Hub pages (header-footer.css also reads these variables) */
body.wp-child-theme-kadence-child {
  --content-width: var(--scopematch-site-max-width);
  --content-width-s: var(--scopematch-site-max-width-narrow);
}

body.wp-child-theme-kadence-child .section .container:not(.header-container),
body.wp-child-theme-kadence-child .company-footer__container.container,
body.wp-child-theme-kadence-child .company-hero__container,
body.wp-child-theme-kadence-child .claim-alert__container,
body.wp-child-theme-kadence-child .overview__container {
  max-width: var(--scopematch-site-max-width);
  padding-left: var(--scopematch-site-padding-x);
  padding-right: var(--scopematch-site-padding-x);
}

body.wp-child-theme-kadence-child .company-header .header-container.container {
  max-width: var(--scopematch-site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: var(--scopematch-site-padding-x);
  padding-right: var(--scopematch-site-padding-x);
}

body.wp-child-theme-kadence-child .wp-grid-builder .wpgb-wrapper {
  max-width: var(--scopematch-site-max-width);
  padding-left: var(--scopematch-site-padding-x);
  padding-right: var(--scopematch-site-padding-x);
}

/*
 * HOMEPAGE HERO START
 * Homepage hero — targets .hero-banner / .hero-section (actual markup).
 */
body.home.wp-child-theme-kadence-child .entry-content .hero-banner > .kt-inside-inner-col {
  padding-top: 0 !important;
}

body.home.wp-child-theme-kadence-child .entry-content .kb-row-layout-wrap.hero-section > .kt-row-column-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--scopematch-site-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--scopematch-site-padding-x) !important;
  padding-right: var(--scopematch-site-padding-x) !important;
  padding-top: clamp(5.75rem, 9.5vw, 7.25rem) !important;
  padding-bottom: 2.5rem !important;
}

body.home.wp-child-theme-kadence-child .entry-content .hero-section .container-ml-auto,
body.home.wp-child-theme-kadence-child .entry-content .hero-section .container-ml-zero,
body.home.wp-child-theme-kadence-child .entry-content .hero-section .kadence-column575_9dd9be-0a {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 1 1 100% !important;
}

body.home.wp-child-theme-kadence-child .entry-content .hero-section .kadence-column575_9dd9be-0a > .kt-inside-inner-col {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home.wp-child-theme-kadence-child .entry-content .hero-section .kt-inside-inner-col {
  padding-left: 0;
  padding-right: 0;
}

body.home.wp-child-theme-kadence-child .entry-content .hero-section h1.wp-block-heading {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem) !important;
  line-height: 1.15 !important;
}

body.home.wp-child-theme-kadence-child .entry-content .hero-section h2.wp-block-heading {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem) !important;
  line-height: 1.2 !important;
}

body.home.wp-child-theme-kadence-child .entry-content .hero-section .wp-block-paragraph {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem) !important;
  line-height: 1.5 !important;
}

body.home.wp-child-theme-kadence-child .entry-content .hero-section .wp-block-button__link {
  font-size: 1rem !important;
  padding: 0.65rem 1.35rem !important;
}
/* HOMEPAGE HERO END */

