:root {
  --sg-blue: #063573;
  --sg-navy: #081d33;
  --sg-navy-soft: #102c48;
  --sg-blue-light: #809ed2;
  --sg-paper: #f3f6f8;
  --sg-white: #ffffff;
  --sg-ink: #102131;
  --sg-text: #4f6273;
  --sg-line: #d9e3eb;
}

body {
  color: var(--sg-ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.sg-utility-bar {
  align-items: center !important;
  background: var(--sg-navy) !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 24px !important;
  min-height: 36px !important;
  padding: 8px 4vw !important;
}

.sg-utility-bar > .elementor-widget-text-editor {
  color: var(--sg-white) !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
  width: auto !important;
}

.sg-utility-bar p {
  margin: 0 !important;
}

.sg-main-header {
  align-items: center !important;
  background: var(--sg-white) !important;
  border-bottom: 1px solid var(--sg-line) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  justify-content: space-between !important;
  min-height: 108px !important;
  padding: 12px 4vw !important;
}

.sg-main-header > .elementor-widget-image {
  flex: 0 0 260px !important;
  margin: 0 !important;
  max-width: 260px !important;
  width: 260px !important;
}

.sg-main-header > .elementor-widget-image img {
  display: block;
  height: auto;
  width: 100%;
}

.sg-main-header > .sg-desktop-nav {
  align-items: center !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  min-width: 0;
  padding: 0 !important;
  width: auto !important;
}

.sg-main-header .sg-wordpress-nav {
  margin: 0 !important;
  width: auto !important;
}

.sg-main-header > .sg-header-cta {
  flex: 0 0 auto !important;
  margin: 0 !important;
  width: auto !important;
}

.elementor-widget-text-editor a {
  color: #e60d2e;
}

.elementor-widget-text-editor a:hover,
.elementor-widget-text-editor a:focus-visible {
  color: #b80a25;
}

.sg-trust-ribbon {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  padding: 0 8vw !important;
}

.sg-trust-ribbon > .e-con-inner {
  padding: 18px 0 !important;
}

.sg-trust-facts {
  --flex-direction: row;
  display: block !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  padding: 0 !important;
}

.sg-trust-facts > .e-con-inner {
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 !important;
}

.sg-trust-facts .sg-card {
  min-width: 0;
  padding: 24px !important;
  width: auto !important;
}

.sg-trust-facts .sg-card:not(:last-child) {
  border-right-width: 0 !important;
}

.sg-display .elementor-heading-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.01em;
  line-height: 0.96;
  text-transform: uppercase;
}

.sg-kicker {
  color: var(--sg-blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sg-button .elementor-button {
  align-items: center;
  background: var(--sg-blue);
  border-radius: 0;
  color: var(--sg-white);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
}

.sg-card,
.sg-form-wrap .elementor-field,
.sg-form-wrap .elementor-button {
  border-radius: 0 !important;
}

.sg-form-wrap .elementor-field-label {
  color: var(--sg-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sg-form-wrap .elementor-field {
  background: var(--sg-paper);
  border: 1px solid #bac8d3;
  min-height: 50px;
  padding: 0.9rem;
}

.sg-form-wrap textarea.elementor-field {
  min-height: 150px;
}

.sg-form-wrap .elementor-button {
  background: var(--sg-blue);
  color: var(--sg-white);
  font-weight: 900;
  min-height: 54px;
}

.sg-form-wrap .elementor-button:hover,
.sg-form-wrap .elementor-button:focus-visible,
.sg-button .elementor-button:hover,
.sg-button .elementor-button:focus-visible {
  background: var(--sg-navy);
  outline: 3px solid var(--sg-blue-light);
  outline-offset: 2px;
}

.sg-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sg-map iframe {
  border: 0;
  display: block;
  min-height: 360px;
  width: 100%;
}

.sg-hero {
  background-position: center center;
}

.sg-hero h1.elementor-heading-title {
  max-width: 1120px;
}

.sg-contact-hero h1.elementor-heading-title {
  max-width: 1120px;
}

.sg-contact-hero > .elementor-widget-text-editor {
  max-width: 760px;
}

.sg-hero-split {
  margin: 0 auto;
  max-width: 1440px;
}

.sg-hero-title .elementor-heading-title > span {
  display: block;
}

.sg-hero-title .sg-hero-accent {
  color: var(--sg-blue-light);
}

.sg-hero-copy > .elementor-element {
  max-width: 780px;
}

.sg-hero-actions {
  gap: 18px;
}

.sg-hero-secondary .elementor-button:hover,
.sg-hero-secondary .elementor-button:focus-visible {
  background: rgba(8, 29, 51, 0.82);
}

.sg-hero-proof {
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 800;
  gap: 16px 34px;
}

.sg-hero-proof span::first-letter {
  color: var(--sg-blue-light);
}

.sg-project-finder {
  background-color: rgba(255, 255, 255, 0.97) !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(135deg, rgba(6, 53, 115, 0.08) 0, rgba(6, 53, 115, 0.08) 1px, transparent 1px, transparent 26px);
  box-shadow: 0 24px 55px rgba(4, 17, 30, 0.24);
}

.sg-finder-grid {
  align-items: stretch;
}

.sg-finder-tile {
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sg-finder-tile:hover,
.sg-finder-tile:focus-within {
  background: #dceafb !important;
  border-color: #aac9eb !important;
  transform: translateY(-2px);
}

.sg-finder-icon-box .elementor-icon-box-wrapper {
  align-items: center;
}

.sg-finder-icon-box .elementor-icon-box-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 850;
  margin: 0;
}

.sg-finder-icon-box .elementor-icon-box-description {
  font-size: 14px;
  line-height: 1.35;
}

.sg-finder-cta .elementor-button {
  justify-content: space-between;
  width: 100%;
}

.sg-finder-note {
  margin: -8px 0 0;
}

.sg-header-cta .elementor-button-icon {
  transform: rotate(45deg);
}

/* Single product and service page system */
.sg-overview-row,
.sg-planning-section .e-con-inner > .e-con,
.sg-faq-section .e-con-inner > .e-con {
  align-items: stretch;
}

.sg-fit-panel {
  border-left: 5px solid var(--sg-blue);
}

.sg-check-list {
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-check-list li {
  border-bottom: 1px solid rgba(16, 33, 49, 0.16);
  font-weight: 750;
  line-height: 1.4;
  padding: 0 0 13px 30px;
  position: relative;
}

.sg-check-list li::before {
  color: var(--sg-blue);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0;
}

.sg-check-list-light li {
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.sg-check-list-light li::before {
  color: var(--sg-blue-light);
}

.sg-detail-row {
  align-items: start !important;
  display: grid !important;
  gap: 8px 22px !important;
  grid-template-columns: 46px minmax(0, 1fr);
  width: 100% !important;
}

.sg-detail-row > .elementor-widget-heading:first-child {
  grid-column: 1;
}

.sg-detail-row > .e-con {
  grid-column: 2;
  width: 100% !important;
}

.sg-detail-row .elementor-widget-text-editor p:last-child,
.sg-process-step .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.sg-limit-note {
  border-left: 4px solid var(--sg-blue);
  margin-top: 30px;
  padding: 4px 0 4px 20px;
}

.sg-decision-media,
.sg-decision-media > .elementor-widget-image,
.sg-decision-media .elementor-widget-container {
  height: 100%;
}

.sg-decision-media img {
  min-height: 620px;
}

.sg-process-track {
  display: grid !important;
  gap: 22px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-process-step {
  width: auto !important;
}

.sg-evidence-panel {
  border-bottom: 5px solid var(--sg-blue);
}

.sg-evidence-panel .sg-media img {
  height: 330px;
}

.sg-service-accordion .elementor-accordion-item {
  background: var(--sg-white);
  border: 0 !important;
  border-bottom: 1px solid var(--sg-line) !important;
}

.sg-service-accordion .elementor-tab-title {
  border: 0 !important;
  padding: 24px 8px !important;
}

.sg-service-accordion .elementor-tab-content {
  border: 0 !important;
  padding: 0 48px 25px 8px !important;
}

.sg-related-grid {
  display: grid !important;
  gap: 24px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-related-link {
  width: auto !important;
}

.sg-related-link .elementor-button {
  background: transparent !important;
  border: 0 !important;
  color: var(--sg-white) !important;
  font-size: 20px;
  justify-content: space-between;
  padding: 8px 0 !important;
  text-align: left;
  width: 100%;
}

.sg-related-link .elementor-button:hover,
.sg-related-link .elementor-button:focus-visible {
  color: var(--sg-blue-light) !important;
  outline: 0;
}

/* Keep every page hero aligned to one responsive content gutter. */
[data-elementor-type="wp-page"] > .e-con.e-parent:first-child {
  --padding-left: 64px;
  --padding-right: 64px;
  box-sizing: border-box;
  padding-left: 64px !important;
  padding-right: 64px !important;
}

/* The homepage hero includes an extra boxed wrapper that should not add a second gutter. */
[data-elementor-type="wp-page"] > .e-con.e-parent:first-child > .e-con-boxed {
  --padding-left: 0px;
  --padding-right: 0px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Keep the homepage hero intact inside compact desktop review canvases. */
@media (min-width: 1025px) and (max-width: 1240px) {
  .sg-hero > .e-con.sg-hero-split {
    flex-wrap: nowrap !important;
    gap: 32px !important;
  }

  .sg-hero-copy {
    width: 58% !important;
  }

  .sg-project-finder {
    padding: 32px !important;
    width: calc(42% - 32px) !important;
  }

  .sg-hero-title .elementor-heading-title {
    font-size: 60px !important;
    line-height: 0.96 !important;
  }

  .sg-project-finder h2.elementor-heading-title {
    font-size: 32px !important;
    line-height: 1.05 !important;
  }

  .sg-finder-tile {
    min-height: 118px !important;
    padding: 16px !important;
    width: calc(50% - 7px) !important;
  }
}

/* Hold the split hero through tablet widths so it does not jump into an early left-aligned stack. */
@media (min-width: 768px) and (max-width: 1024px) {
  .sg-hero-split {
    align-items: stretch !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
  }

  .sg-hero-copy {
    align-self: center !important;
    flex: 0 0 56% !important;
    width: 56% !important;
  }

  .sg-project-finder {
    flex: 0 0 calc(44% - 24px) !important;
    padding: 28px 24px !important;
    width: calc(44% - 24px) !important;
  }

  .sg-hero-title .elementor-heading-title {
    font-size: clamp(44px, 5.5vw, 56px) !important;
    line-height: 0.96 !important;
  }

  .sg-project-finder h2.elementor-heading-title {
    font-size: 30px !important;
    line-height: 1.05 !important;
  }

  .sg-finder-grid {
    gap: 10px !important;
  }

  .sg-finder-tile {
    min-height: 108px !important;
    padding: 12px !important;
    width: calc(50% - 5px) !important;
  }
}

@media (max-width: 1024px) {
  .sg-main-header {
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    min-height: 88px !important;
    padding: 10px 24px !important;
  }

  .sg-main-header > .elementor-widget-image {
    flex: 0 0 auto !important;
    width: min(220px, 50vw) !important;
  }

  .sg-main-header > .e-con.e-child {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    width: auto !important;
  }

  .sg-main-header .sg-wordpress-nav {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .sg-main-header .elementor-menu-toggle {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 !important;
  }

  [data-elementor-type="wp-page"] > .e-con.e-parent:first-child {
    --padding-left: 40px;
    --padding-right: 40px;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .sg-project-finder {
    padding: 32px !important;
  }

  .sg-contact-hero h1.elementor-heading-title {
    font-size: 52px !important;
    line-height: 0.96;
  }

  .sg-hero h1.elementor-heading-title {
    font-size: 52px !important;
    line-height: 0.96;
  }

  .sg-process-track,
  .sg-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sg-mobile-actions {
  display: none;
}

@media (max-width: 767px) {
  .sg-utility-bar,
  .sg-main-header > .sg-header-cta {
    display: none !important;
  }

  .sg-main-header {
    gap: 14px !important;
    min-height: 82px !important;
    padding: 10px 14px !important;
  }

  .sg-main-header > .elementor-widget-image {
    width: 155px !important;
  }

  .elementor-location-header {
    position: sticky !important;
    top: 0;
    z-index: 10000;
  }

  .admin-bar .elementor-location-header {
    top: 0;
  }

  [data-elementor-type="wp-page"] > .e-con.e-parent:first-child {
    --padding-left: 24px;
    --padding-right: 24px;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .sg-mobile-actions {
    align-items: stretch;
    background: var(--sg-white);
    bottom: 0;
    display: flex;
    gap: 10px;
    left: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 9999;
  }

  .sg-mobile-actions > .e-con {
    flex: 1 1 0;
  }

  .sg-mobile-actions .elementor-button {
    min-height: 54px;
    width: 100%;
  }

  .sg-media img,
  .sg-mobile-equal-media img {
    height: 230px;
    object-fit: cover;
  }

  .sg-map iframe {
    min-height: 300px;
  }

  .sg-form-wrap .elementor-field-group {
    width: 100% !important;
  }

  .sg-form-wrap .elementor-field-type-submit .elementor-button {
    width: 100%;
  }

  .sg-form-wrap .elementor-field-type-acceptance .elementor-field-option {
    align-items: flex-start;
    display: flex;
    gap: 8px;
  }

  .sg-trust-facts {
    flex-wrap: nowrap !important;
  }

  .sg-trust-ribbon {
    --padding-top: 0px;
    --padding-right: 0px;
    --padding-bottom: 0px;
    --padding-left: 0px;
    padding: 0 24px !important;
  }

  .sg-trust-ribbon > .e-con-inner {
    padding: 12px 0 !important;
  }

  .sg-trust-facts > .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-trust-facts .sg-card {
    padding: 14px !important;
  }

  .sg-trust-facts .elementor-heading-title {
    font-size: 28px !important;
    line-height: 1 !important;
  }

  .sg-trust-facts .elementor-widget-text-editor {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .sg-trust-facts .elementor-widget-text-editor p {
    margin-bottom: 0;
  }

  .sg-hero {
    min-height: 0 !important;
    padding: 30px 24px !important;
  }

  .sg-hero h1.elementor-heading-title {
    font-size: 40px !important;
    line-height: 0.96;
  }

  .sg-hero > .e-con.e-child {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .sg-hero > .e-con.e-child .elementor-element,
  .sg-hero > .e-con.e-child .elementor-button {
    margin: 0;
    width: 100%;
  }

  .sg-contact-hero {
    min-height: 0 !important;
    padding: 30px 24px !important;
  }

  .sg-contact-hero h1.elementor-heading-title {
    font-size: 40px !important;
    line-height: 0.96;
  }

  .sg-contact-hero > .e-con.e-child {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .sg-contact-hero > .e-con.e-child .elementor-element,
  .sg-contact-hero > .e-con.e-child .elementor-button {
    margin: 0;
    width: 100%;
  }

  .sg-hero-title .elementor-heading-title {
    font-size: 48px !important;
  }

  .sg-hero > .e-con.sg-hero-split {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    grid-template-columns: none !important;
    text-align: center;
    width: 100% !important;
  }

  .sg-hero-copy {
    align-items: center !important;
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  .sg-hero-copy > .elementor-element {
    max-width: 100%;
  }

  .sg-hero-actions > .elementor-element,
  .sg-hero-actions .elementor-button {
    width: 100%;
  }

  .sg-hero-proof {
    gap: 10px 18px;
    justify-content: center;
  }

  .sg-project-finder {
    flex: 0 0 auto !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
    padding: 26px 20px !important;
    text-align: left;
    width: 100% !important;
  }

  .sg-finder-grid {
    gap: 10px !important;
  }

  .sg-finder-tile {
    min-height: 116px !important;
    padding: 14px !important;
    width: calc(50% - 5px) !important;
  }

  .sg-finder-icon-box .elementor-icon-box-wrapper {
    align-items: flex-start;
    text-align: left;
  }

  .sg-detail-row {
    gap: 6px 14px !important;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .sg-decision-media img {
    min-height: 230px;
  }

  .sg-process-track,
  .sg-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sg-process-step {
    padding-right: 0 !important;
  }

  .sg-service-accordion .elementor-tab-title {
    padding: 20px 4px !important;
  }

  .sg-service-accordion .elementor-tab-content {
    padding: 0 28px 22px 4px !important;
  }
}
.elementor-location-footer .elementor-widget-image img {
  filter: brightness(0) invert(1);
}

/* Client review navigation and page states */
.sg-wordpress-nav .elementor-nav-menu--main .elementor-item {
  color: var(--sg-blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 11px;
}

.sg-wordpress-nav .elementor-nav-menu--main .elementor-item:hover,
.sg-wordpress-nav .elementor-nav-menu--main .elementor-item:focus-visible,
.sg-wordpress-nav .elementor-nav-menu--main .elementor-item.elementor-item-active {
  color: var(--sg-navy);
}

.sg-wordpress-nav .sg-products-menu > .sub-menu {
  column-count: 3;
  column-gap: 0;
  min-width: 720px !important;
  padding: 12px 0;
}

.sg-wordpress-nav .sg-products-menu > .sub-menu > li {
  break-inside: avoid;
}

.sg-wordpress-nav .sub-menu .elementor-sub-item {
  line-height: 1.25;
  min-height: 44px;
  padding: 11px 18px;
}

.sg-area-row {
  display: grid !important;
  gap: 18px 28px !important;
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.sg-area-row .elementor-widget-button,
.sg-area-row .elementor-button {
  white-space: nowrap;
}

.sg-area-directions .sg-map,
.sg-area-directions .sg-map iframe {
  height: 100% !important;
  min-height: 520px;
}

/* Mobile product menu column reset */
@media (max-width: 1024px) {
  .sg-wordpress-nav .sg-products-menu > .sub-menu {
    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;
    min-width: 0 !important;
    padding: 0;
  }

  .sg-wordpress-nav .elementor-nav-menu--dropdown .sub-menu {
    max-height: 52vh;
    overflow-y: auto;
  }
}

@media (max-width: 767px) {
  .sg-area-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .sg-area-row > .elementor-widget-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sg-area-row .elementor-button {
    width: 100%;
  }

  .sg-area-directions .sg-map,
  .sg-area-directions .sg-map iframe {
    min-height: 320px;
  }
}
