/* ==========================================
   DGT SOLUTIONS | 404 PAGE
   Clean, responsive styling
========================================== */

/* Main 404 section */

.dgt-404 {
  --dgt-blue: #005397;
  --dgt-navy: #15334b;
  --dgt-orange: #f4771e;
  --dgt-border: #dbe5ed;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--dgt-navy);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.dgt-404, .dgt-404 * {
  box-sizing: border-box;
}

/* ==========================================
   RESPONSIVE VERTICAL SPACING
========================================== */

.dgt-404-content {
  padding-top: clamp(70px, 12vh, 160px) !important;
  padding-bottom: clamp(70px, 12vh, 160px) !important;
}

/* ==========================================
   TYPOGRAPHY
========================================== */

.dgt-404 h1, .dgt-404 h2, .dgt-404 h3, .dgt-404 p, .dgt-404 a, .dgt-404 button {
  font-family: inherit;
}

/* 404 label */

.dgt-404 .eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--dgt-orange);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Main heading */

.dgt-404 h1 {
  margin: 0 0 24px;
  color: var(--dgt-navy);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Description */

.dgt-404 p.lead {
  margin: 0 0 55px;
  color: #536b7b;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

/* Equipment heading */

.dgt-404 h2 {
  margin: 0 0 28px;
  color: var(--dgt-navy);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

/* ==========================================
   EQUIPMENT GRID
========================================== */

.dgt-404 .grid, .dgt-404 #dgt-404-machines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================
   EQUIPMENT CARDS
========================================== */

.dgt-404 .card, .dgt-404 #dgt-404-machines > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--dgt-border);
  border-radius: 8px;
  color: var(--dgt-navy);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dgt-404 .card:hover, .dgt-404 .card:focus-visible, .dgt-404 #dgt-404-machines > a:hover, .dgt-404 #dgt-404-machines > a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--dgt-blue);
  box-shadow: 0 6px 20px rgba(0, 83, 151, 0.1);
}

/* Machine title */

.dgt-404 .card strong {
  color: var(--dgt-blue);
  font-size: 19px;
  font-weight: 700;
}

/* Machine description */

.dgt-404 .card span {
  color: #536b7b;
  font-size: 15px;
  line-height: 1.5;
}

/* Explore link */

.dgt-404 .card em {
  margin-top: 6px;
  color: var(--dgt-orange);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

/* ==========================================
   ACTION BUTTONS
========================================== */

.dgt-404 .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 45px;
}

/* Primary button */

.dgt-404 .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--dgt-blue);
  color: #fff;
  border: 1px solid var(--dgt-blue);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.dgt-404 .button:hover {
  background: #003e73;
  color: #fff;
}

/* Secondary button */

.dgt-404 .button.secondary {
  background: transparent;
  color: var(--dgt-blue);
}

.dgt-404 .button.secondary:hover {
  background: var(--dgt-blue);
  color: #fff;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.dgt-404 a:focus-visible, .dgt-404 button:focus-visible {
  outline: 3px solid var(--dgt-orange);
  outline-offset: 3px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {
  .dgt-404-content {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
}

@media (max-width: 991px) {
  .dgt-404 p.lead {
    margin-bottom: 40px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {
  .dgt-404-content {
    padding-top: 55px !important;
    padding-bottom: 55px !important;
  }
}

@media (max-width: 650px) {
  .dgt-404 h1 {
    font-size: 32px;
    margin-bottom: 20px;
  }
}

@media (max-width: 650px) {
  .dgt-404 p.lead {
    font-size: 16px;
    margin-bottom: 35px;
  }
}

@media (max-width: 650px) {
  .dgt-404 h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

@media (max-width: 650px) {
  .dgt-404 .grid, .dgt-404 #dgt-404-machines {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 650px) {
  .dgt-404 .card, .dgt-404 #dgt-404-machines > a {
    padding: 22px;
  }
}

@media (max-width: 650px) {
  .dgt-404 .actions {
    gap: 12px;
    margin-top: 30px;
  }
}

@media (max-width: 650px) {
  .dgt-404 .button {
    width: 100%;
  }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
  .dgt-404 .card, .dgt-404 #dgt-404-machines > a, .dgt-404 .button {
    transition: none;
  }
}

