/*
 * WordPress/Divi compatibility only.
 * Design tokens, shell components, and forms come from assets/shared-ui.
 */
body.mg-unified-production {
  min-width: 0;
  background: var(--canvas) !important;
  color: var(--ink-800) !important;
  font: 16px/1.55 var(--font) !important;
}

body.mg-unified-production *,
body.mg-unified-production *::before,
body.mg-unified-production *::after {
  box-sizing: border-box;
}

body.mg-unified-production #top-header,
body.mg-unified-production #main-header,
body.mg-unified-production #main-footer,
body.mg-unified-production #mihai-sticky-bar {
  display: none !important;
}

body.mg-unified-production #page-container {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-top: var(--nav-height) !important;
}

body.mg-unified-production #et-boc,
body.mg-unified-production #et-main-area,
body.mg-unified-production #main-content {
  min-width: 0;
  max-width: 100%;
  background: var(--canvas);
}

body.mg-unified-production #main-content {
  padding: var(--space-6) var(--space-5) var(--space-8);
}

body.mg-unified-production :where(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module) {
  min-width: 0;
  max-width: 100%;
}

body.mg-unified-production .et_pb_row,
body.mg-unified-production #main-content .container {
  width: min(100%, 1200px);
  max-width: 1200px;
}

body.mg-unified-production .mg-rail {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
}

body.mg-unified-production .mg-rail-logo {
  display: block;
}

body.mg-unified-production .mg-rail .mg-logo {
  width: 183px;
  height: 40px;
  max-width: 183px;
}

body.mg-unified-production .mg-rail nav {
  width: auto;
}

body.mg-unified-production .mg-rail nav a {
  min-height: 44px;
  border-radius: 12px;
  font: 600 0.875rem/1.25 var(--font);
}

body.mg-unified-production .mg-page-footer {
  width: min(calc(100% - 48px), 1200px);
  margin: var(--space-8) auto 0;
  padding: var(--space-5) 0;
}

body.mg-unified-production .mg-chat-launcher {
  display: none !important;
}

body.mg-unified-production :where(img, video, iframe, embed, object) {
  max-width: 100%;
}

body.mg-unified-production :where(input, select, textarea) {
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-950);
  font: inherit;
}

body.mg-unified-production :where(input, select, textarea):focus {
  border-color: var(--brand-cyan);
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

/*
 * Retire legacy Divi hero treatments without changing text, links, images,
 * forms, or legal content. JS marks the first visible content section.
 */
body.mg-unified-production .mg-wp-legacy-hero,
body.mg-unified-production .mg-wp-legacy-hero.et_pb_section,
body.mg-unified-production .mg-wp-legacy-hero .et_pb_row,
body.mg-unified-production .mg-wp-legacy-hero .et_pb_column {
  background-color: transparent !important;
  background-image: none !important;
}

body.mg-unified-production .mg-wp-legacy-hero {
  padding-top: var(--space-6) !important;
  padding-bottom: var(--space-5) !important;
}

body.mg-unified-production .mg-wp-hero-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

body.mg-unified-production .mg-wp-hero-row > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
}

body.mg-unified-production .mg-wp-legacy-hero :where(h1, .et_pb_module_header) {
  margin: 0 0 var(--space-3) !important;
  color: var(--ink-950) !important;
  font: 800 clamp(1.75rem, 2.4vw, 2.35rem)/1.15 var(--font) !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.mg-unified-production .mg-wp-legacy-hero :where(p, li) {
  color: var(--ink-600) !important;
  font: 400 1.05rem/1.55 var(--font) !important;
  text-shadow: none !important;
}

body.mg-unified-production .mg-wp-legacy-hero :where(.et_pb_text, .et_pb_text_inner) {
  background: transparent !important;
}

body.mg-unified-production #main-content :where(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module, .et_pb_text_inner) {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--ink-800) !important;
  font-family: var(--font) !important;
}

body.mg-unified-production #main-content .et_pb_section {
  padding: 0 !important;
  margin: 0 auto var(--space-6) !important;
}

body.mg-unified-production #main-content .et_pb_row {
  padding: var(--space-4) 0 !important;
}

body.mg-unified-production #main-content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--ink-950) !important;
  font-family: var(--font) !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.mg-unified-production #main-content h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

body.mg-unified-production #main-content h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.55rem) !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

body.mg-unified-production #main-content h3 {
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}

body.mg-unified-production #main-content :where(p, li, label, input, select, textarea, button) {
  font-family: var(--font) !important;
}

body.mg-unified-production #main-content :where(p, li) {
  color: var(--ink-800) !important;
  line-height: 1.55 !important;
}

body.mg-unified-production #main-content :where(.et_pb_button, button, input[type="submit"]) {
  min-height: var(--tap);
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: var(--brand-cyan) !important;
  color: var(--ink-950) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 0.7rem 1.15rem !important;
  text-shadow: none !important;
}

body.mg-unified-production #main-content :where(.et_pb_contact_form, .wpcf7-form, form.et_pb_contact_form) {
  max-width: 100%;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface) !important;
  box-shadow: var(--shadow);
}

body.mg-unified-production #main-content :where(.et_pb_pricing_table, .et_pb_blurb, .et_pb_promo, .mg-wp-card) {
  height: 100%;
  padding: var(--space-5) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow);
}

body.mg-unified-production #main-content .mg-card {
  padding: var(--space-5) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
}

body.mg-unified-production #main-content .mg-wp-card {
  width: auto !important;
  margin-right: var(--space-4) !important;
}

body.mg-unified-production #main-content .mg-wp-card:last-child {
  margin-right: 0 !important;
}

body.mg-unified-production .mg-production-services {
  width: min(100%, 1200px);
  margin: 0 auto var(--space-6);
}

body.mg-unified-production.mg-current-home .mg-home-legacy-duplicate {
  display: none !important;
}

body.mg-unified-production .mg-home-heading {
  margin-bottom: var(--space-5);
}

body.mg-unified-production .mg-home-heading .mg-kicker {
  margin: 0 0 var(--space-2);
}

body.mg-unified-production .mg-home-heading h1 {
  margin: 0 !important;
}

body.mg-unified-production .mg-home-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

body.mg-unified-production .mg-home-track-field {
  min-width: 0;
}

body.mg-unified-production .mg-home-track label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink-950);
  font-weight: 700;
}

body.mg-unified-production .mg-home-track input {
  width: 100%;
  background: var(--surface);
}

body.mg-unified-production .mg-home-track :where(#mg-home-track-help, .mg-home-track-error) {
  margin: var(--space-2) 0 0;
  color: var(--ink-600);
  font-size: 0.875rem;
}

body.mg-unified-production .mg-home-track .mg-home-track-error:not(:empty) {
  color: #a12727;
}

body.mg-unified-production .mg-home-track .mg-btn {
  min-width: 112px;
}

body.mg-unified-production .mg-home-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}

body.mg-unified-production .mg-home-service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 112px;
  color: var(--ink-950);
  text-decoration: none;
}

body.mg-unified-production .mg-home-service:hover,
body.mg-unified-production .mg-home-service:focus-visible {
  border-color: var(--brand-cyan) !important;
  transform: translateY(-1px);
}

body.mg-unified-production .mg-home-service-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink-950);
  font-size: 1.25rem;
  font-weight: 800;
}

body.mg-unified-production .mg-home-service-copy {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

body.mg-unified-production .mg-home-service-copy strong {
  color: var(--ink-950);
  line-height: 1.25;
}

body.mg-unified-production .mg-home-service-copy span {
  color: var(--ink-600);
  font-size: 0.9rem;
  line-height: 1.35;
}

body.mg-unified-production .mg-home-service-chevron {
  color: var(--ink-600);
  font-size: 1.5rem;
  line-height: 1;
}

body.mg-unified-production .mg-home-carousel {
  margin-top: var(--space-6);
}

body.mg-unified-production .mg-home-carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

body.mg-unified-production .mg-home-carousel-heading :where(p, h2) {
  margin: 0 !important;
}

body.mg-unified-production .mg-home-carousel-controls {
  display: flex;
  gap: var(--space-2);
}

body.mg-unified-production .mg-home-carousel-controls .mg-btn {
  min-width: var(--tap);
  padding: 0.55rem 0.8rem !important;
}

body.mg-unified-production .mg-home-carousel-frame {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-950);
}

body.mg-unified-production .mg-home-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  min-height: 238px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

body.mg-unified-production .mg-home-slide-art {
  position: relative;
  overflow: hidden;
  min-height: 238px;
}

body.mg-unified-production .mg-home-slide-art::before,
body.mg-unified-production .mg-home-slide-art::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
}

body.mg-unified-production .mg-home-slide-art::before {
  inset: 32px 12% 32px 20%;
  transform: skewX(-10deg);
}

body.mg-unified-production .mg-home-slide-art::after {
  width: 112px;
  height: 112px;
  right: 18%;
  bottom: -34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

body.mg-unified-production .mg-home-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(17, 24, 32, 0.84);
}

body.mg-unified-production .mg-home-slide-copy strong {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.1;
}

body.mg-unified-production .mg-home-slide-copy span {
  max-width: 36ch;
  color: #dbe6ec;
}

body.mg-unified-production .mg-home-slide-copy b {
  color: var(--brand-cyan);
  font-size: 0.95rem;
}

body.mg-unified-production .mg-home-slide-ikea {
  background: linear-gradient(135deg, #0f5365, #08bce8);
}

body.mg-unified-production .mg-home-slide-parcels {
  background: linear-gradient(135deg, #23384c, #58758c);
}

body.mg-unified-production .mg-home-slide-cargo {
  background: linear-gradient(135deg, #17412e, #2d7a50);
}

body.mg-unified-production .mg-home-slide-plasterboard {
  background: linear-gradient(135deg, #65513c, #aa865b);
}

body.mg-unified-production .mg-home-slide-ceilings {
  background: linear-gradient(135deg, #4d385c, #9879ad);
}

body.mg-unified-production .mg-home-carousel-status {
  margin-top: var(--space-2);
  color: var(--ink-600);
  font-size: 0.85rem;
}

body.mg-unified-production .mg-route-action {
  width: min(100%, 1200px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin: 0 auto var(--space-5);
}

body.mg-unified-production .mg-route-action :where(h2, p) {
  margin-top: 0 !important;
}

body.mg-unified-production .mg-route-action p:last-child {
  margin-bottom: 0;
}

body.mg-unified-production .mg-route-action .mg-btn {
  flex: 0 0 auto;
}

body.mg-unified-production .mg-route-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

body.mg-unified-production .mg-route-options > span {
  display: grid;
  gap: var(--space-1);
  min-width: 180px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}

body.mg-unified-production .mg-route-options small {
  color: var(--ink-600);
}

body.mg-unified-production.mg-current-legal #main-content :where(.et_pb_text, article, .entry-content) {
  max-width: 76ch;
}

body.mg-unified-production.mg-current-interiors #main-content :where(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module) {
  background-color: transparent !important;
  color: var(--ink-800) !important;
}

body.mg-unified-production.mg-current-interiors #main-content :where(.mg-wp-card, .mg-card, .et_pb_blurb, .et_pb_promo) {
  background: var(--surface) !important;
}

@media (max-width: 1023px) {
  body.mg-unified-production .mg-wp-hero-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  body.mg-unified-production #page-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-top: 65px !important;
  }

  body.mg-unified-production .mg-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
  }

  body.mg-unified-production .mg-rail {
    width: min(272px, 88vw);
    z-index: 60;
  }

  body.mg-unified-production .mg-backdrop {
    z-index: 55;
  }

  body.mg-unified-production .mg-rail nav {
    width: 240px;
  }

  body.mg-unified-production .mg-rail nav a {
    font-size: 1rem;
  }

  body.mg-unified-production .mg-page-footer {
    width: min(100% - 32px, 1200px);
    margin: var(--space-8) auto 0;
  }

  body.mg-unified-production .mg-home-service-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 1023px) {
  body.mg-unified-production .mg-home-carousel {
    display: none;
  }

  body.mg-unified-production .mg-route-action {
    align-items: stretch;
    flex-direction: column;
  }

  body.mg-unified-production .mg-route-action .mg-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body.mg-unified-production #main-content {
    padding: var(--space-5) var(--space-4) var(--space-8);
  }

  body.mg-unified-production .et_pb_row,
  body.mg-unified-production #main-content .container {
    width: 100%;
  }

  body.mg-unified-production .mg-home-heading {
    margin-bottom: var(--space-4);
  }

  body.mg-unified-production .mg-home-track {
    grid-template-columns: 1fr;
  }

  body.mg-unified-production .mg-home-track .mg-btn {
    width: 100%;
  }

  body.mg-unified-production .mg-home-service-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  body.mg-unified-production .mg-home-service {
    min-height: var(--tap);
    padding: var(--space-3) !important;
    box-shadow: none !important;
  }

  body.mg-unified-production .mg-home-service-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

}
