/**
 * Site footer — NEFSA / fire academy theme (loads after firdip.css).
 * Scoped to .main-footer--nefsa
 */

.main-footer.main-footer--nefsa {
  margin-top: clamp(20px, 3vw, 36px);
  padding-top: 0;
  background: linear-gradient(
    178deg,
    #181b1c 0%,
    #232728 32%,
    #1c1f20 100%
  );
  border-top: 1px solid rgba(232, 201, 106, 0.2);
  box-shadow: 0 -1px 0 rgba(202, 68, 69, 0.12);
}

.main-footer--nefsa .main-footer__bg {
  opacity: 0.18;
  mix-blend-mode: overlay;
  animation: none;
}

.main-footer--nefsa .main-footer__middle {
  margin-top: clamp(40px, 5vw, 52px);
  margin-bottom: clamp(44px, 5vw, 64px);
}

@media (max-width: 991px) {
  .main-footer--nefsa .main-footer__middle {
    margin-bottom: 36px;
  }
}

/* Column titles */
.main-footer--nefsa .footer-widget__title {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  margin-bottom: 18px;
  padding-bottom: 12px;
  color: rgba(255, 255, 255, 0.97);
  position: relative;
}

.main-footer--nefsa .footer-widget__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 62%,
    #9e2a2b 100%
  );
}

.main-footer--nefsa .footer-widget__text {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(198, 201, 202, 0.9);
  margin-bottom: 20px;
}

/* Newsletter */
.main-footer--nefsa .footer-widget__newsletter {
  max-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.main-footer--nefsa .footer-widget__newsletter input[type="email"] {
  flex: 1;
  max-width: none;
  height: 48px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding-left: 18px;
  padding-right: 14px;
}

.main-footer--nefsa .footer-widget__newsletter input[type="email"]::placeholder {
  color: rgba(165, 168, 169, 0.75);
  font-size: 14px;
}

.main-footer--nefsa .footer-widget__newsletter button[type="submit"] {
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(
    145deg,
    #d45253 0%,
    var(--firdip-base, #ca4445) 45%,
    #9e2a2b 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.main-footer--nefsa .footer-widget__newsletter button[type="submit"]:hover {
  background: var(--firdip-white, #fff);
  color: var(--firdip-base, #ca4445);
  box-shadow: none;
}

/* Newsletter subscribe modal (JSON response → JS) */
body.nefsa-subscribe-modal-open {
  overflow: hidden;
}

.nefsa-subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.nefsa-subscribe-modal.is-open {
  display: flex;
}

.nefsa-subscribe-modal.is-open .nefsa-subscribe-modal__dialog {
  animation: nefsa-subscribe-modal-in 0.28s ease-out both;
}

@keyframes nefsa-subscribe-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.nefsa-subscribe-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(4px);
}

.nefsa-subscribe-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 28px 26px 24px;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #faf9f7 100%);
  border: 1px solid rgba(202, 68, 69, 0.12);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  text-align: center;
}

.nefsa-subscribe-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: rgba(35, 39, 40, 0.55);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nefsa-subscribe-modal__close:hover {
  color: var(--firdip-base, #ca4445);
  background: rgba(202, 68, 69, 0.08);
}

.nefsa-subscribe-modal__title {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
  padding-right: 28px;
  color: #232728;
}

.nefsa-subscribe-modal__desc {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
  color: rgba(35, 39, 40, 0.85);
}

.nefsa-subscribe-modal--success .nefsa-subscribe-modal__title {
  color: #1d5c3a;
}

.nefsa-subscribe-modal--error .nefsa-subscribe-modal__title {
  color: #9e2a2b;
}

.nefsa-subscribe-modal--info .nefsa-subscribe-modal__title {
  color: #5c4a1d;
}

.nefsa-subscribe-modal__ok {
  min-width: 120px;
}

/* Contact */
.main-footer--nefsa .footer-widget__contact__item {
  align-items: flex-start;
  gap: 14px;
}

.main-footer--nefsa .footer-widget__contact__item + .footer-widget__contact__item {
  margin-top: 14px;
}

.main-footer--nefsa .footer-widget__contact__icon {
  max-width: 42px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8c96a;
  font-size: 16px;
}

.main-footer--nefsa .footer-widget__contact__item:hover .footer-widget__contact__icon {
  background: linear-gradient(
    145deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 100%
  );
  color: var(--firdip-white, #fff);
  border-color: transparent;
}

.main-footer--nefsa .footer-widget__contact__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.main-footer--nefsa .footer-widget__contact__text {
  font-size: 14px;
  line-height: 1.62;
  color: rgba(205, 208, 209, 0.92);
}

.main-footer--nefsa .footer-widget__contact__text + .footer-widget__contact__text {
  margin-top: 0;
}

.main-footer--nefsa .footer-widget__contact__item a.footer-widget__contact__text:hover {
  color: #e8c96a;
}

.main-footer--nefsa .footer-widget__contact p.footer-widget__contact__text {
  line-height: 1.62;
}

/* Quick links */
.main-footer--nefsa .footer-widget__links__item {
  font-size: 14px;
  line-height: 1.45;
  padding-left: 12px;
  margin-left: 2px;
  border-left: 2px solid rgba(232, 201, 106, 0.35);
  color: rgba(195, 198, 199, 0.95);
}

.main-footer--nefsa .footer-widget__links__item + .footer-widget__links__item {
  margin-top: 8px;
}

.main-footer--nefsa .footer-widget__links__item a {
  text-decoration: none;
}

.main-footer--nefsa .footer-widget__links__item a:hover {
  color: #e8c96a;
}

/* Column gutters vs theme */
.main-footer--nefsa .footer-widget--about {
  margin-right: 28px;
}

.main-footer--nefsa .footer-widget--contact {
  margin-left: 28px;
}

.main-footer--nefsa .footer-widget--link {
  margin-left: 20px;
}

@media (max-width: 1199px) {
  .main-footer--nefsa .footer-widget--about,
  .main-footer--nefsa .footer-widget--contact,
  .main-footer--nefsa .footer-widget--link {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Copyright bar */
.main-footer--nefsa .main-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.main-footer--nefsa .main-footer__bottom__inner {
  padding: 20px 0 22px;
}

.main-footer--nefsa .main-footer__copyright {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(158, 162, 163, 0.92);
}

/* Floating WhatsApp (home + pages that include the anchor) */
.nefsa-float-wa {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    152deg,
    #3fe67f 0%,
    #25d366 42%,
    #1aab55 100%
  );
  color: #fff !important;
  font-size: 32px;
  line-height: 1;
  text-decoration: none !important;
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.42),
    0 2px 10px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.38);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.nefsa-float-wa i {
  margin-top: 2px;
}

.nefsa-float-wa:hover {
  color: #fff !important;
  transform: scale(1.07) translateY(-3px);
  box-shadow:
    0 14px 36px rgba(37, 211, 102, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
}

.nefsa-float-wa:focus-visible {
  outline: 3px solid #e8c96a;
  outline-offset: 4px;
}

@media (max-width: 575px) {
  .nefsa-float-wa {
    width: 52px;
    height: 52px;
    font-size: 29px;
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }
}
