:root {
  --dfv-footer-bg: #07090a;
  --dfv-footer-text: #edf4f3;
  --dfv-footer-muted: #a9b4b3;
  --dfv-footer-accent: #20e3d6;
  --dfv-footer-line: #303637;
}

/* Shared WPO footer chrome. Keep the component editable in the WordPress footer builder. */
.wpo-footer {
  margin: 0 !important;
  color: var(--dfv-footer-muted);
  background: var(--dfv-footer-bg);
  border-top: 1px solid var(--dfv-footer-line);
}

body .wpo-footer .wpo-footer__content,
.wpo-footer #dfv-footer-row {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

.wpo-footer #dfv-footer-row > .wpb_column > .vc_column-inner {
  margin: 0 !important;
  padding: 0 !important;
}

body .wpo-footer #dfv-footer-row > .dfv-footer-shell > .vc_column-inner > .wpb_wrapper {
  margin: 0 !important;
  padding: 48px 0 24px !important;
}

body .wpo-footer .dfv-footer-shell {
  box-sizing: border-box;
  width: min(1300px, calc(100% - 64px));
  margin-inline: auto !important;
  padding: 0;
  float: none;
}

body .wpo-footer .dfv-footer-shell .footer-content {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(150px, 1fr));
  gap: 40px;
  align-items: start;
  margin: 0 !important;
}

body .wpo-footer .dfv-footer-shell .footer-content::before,
body .wpo-footer .dfv-footer-shell .footer-content::after,
body .wpo-footer .dfv-footer-shell .footer-bottom::before,
body .wpo-footer .dfv-footer-shell .footer-bottom::after {
  display: none;
}

body .wpo-footer .dfv-footer-shell .footer-content > .wpb_column {
  width: auto !important;
  padding: 0 !important;
  float: none;
}

/*
 * WPBakery's frontend editor inserts an editor wrapper around every inner
 * column (using vc_wpo_vc_column_inner for WPO rows). Keep both that wrapper
 * and the real column at the full width of the grid cell; otherwise the saved
 * vc_col-sm-3 width is applied again and crushes the editable footer content.
 */
body.compose-mode .wpo-footer .dfv-footer-shell .footer-content > :is(.vc_vc_column_inner, .vc_wpo_vc_column_inner),
body.view-mode .wpo-footer .dfv-footer-shell .footer-content > :is(.vc_vc_column_inner, .vc_wpo_vc_column_inner) {
  width: 100% !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

body.compose-mode .wpo-footer .dfv-footer-shell .footer-content > :is(.vc_vc_column_inner, .vc_wpo_vc_column_inner) > .wpb_column,
body.view-mode .wpo-footer .dfv-footer-shell .footer-content > :is(.vc_vc_column_inner, .vc_wpo_vc_column_inner) > .wpb_column {
  width: 100% !important;
  padding: 0 !important;
  float: none;
}

.wpo-footer .footer-section > .vc_column-inner,
.wpo-footer .footer-section > .vc_column-inner > .wpb_wrapper,
.wpo-footer .footer-bottom > .wpb_column,
.wpo-footer .footer-bottom > .wpb_column > .vc_column-inner,
.wpo-footer .footer-bottom > .wpb_column > .vc_column-inner > .wpb_wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.wpo-footer .footer-section .wpo-footer-content,
.wpo-footer .footer-bottom .wpo-footer-content {
  display: block;
}

.wpo-footer .footer-section,
.wpo-footer .footer-section p,
.wpo-footer .footer-section ul,
.wpo-footer .footer-section li {
  margin: 0;
  padding: 0;
}

.wpo-footer .footer-section h4,
.wpo-footer .wpb_wrapper .footer-section h4 {
  margin: 0 0 16px;
  color: var(--dfv-footer-text);
  font-family: Montserrat, sans-serif !important;
  font-size: 13px !important;
  font-weight: 750;
  line-height: 1.3 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wpo-footer .footer-section:first-child h4,
.wpo-footer .wpb_wrapper .footer-section:first-child h4 {
  font-size: 18px !important;
  letter-spacing: -.02em;
  text-transform: none;
}

.wpo-footer .footer-section p {
  max-width: 440px;
  color: var(--dfv-footer-muted) !important;
  font: 400 15px/1.65 Montserrat, sans-serif;
}

.wpo-footer .dfv-footer-menu {
  color: var(--dfv-footer-muted);
}

.wpo-footer .footer-bottom {
  margin: 36px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--dfv-footer-line);
}

.wpo-footer .footer-bottom p {
  margin: 0;
  color: #7f8b8b !important;
  font: 400 13px/1.55 Montserrat, sans-serif;
}

@media (max-width: 900px) {
  body .wpo-footer .dfv-footer-shell .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .wpo-footer .footer-section:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body .wpo-footer .dfv-footer-shell {
    width: calc(100% - 32px);
  }

  body .wpo-footer #dfv-footer-row > .dfv-footer-shell > .vc_column-inner > .wpb_wrapper {
    padding: 34px 0 20px !important;
  }

  body .wpo-footer .dfv-footer-shell .footer-content {
    gap: 28px 20px;
  }

  .wpo-footer .footer-section h4,
  .wpo-footer .wpb_wrapper .footer-section h4 {
    margin-bottom: 12px;
  }

  .wpo-footer .footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
  }
}
