/* Footer chrome + the site-wide pre-footer band. Enqueued globally.

   The pre-footer is the "Let Us Transform Your Security Services" band that
   Elementor template 89 injected into eight pages. Two full-bleed halves: a
   photo panel on the left carrying the copy, a navy panel on the right
   carrying the enquiry form. It is edge-to-edge, so it deliberately does NOT
   use .ijnsecurityservices-wrap. */

.ijnsecurityservices-prefooter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--ijnsecurityservices-accent);
  color: var(--ijnsecurityservices-text-invert);
}

.ijnsecurityservices-prefooter__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 64px);
  text-align: right;
  /* Background image is set inline on the element from the Site Options field —
     a stylesheet cannot reference a media-library attachment. */
  background-color: #7f7f7f;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}
.ijnsecurityservices-prefooter__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .35);
}
.ijnsecurityservices-prefooter__copy h2 {
  margin: 0;
  color: var(--ijnsecurityservices-text-invert);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  max-width: 14ch;
}
.ijnsecurityservices-prefooter__copy p { margin: 0; max-width: 42ch; }
.ijnsecurityservices-prefooter__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.ijnsecurityservices-prefooter__links a {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: inherit;
  text-decoration: none;
}
.ijnsecurityservices-prefooter__links a:hover { text-decoration: underline; }
.ijnsecurityservices-prefooter__links svg { color: var(--ijnsecurityservices-brand); }

.ijnsecurityservices-prefooter__form {
  padding: clamp(32px, 3.5vw, 56px) clamp(24px, 4vw, 56px);
}
.ijnsecurityservices-prefooter__form h2 {
  margin: 0 0 .6em;
  color: var(--ijnsecurityservices-text-invert);
}

@media (max-width: 860px) {
  .ijnsecurityservices-prefooter { grid-template-columns: 1fr; }
  .ijnsecurityservices-prefooter__copy { align-items: center; text-align: center; }
  .ijnsecurityservices-prefooter__copy h2 { max-width: none; }
  .ijnsecurityservices-prefooter__links { align-items: center; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ijnsecurityservices-footer {
  background: var(--ijnsecurityservices-footer-bg);
  color: var(--ijnsecurityservices-text-invert);
  padding-block: clamp(40px, 5vw, 64px) 0;
}
.ijnsecurityservices-footer a { color: inherit; text-decoration: none; }
.ijnsecurityservices-footer a:hover { color: var(--ijnsecurityservices-brand); }

.ijnsecurityservices-footer__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  padding-bottom: 40px;
}
.ijnsecurityservices-footer__brand img { max-height: 150px; width: auto; }
.ijnsecurityservices-footer__name { font-size: 1.2rem; font-weight: 700; }
.ijnsecurityservices-footer__tagline { margin-top: 14px; opacity: .8; max-width: 34ch; }

.ijnsecurityservices-footer__menus { display: contents; }
.ijnsecurityservices-footer__coltitle {
  margin: 0 0 16px;
  color: var(--ijnsecurityservices-brand);
  font-size: 1.35rem;
  line-height: 1.2;
}
.ijnsecurityservices-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.ijnsecurityservices-social { display: flex; gap: 12px; margin-top: 16px; }
.ijnsecurityservices-social__link {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .2s var(--ijnsecurityservices-ease), border-color .2s var(--ijnsecurityservices-ease);
}
.ijnsecurityservices-social__link:hover { background: var(--ijnsecurityservices-brand); border-color: transparent; }

.ijnsecurityservices-footer__legal {
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.28);
  font-size: .95rem;
  text-align: center;
}

@media (max-width: 860px) {
  .ijnsecurityservices-footer__inner { grid-template-columns: 1fr 1fr; }
  .ijnsecurityservices-footer__brand { grid-column: 1 / -1; }
  .ijnsecurityservices-footer__brand img { max-height: 110px; }
}
@media (max-width: 560px) {
  .ijnsecurityservices-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .ijnsecurityservices-footer__list { justify-items: center; }
  .ijnsecurityservices-social { justify-content: center; }
}
