/* ==========================================================================
   Base & Reset Styles (Mobile-First)
   ========================================================================== */
html {
  scrollbar-gutter: stable;
  height: 100%; /* Ensure html stretches to full viewport height */
}

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

body {
  background-color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Minimum full height of viewport */
  min-height: 100dvh; /* Handles dynamic mobile browser toolbars cleanly */
  margin: 0;
}

/* Force main content area to stretch and push footer to the bottom */
main {
  flex: 1 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  background-color: #ffca3a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  max-width: 1330px;
  margin: 0 auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

/* Lucide Hamburger Button */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #024aeb;
  transition: color 0.2s ease;
  z-index: 1001;
}

.hamburger:hover {
  color: #000000;
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

/* Mega Menu & Overlay */
.mega-menu-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.mega-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mega-menu {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mega-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-container {
  max-width: 1330px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.mega-menu-column h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #024aeb;
  margin-bottom: 12px;
  font-weight: 700;
}

.mega-menu-column ul {
  list-style: none;
}

.mega-menu-column li {
  margin-bottom: 10px;
}

.mega-menu-column a {
  color: #333333;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.mega-menu-column a:hover {
  color: #024aeb;
}

.mega-menu-column a svg {
  width: 18px;
  height: 18px;
  color: #666666;
}

.mega-menu-column a:hover svg {
  color: #024aeb;
}

/* Prevent page scrolling when menu is active */
body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Centered Hero Section (Mobile-First)
   ========================================================================== */

.hero-centered {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 48px;
  text-align: center;
  color: #ffffff;
  
  background-color: #faf3e0; /* Fallback color */
  background-image:
  linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
  url('../public/img/hj-hero.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  flex-grow: 1;
}

.hero-content {
  max-width: 1330px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #024aeb;
  border: 2px solid #024aeb;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-hero:hover {
  background-color: #fff7e7;
  border-color: #024aeb;
  color: #024aeb;
}

/* ==========================================================================
   Centered Company Overview Section
   ========================================================================== */

.overview-simple {
  padding: 32px 20px 64px;
  background-color: #ffffff;
}

.overview-simple-container {
  max-width: 1330px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px; /* Slightly increased gap for better vertical rhythm */
}

.overview-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #024aeb;
  margin: 0;
  max-width: 1000px; /* Optional: matches body width for header alignment */
}

.overview-body {
  font-size: 1.1875rem; /* Increased base size (~19px) */
  line-height: 1.75;
  color: #1e293b; /* Deep off-black / dark slate */
  max-width: 1000px; /* Expanded text line length width */
  margin: 0;
}

/* Desktop sizing */
@media (min-width: 768px) {
  .overview-simple {
    padding: 48px 24px 96px;
  }

  .overview-title {
    font-size: 2.5rem;
  }

  .overview-body {
    font-size: 1.25rem; /* Increased desktop size (20px) */
  }
}

/* ==========================================================================
   Center-Aligned Footer Styles
   ========================================================================== */

.footer {
  background-color: #fff7e7;
  color: #4a6284;
  padding: 40px 16px 28px;
  font-size: 0.9375rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1330px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.footer-nav a {
  color: #4a6284;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #024aeb;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(74, 98, 132, 0.15);
  font-size: 0.875rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  color: #4a6284;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: #024aeb;
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Desktop Responsive Overrides (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {
  .navbar {
    padding: 0 24px;
  }

  .logo-img {
    height: 50px;
    max-width: 150px;
  }

  .mega-menu-container {
    padding: 32px 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
  }

  .hero-centered {
    min-height: 75vh;
    padding: 0 24px 80px;
  }

  .hero-title {
    font-size: 3.75rem;
    margin-bottom: 32px;
  }

  .btn-hero {
    padding: 9px 21px;
    font-size: 0.9375rem;
  }

  .footer {
    padding: 48px 24px 32px;
  }

  .footer-nav {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

/* ==========================================================================
   Simple Contact Us Section
   ========================================================================== */

.contact-simple {
  padding: 32px 20px 64px;
  background-color: #ffffff;
}

.contact-simple-container {
  max-width: 1330px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.contact-simple-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #024aeb;
  margin: 0;
  max-width: 1000px;
}

.contact-simple-body {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: #1e293b;
  max-width: 1000px;
  margin: 0;
}

.contact-simple-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
  width: 100%;
}

.contact-info-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-info-group h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #024aeb;
  margin: 0;
}

.contact-info-group p {
  font-size: 1.125rem;
  color: #1e293b;
  margin: 0;
}

.contact-info-group a {
  color: #024aeb;
  text-decoration: underline;
}

.contact-info-group .btn-hero {
  text-decoration: none;
  margin-top: 4px;
}

/* Desktop sizing */
@media (min-width: 768px) {
  .contact-simple {
    padding: 48px 24px 96px;
  }

  .contact-simple-title {
    font-size: 2.5rem;
  }

  .contact-simple-body {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */

.breadcrumb {
  background-color: #ffffff;
  padding: 16px 20px 0;
}

.breadcrumb-container {
  max-width: 1330px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
}

.breadcrumb a {
  color: #024aeb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
}

/* Desktop Sizing */
@media (min-width: 768px) {
  .breadcrumb {
    padding: 24px 24px 0;
  }
}

/* ==========================================================================
   Simple Left-Aligned About Us Section
   ========================================================================== */

.about-simple {
  padding: 32px 20px 64px;
  background-color: #ffffff;
}

.about-simple-container {
  max-width: 1000px; /* Aligns container width cleanly */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-align all elements */
  text-align: left;        /* Left-align text */
  gap: 24px;
}

.about-simple-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #024aeb;
  margin: 0;
}

/* Image under Title */
.about-image-wrapper {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 8px;
}

.about-img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.about-simple-body {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: #1e293b;
  margin: 0;
}

.about-simple-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin-top: 12px;
  width: 100%;
}

.about-info-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.about-info-group h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #024aeb;
  margin: 0;
}

.about-info-group p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
}

.about-info-group .btn-hero {
  text-decoration: none;
  margin-top: 8px;
}

/* Desktop sizing */
@media (min-width: 768px) {
  .about-simple {
    padding: 48px 24px 96px;
  }

  .about-simple-title {
    font-size: 2.5rem;
  }

  .about-simple-body {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   404 Page Styles
   ========================================================================== */

.error-simple {
  padding: 48px 20px 80px;
  background-color: #ffffff;
}

.error-simple-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #024aeb;
  margin: 0;
}

.error-body {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: #1e293b;
  max-width: 600px;
  margin: 0;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
}

/* Desktop sizing */
@media (min-width: 768px) {
  .error-simple {
    padding: 64px 24px 112px;
  }

  .error-title {
    font-size: 3.25rem;
  }

  .error-body {
    font-size: 1.25rem;
  }

  .error-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}