@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3c6e;
  --primary-dark: #0f2447;
  --accent: #e63946;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --bg-light: #f7f8fc;
  --white: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── MAIN ── */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-inner {
  max-width: 960px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 10px;
}

.error-code span { color: var(--accent); }

.error-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.error-text p {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-primary svg, .btn-secondary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.error-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 220px 1fr 1fr 260px;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-col h6 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.88rem;
}

.footer-col a:hover { color: var(--white); }

.footer-map { border-radius: 12px; overflow: hidden; height: 180px; }

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 18px 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .error-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .error-actions { justify-content: center; }

  .error-code { font-size: 4rem; }

  .error-image { order: -1; }

  .error-image img { max-width: 260px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .footer-brand { grid-column: 1 / -1; }

  .footer-map { grid-column: 1 / -1; height: 200px; }
}

@media (max-width: 480px) {
  .error-code { font-size: 3rem; }

  .error-actions { flex-direction: column; }

  .btn-primary, .btn-secondary { justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-map { height: 160px; }
}
