/* ================================================================
   ERROR PAGE
   Add to custom-v4.css as a new section
================================================================ */

/* Hero — full-viewport image with dark overlay */
.error-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.error-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(35, 15, 66, 0.82) 0%,    /* --dv at 82% */
    rgba(89, 45, 140, 0.65) 100%   /* --mv at 65% */
  );
}

/* Content stack — centred, above overlay */
.error-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  animation: errorFadeUp 0.7s ease both;
}

/* Large error code number */
.error-hero__code {
  font-family: var(--ff-h);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ye);
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
  text-shadow: 0 4px 32px rgba(246, 238, 39, 0.25);
}

/* Error title */
.error-hero__title {
  font-family: var(--ff-h);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Error description */
.error-hero__desc {
  font-family: var(--ff-b);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA buttons */
.error-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-error-primary {
  display: inline-flex;
  align-items: center;
  background: var(--ye);
  color: var(--dv);
  font-family: var(--ff-h);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.75rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-error-primary:hover {
  background: #fff;
  color: var(--dv);
  transform: translateY(-2px);
}

.btn-error-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--ff-h);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.75rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-error-secondary:hover {
  border-color: var(--ye);
  color: var(--ye);
  transform: translateY(-2px);
}

/* Entry animation */
@keyframes errorFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .error-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-error-primary,
  .btn-error-secondary {
    width: 100%;
    justify-content: center;
  }
}
