/* ==========================================================================
   NEXTGEN FOOTER SECTION STYLES (ALIGNED GRID + BRAND TEXT)
   ========================================================================== */

.ng-footer {
  position: relative;
  background-color: #16121f;
  color: #ffffff;
  padding: 5rem 2rem 0;
  overflow: hidden;
  z-index: 2;
  text-align: center; /* Center-aligns all general footer text */
}

.ng-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* Updated to support Services, Areas We Serve, About, Legal, and Newsletter Columns */
  grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(280px, 1.4fr);
  gap: 2.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
  justify-items: center; /* Centers grid columns horizontally */
}

/* Footer Columns */
.ng-footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center; /* Centers column content */
  text-align: center;
}

.ng-footer-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: #FEAC97;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.ng-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center; /* Centers link items */
}

.ng-footer-links a {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ng-footer-links a:hover {
  color: #43c0ca;
}

/* Newsletter Column */
.ng-footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center; /* Centers newsletter components */
  width: 100%;
}

.ng-newsletter-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.ng-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 1rem;
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  color: #000000;
  outline: none;
  min-width: 0;
}

.ng-newsletter-input::placeholder {
  color: #888888;
}

.ng-newsletter-btn {
  background: #080d20;
  color: #ffffff;
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.ng-newsletter-btn:hover {
  background: #43c0ca;
  color: #000000;
}

/* Social Media Icons (Instagram, Google, WhatsApp) */
.ng-footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
  justify-content: center; /* Centers social icons horizontally */
  width: 100%;
}

.ng-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FEAC97;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ng-social-icon:hover {
  background: #FEAC97;
  color: #080d20;
  transform: translateY(-2px);
}

.ng-social-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* Footer Bottom */
.ng-footer-bottom {
  text-align: center;
  padding: 2.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center; /* Centers copyright and credits text */
}

.ng-footer-copyright {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.ng-footer-credits {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem 0;
}

.ng-footer-credits a {
  color: #FEAC97;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.ng-footer-credits a:hover {
  color: #43c0ca;
  text-decoration: underline;
}

/* Massive Brand Headline Display */
.ng-footer-brand-text {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(3.5rem, 15vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 0;
  padding-top: 1rem;
  user-select: none;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .ng-footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .ng-footer-newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 550px) {
  .ng-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ng-footer-newsletter {
    grid-column: span 1;
  }
}
