/* ==========================================================================
   MAIN FOOTER SYSTEM (PIXEL PERFECT FIGMA MATCH)
   ========================================================================== */

.main-footer {
  position: relative !important;
  background-color: #003622 !important; /* Exact match to design background */
  padding: 100px 0 60px !important; /* Reduced top padding */
  overflow: hidden !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  box-sizing: border-box !important;
  width: 100% !important;

  /* NEW: Centers the giant background text element vertically */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  min-height: 85vh !important; /* Ensures stable height footprint for text background */
}

/* BIG BACKGROUND TEXT DESIGN */
.footer-bg-text {
  position: absolute !important;
  top: 5% !important; /* Positions it nicely in the upper half like Figma */
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: clamp(60px, 16vw, 220px) !important;
  font-weight: 700 !important; /* Made bold to match Figma weight */
  letter-spacing: -0.03em !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  z-index: 1 !important; /* Layered safely behind content elements */
  pointer-events: none !important;
  text-align: center !important;
  width: 100% !important;

  /* Transparent Gradient Masking */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.01) 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* FIXED SIDE PACKING & ALIGNMENT CONTAINER */
.main-footer .container.footer-container {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  position: relative !important;
  z-index: 2 !important; /* Keeps links and text clickable on top of background mask */
  box-sizing: border-box !important;
}

/* BASE GRID COMPONENT */
.footer-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 48px !important;
  padding-top: 60px !important; /* REDUCED: Prevents container content from blocking background text layer */
}

/* ==========================================================================
   LEFT COLUMN
   ========================================================================== */

.footer-left {
  width: 100% !important;
  text-align: left !important;
}

.footer-logo {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 24px !important;
}

.footer-logo img {
  width: 160px !important;
  height: auto !important;
  object-fit: contain !important;
}

.footer-address {
  margin-bottom: 20px !important;
}

.footer-address p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14.5px !important;
  line-height: 150% !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.footer-contact {
  margin-bottom: 24px !important;
}

.footer-contact a {
  display: block !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14.5px !important;
  line-height: 160% !important;
  text-decoration: none !important;
  margin-bottom: 4px !important;
}

.footer-contact a:hover {
  color: #ffffff !important;
}

.footer-social {
  display: flex !important;
  align-items: center !important;
}

.footer-social a {
  display: inline-block !important;
  transition: opacity 0.2s ease !important;
}

img.footer-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  opacity: 0.7 !important;
  margin-right: 18px;
  filter: brightness(0) invert(1) !important;
}

/* ==========================================================================
   RIGHT COLUMN (NAVIGATION LINKS)
   ========================================================================== */

.footer-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
}

.footer-links {
  width: 100% !important;
  text-align: left !important;
}

.footer-links h4 {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  opacity: 0.4 !important;
}

.footer-links ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links li {
  margin-bottom: 12px !important;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

.footer-links a:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   DESKTOP ADAPTATION MEDIA LAYER (992px and up)
   ========================================================================== */
@media (min-width: 992px) {
  .main-footer {
    padding: 100px 0 60px !important;
  }

  .main-footer .container.footer-container {
    width: 95% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .footer-grid {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    padding-top: 100px !important; /* Kept clean to keep text background visible */
  }

  .footer-left {
    max-width: 400px !important;
  }

  .footer-right {
    flex-direction: row !important;
    gap: 100px !important;
  }

  .footer-links {
    min-width: 140px !important;
  }
}
