/* ============================================================
   NFS Custom Footer
   ============================================================ */

/* Hide theme footer when NFS footer is active */
.site-footer { display: none !important; }

/* ── Main footer wrapper ── */
.nfs-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 36px 0 24px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── 6-column grid ── */
.nfs-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
}

/* ── Logo column ── */
.nfs-foot-logo {
  display: flex;
  flex-direction: column;
}

.nfs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.nfs-logo-img {
  max-height: 48px;
  width: auto;
}

.nfs-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1d4ed8;
  flex-shrink: 0;
}

.nfs-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nfs-logo-text b {
  font-size: 13px;
  font-weight: 800;
  color: #0a2540;
  letter-spacing: 0.03em;
}

.nfs-logo-text span {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}

.nfs-foot-logo > p {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* ── Social icons ── */
.nfs-foot-social {
  display: flex;
  gap: 8px;
}

.nfs-foot-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nfs-foot-social a:hover {
  background: #1d4ed8;
  color: #fff;
}

.nfs-foot-social svg {
  width: 16px;
  height: 16px;
}

/* ── Menu columns ── */
.nfs-foot-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: #0a2540;
  text-transform: none;
  letter-spacing: 0;
}

.nfs-foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.nfs-foot-col ul li a,
.nfs-foot-col ul li span {
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.4;
}

.nfs-foot-col ul li a:hover {
  color: #1d4ed8;
}

/* ── Newsletter column ── */
.nfs-foot-sub > p {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 10px;
}

.nfs-foot-sub-input {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.nfs-foot-sub-input input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #111827;
  min-width: 0;
}

.nfs-foot-sub-input input:focus {
  border-color: #1d4ed8;
}

.nfs-foot-sub-input button {
  background: #1d4ed8;
  color: #fff;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s;
  height: 36px;
  line-height: 12px;
}

.nfs-foot-sub-input button:hover {
  background: #1e40af;
}

.nfs-foot-sub small {
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.4;
  display: block;
}

/* Contacts block inside newsletter column */
.nfs-foot-sub-contacts {
  margin-top: 16px;
}

.nfs-foot-sub-label {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 4px;
}

.nfs-foot-sub-value {
  font-size: 13px;
  color: #0a2540;
  font-weight: 600;
  line-height: 1.45;
}

.nfs-foot-sub-phone {
  display: block;
  font-size: 13px;
  color: #0a2540;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}

.nfs-foot-sub-phone:hover {
  color: #1d4ed8;
}

.nfs-foot-sub-hours {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* ── Bottom bar ── */
.nfs-foot-bottom {
  border-top: 1px solid #e5e7eb;
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
}

.nfs-foot-bottom-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* ── Payment badges ── */
.nfs-pay {
  display: flex;
  gap: 8px;
}

.nfs-pay-card {
  height: 22px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.05em;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .nfs-foot-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nfs-footer {
    padding: 28px 0 20px;
  }

  .nfs-foot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .nfs-foot-logo {
    grid-column: 1 / -1;
  }

  .nfs-foot-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nfs-foot-bottom-right {
    flex-direction: column;
    gap: 10px;
  }

  .nfs-pay {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nfs-foot-grid {
    grid-template-columns: 1fr !important;
  }

  .nfs-foot-sub-input {
    flex-direction: column;
  }

  .nfs-foot-sub-input button {
    width: 100%;
    height: 38px;
  }
}
