<!DOCTYPE html>
<html lang="pt">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Server Error | b2b.co.mz</title>

    <!-- Stylesheets -->
    <link href="/layout/assets/b2b/css/bootstrap.css" rel="stylesheet">
    <link href="/layout/assets/b2b/css/b2b-custom.css" rel="stylesheet">

    <!-- Line Awesome Icons -->
    <link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">

    <!-- Font Awesome Icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

    <!-- Favicon -->
    <link rel="shortcut icon" href="/layout/assets/b2b/images/b2b-green-gray.svg" type="image/x-icon">

    <style>
        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            margin: 0;
            padding: 0;
        }

        /* Error Header - Same as main header */
        .b2b-error-header {
            background-color: #333333;
            padding: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 12px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 60px;
        }

        .error-logo img {
            height: 40px;
            width: auto;
        }

        .b2b-back-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #ffffff;
            font-weight: 500;
            text-decoration: none;
            padding: 8px 15px;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .b2b-back-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            text-decoration: none;
        }

        .b2b-back-btn i {
            font-size: 18px;
        }

        /* Error Content */
        .error-section {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px 15px;
            text-align: center;
            position: relative;
            background: #ffffff;
        }

        .error-section h1 {
            font-size: 150px;
            font-weight: 900;
            color: #f1f1f1;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 0;
            margin: 0;
        }

        .content-box {
            position: relative;
            z-index: 1;
        }

        .error-icon {
            font-size: 80px;
            color: #E53935;
            margin-bottom: 20px;
            display: block;
        }

        .error-section h2 {
            font-size: 32px;
            font-weight: 700;
            color: #333;
            margin-bottom: 15px;
        }

        .error-section p {
            font-size: 16px;
            color: #666;
            margin-bottom: 30px;
            max-width: 500px;
            line-height: 1.6;
        }

        .btn-group {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .error-btn {
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
            font-size: 14px;
        }

        .error-btn-primary {
            background: #E53935;
            color: white;
            box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
        }

        .error-btn-primary:hover {
            background: #C62828;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
            color: white;
            text-decoration: none;
        }

        .error-btn-secondary {
            background: #333;
            color: white;
        }

        .error-btn-secondary:hover {
            background: #1a1a1a;
            transform: translateY(-2px);
            color: white;
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .error-section h1 {
                font-size: 100px;
            }

            .error-section h2 {
                font-size: 24px;
            }

            .back-text {
                display: none;
            }

            .error-icon {
                font-size: 60px;
            }
        }
    </style>
</head>

<body>
    <!-- Header -->
    <header class="b2b-error-header">
        <div class="header-container">
            <div class="error-logo">
                <a href="/">
                    <img src="/layout/assets/b2b/images/logo-b2b.png" alt="B2B Logo">
                </a>
            </div>
            <a href="javascript:history.back()" class="b2b-back-btn">
                <i class="las la-arrow-left"></i>
                <span class="back-text">Back</span>
            </a>
        </div>
    </header>

    <!-- Error Content -->
    <section class="error-section">
        <h1>500</h1>
        <div class="content-box">
            <i class="las la-tools error-icon"></i>
            <h2>Internal Server Error</h2>
            <p>We apologize. Something went wrong on our end while processing your request. Our team has been notified.</p>
            <div class="btn-group">
                <a href="/" class="error-btn error-btn-primary">Back to Home</a>
                <a href="javascript:history.back()" class="error-btn error-btn-secondary">Back</a>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="b2b-main-footer">
    <div class="b2b-auto-container">
      <!-- Footer Content -->
      <div class="b2b-footer-content">
        <!-- Left Section - Logo and Contact -->
        <div class="b2b-footer-logo-section">
          <!-- Logo -->
          <div class="b2b-footer-logo">
            <a href="/">
              <img src="/layout/assets/b2b/images/logo-b2b.png" alt="B2B "
                onerror="this.src='/layout/assets/b2b/images/b2b-full-green.svg'">
            </a>
          </div>

          <!-- Contact Information -->
          <div class="b2b-footer-contact">
            <div class="b2b-footer-contact-item">
              <div class="b2b-footer-contact-label">
                <i class="la la-phone"></i>
                <span>Phone Contact</span>
              </div>
              <a href="tel:+258879500626" class="b2b-footer-contact-value">
                +258 87 95 00 626
              </a>
            </div>

            <div class="b2b-footer-contact-item">
              <div class="b2b-footer-contact-label">
                <i class="la la-envelope"></i>
                <span>Email</span>
              </div>
              <a href="mailto:info@b2b.co.mz" class="b2b-footer-contact-value">
                info@b2b.co.mz
              </a>
            </div>
          </div>
        </div>

        <!-- Right Section - Links and Newsletter -->
        <div class="b2b-footer-links-section">
          <!-- Quick Links -->
          <div class="b2b-footer-column">
            <h4>Quick Links</h4>
            <ul class="b2b-footer-links">
              <li><a href="/legal/sobre">About Us</a></li>
              <li><a href="/legal/contacto">Contact</a></li>
              <li><a href="/help">Help</a></li>
              <li><a href="/legal/termos">Terms and Conditions</a></li>
              <li><a href="/legal/privacidade">Privacy Policy</a>
              </li>
              <li><a href="/legal/politica-concursos">Publication Policy</a></li>
              <li><a href="/legal/politica-uso">Acceptable Use Policy</a></li>
            </ul>
          </div>

          <!-- Social Media -->
          <div class="b2b-footer-column">
            <h4>Follow Us</h4>
            <div class="b2b-footer-social">
              <a href="https://x.com/b2bmoz?s=21" target="_blank" title="X (Twitter)">
                <i class="fa-brands fa-x-twitter"></i>
              </a>
              <a href="https://www.facebook.com/profile.php?id=61588176285047" target="_blank" title="Facebook">
                <i class="fa-brands fa-facebook-f"></i>
              </a>
              <a href="https://www.instagram.com/b2b.mz?igsh=cWNlcmU3anNtOHA2&utm_source=qr" target="_blank"
                title="Instagram">
                <i class="fa-brands fa-instagram"></i>
              </a>
              <a href="https://www.linkedin.com/company/b2bmz/?viewAsMember=true" target="_blank" title="LinkedIn">
                <i class="fa-brands fa-linkedin-in"></i>
              </a>
              <a href="https://www.threads.net/@b2b.mz?igshid=NTc4MTIwNjQ2YQ==" target="_blank" title="Threads">
                <i class="fa-brands fa-threads"></i>
              </a>
            </div>
          </div>

          <!-- Newsletter -->
          <div class="b2b-footer-column">
            <h4>Newsletter</h4>
            <div class="b2b-newsletter-form">
              <form method="post" action="#" id="subscribe-form" data-success-msg="Thank you for subscribing to our newsletter!" data-invalid-msg="Please enter a valid email address." data-api-url="/api/newsletter/subscribe">
                <div class="b2b-newsletter-input-group">
                  <input type="email" name="email" class="b2b-newsletter-input" placeholder="Email" required>
                  <button type="submit" class="b2b-btn b2b-btn-primary">Subscribe</button>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>

      <!-- Footer Bottom -->
      <div class="b2b-footer-bottom">
        <p>All Rights Reserved</p>
      </div>
    </div>

    <!-- Scroll to Top Button -->
    <div class="scroll-to-top scroll-to-target" data-target="html">
      <span class="la la-angle-up"></span>
    </div>
  </footer>

    <!-- Scripts -->
    <script src="/layout/assets/b2b/js/jquery.js"></script>
    <script src="/layout/assets/b2b/js/bootstrap.min.js"></script>
</body>

</html>
