/* ==========================================================================
   MKB 404 PAGE - ERROR NOT FOUND
   Exact recreation from live MKB Framer site
   ========================================================================== */

/* Main 404 Page Container */
.error-page-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  margin-top: 80px;
  background-color: var(--token-4bca0573-86e0-464f-9415-c584725e492e, #f0f0f0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--frame-border, rgb(217, 217, 217));
  border-bottom: 1px solid var(--frame-border, rgb(217, 217, 217));
  box-sizing: border-box;
}

/* Outer frame wrapper matching 1815px structural boundaries */
.error-page-wrap {
  position: relative;
  width: 100%;
  max-width: var(--frame-max-width, 1815px);
  height: 100%;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--frame-border, rgb(217, 217, 217));
  border-right: 1px solid var(--frame-border, rgb(217, 217, 217));
  box-sizing: border-box;
  padding: clamp(60px, 8vh, 100px) clamp(24px, 4.4vw, 80px);
}

/* Centered Error Composition */
.error-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  gap: clamp(24px, 3.2vh, 40px);
}

/* Group for ERROR!, 404, PAGE NOT FOUND */
.error-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(12px, 1.8vh, 20px);
}

/* ERROR! Label */
.error-label {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111315;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

/* 404 Giant Number Container */
.error-number-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  user-select: none;
}

/* Canvas / Fallback 404 Number */
.error-number-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

.error-number-fallback {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(120px, 18vw, 270px);
  font-weight: 400;
  line-height: 0.85;
  color: rgb(69, 69, 69);
  letter-spacing: 0;
  margin: 0;
  display: none; /* Shown if canvas unsupported */
}

/* PAGE NOT FOUND text */
.error-message {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111315;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

/* BACK HOME CTA Button Container */
.error-cta-wrap {
  margin-top: clamp(8px, 1.2vh, 16px);
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Responsive adjustments */
@media (max-width: 810px) {
  .error-page-wrap {
    padding: 60px 24px 40px;
  }
  .error-label,
  .error-message {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .error-page-wrap {
    padding: 40px 16px 32px;
  }
  .error-label,
  .error-message {
    font-size: 24px;
  }
  .error-cta-btn .btn-inner-body {
    padding: 14px 28px;
  }
}
